diff --git a/zc-business/src/main/java/com/zc/business/service/impl/DcShiftsServiceImpl.java b/zc-business/src/main/java/com/zc/business/service/impl/DcShiftsServiceImpl.java index 06626a62..d75c4d1c 100644 --- a/zc-business/src/main/java/com/zc/business/service/impl/DcShiftsServiceImpl.java +++ b/zc-business/src/main/java/com/zc/business/service/impl/DcShiftsServiceImpl.java @@ -306,9 +306,9 @@ public class DcShiftsServiceImpl implements IDcShiftsService msg = UniversalEnum.THE_LAYOUT_INFORMATION_IS_EMPTY.getValue(); throw new ServiceException(msg); } - if (scheduling.equals(UniversalEnum.DAY_SHIFT.getValue())){ + if (scheduling.equals(UniversalEnum.ONE.getValue())){ dcShifts.setScheduling(UniversalEnum.ONE.getValue()); - } else if (scheduling.equals(UniversalEnum.NIGHT_SHIFT.getValue())) { + } else if (scheduling.equals(UniversalEnum.TWO.getValue())) { dcShifts.setScheduling(UniversalEnum.TWO.getValue()); }else { msg = UniversalEnum.THE_FORMATTING_IS_INCORRECT.getValue();