Commit 11b33d0a authored by hezhen's avatar hezhen

Merge branch 'dev-chw' of http://113.105.137.151:22280/youjj/cloud-platform into dev-chw

parents bc68e92f 6bf211ef
......@@ -56,11 +56,16 @@ public class OrderViolationController extends BaseController<OrderViolationBiz,
@PostMapping("/saveOrderViolation")
public ObjectRestResponse saveOrderViolation(@RequestBody OrderViolation orderViolation, HttpServletRequest request) {
log.info("保存违章记录:orderViolation = {}", orderViolation.toString());
if (orderViolation.getId() == null) {
getBaseBiz().insertOrderViolation(orderViolation);
} else {
getBaseBiz().updateOrderViolation(orderViolation);
try {
if (orderViolation.getId() == null) {
getBaseBiz().insertOrderViolation(orderViolation);
} else {
getBaseBiz().updateOrderViolation(orderViolation);
}
} catch (Exception e) {
return ObjectRestResponse.createFailedResult(500, e.getMessage());
}
orderDepositRefundRecordBiz.saveViolationDeposit(orderViolation);
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