|
|
|
@ -1420,10 +1420,10 @@ public class ImsDutyRecServiceImpl extends BaseServiceImpl<ImsDutyRecMapper, Ims
|
|
|
|
|
// 交接班接班信息填充
|
|
|
|
|
recDTO.setStatus(DutyRecStatus.ACCEPT.getVal()); |
|
|
|
|
recDTO.setAcceptTime(new Date()); |
|
|
|
|
ImsDutyLogEntity imsDutyLogEntity = recDTO.getImsDutyLogEntity(); |
|
|
|
|
ImsDutyLogEntity update = imsDutyLogService.getOne(Wrappers.<ImsDutyLogEntity>lambdaQuery() |
|
|
|
|
.eq(ImsDutyLogEntity::getDutyId, imsDutyLogEntity.getDutyId()) |
|
|
|
|
.eq(ImsDutyLogEntity::getDutyId, headDutyMain.getId()) |
|
|
|
|
.last("limit 1")); |
|
|
|
|
if(ObjectUtil.isNotEmpty(update)) { |
|
|
|
|
update.setCarryTime(DateUtil.format(new Date(), PATTERN_DATETIME)); |
|
|
|
|
imsDutyLogService.updateById(update); |
|
|
|
|
// imsDutyLogService.update(Wrappers.<ImsDutyLogEntity>lambdaUpdate()
|
|
|
|
@ -1432,6 +1432,7 @@ public class ImsDutyRecServiceImpl extends BaseServiceImpl<ImsDutyRecMapper, Ims
|
|
|
|
|
// );
|
|
|
|
|
log.info("更新值班日志"); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
ImsDutyRecEntity dutyRec = BeanUtil.copy(recDTO, ImsDutyRecEntity.class); |
|
|
|
|
// 更新交班值班
|
|
|
|
|
if (ObjectUtil.isNotEmpty(headDutyMain)&&ObjectUtil.isNotEmpty(headDutyMain.getId())) { |
|
|
|
|