|
|
|
|
@ -490,8 +490,9 @@ public class WorkOrderServiceImpl extends BaseServiceImpl<WorkOrderMapper, WorkO |
|
|
|
|
//把加工班组为空的删掉
|
|
|
|
|
List<WorkPlanEntity> emptyWorkPlanList = workPlanService.list(Wrappers.<WorkPlanEntity>lambdaQuery().eq(WorkPlanEntity::getWoId,oldWorkOrder.getId()).isNull(WorkPlanEntity::getMakeTeam).isNull(WorkPlanEntity::getFactStartTime)); |
|
|
|
|
List<Long> ids = emptyWorkPlanList.stream().map(BaseEntity::getId).collect(Collectors.toList()); |
|
|
|
|
log.info("外协返回订单获取到的空工序id是:" + JSONObject.toJSONString(ids)); |
|
|
|
|
if(CollectionUtils.isNotEmpty(ids)){ |
|
|
|
|
workPlanService.deleteLogic(ids); |
|
|
|
|
workPlanService.removeByIds(ids); |
|
|
|
|
} |
|
|
|
|
//查询已经加工完的
|
|
|
|
|
List<WorkPlanEntity> oldWorkPlanList = workPlanService.list(Wrappers.<WorkPlanEntity>lambdaQuery().eq(WorkPlanEntity::getWoId,oldWorkOrder.getId()).orderByAsc(WorkPlanEntity::getOrders)); |
|
|
|
|
@ -509,10 +510,6 @@ public class WorkOrderServiceImpl extends BaseServiceImpl<WorkOrderMapper, WorkO |
|
|
|
|
.filter(chineseName -> chineseName != null && !chineseName.isEmpty()) |
|
|
|
|
.collect(Collectors.joining(",")); |
|
|
|
|
errorInfo.append("工序信息不完整,工序:" + errorInfo2 + "未匹配作业中心;"); |
|
|
|
|
// order.setErrorInfo("工序信息不完整,工序:" + errorInfo + "未匹配作业中心");
|
|
|
|
|
// order.setStatus(YieldOrderEnum.STATUS_PROCESS_ERROR.getCode());
|
|
|
|
|
// yieldOrderService.updateById(order);
|
|
|
|
|
// continue;
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//上一道工序结束时间
|
|
|
|
|
@ -1337,7 +1334,7 @@ public class WorkOrderServiceImpl extends BaseServiceImpl<WorkOrderMapper, WorkO |
|
|
|
|
} |
|
|
|
|
}*/ |
|
|
|
|
|
|
|
|
|
workPlanService.deleteLogic(Arrays.asList(workPlan.getId())); |
|
|
|
|
workPlanService.removeByIds(Arrays.asList(workPlan.getId())); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
@ -1531,7 +1528,7 @@ public class WorkOrderServiceImpl extends BaseServiceImpl<WorkOrderMapper, WorkO |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if (workPlan.getId() != null) { |
|
|
|
|
workPlanService.deleteLogic(Arrays.asList(workPlan.getId())); |
|
|
|
|
workPlanService.removeByIds(Arrays.asList(workPlan.getId())); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|