|
|
|
@ -268,9 +268,9 @@ public class WorkOrderServiceImpl extends BaseServiceImpl<WorkOrderMapper, WorkO |
|
|
|
public boolean turnType(Long id, Integer yieldType, Long userId) { |
|
|
|
public boolean turnType(Long id, Integer yieldType, Long userId) { |
|
|
|
YieldOrder yieldOrder = yieldOrderService.getById(id); |
|
|
|
YieldOrder yieldOrder = yieldOrderService.getById(id); |
|
|
|
if (yieldOrder == null || yieldType == null) { |
|
|
|
if (yieldOrder == null || yieldType == null) { |
|
|
|
return false; |
|
|
|
throw new ServiceException("未找到生产订单,参数错误!"); |
|
|
|
} |
|
|
|
} |
|
|
|
yieldOrder.setYieldType(yieldType); |
|
|
|
yieldOrder.setYieldType(YieldOrderEnum.YIELD_TYPE_2.getCode()); |
|
|
|
return yieldOrderService.updateById(yieldOrder); |
|
|
|
return yieldOrderService.updateById(yieldOrder); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -1162,7 +1162,7 @@ public class WorkOrderServiceImpl extends BaseServiceImpl<WorkOrderMapper, WorkO |
|
|
|
public ProduceMonitorOrderDataVO getOrderDetail(Long woId, String partCode) { |
|
|
|
public ProduceMonitorOrderDataVO getOrderDetail(Long woId, String partCode) { |
|
|
|
WorkOrder workOrder = this.getById(woId); |
|
|
|
WorkOrder workOrder = this.getById(woId); |
|
|
|
DsPartEntity dsPartEntity = dsPartService.selectDsPartByPatCodeAndVersion(partCode, null); |
|
|
|
DsPartEntity dsPartEntity = dsPartService.selectDsPartByPatCodeAndVersion(partCode, null); |
|
|
|
if (workOrder == null || dsPartEntity == null) { |
|
|
|
if (workOrder == null) { |
|
|
|
return null; |
|
|
|
return null; |
|
|
|
} |
|
|
|
} |
|
|
|
YieldOrder yieldOrder = yieldOrderService.getById(workOrder.getYoId()); |
|
|
|
YieldOrder yieldOrder = yieldOrderService.getById(workOrder.getYoId()); |
|
|
|
@ -1172,6 +1172,7 @@ public class WorkOrderServiceImpl extends BaseServiceImpl<WorkOrderMapper, WorkO |
|
|
|
return null; |
|
|
|
return null; |
|
|
|
} |
|
|
|
} |
|
|
|
ProduceMonitorOrderDataVO orderDataVO = new ProduceMonitorOrderDataVO(); |
|
|
|
ProduceMonitorOrderDataVO orderDataVO = new ProduceMonitorOrderDataVO(); |
|
|
|
|
|
|
|
if (dsPartEntity != null) { |
|
|
|
ProduceMonitorDsPartVO dsPartVO = new ProduceMonitorDsPartVO(); |
|
|
|
ProduceMonitorDsPartVO dsPartVO = new ProduceMonitorDsPartVO(); |
|
|
|
// 组装订单基础信息
|
|
|
|
// 组装订单基础信息
|
|
|
|
BeanUtils.copyProperties(workOrder, orderDataVO); |
|
|
|
BeanUtils.copyProperties(workOrder, orderDataVO); |
|
|
|
@ -1191,6 +1192,7 @@ public class WorkOrderServiceImpl extends BaseServiceImpl<WorkOrderMapper, WorkO |
|
|
|
// todo erp查询pdm零件图纸地址
|
|
|
|
// todo erp查询pdm零件图纸地址
|
|
|
|
dsPartVO.setUrl("http://MESLoginUser:MESloginUseradmin@pdm.caoe.com/Windchill/netmarkets/jsp/ext/caoe/mes/export.jsp?oid="); |
|
|
|
dsPartVO.setUrl("http://MESLoginUser:MESloginUseradmin@pdm.caoe.com/Windchill/netmarkets/jsp/ext/caoe/mes/export.jsp?oid="); |
|
|
|
orderDataVO.setDsPart(dsPartVO); |
|
|
|
orderDataVO.setDsPart(dsPartVO); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 组装工序信息
|
|
|
|
// 组装工序信息
|
|
|
|
for (ProduceMonitorWorkPlanVO workPlan : workPlans) { |
|
|
|
for (ProduceMonitorWorkPlanVO workPlan : workPlans) { |
|
|
|
|