| | |
| | | Constants.formatIntegerNum(model.getCloseStatus()) != Constants.ONE){ |
| | | throw new BusinessException( ResponseStatus.NOT_ALLOWED.getCode(),"对不起,只能针对已还车且未结算的数据进行操作!" ); |
| | | } |
| | | if(Constants.formatIntegerNum(memberRides.getDuration()) == Constants.formatIntegerNum(model.getDuration())){ |
| | | throw new BusinessException( ResponseStatus.BAD_REQUEST.getCode(),"对不起,!" ); |
| | | } |
| | | int actTime = DateUtil.betweenMin(model.getRentDate(), model.getBackDate()); |
| | | if(memberRides.getDuration() > actTime){ |
| | | |
| | | } |
| | | MemberRides update = new MemberRides(); |
| | | update.setId(model.getId()); |
| | | update.setDuration(memberRides.getDuration()); |