Commit 8329f4d2 authored by 温志超's avatar 温志超

更新排产警告

parent 62a95130
......@@ -137,7 +137,7 @@ public class AlgorithmDataSourceImpl implements AlgorithmDataSource {
processQuery.orderByAsc("t1.idx");
List<ProWorkOrderProcess> productionOrderRoutings = proWorkOrderProcessService.selectListByQw(processQuery);
//
if(productionOrderRoutings==null){
if(productionOrderRoutings.size() < 1){
msg.append(MessageUtils.message("pro.schedule.error.not.exist.process", firstWorkorder.getWorkorderCode()));
msg.append(System.lineSeparator());
continue;
......
......@@ -1066,7 +1066,7 @@ public class ProWorkorderServiceImpl implements IProWorkorderService {
proWorkorder.setAncestors(parent.getAncestors() + "," + parent.getParentId());
}
}
proWorkorder.setStatus(WorkorderStatusEnum.PREPARE.getValue());
proWorkorder.setStatus(WorkorderStatusEnum.PUBLISHED.getValue());
proWorkorder.createAction();
proWorkorder.setQuantityProduced(BigDecimal.ZERO);
proWorkorder.setQuantityQualify(BigDecimal.ZERO);
......
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