Commit 51a82f5d authored by unset's avatar unset

会员统计信息修改

parent 3a8e9a32
...@@ -101,7 +101,7 @@ public class OrderViolationBiz extends BaseBiz<OrderViolationMapper, OrderViolat ...@@ -101,7 +101,7 @@ public class OrderViolationBiz extends BaseBiz<OrderViolationMapper, OrderViolat
baseOrder.setRefundStatus(3); baseOrder.setRefundStatus(3);
baseOrderBiz.updateSelectiveByIdRe(baseOrder); baseOrderBiz.updateSelectiveByIdRe(baseOrder);
//触发违章金退款 //触发违章金退款
orderAccountBiz.handleRentDepositMarginV2(baseOrder, orderRentVehicleDetail); //orderAccountBiz.handleRentDepositMarginV2(baseOrder, orderRentVehicleDetail);
} }
} else { } else {
throw new BaseException("The operation cannot be changed at this time"); throw new BaseException("The operation cannot be changed at this time");
......
...@@ -50,9 +50,13 @@ public class OrderViolationController extends BaseController<OrderViolationBiz, ...@@ -50,9 +50,13 @@ public class OrderViolationController extends BaseController<OrderViolationBiz,
* @return * @return
*/ */
@PostMapping("/saveOrderViolation") @PostMapping("/saveOrderViolation")
public ObjectRestResponse saveOrderViolationV2(@RequestBody OrderViolation orderViolation, HttpServletRequest request) { public ObjectRestResponse saveOrderViolation(@RequestBody OrderViolation orderViolation, HttpServletRequest request) {
log.info("保存违章记录:orderViolation = {}", orderViolation.toString()); log.info("保存违章记录:orderViolation = {}", orderViolation.toString());
getBaseBiz().insertOrderViolation(orderViolation); if (orderViolation.getId() == null) {
getBaseBiz().insertOrderViolation(orderViolation);
} else {
getBaseBiz().updateOrderViolation(orderViolation);
}
orderDepositRefundRecordBiz.saveViolationDeposit(orderViolation); orderDepositRefundRecordBiz.saveViolationDeposit(orderViolation);
return ObjectRestResponse.succ(); return ObjectRestResponse.succ();
} }
......
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