Commit 232ecd3b by jiawei.su

fixedbug

parent 7bde70c3
...@@ -154,23 +154,23 @@ namespace Siger.ApiACC.Controllers ...@@ -154,23 +154,23 @@ namespace Siger.ApiACC.Controllers
{ {
throw new BadRequestException(CommonEnum.RecordNotFound); throw new BadRequestException(CommonEnum.RecordNotFound);
} }
var monitor = _automationTaskList.GetList(f =>f.sectionid==section ,"id",true).FirstOrDefault(); var monitor = _automationFixtureMonitor.Get(f =>f.section==section );
var img = string.Empty; var img = string.Empty;
if (monitor!=null) if (monitor!=null)
{ {
var pd = _sigerProjectProduct.Get(f => f.code == monitor.productcode); var pd = _sigerProjectProduct.Get(f => f.code == monitor.productCode);
img = pd != null ? pd.image : ""; img = pd != null ? pd.image : "";
} }
var result = new ResponsePlanlFixtureInfo var result = new ResponsePlanlFixtureInfo
{ {
OrderNumber = monitor!=null? monitor.ordercode:"", OrderNumber = monitor!=null? monitor.ordernumber : "",
FixtureGuid = monitor != null ? monitor.fixtureguid:"", FixtureGuid = monitor != null ? monitor.fixtureguid:"",
FixtureCode = monitor != null ? monitor.fixturename:"", FixtureCode = monitor != null ? monitor.fixturename:"",
ProductCode = monitor != null ? monitor.productcode:"", ProductCode = monitor != null ? monitor.productCode:"",
ProductName = monitor != null ? monitor.productname:"", ProductName = monitor != null ? monitor.productName:"",
Sn = monitor != null ? monitor.sn:"", Sn = monitor != null ? monitor.sn:"",
status = monitor != null ? monitor.status : 0, status = monitor != null ? monitor.status : 0,
Location = monitor != null ? monitor.locationid:0, Location = monitor != null ? monitor.locationId:0,
Url=img Url=img
}; };
return new ObjectResult(result); return new ObjectResult(result);
......
...@@ -226,13 +226,13 @@ namespace Siger.ApiACC.Controllers ...@@ -226,13 +226,13 @@ namespace Siger.ApiACC.Controllers
//去抽检台 //去抽检台
if (record.extend1.ToInt()==perperty.sectionid && record.action == Automation.TaskAction.Step_LK_CJT) if (record.extend1.ToInt()==perperty.sectionid && record.action == Automation.TaskAction.Step_LK_CJT)
{ {
perperty.upload = 0; perperty.down = 0;
_automationSectionProperty.Update(perperty); _automationSectionProperty.Update(perperty);
} }
//去下料位 //去下料位
if (record.extend1.ToInt()==perperty.sectionid && record.action== Automation.TaskAction.Step_LK_SXLW) if (record.extend1.ToInt()==perperty.sectionid && record.action== Automation.TaskAction.Step_LK_SXLW)
{ {
perperty.upload = 0; perperty.down = 0;
_automationSectionProperty.Update(perperty); _automationSectionProperty.Update(perperty);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment