src/main/java/org/jeecg/modules/mes/service/impl/MesProductionWorkOrderServiceImpl.java
@@ -77,6 +77,9 @@ .eq(ShiftGroup::getFactoryId, request.getFactoryId()) .eq(ShiftGroup::getDelFlag, CommonConstant.DEL_FLAG_0)) .stream().collect(Collectors.toMap(ShiftGroup::getShiftId, v1 -> v1, (v1, v2) -> v1)); if (shiftGroupMap.isEmpty()) { throw new JeecgBootException("该产线下未设置班组,无法排产!"); } Factory factory = factoryService.getById(request.getFactoryId()); Map<String, Shift> shiftNameMap = new HashMap<>(); List<Shift> shifts = shiftService.list(new LambdaQueryWrapper<Shift>()