| | |
| | | @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)) |
| | | ) { |