Commit 036770ac by jiawei.su

fixedbug

parent 5c16ef62
...@@ -458,7 +458,9 @@ namespace Siger.ApiACC.Controllers ...@@ -458,7 +458,9 @@ namespace Siger.ApiACC.Controllers
else else
{ {
var nextRoute = productRoutes.OrderBy(d => d.serialNumber).FirstOrDefault(); var nextRoute = productRoutes.OrderBy(d => d.serialNumber).FirstOrDefault();
locationObj.route = nextRoute != null ? nextRoute.id.ToString() : "";
locationObj.routeid = nextRoute != null ? nextRoute.id : 0;
locationObj.route = nextRoute != null ? nextRoute.name : "";
} }
_automationLocation.Update(locationObj); _automationLocation.Update(locationObj);
......
...@@ -94,6 +94,8 @@ namespace Siger.Middlelayer.AccRepository.Repositories ...@@ -94,6 +94,8 @@ namespace Siger.Middlelayer.AccRepository.Repositories
{ {
var query = from q in _context.siger_automation_task_list var query = from q in _context.siger_automation_task_list
join t in _context.siger_automation_fixture_tools on q.fixtureguid equals t.guid join t in _context.siger_automation_fixture_tools on q.fixtureguid equals t.guid
join r in _context.siger_project_product_route on q.route equals r.id into rtemp
from r in rtemp.DefaultIfEmpty()
join s in _context.siger_project_level_section on q.sectionid equals s.id join s in _context.siger_project_level_section on q.sectionid equals s.id
join lv in _context.siger_project_level_section on s.parentid equals lv.id join lv in _context.siger_project_level_section on s.parentid equals lv.id
where q.projectId == projectid where q.projectId == projectid
...@@ -117,7 +119,8 @@ namespace Siger.Middlelayer.AccRepository.Repositories ...@@ -117,7 +119,8 @@ namespace Siger.Middlelayer.AccRepository.Repositories
ordernumber=q.ordercode, ordernumber=q.ordercode,
productCode=q.productcode, productCode=q.productcode,
program=q.programnumber, program=q.programnumber,
route=q.remark, route=r!=null?$"{r.serialNumber}-{r.name}":"",
tasktype=EnumHelper.GetEnumDesc(q.tasktype), tasktype=EnumHelper.GetEnumDesc(q.tasktype),
status=q.status, status=q.status,
......
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