数据库变更CNPC_XJYJ
This commit is contained in:
@@ -142,7 +142,7 @@ namespace WebAPI.Controllers
|
||||
var responeData = new Model.ResponeData();
|
||||
try
|
||||
{
|
||||
var getDataList = new Model.SGGLDB(Funs.ConnString).View_QualityAudit_SubUnitQuality.Where(x => x.ProjectId == projectId);
|
||||
var getDataList = new Model.CNPCDB(Funs.ConnString).View_QualityAudit_SubUnitQuality.Where(x => x.ProjectId == projectId);
|
||||
//// 总数
|
||||
int tatalCount = getDataList.Count();
|
||||
//// 过期
|
||||
@@ -180,7 +180,7 @@ namespace WebAPI.Controllers
|
||||
var responeData = new Model.ResponeData();
|
||||
try
|
||||
{
|
||||
IQueryable<Model.View_QualityAudit_SubUnitQuality> q = from x in new Model.SGGLDB(Funs.ConnString).View_QualityAudit_SubUnitQuality
|
||||
IQueryable<Model.View_QualityAudit_SubUnitQuality> q = from x in new Model.CNPCDB(Funs.ConnString).View_QualityAudit_SubUnitQuality
|
||||
where x.ProjectId == projectId
|
||||
select x;
|
||||
if (type == "0")
|
||||
@@ -249,7 +249,7 @@ namespace WebAPI.Controllers
|
||||
var responeData = new Model.ResponeData();
|
||||
try
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
|
||||
{
|
||||
Model.Base_Unit newUnit = db.Base_Unit.FirstOrDefault(x => x.UnitCode == unit.UnitCode);
|
||||
if (newUnit == null)
|
||||
|
||||
Reference in New Issue
Block a user