|
@@ -210,6 +210,16 @@ public class ApiCarFreeServiceImpl extends BaseService implements ApiCarFreeServ
|
|
|
|
|
|
dto.setIsHistory(CommonConstant.REALTIME_WAY_BILL);
|
|
|
wayBillEndService.saveBillEnd(dto);
|
|
|
+
|
|
|
+
|
|
|
+ CarFreeCarrierBillStartPo po = wayBillStartService.getBillStartByNum(dto.getNum());
|
|
|
+ if (po == null) {
|
|
|
+ po = new CarFreeCarrierBillStartPo();
|
|
|
+ po.setUserId(dto.getUserId());
|
|
|
+ po.setNum(dto.getNum());
|
|
|
+ po.setIsHistory(CommonConstant.REALTIME_WAY_BILL);
|
|
|
+ wayBillStartService.saveBillStart(po);
|
|
|
+ }
|
|
|
wayBillStartService.updateBillStartStatus(dto.getNum(), CommonConstant.STATUS_OVER);
|
|
|
|
|
|
result = response.toJson();
|
|
@@ -301,6 +311,17 @@ public class ApiCarFreeServiceImpl extends BaseService implements ApiCarFreeServ
|
|
|
|
|
|
dto.setIsHistory(CommonConstant.HISTORY_WAY_BILL);
|
|
|
wayBillEndService.saveBillEnd(dto);
|
|
|
+
|
|
|
+
|
|
|
+ CarFreeCarrierBillStartPo po = wayBillStartService.getBillStartByNum(dto.getNum());
|
|
|
+ if (po == null) {
|
|
|
+ po = new CarFreeCarrierBillStartPo();
|
|
|
+ po.setUserId(dto.getUserId());
|
|
|
+ po.setNum(dto.getNum());
|
|
|
+ po.setIsHistory(CommonConstant.HISTORY_WAY_BILL);
|
|
|
+ wayBillStartService.saveBillStart(po);
|
|
|
+ }
|
|
|
+
|
|
|
wayBillStartService.updateBillStartStatus(dto.getNum(), CommonConstant.STATUS_OVER);
|
|
|
|
|
|
result = response.toJson();
|