|
|
|
|
@ -490,7 +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()); |
|
|
|
|
if(CollectionUtils.isNotEmpty(ids)){ |
|
|
|
|
workPlanService.deleteLogic(ids); |
|
|
|
|
} |
|
|
|
|
//查询已经加工完的
|
|
|
|
|
List<WorkPlanEntity> oldWorkPlanList = workPlanService.list(Wrappers.<WorkPlanEntity>lambdaQuery().eq(WorkPlanEntity::getWoId,oldWorkOrder.getId()).orderByAsc(WorkPlanEntity::getOrders)); |
|
|
|
|
List<Long> ppsIds = oldWorkPlanList.stream().map(WorkPlanEntity::getPpsId).collect(Collectors.toList()); |
|
|
|
|
@ -575,8 +577,8 @@ public class WorkOrderServiceImpl extends BaseServiceImpl<WorkOrderMapper, WorkO |
|
|
|
|
isContainsOut = true; |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
log.info("当前订单是:" + order.getId() + ",工序是:" + craft.getId()+",进入设备匹配"); |
|
|
|
|
if ("设备".equals(mainProducerMap.get(craft.getPpsId()))) { |
|
|
|
|
log.info("当前订单是:" + order.getId() + ",工序是:" + craft.getId()+",进入设备匹配"); |
|
|
|
|
String glassCodeStr = null; |
|
|
|
|
Map<String, Object> sameMap = new HashMap<>(); |
|
|
|
|
//同炉同槽
|
|
|
|
|
|