|
|
|
@ -473,7 +473,6 @@ public class WorkOrderServiceImpl extends BaseServiceImpl<WorkOrderMapper, WorkO |
|
|
|
try { |
|
|
|
try { |
|
|
|
DsPartVersionEntity partVersion = partVersionService.getOne(Wrappers.<DsPartVersionEntity>lambdaQuery().eq(DsPartVersionEntity::getPartCode,order.getPartCode()).eq(DsPartVersionEntity::getPartVersion,order.getPartVersion())); |
|
|
|
DsPartVersionEntity partVersion = partVersionService.getOne(Wrappers.<DsPartVersionEntity>lambdaQuery().eq(DsPartVersionEntity::getPartCode,order.getPartCode()).eq(DsPartVersionEntity::getPartVersion,order.getPartVersion())); |
|
|
|
if(partVersion == null){ |
|
|
|
if(partVersion == null){ |
|
|
|
errorInfo.append("订单:"+order.getYoCode()+"未查询到零件号:" + order.getPartCode() +"的版本号:"+order.getPartVersion()+"的对应信息;"); |
|
|
|
|
|
|
|
order.setErrorInfo("订单:"+order.getYoCode()+"未查询到零件号:" + order.getPartCode() +"的版本号:"+order.getPartVersion()+"的对应信息"); |
|
|
|
order.setErrorInfo("订单:"+order.getYoCode()+"未查询到零件号:" + order.getPartCode() +"的版本号:"+order.getPartVersion()+"的对应信息"); |
|
|
|
order.setStatus(YieldOrderEnum.STATUS_PROCESS_ERROR.getCode()); |
|
|
|
order.setStatus(YieldOrderEnum.STATUS_PROCESS_ERROR.getCode()); |
|
|
|
yieldOrderService.updateById(order); |
|
|
|
yieldOrderService.updateById(order); |
|
|
|
@ -961,6 +960,7 @@ public class WorkOrderServiceImpl extends BaseServiceImpl<WorkOrderMapper, WorkO |
|
|
|
} |
|
|
|
} |
|
|
|
if (!isSchecuding) { |
|
|
|
if (!isSchecuding) { |
|
|
|
if(errorInfo.length() > 0){ |
|
|
|
if(errorInfo.length() > 0){ |
|
|
|
|
|
|
|
log.info("订单id是:"+ order.getId() +",所有报错信息是:" + errorInfo.toString()); |
|
|
|
order.setErrorInfo(errorInfo.toString()); |
|
|
|
order.setErrorInfo(errorInfo.toString()); |
|
|
|
order.setStatus(YieldOrderEnum.STATUS_PROCESS_ERROR.getCode()); |
|
|
|
order.setStatus(YieldOrderEnum.STATUS_PROCESS_ERROR.getCode()); |
|
|
|
order.setUpdateTime(new Date()); |
|
|
|
order.setUpdateTime(new Date()); |
|
|
|
|