Commit e99d6133 authored by unset's avatar unset

订单核销接口修改

parent c7223395
......@@ -71,6 +71,10 @@ public class OrderViolationBiz extends BaseBiz<OrderViolationMapper, OrderViolat
if (userDTO == null ) {
throw new BaseException(ResultCode.RSTOKEN_EXPIRED_CODE);
}
OrderViolation old = mapper.selectOne(new OrderViolation(){{setDetailId(orderViolation.getDetailId());}});
if (old != null) {
throw new BaseException("违章记录已存在!");
} else {
OrderRentVehicleDetail orderRentVehicleDetail = new OrderRentVehicleDetail();
orderRentVehicleDetail.setId(orderViolation.getDetailId());
orderRentVehicleDetail.setHandelViolation(0);
......@@ -88,6 +92,8 @@ public class OrderViolationBiz extends BaseBiz<OrderViolationMapper, OrderViolat
} else {
throw new BaseException("The operation cannot be changed at this time");
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment