瀏覽代碼

修复开始运单后未改状态 -未结束

xusonglin 5 年之前
父節點
當前提交
63e9a19f1b

+ 2 - 0
src/main/java/com/jkcredit/invoice/hub/model/dto/carFreeCarrierBillStart/CarFreeCarrierBillStartDto.java

@@ -54,4 +54,6 @@ public class CarFreeCarrierBillStartDto implements Serializable {
     private Integer isHistory;
     // 用户id
     private Long userId;
+    // 运单状态
+    private Integer status;
 }

+ 2 - 0
src/main/java/com/jkcredit/invoice/hub/service/apiCarFree/ApiCarFreeServiceImpl.java

@@ -167,6 +167,7 @@ public class ApiCarFreeServiceImpl extends BaseService implements ApiCarFreeServ
             WaybillStartResponse response = ETCCommHelper.upload(fileName, request, WaybillStartResponse.class);
 
             dto.setIsHistory(CommonConstant.REALTIME_WAY_BILL);
+            dto.setStatus(CommonConstant.STATUS_NOT_OVER);
             wayBillStartService.saveBillStart(dto);
 
             result = response.toJson();
@@ -258,6 +259,7 @@ public class ApiCarFreeServiceImpl extends BaseService implements ApiCarFreeServ
             // 调用upload 发送数据
             WaybillHistoryStartResponse response = ETCCommHelper.upload(fileName, request, WaybillHistoryStartResponse.class);
             dto.setIsHistory(CommonConstant.HISTORY_WAY_BILL);
+            dto.setStatus(CommonConstant.STATUS_NOT_OVER);
             wayBillStartService.saveBillStart(dto);
 
             result = response.toJson();