|
@@ -1483,6 +1483,14 @@ public class TaskNodeServiceImpl extends SuperServiceImpl<TaskNodeMapper, TaskNo
|
|
|
order.setProduceStatus("3");//完成
|
|
|
orderMapper.updateAllById(order);
|
|
|
|
|
|
+ //设置结束标志
|
|
|
+ List<TWorkpiece>list = workpieceService.list(Wraps.<TWorkpiece>lbQ().eq(TWorkpiece::getCompleteBatchNo,taskNode.getCompleteBatchNo()));
|
|
|
+ if(CollectionUtil.isNotEmpty(list)) {
|
|
|
+ TWorkpiece tWorkpiece = list.get(0);
|
|
|
+ tWorkpiece.setIsEnd("1");
|
|
|
+ workpieceService.updateById(tWorkpiece);
|
|
|
+ }
|
|
|
+
|
|
|
//设置计划结束
|
|
|
// planMapper.updateproduceStatusFinish();
|
|
|
// ////设置订单结束
|