|
|
|
@ -271,7 +271,7 @@ public class ImsDutyRecServiceImpl extends BaseServiceImpl<ImsDutyRecMapper, Ims
|
|
|
|
|
}); |
|
|
|
|
//获取接班人班组组长
|
|
|
|
|
Long managerId; |
|
|
|
|
if (Func.isNotEmpty(dutyMain.getDutyGroupId())) { |
|
|
|
|
if (Func.isNotEmpty(carryDutyMain.getDutyGroupId())) { |
|
|
|
|
ImsDutyGroupEntity groupEntity = imsDutyGroupService.getById(carryDutyMain.getDutyGroupId()); |
|
|
|
|
ImsDutyGroupPEntity groupPEntity = imsDutyGroupPService.getOne(new LambdaQueryWrapper<ImsDutyGroupPEntity>() {{ |
|
|
|
|
eq(ImsDutyGroupPEntity::getGroupId, groupEntity.getId()); |
|
|
|
@ -854,8 +854,8 @@ public class ImsDutyRecServiceImpl extends BaseServiceImpl<ImsDutyRecMapper, Ims
|
|
|
|
|
ImsDutyMainEntity entity = new ImsDutyMainEntity(); |
|
|
|
|
entity.setId(id); |
|
|
|
|
entity.setDutyDate(DateUtil.parse(date, DateUtil.PATTERN_DATE)); |
|
|
|
|
String format1 = DateUtil.format(new Date(), DateUtil.PATTERN_DATE); |
|
|
|
|
Date parse = DateUtil.parse(format1, DateUtil.PATTERN_DATE); |
|
|
|
|
// String format1 = DateUtil.format(new Date(), DateUtil.PATTERN_DATE);
|
|
|
|
|
// Date parse = DateUtil.parse(format1, DateUtil.PATTERN_DATE);
|
|
|
|
|
ImsDutyMainEntity mainEntityById = imsDutyMainService.getById(id); |
|
|
|
|
ImsDutyClassEntity classEntity = imsDutyClassService.getOne(new LambdaQueryWrapper<ImsDutyClassEntity>() {{ |
|
|
|
|
eq(ImsDutyClassEntity::getId, mainEntityById.getClassId()); |
|
|
|
@ -863,7 +863,7 @@ public class ImsDutyRecServiceImpl extends BaseServiceImpl<ImsDutyRecMapper, Ims
|
|
|
|
|
}}); |
|
|
|
|
String dutyTime = DateUtil.format(mainEntityById.getDutyDate(), DateUtil.PATTERN_DATE) + " " +DateUtil.format(classEntity.getStartTime(), DateUtil.PATTERN_TIME); |
|
|
|
|
Date dutyDate = DateUtil.parse(dutyTime, PATTERN_DATETIME); |
|
|
|
|
if (dutyDate.getTime() > parse.getTime()) { |
|
|
|
|
if (dutyDate.getTime() > new Date().getTime()) { |
|
|
|
|
return R.fail("指定的值班开始时间不能晚于当前时间"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|