| | |
| | | throw new BusinessException( ResponseStatus.DATA_EMPTY ); |
| | | } |
| | | if(Constants.formatIntegerNum(model.getStatus()) != Constants.MEMBER_RIDES_STATUS.BACK_CYCLING.getKey()|| |
| | | Constants.formatIntegerNum(model.getCloseStatus()) != Constants.ONE){ |
| | | Constants.formatIntegerNum(model.getCloseStatus()) != Constants.ZERO){ |
| | | throw new BusinessException( ResponseStatus.NOT_ALLOWED.getCode(),"对不起,只能针对已还车且未结算的数据进行操作!" ); |
| | | } |
| | | if(Constants.formatIntegerNum(memberRides.getDuration()) == Constants.formatIntegerNum(model.getDuration())){ |
| | |
| | | update.setBackLockId(param.getBackLockId()); |
| | | update.setBackSiteId(param.getBackSiteId()); |
| | | update.setBackCommondId(param.getBackCommondId()); |
| | | int duration =DateUtil.betweenMin(memberRides.getRentDate(),date)-freeTime; |
| | | // int duration =DateUtil.betweenMin(memberRides.getRentDate(),date)-freeTime; |
| | | int min = DateUtil.betweenMin(memberRides.getRentDate(),date);//实际骑行时间 |
| | | int duration = min>freeTime?min:0; |
| | | update.setDuration(duration>0?duration:0); |
| | | update.setBackType(Constants.ONE); |
| | | update.setBackInfo("用户正常还车"); |