| | |
| | | @Override |
| | | @Transactional(rollbackFor = {Exception.class,BusinessException.class}) |
| | | public Integer update(ApplyChange applyChange) { |
| | | if(applyChange.getType().equals(Constants.ZERO)){ |
| | | //2024年5月9日14:59:24 修改 默认入当前天 |
| | | applyChange.setValidTime(DateUtil.getMontageDate(new Date(),1)); |
| | | } |
| | | if (Objects.isNull(applyChange) |
| | | || Objects.isNull(applyChange.getId()) |
| | | || Objects.isNull(applyChange.getApplyId()) |
| | | || Objects.isNull(applyChange.getValidTime()) |
| | | // || Objects.isNull(applyChange.getValidTime()) |
| | | || Objects.isNull(applyChange.getType()) |
| | | || !(applyChange.getType().equals(Constants.ZERO) || applyChange.getType().equals(Constants.ONE)) |
| | | ) { |
| | |
| | | List<ApplyDetail> applyDetailList = applyDetailJoinMapper.selectList(new QueryWrapper<ApplyDetail>().lambda() |
| | | .eq(ApplyDetail::getApplyId, applyChange.getApplyId()) |
| | | .eq(ApplyDetail::getMemberId, applyChagneDetail.getMemberId()) |
| | | .le(ApplyDetail::getStartTime,DateUtil.getMontageDate(applyChange.getDelValidTime(),1)) |
| | | // .le(ApplyDetail::getStartTime,DateUtil.getMontageDate(applyChange.getDelValidTime(),1)) |
| | | .ge(ApplyDetail::getEndTime,DateUtil.getMontageDate(applyChange.getDelValidTime(),3)) |
| | | .orderByDesc(ApplyDetail::getCreateDate)); |
| | | if (applyDetailList.size() > Constants.ONE) { |