From cc0d840070c24ceb20180a41f0323bdc0ee03347 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期一, 13 一月 2025 16:25:49 +0800
Subject: [PATCH] 最新版本541200007

---
 admin/src/views/platform/LogisticsRecord/waybill.vue                                                                          |   12 ++
 server/meeting/meeting_service/src/main/java/com/doumee/service/business/impl/BookingsServiceImpl.java                        |    6 -
 server/system_service/src/main/java/com/doumee/service/business/third/model/response/TmsOrderInfoResponse.java                |    2 
 server/visits/dmvisit_service/src/main/java/com/doumee/dao/business/model/PlatformWmsDetail.java                              |    5 +
 server/visits/dmvisit_service/src/main/java/com/doumee/dao/web/response/platformReport/WholeProvinceZXTVO.java                |    2 
 server/visits/dmvisit_service/src/main/java/com/doumee/dao/business/model/PlatformJob.java                                    |    3 
 server/visits/dmvisit_service/src/main/java/com/doumee/service/business/PlatformJobService.java                               |    5 +
 server/visits/dmvisit_service/src/main/java/com/doumee/service/business/impl/MemberServiceImpl.java                           |    4 
 server/visits/dmvisit_service/src/main/java/com/doumee/service/business/impl/thrid/WmsServiceImpl.java                        |    1 
 server/README.md                                                                                                              |    4 
 server/system_timer/src/main/java/com/doumee/jobs/fegin/VisitServiceFegin.java                                                |    3 
 server/visits/admin_timer/src/main/java/com/doumee/api/PlatformJobController.java                                             |    6 +
 server/visits/dmvisit_service/src/main/java/com/doumee/dao/web/response/platformReport/TotalOutQtyNumVO.java                  |    6 +
 server/system_timer/src/main/resources/bootstrap.yml                                                                          |    2 
 server/visits/dmvisit_service/src/main/java/com/doumee/service/business/impl/CarUseBookServiceImpl.java                       |    1 
 admin/src/views/index.vue                                                                                                     |    7 +
 server/visits/dmvisit_service/src/main/java/com/doumee/dao/web/response/platformReport/WholeProvinceZxtDetailVO.java          |    6 
 server/visits/dmvisit_service/src/main/java/com/doumee/service/business/impl/PlatformJobServiceImpl.java                      |  108 ++++++++++++++++++++-
 server/system_service/src/main/java/com/doumee/service/business/third/model/response/TmsOutQtyAndVehicleQtyResponse.java      |   26 ++++-
 server/visits/dmvisit_service/src/main/java/com/doumee/service/business/impl/thrid/BoardServiceImpl.java                      |   46 ++++++--
 server/visits/dmvisit_service/src/main/java/com/doumee/service/business/impl/VisitsServiceImpl.java                           |    3 
 admin/.env.development                                                                                                        |    4 
 server/system_service/src/main/java/com/doumee/service/business/third/model/response/TmsTotalAndReportVehicleQtyResponse.java |    3 
 23 files changed, 222 insertions(+), 43 deletions(-)

diff --git a/admin/.env.development b/admin/.env.development
index 7454851..15fe399 100644
--- a/admin/.env.development
+++ b/admin/.env.development
@@ -2,7 +2,7 @@
 NODE_ENV = 'development'
 
 # VUE_APP_API_URL  = 'https://atwl.ahzyssl.com/zhyq_interface'
-  VUE_APP_API_URL  = 'http://localhost:10010'
+ # VUE_APP_API_URL  = 'http://localhost:10010'
 # VUE_APP_API_URL  = 'http://192.168.0.173/gateway_interface'
-#VUE_APP_API_URL  = 'http://10.50.250.253:8088/gateway_interface'
+VUE_APP_API_URL  = 'http://10.50.250.253:8088/gateway_interface'
 
diff --git a/admin/src/views/index.vue b/admin/src/views/index.vue
index f1d8dd4..85b9087 100644
--- a/admin/src/views/index.vue
+++ b/admin/src/views/index.vue
@@ -273,7 +273,10 @@
         if (res == undefined || res == null) {
           return
         }
-        const myWindow = window.open(res)
+        console.log('鍗曠偣鐧诲綍鍦板潃------', res)
+
+        const myWindow = top.window.open(res)
+        console.log('myWindow---', myWindow)
         setTimeout(() => {
           const params = {
             componentId: 'dfe',
@@ -330,6 +333,8 @@
             },
             msgType: 'tlnc'
           }
+          const argus = JSON.parse(row.param5)
+          console.log('row.param5 Obj---', argus)
           // const argus = JSON.stringify(params)
           myWindow.postMessage('{"method":"goToApp","argument":' + row.param5 + '}', '*')
         }, 8000)
diff --git a/admin/src/views/platform/LogisticsRecord/waybill.vue b/admin/src/views/platform/LogisticsRecord/waybill.vue
index 11b86a6..344b30c 100644
--- a/admin/src/views/platform/LogisticsRecord/waybill.vue
+++ b/admin/src/views/platform/LogisticsRecord/waybill.vue
@@ -22,6 +22,11 @@
       <el-table-column prop="carrierName" label="杩愯緭鍏徃" min-width="100" show-overflow-tooltip />
       <el-table-column prop="driverName" label="鍙告満" min-width="100" show-overflow-tooltip />
       <el-table-column prop="drivierPhone" label="鍙告満鐢佃瘽" min-width="100" show-overflow-tooltip />
+      <el-table-column prop="wmsContractNum" label="WMS鍚堝悓鍙�" min-width="100" show-overflow-tooltip >
+      <template v-slot="scope">
+        <span v-if="scope.row.platformWmsJob">{{ scope.row.platformWmsJob.contractNum }}</span>
+      </template>
+      </el-table-column>
       <el-table-column prop="inTypeTemp" label="浣滀笟绫诲瀷" min-width="100" show-overflow-tooltip>
         <template v-slot="scope">
           <span v-if="scope.row.type == '0'">鑷湁杞﹀嵏璐�</span>
@@ -98,6 +103,11 @@
             filed: 'driverName',
             type: 'input',
             label: '椹鹃┒鍛�'
+          },
+          {
+            filed: 'wmsContractNum',
+            type: 'input',
+            label: '鍚堝悓鍙�'
           },
           {
             filed: 'carCodeFront',
@@ -238,4 +248,4 @@
   color: #000000;
   margin-bottom: 15px;
 }
-</style>
\ No newline at end of file
+</style>
diff --git a/server/README.md b/server/README.md
index 41035ac..fc9ccd0 100644
--- a/server/README.md
+++ b/server/README.md
@@ -18,3 +18,7 @@
 1銆佸叧浜庡缃戣闂檺鍒� 锛屽鏋滄湇鍔″櫒閲嶅惎浜嗘垨鑰呯綉鍗¢噸鍚紝杩涜涓�涓嬫搷浣滐細
 vim /etc/resolv.conf
 nameserver 鏀规垚  nameserver 202.102.192.68
+
+
+#nohup涓嶄骇鐢熸棩蹇楁枃浠跺懡浠わ細
+nohup > /dev/null 2>&1 &
diff --git a/server/meeting/meeting_service/src/main/java/com/doumee/service/business/impl/BookingsServiceImpl.java b/server/meeting/meeting_service/src/main/java/com/doumee/service/business/impl/BookingsServiceImpl.java
index 68c6d79..fb8804e 100644
--- a/server/meeting/meeting_service/src/main/java/com/doumee/service/business/impl/BookingsServiceImpl.java
+++ b/server/meeting/meeting_service/src/main/java/com/doumee/service/business/impl/BookingsServiceImpl.java
@@ -159,11 +159,7 @@
                 WxPlatNotice wxPlatNotice = new WxPlatNotice();
                 wxPlatNotice.createBeginWxNotice(systemDictDataBiz,smsEmailMapper,bookings,systemUser.getOpenid());
                 wxPlatNotice.createEndWxNotice(systemDictDataBiz,smsEmailMapper,bookings,systemUser.getOpenid());
-            }
-
-
-
-
+            } 
         }
 
         return bookings.getId();
diff --git a/server/system_service/src/main/java/com/doumee/service/business/third/model/response/TmsOrderInfoResponse.java b/server/system_service/src/main/java/com/doumee/service/business/third/model/response/TmsOrderInfoResponse.java
index 2973106..854e149 100644
--- a/server/system_service/src/main/java/com/doumee/service/business/third/model/response/TmsOrderInfoResponse.java
+++ b/server/system_service/src/main/java/com/doumee/service/business/third/model/response/TmsOrderInfoResponse.java
@@ -48,6 +48,8 @@
     private String   receiveLat; //		鍗歌揣浠撳簱绾害
     @ApiModelProperty(value = "璁″垝鍒拌揪鏃堕棿" )
     private String   plannedArrivedDate; //		璁″垝鍒拌揪鏃堕棿
+    @ApiModelProperty(value = "鏄惁瓒呭簱瀛� 0闈炶秴搴撳瓨 1:瓒呭簱瀛�" )
+    private Integer overStock	;
     @ApiModelProperty(value = "gis杞ㄨ抗缁忕含搴﹂泦鍚�" )
     private List<TmsGisListResponse> gisList;
     @ApiModelProperty(value = "鐢熷懡鍛ㄦ湡闆嗗悎" )
diff --git a/server/system_service/src/main/java/com/doumee/service/business/third/model/response/TmsOutQtyAndVehicleQtyResponse.java b/server/system_service/src/main/java/com/doumee/service/business/third/model/response/TmsOutQtyAndVehicleQtyResponse.java
index 37446df..64e29f3 100644
--- a/server/system_service/src/main/java/com/doumee/service/business/third/model/response/TmsOutQtyAndVehicleQtyResponse.java
+++ b/server/system_service/src/main/java/com/doumee/service/business/third/model/response/TmsOutQtyAndVehicleQtyResponse.java
@@ -15,12 +15,26 @@
 @ApiModel("tms鎸囧畾鏃堕棿鑼冨洿鍐呯疮璁″嚭搴撻噺杩斿洖鍙傛暟")
 public class TmsOutQtyAndVehicleQtyResponse {
 
-    @ApiModelProperty(value = "绱鍑哄簱閲�")
-    private BigDecimal totalOutQty;//鏁板瓧	绱鍑哄簱閲�
-    @ApiModelProperty(value = "鐪佸绱鍑哄簱閲�")
+    @ApiModelProperty(value = "绱鍑哄簱閲� 绱鍊�")
+    private BigDecimal totalOutQty;//鏁板瓧	绱鍑哄簱閲�(totalOutT01Qty+totalOutT03Qty)
+    @ApiModelProperty(value = "鐪佸绱鍑哄簱閲�  绱鍊�")
     private BigDecimal outSideProvinceOutQty;//	鏁板瓧	鐪佸绱鍑哄簱閲�
-    @ApiModelProperty(value = "鐪佸唴绱鍑哄簱閲�")
+    @ApiModelProperty(value = "鐪佸唴绱鍑哄簱閲�  绱鍊�")
     private BigDecimal inSideProvinceOutQty;//	鏁板瓧	鐪佸唴绱鍑哄簱閲�
-    @ApiModelProperty(value = "绱鍑哄簱杞︽")
-    private Integer vehicleQty;//鏁板瓧	绱鍑哄簱杞︽
+
+
+    @ApiModelProperty(value = "鐪佸鍏朵粬(绉诲簱)閲�")
+    private BigDecimal outSideProvinceOutT03Qty	;//鏁板瓧	鐪佸鍏朵粬(绉诲簱)閲�
+    @ApiModelProperty(value = "鐪佸閿�鍞噺")
+    private BigDecimal  outSideProvinceOutT01Qty	;//鏁板瓧	鐪佸閿�鍞噺
+    @ApiModelProperty(value = "鐪佸唴閿�鍞噺")
+    private BigDecimal inSideProvinceOutT01Qty;//	鏁板瓧	鐪佸唴閿�鍞噺
+    @ApiModelProperty(value = "鐪佸唴鍏朵粬(绉诲簱)閲�")
+    private BigDecimal   inSideProvinceOutT03Qty;//	鏁板瓧	鐪佸唴鍏朵粬(绉诲簱)閲�
+    @ApiModelProperty(value = "璋冩嫧鍑哄簱閲�(鐪佸唴閿�鍞�+鐪佸閿�鍞�)")
+    private BigDecimal  totalOutT01Qty	;//鏁板瓧	璋冩嫧鍑哄簱閲�(鐪佸唴閿�鍞�+鐪佸閿�鍞�)
+    @ApiModelProperty(value = "鍏朵粬鍑哄簱閲�(鐪佸唴鍏朵粬+鐪佸鍏朵粬)")
+    private BigDecimal  totalOutT03Qty	;//鏁板瓧	鍏朵粬鍑哄簱閲�(鐪佸唴鍏朵粬+鐪佸鍏朵粬)
+    @ApiModelProperty(value = "绱鍑哄簱閲�")
+    private Integer  vehicleQty	;//鏁板瓧	杞︽鏁�
 }
diff --git a/server/system_service/src/main/java/com/doumee/service/business/third/model/response/TmsTotalAndReportVehicleQtyResponse.java b/server/system_service/src/main/java/com/doumee/service/business/third/model/response/TmsTotalAndReportVehicleQtyResponse.java
index 6ea410e..d073a89 100644
--- a/server/system_service/src/main/java/com/doumee/service/business/third/model/response/TmsTotalAndReportVehicleQtyResponse.java
+++ b/server/system_service/src/main/java/com/doumee/service/business/third/model/response/TmsTotalAndReportVehicleQtyResponse.java
@@ -22,4 +22,7 @@
     private BigDecimal   reportQty;//	鏁板瓧	鎻愭姤杩愬姏鏁�
     @ApiModelProperty(value = "鎬昏繍鍔涙暟" )
     private BigDecimal   totalQty;//	鏁板瓧	鎬昏繍鍔涙暟
+    @ApiModelProperty(value = "鍦ㄩ�旀暟閲�" )
+    private BigDecimal   inTransitQty;//	鏁板瓧	鍦ㄩ�旀暟閲�
+
 }
diff --git a/server/system_timer/src/main/java/com/doumee/jobs/fegin/VisitServiceFegin.java b/server/system_timer/src/main/java/com/doumee/jobs/fegin/VisitServiceFegin.java
index 1680ddc..3e0284d 100644
--- a/server/system_timer/src/main/java/com/doumee/jobs/fegin/VisitServiceFegin.java
+++ b/server/system_timer/src/main/java/com/doumee/jobs/fegin/VisitServiceFegin.java
@@ -76,6 +76,9 @@
     @ApiOperation("銆愭暟瀛楀寲鏈堝彴銆戞湀鍙板仠闈犺秴鏃舵姤璀︿笟鍔�")
     @GetMapping("/timer/platformJob/platformJobTimer")
     ApiResponse platformJobTimer();
+    @ApiOperation("銆愭暟瀛楀寲鏈堝彴銆戞湀鍙版鏌ョ數瀛愰攣涓婇攣鐘舵��")
+    @GetMapping("/timer/platformJob/platformCheckWmsLockStatus")
+    ApiResponse platformCheckWmsLockStatusTimer();
     @ApiOperation("銆愭暟瀛楀寲鏈堝彴銆戞湀鍙颁綔涓氳秴鏃舵姤璀︿笟鍔�")
     @GetMapping("/timer/platformJob/platformJobWorkTimeOut")
     ApiResponse platformJobWorkTimeOut();
diff --git a/server/system_timer/src/main/resources/bootstrap.yml b/server/system_timer/src/main/resources/bootstrap.yml
index 87d835c..05a83ce 100644
--- a/server/system_timer/src/main/resources/bootstrap.yml
+++ b/server/system_timer/src/main/resources/bootstrap.yml
@@ -1,6 +1,6 @@
 spring:
   profiles:
-    active: self
+    active: pro
   application:
     name: systemTimer
     # 瀹夊叏閰嶇疆
diff --git a/server/visits/admin_timer/src/main/java/com/doumee/api/PlatformJobController.java b/server/visits/admin_timer/src/main/java/com/doumee/api/PlatformJobController.java
index 1b2c060..14e26d6 100644
--- a/server/visits/admin_timer/src/main/java/com/doumee/api/PlatformJobController.java
+++ b/server/visits/admin_timer/src/main/java/com/doumee/api/PlatformJobController.java
@@ -28,6 +28,12 @@
         platformJobService.timeOutReport();
         return ApiResponse.success("鏈堝彴鍋滈潬瓒呮椂鎶ヨ涓氬姟");
     }
+    @ApiOperation("鏈堝彴浣滀笟妫�鏌ョ數瀛愰攣涓婇攣鐘舵��")
+    @GetMapping("/platformCheckWmsLockStatus")
+    public ApiResponse checkWmsLockStatus() {
+        platformJobService.checkWmsLockStatus();
+        return ApiResponse.success("鏈堝彴鍋滈潬瓒呮椂鎶ヨ涓氬姟");
+    }
 
 
     @ApiOperation("鏈堝彴浣滀笟瓒呮椂鎶ヨ涓氬姟")
diff --git a/server/visits/dmvisit_service/src/main/java/com/doumee/dao/business/model/PlatformJob.java b/server/visits/dmvisit_service/src/main/java/com/doumee/dao/business/model/PlatformJob.java
index 5c768fc..b62d1ba 100644
--- a/server/visits/dmvisit_service/src/main/java/com/doumee/dao/business/model/PlatformJob.java
+++ b/server/visits/dmvisit_service/src/main/java/com/doumee/dao/business/model/PlatformJob.java
@@ -400,6 +400,9 @@
     @ApiModelProperty(value = "浣滀笟绫诲瀷鏌ヨ 澶氫釜浠�,鍒嗗壊")
     @TableField(exist = false)
     private String queryType;
+    @ApiModelProperty(value = "wms鍚堝悓鍙�")
+    @TableField(exist = false)
+    private String wmsContractNum;
 
     @ApiModelProperty(value = "鐢靛瓙閿佺姸鎬侊細0=鏈笂閿� 1=閮ㄥ垎涓婇攣 2=鍏ㄩ儴涓婇攣")
     @TableField(exist = false)
diff --git a/server/visits/dmvisit_service/src/main/java/com/doumee/dao/business/model/PlatformWmsDetail.java b/server/visits/dmvisit_service/src/main/java/com/doumee/dao/business/model/PlatformWmsDetail.java
index e671c0d..231133d 100644
--- a/server/visits/dmvisit_service/src/main/java/com/doumee/dao/business/model/PlatformWmsDetail.java
+++ b/server/visits/dmvisit_service/src/main/java/com/doumee/dao/business/model/PlatformWmsDetail.java
@@ -103,4 +103,9 @@
     @ApiModelProperty(value = "鎵胯繍鍗曞彿", example = "1")
     @TableField(exist = false)
     private String carryBillCode;
+
+    @ApiModelProperty(value = "鍚堝悓鍙穈")
+    @ExcelColumn(name="鍚堝悓鍙穈")
+    private String contractNum;
+
 }
diff --git a/server/visits/dmvisit_service/src/main/java/com/doumee/dao/web/response/platformReport/TotalOutQtyNumVO.java b/server/visits/dmvisit_service/src/main/java/com/doumee/dao/web/response/platformReport/TotalOutQtyNumVO.java
index 499e756..41537c8 100644
--- a/server/visits/dmvisit_service/src/main/java/com/doumee/dao/web/response/platformReport/TotalOutQtyNumVO.java
+++ b/server/visits/dmvisit_service/src/main/java/com/doumee/dao/web/response/platformReport/TotalOutQtyNumVO.java
@@ -19,6 +19,12 @@
     private BigDecimal currentInNum;
     @ApiModelProperty(value = "褰撳墠鍛ㄦ湡鍑哄簱閲�(鐪佸)")
     private BigDecimal currentOutNum;
+
+    @ApiModelProperty(value = "褰撳墠璋冩嫧鍑哄簱閲�(鐪佸唴+鐪佸)")
+    private BigDecimal currentProvinceNum;
+    @ApiModelProperty(value = "褰撳墠鍏朵粬鍑哄簱閲�(鐪佸+鐪佸)")
+    private BigDecimal currentOtherNum;
+
     @ApiModelProperty(value = "涓婇殧澶╁懆鏈熷嚭搴撻噺锛堢渷鍐咃級")
     private BigDecimal lastInNum;
     @ApiModelProperty(value = "涓婁釜鍛ㄦ湡鍑哄簱閲忥紙鐪佸锛�")
diff --git a/server/visits/dmvisit_service/src/main/java/com/doumee/dao/web/response/platformReport/WholeProvinceZXTVO.java b/server/visits/dmvisit_service/src/main/java/com/doumee/dao/web/response/platformReport/WholeProvinceZXTVO.java
index 3e77c7f..6c29072 100644
--- a/server/visits/dmvisit_service/src/main/java/com/doumee/dao/web/response/platformReport/WholeProvinceZXTVO.java
+++ b/server/visits/dmvisit_service/src/main/java/com/doumee/dao/web/response/platformReport/WholeProvinceZXTVO.java
@@ -23,6 +23,8 @@
 
     @ApiModelProperty(value = "褰撳墠鍊� 涓囨敮")
     private BigDecimal currentNum;
+    @ApiModelProperty(value = "鍦ㄩ�旇溅杈� 涓囨敮")
+    private BigDecimal ztNum;
 
     @ApiModelProperty(value = "鍥惧舰鏄庣粏闆嗗悎")
     private List<WholeProvinceZxtDetailVO> detailList;
diff --git a/server/visits/dmvisit_service/src/main/java/com/doumee/dao/web/response/platformReport/WholeProvinceZxtDetailVO.java b/server/visits/dmvisit_service/src/main/java/com/doumee/dao/web/response/platformReport/WholeProvinceZxtDetailVO.java
index 413a3d4..3426c95 100644
--- a/server/visits/dmvisit_service/src/main/java/com/doumee/dao/web/response/platformReport/WholeProvinceZxtDetailVO.java
+++ b/server/visits/dmvisit_service/src/main/java/com/doumee/dao/web/response/platformReport/WholeProvinceZxtDetailVO.java
@@ -20,10 +20,12 @@
     @ApiModelProperty(value = "鍒╃敤鐜� ")
     private BigDecimal useRate;
 
-    @ApiModelProperty(value = "鎬绘暟閲� 涓囨敮")
+    @ApiModelProperty(value = "鎬绘暟閲� 涓囨敮 / 杈�")
     private BigDecimal totalNum;
 
-    @ApiModelProperty(value = "褰撳墠鍊� 涓囨敮")
+    @ApiModelProperty(value = "褰撳墠鍊�  涓囨敮 /杈�")
     private BigDecimal currentNum;
+    @ApiModelProperty(value = "褰撳墠鍊� 涓囨敮 /杈�")
+    private BigDecimal zaituNum;
 
 }
diff --git a/server/visits/dmvisit_service/src/main/java/com/doumee/service/business/PlatformJobService.java b/server/visits/dmvisit_service/src/main/java/com/doumee/service/business/PlatformJobService.java
index 3ec92e8..644d624 100644
--- a/server/visits/dmvisit_service/src/main/java/com/doumee/service/business/PlatformJobService.java
+++ b/server/visits/dmvisit_service/src/main/java/com/doumee/service/business/PlatformJobService.java
@@ -195,6 +195,11 @@
     PlatformJob finishWork(JobOperateDTO jobOperateDTO);
 
     /**
+     * 鏌ヨ鎵�鏈夊凡瀹屾垚浣滀笟鐢靛瓙閿佷笂閿佺姸鎬�
+     */
+    void checkWmsLockStatus();
+
+    /**
      * 鎵嬪姩鎺堟潈杞﹁締绂诲満
      * @param jobOperateDTO
      */
diff --git a/server/visits/dmvisit_service/src/main/java/com/doumee/service/business/impl/CarUseBookServiceImpl.java b/server/visits/dmvisit_service/src/main/java/com/doumee/service/business/impl/CarUseBookServiceImpl.java
index ecb46e3..19e4391 100644
--- a/server/visits/dmvisit_service/src/main/java/com/doumee/service/business/impl/CarUseBookServiceImpl.java
+++ b/server/visits/dmvisit_service/src/main/java/com/doumee/service/business/impl/CarUseBookServiceImpl.java
@@ -161,7 +161,6 @@
                     systemDictDataBiz.queryByCode(Constants.WX_PLATFORM,Constants.WX_PLATFORM_ACCESS_TOKEN).getCode(),
                     Arrays.asList(systemUser.getOpenid().split(",")),0);
         }
-
         return carUseBook.getId();
     }
 
diff --git a/server/visits/dmvisit_service/src/main/java/com/doumee/service/business/impl/MemberServiceImpl.java b/server/visits/dmvisit_service/src/main/java/com/doumee/service/business/impl/MemberServiceImpl.java
index 2e8d018..e5b186a 100644
--- a/server/visits/dmvisit_service/src/main/java/com/doumee/service/business/impl/MemberServiceImpl.java
+++ b/server/visits/dmvisit_service/src/main/java/com/doumee/service/business/impl/MemberServiceImpl.java
@@ -2175,7 +2175,7 @@
         }
         if(memberMapper.selectCount(new QueryWrapper<Member>().lambda()
                 .eq(Member::getIsdeleted,Constants.ZERO)
-                .ne(Member::getType,Constants.memberType.visitor)
+                .in(Member::getType,Constants.memberType.gkuser,Constants.memberType.visitor)
                 .eq(Member::getPhone,registerDriverDTO.getPhone())
         )>Constants.ZERO){
             throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"鎵嬫満鍙峰凡娉ㄥ唽!");
@@ -2188,7 +2188,7 @@
         };
         smsEmailService.validateCode(registerDriverDTO.getValidCode(),registerDriverDTO.getPhone());
         String salt = RandomStringUtils.randomAlphabetic(6);
-       ;
+
         Member member = new Member();
         member.setCreateDate(new Date());
         member.setIsdeleted(Constants.ZERO);
diff --git a/server/visits/dmvisit_service/src/main/java/com/doumee/service/business/impl/PlatformJobServiceImpl.java b/server/visits/dmvisit_service/src/main/java/com/doumee/service/business/impl/PlatformJobServiceImpl.java
index 265e4a9..e5f9d5c 100644
--- a/server/visits/dmvisit_service/src/main/java/com/doumee/service/business/impl/PlatformJobServiceImpl.java
+++ b/server/visits/dmvisit_service/src/main/java/com/doumee/service/business/impl/PlatformJobServiceImpl.java
@@ -10,6 +10,7 @@
 import com.doumee.core.haikang.model.param.request.ParkReservationDelRequest;
 import com.doumee.core.haikang.model.param.respose.ParkReservationAddResponse;
 import com.doumee.core.haikang.service.HKService;
+import com.doumee.service.business.third.WmsService;
 import com.doumee.service.business.third.model.LoginUserInfo;
 import com.doumee.service.business.third.model.PageData;
 import com.doumee.service.business.third.model.PageWrap;
@@ -305,7 +306,7 @@
                 .le(pageWrap.getModel().getCreateDateEnd() != null, PlatformWmsJob::getIoCreatedate, Utils.Date.getEnd(pageWrap.getModel().getCreateDateEnd()))
                 .isNotNull(pageWrap.getModel().getJobType() != null && Constants.equalsInteger(Constants.ONE,pageWrap.getModel().getJobType()), PlatformJob::getContractNum)
                 .isNull(pageWrap.getModel().getJobType() != null && Constants.equalsInteger(Constants.ZERO,pageWrap.getModel().getJobType()), PlatformJob::getContractNum)
-        ;
+                .exists(StringUtils.isNotBlank(pageWrap.getModel().getWmsContractNum()),"select tt.id from platfrom_wms_detail tt where tt.isdeleted=0 and tt.job_id=t.id");
 
         for(PageWrap.SortData sortData: pageWrap.getSorts()) {
             if (sortData.getDirection().equalsIgnoreCase(PageWrap.DESC)) {
@@ -629,7 +630,8 @@
             throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"鏈湪宸ヤ綔鏃堕棿["+platformGroup.getStartTime() + "-" + platformGroup.getEndTime() +"]锛屾棤娉曡繘琛岀鍒�");
         }
         //鏌ヨ浠婃棩鏈�澶х殑绛惧埌鏁�
-        List<PlatformJob> signList = platformJobMapper.selectList(new QueryWrapper<PlatformJob>().lambda().apply(" DATE(SIGN_DATE) = DATE(NOW()) and sign_date is not null  "));
+        List<PlatformJob> signList = platformJobMapper.selectList(new QueryWrapper<PlatformJob>().lambda()
+                .apply(" DATE(SIGN_DATE) = DATE(NOW()) and sign_date is not null  "));
         if(CollectionUtils.isEmpty(signList)){
             platformJob.setSignNum(Constants.ONE);
         } else{
@@ -924,6 +926,23 @@
     @Override
     public void sendInPark(PlatformJob platformJob){
         log.info("銆愪笅鍙戝仠杞﹀満鏉冮檺銆�================寮�濮�===="+platformJob.getCarCodeFront());
+        if(Constants.equalsInteger(platformJob.getType(),Constants.THREE)
+                && Constants.equalsInteger(platformJob.getStatus(),Constants.PlatformJobStatus.DONE.getKey()) ){
+            //濡傛灉鏄凡瀹屾垚鐨勫鍗忚溅鍗歌揣浣滀笟锛屾煡璇㈡墍鏈夊悎鍚屾槸鍚︿互涓婄數瀛愰攣锛屽鏋滄病鏈夛紝涓嶈嚜鍔ㄦ巿鏉冪鍥�
+            List<PlatformWmsDetail> details = platformWmsDetailMapper.selectList(new QueryWrapper<PlatformWmsDetail>().lambda()
+                     .select(PlatformWmsDetail::getLockStatus,PlatformWmsDetail::getId)
+                    .eq(PlatformWmsDetail::getJobId,platformJob.getId())
+                    .eq(PlatformWmsDetail::getIsdeleted,Constants.ZERO)
+            );
+            if(details!=null && details.size()>0){
+                for(PlatformWmsDetail d : details){
+                    if(Constants.equalsInteger(d.getLockStatus(),Constants.ZERO)){
+                        //濡傛灉瀛樺湪鏈笂閿侊紝涓嶈嚜鍔ㄦ巿鏉冪鍥�
+                        return;
+                    }
+                }
+            }
+        }
         if(Constants.equalsInteger(platformJob.getType(),Constants.TWO)
                 || Constants.equalsInteger(platformJob.getType(),Constants.THREE)
                 || Constants.equalsInteger(platformJob.getType(),Constants.FOUR)){
@@ -1005,6 +1024,10 @@
                     platformJob.setInHkdate(new Date());
                     if(sendStatus){
                         platformJob.setInHkstatus(Constants.TWO);
+                        if(Constants.equalsInteger(platformJob.getStatus(),Constants.PlatformJobStatus.DONE.getKey())){
+                            //濡傛灉宸蹭笅鍙戞垚鍔燂紝鏍囪宸叉巿鏉冪鍥姸鎬�
+                            platformJob.setStatus(Constants.PlatformJobStatus.AUTHED_LEAVE.getKey());
+                        }
                     }else{
                         platformJob.setInHkstatus(Constants.THREE);
                     }
@@ -1478,19 +1501,21 @@
                 Date date = new Date();
                 List<String> codeList =new ArrayList<>();
                 for(PlatformWmsDetail d : details){
-                    codeList.add(d.getIocode());
+                    codeList.add(d.getContractNum());
                 }
                 TmsLockStatusQueryRequest tmsLock = new TmsLockStatusQueryRequest();
                 tmsLock.setContractNumbers(codeList);
                 TmsBaseResponse<List<TmsLockStatusQueryResponse>>  lockResult =  tmsService.lockStatusQuery(tmsLock);
-                if(lockResult!=null && lockResult.isSuccess()&& lockResult.getData()!=null ){
+                if(lockResult!=null && lockResult.getCode()!=null && lockResult.getCode().equals("0")&& lockResult.getData()!=null ){
                      for(TmsLockStatusQueryResponse s : lockResult.getData()){
+                       if(StringUtils.isBlank(s.getContractNumber())){
+                           continue;
+                       }
                          platformWmsDetailMapper.update(null,new UpdateWrapper<PlatformWmsDetail>().lambda()
-                                 .eq(PlatformWmsDetail::getIocode,s.getContractNumber())
+                                 .eq(PlatformWmsDetail::getContractNum,s.getContractNumber())
                                  .set(PlatformWmsDetail::getEditDate,date)
                                  .set(PlatformWmsDetail::getLockDate,s.getOutDate())
                                  .set(PlatformWmsDetail::getLockStatus,Constants.ONE)
-                                 .eq(PlatformWmsDetail::getJobId,platformJob.getId())
                                  .eq(PlatformWmsDetail::getIsdeleted,Constants.ZERO));
                      }
                 }
@@ -1498,7 +1523,6 @@
 
         }else if(Constants.equalsInteger(platformJob.getType(),Constants.ONE) || Constants.equalsInteger(platformJob.getType(),Constants.FOUR)){
             //TODO 澶栧崗杞﹀嵏璐� 鎴栬�� 甯傚叕鍙歌溅鍗歌揣 鍒欐牴鎹换鍔℃儏鍐�
-
         }
 
 
@@ -1519,6 +1543,76 @@
                 Constants.PlatformBroadcastContent.DONE.getInfo());
         return platformJob;
     }
+    @Override
+    public void checkWmsLockStatus(){
+        List<PlatformWmsDetail> details = platformWmsDetailMapper.selectJoinList(PlatformWmsDetail.class,new MPJLambdaWrapper<PlatformWmsDetail>()
+                .selectAll(PlatformWmsDetail.class)
+                .leftJoin(PlatformJob.class,PlatformJob::getId,PlatformWmsDetail::getJobId)
+                .eq(PlatformJob::getStatus,Constants.PlatformJobStatus.DONE.getKey())//鏌ヨ宸插畬鎴愪綔涓氱殑
+                .eq(PlatformJob::getIsdeleted,Constants.ZERO)
+                .and(wr->{wr.isNull(PlatformWmsDetail::getLockStatus).or().eq(PlatformWmsDetail::getLockStatus,Constants.ZERO);})
+                .eq(PlatformWmsDetail::getIsdeleted,Constants.ZERO));
+       if(details !=null && details.size()>0){
+           Date date = new Date();
+           List<String> codeList =new ArrayList<>();
+           for(PlatformWmsDetail d : details){
+               codeList.add(d.getContractNum());
+           }
+           TmsLockStatusQueryRequest tmsLock = new TmsLockStatusQueryRequest();
+           tmsLock.setContractNumbers(codeList);
+           List<Integer> jobIds = new ArrayList<>();
+           TmsBaseResponse<List<TmsLockStatusQueryResponse>>  lockResult =  tmsService.lockStatusQuery(tmsLock);
+           if(lockResult!=null && lockResult.getCode()!=null && lockResult.getCode().equals("0")&& lockResult.getData()!=null ){
+               for(TmsLockStatusQueryResponse s : lockResult.getData()){
+                   try {
+                       //寮傚父澶勭悊锛岃兘澶勭悊涓�涓槸涓�涓�
+                       platformWmsDetailMapper.update(null,new UpdateWrapper<PlatformWmsDetail>().lambda()
+                               .eq(PlatformWmsDetail::getContractNum,s.getContractNumber())
+                               .set(PlatformWmsDetail::getEditDate,date)
+                               .set(PlatformWmsDetail::getLockDate,s.getOutDate())
+                               .set(PlatformWmsDetail::getLockStatus,Constants.ONE)
+                               .eq(PlatformWmsDetail::getIsdeleted,Constants.ZERO));
+                       PlatformWmsDetail job = getJobByContractnumFromDetail(s.getContractNumber(),details);
+                       if(job != null){
+                           jobIds.add(job.getJobId());
+                       }
+                   }catch (Exception e){
+                        logger.error("=============鏇存柊鐢靛瓙閿佺姸鎬佷俊鎭紓甯革細"+e.getMessage());
+                   }
+               }
+           }
+           if(jobIds.size()>0){
+               List<PlatformJob> list = platformJobMapper.selectJoinList(PlatformJob.class,new MPJLambdaWrapper<PlatformJob>()
+                       .selectAll(PlatformJob.class)
+                       .eq(PlatformJob::getStatus,Constants.PlatformJobStatus.DONE.getKey())
+                       .in(PlatformJob::getId,jobIds)
+               );
+               if(list!=null){
+                   for(PlatformJob platformJob : list){
+                       sendInPark(platformJob);//妫�鏌ユ槸鍚﹂渶瑕佽嚜鍔ㄦ巿鏉冪鍥�
+                   }
+               }
+           }
+       }
+
+    }
+
+    private PlatformWmsJob getJobByContractnum(String contractNumber, List<PlatformWmsJob> details) {
+        for(PlatformWmsJob d : details){
+            if(StringUtils.equals(contractNumber,d.getContractNum())){
+                return d;
+            }
+        }
+        return  null;
+    }
+    private PlatformWmsDetail getJobByContractnumFromDetail(String contractNumber, List<PlatformWmsDetail> details) {
+        for(PlatformWmsDetail d : details){
+            if(StringUtils.equals(contractNumber,d.getContractNum())){
+                return d;
+            }
+        }
+        return  null;
+    }
 
 
     /**
diff --git a/server/visits/dmvisit_service/src/main/java/com/doumee/service/business/impl/VisitsServiceImpl.java b/server/visits/dmvisit_service/src/main/java/com/doumee/service/business/impl/VisitsServiceImpl.java
index b2dd665..6e2f02b 100644
--- a/server/visits/dmvisit_service/src/main/java/com/doumee/service/business/impl/VisitsServiceImpl.java
+++ b/server/visits/dmvisit_service/src/main/java/com/doumee/service/business/impl/VisitsServiceImpl.java
@@ -169,10 +169,9 @@
             }
             if (Constants.equalsInteger(Constants.ZERO, erpVisitDTO.getIdcardType()) && erpVisitDTO.getIdcardNo().length() != 18
                 //&&!IdcardUtil.isValidCard(visits.getIdcardNo())
-            ) {
+            ){
                 throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(), "瀵逛笉璧凤紝韬唤璇佸彿鐮佹湁璇紝璇锋牳瀹炲悗閲嶈瘯锛�");
             }
-
             Visits visits = new Visits();
             //鏍规嵁琚闂汉ERP涓婚敭鏌ヨ绯荤粺鍐呬汉鍛樹富閿俊鎭�
             Member member = memberMapper.selectOne(new QueryWrapper<Member>().lambda()
diff --git a/server/visits/dmvisit_service/src/main/java/com/doumee/service/business/impl/thrid/BoardServiceImpl.java b/server/visits/dmvisit_service/src/main/java/com/doumee/service/business/impl/thrid/BoardServiceImpl.java
index f7245ee..d17348e 100644
--- a/server/visits/dmvisit_service/src/main/java/com/doumee/service/business/impl/thrid/BoardServiceImpl.java
+++ b/server/visits/dmvisit_service/src/main/java/com/doumee/service/business/impl/thrid/BoardServiceImpl.java
@@ -489,7 +489,7 @@
         List<WaningEventDataListVO> list = new ArrayList<>();
         RuleEventSearchRequest request = new RuleEventSearchRequest();
         request.setPageNo(1);
-        request.setPageSize(10);
+        request.setPageSize(1000);
         request.setFiledOptions(new ArrayList<>());
         request.setSorts(new ArrayList<>());
         RuleEventFiledOptionsRequest file = new RuleEventFiledOptionsRequest();
@@ -499,7 +499,6 @@
         if(type == 1){
             file.setFieldValue("131588");//瀹夐槻鍛婅
         }else  if(type == 2){
-
             file.setFieldValue("131593");//浜哄憳鍛婅
         }
         request.getFiledOptions().add(file);
@@ -507,34 +506,36 @@
         sort.setSortField("happen_time");
         sort.setSortType("desc");
         request.getSorts().add(sort);
+        int total =0;
         BaseResponse<BaseListPageResponse< RuleEventSearchDataResponse>> result = HKService.ruleEventSearch(request);
         if(result!=null && StringUtils.equals(result.getCode(),HKConstants.RESPONSE_SUCCEE) && result.getData()!=null){
             List<RuleEventSearchDataResponse> rlist = result.getData().getList();
-            lastResult.setTotal(result.getData().getTotal());
             if(rlist!=null){
                 String privateIp =systemDictDataBiz.queryByCode(Constants.HK_PARAM,Constants.EVENT_FILES_PRIVATE_DOMAIN).getCode();
                 String publicIp =systemDictDataBiz.queryByCode(Constants.HK_PARAM,Constants.EVENT_FILES_PUBLIC_DOMAIN).getCode();
                 for(RuleEventSearchDataResponse r :rlist){
                     try {
-                        if(DateUtil.getISO8601DateByStr(r.getHappen_time()).getTime() >= Utils.Date.getStart(new Date()).getTime()){
+                        if(DateUtil.getISO8601DateByStr(r.getHappen_time()).getTime() < Utils.Date.getStart(new Date()).getTime()){
                             continue;
                         }
                     }catch (Exception e){
                     }
+                    total ++;
                     WaningEventDataListVO data = new WaningEventDataListVO();
+                    data.setCreateDate(DateUtil.getPlusTime(DateUtil.getISO8601DateByStr(r.getHappen_time())));
                     data.setAddr(r.getSrc_name());
                     data.setImg(r.getImage_url());
                     if(data.getImg()!=null){
                         data.setImg(data.getImg().replace(privateIp,publicIp));
                     }
                     data.setTitle(r.getEvent_type_name());
-                    data.setCreateDate(DateUtil.getPlusTime(DateUtil.getISO8601DateByStr(r.getHappen_time())));
 //                data.setContent(r.get);
                     list.add(data);
                 }
             }
 
         }
+        lastResult.setTotal(total);
         lastResult.setList(list);
         return lastResult;
     }
@@ -2356,7 +2357,10 @@
         TotalOutQtyNumVO  data = new TotalOutQtyNumVO();
         data.setCurrentInNum(new BigDecimal(0));
         data.setLastInNum(new BigDecimal(0));
+        data.setCurrentProvinceNum(new BigDecimal(0));
+        data.setCurrentOtherNum(new BigDecimal(0));
         data.setSameInNum(new BigDecimal(0));
+
         //---------鐪佸----------------
         data.setCurrentOutNum(new BigDecimal(0));
         data.setLastOutNum(new BigDecimal(0));
@@ -2396,6 +2400,8 @@
             List<TmsOutQtyAndVehicleQtyResponse> listSame=  tmsService.getOutQtyAndVehicleQty(param);//鍘诲勾鍚屾湡
             if(listSame!=null ){
                 for(TmsOutQtyAndVehicleQtyResponse model : listSame){
+                    model.setOutSideProvinceOutQty(Constants.formatBigdecimal(model.getOutSideProvinceOutT03Qty()).add(Constants.formatBigdecimal(model.getOutSideProvinceOutT01Qty())));//鐪佸绱
+                    model.setInSideProvinceOutQty(Constants.formatBigdecimal(model.getInSideProvinceOutT03Qty()).add(Constants.formatBigdecimal(model.getInSideProvinceOutT01Qty())));//鐪佸唴绱
                     data.setSameOutNum(data.getSameOutNum().add(Constants.formatBigdecimal(model.getOutSideProvinceOutQty())));
                     data.setSameInNum(data.getSameInNum().add(Constants.formatBigdecimal(model.getInSideProvinceOutQty())));
                 }
@@ -2406,9 +2412,13 @@
         List<TmsOutQtyAndVehicleQtyResponse> listCur =  tmsService.getOutQtyAndVehicleQty(param);//鏈懆鏈�
         if(listCur!=null ){
             for(TmsOutQtyAndVehicleQtyResponse model : listCur){
+                model.setOutSideProvinceOutQty(Constants.formatBigdecimal(model.getOutSideProvinceOutT03Qty()).add(Constants.formatBigdecimal(model.getOutSideProvinceOutT01Qty())));//鐪佸绱
+                model.setInSideProvinceOutQty(Constants.formatBigdecimal(model.getInSideProvinceOutT03Qty()).add(Constants.formatBigdecimal(model.getInSideProvinceOutT01Qty())));//鐪佸唴绱
                 data.setCurrentOutNum(data.getCurrentOutNum().add(Constants.formatBigdecimal(model.getOutSideProvinceOutQty())));
                 data.setCurrentInNum(data.getCurrentInNum().add(Constants.formatBigdecimal(model.getInSideProvinceOutQty())));
                 data.setTotalCarNum(data.getTotalCarNum()+Constants.formatIntegerNum(model.getVehicleQty()));//绱杞︽
+                data.setCurrentProvinceNum(data.getCurrentProvinceNum().add(model.getOutSideProvinceOutQty()).add(model.getInSideProvinceOutT01Qty()));//鐪佸唴鐪佸閿�鍞噺
+                data.setCurrentOtherNum(data.getCurrentOtherNum().add(model.getOutSideProvinceOutT03Qty()).add(model.getInSideProvinceOutT03Qty()));//鐪佸唴鐪佸鍏朵粬鍑哄簱閲�
             }
         }
         param.setDateEnd(DateUtil.getShortTime(lastEnd));
@@ -2416,6 +2426,8 @@
         List<TmsOutQtyAndVehicleQtyResponse> listLast =  tmsService.getOutQtyAndVehicleQty(param);//涓婂懆鏈�
         if(listCur!=null ){
             for(TmsOutQtyAndVehicleQtyResponse model : listLast){
+                model.setOutSideProvinceOutQty(Constants.formatBigdecimal(model.getOutSideProvinceOutT03Qty()).add(Constants.formatBigdecimal(model.getOutSideProvinceOutT01Qty())));//鐪佸绱
+                model.setInSideProvinceOutQty(Constants.formatBigdecimal(model.getInSideProvinceOutT03Qty()).add(Constants.formatBigdecimal(model.getInSideProvinceOutT01Qty())));//鐪佸唴绱
                 data.setLastOutNum(data.getLastOutNum().add(Constants.formatBigdecimal(model.getOutSideProvinceOutQty())));
                 data.setLastInNum(data.getLastInNum().add(Constants.formatBigdecimal(model.getInSideProvinceOutQty())));
             }
@@ -2429,6 +2441,8 @@
         if(Constants.UNIT_TYPE == 1) {
             data.setCurrentInNum(Constants.formatBigdecimal(data.getCurrentInNum()).divide(new BigDecimal(5), 2, BigDecimal.ROUND_HALF_UP));
             data.setCurrentOutNum(Constants.formatBigdecimal(data.getCurrentOutNum()).divide(new BigDecimal(5), 2, BigDecimal.ROUND_HALF_UP));
+            data.setCurrentOtherNum(Constants.formatBigdecimal(data.getCurrentOtherNum()).divide(new BigDecimal(5), 2, BigDecimal.ROUND_HALF_UP));
+            data.setCurrentProvinceNum(Constants.formatBigdecimal(data.getCurrentProvinceNum()).divide(new BigDecimal(5), 2, BigDecimal.ROUND_HALF_UP));
             data.setLastInNum(Constants.formatBigdecimal(data.getLastInNum()).divide(new BigDecimal(5), 2, BigDecimal.ROUND_HALF_UP));
             data.setLastOutNum(Constants.formatBigdecimal(data.getLastOutNum()).divide(new BigDecimal(5), 2, BigDecimal.ROUND_HALF_UP));
             data.setSameInNum(Constants.formatBigdecimal(data.getSameInNum()).divide(new BigDecimal(5), 2, BigDecimal.ROUND_HALF_UP));
@@ -2573,6 +2587,7 @@
         WholeProvinceZXTVO result = new WholeProvinceZXTVO();
         result.setCurrentNum(new BigDecimal(0));
         result.setTotalNum(new BigDecimal(0));
+        result.setZtNum(new BigDecimal(0));
         result.setUseRate(new BigDecimal(0));
         result.setDetailList(new ArrayList<>());
         List<TmsFactoryParam> paramList =factoryList();
@@ -2582,47 +2597,52 @@
                 WholeProvinceZxtDetailVO t = new WholeProvinceZxtDetailVO();
                 t.setFactoryName(p.getName());
                 t.setCurrentNum(new BigDecimal(0));
+                t.setZaituNum(new BigDecimal(0));
                 t.setTotalNum(Constants.formatBigdecimal(p.getNum1()));//鎬诲簱瀛橀噺
                 getFromReportVehicleQtyList(p.getCode(),t,response);//澶勭悊鎻愭姤杩愬姏鍜屾�昏繍鍔涙暟鎹�
                 t.setUseRate(new BigDecimal(0));
-                if(t.getTotalNum().compareTo(new BigDecimal(0)) !=0){
-                    t.setUseRate(t.getCurrentNum().divide(t.getTotalNum(),4,BigDecimal.ROUND_HALF_UP));
+                if((t.getTotalNum().subtract(t.getZaituNum())).compareTo(new BigDecimal(0)) !=0){
+                    t.setUseRate(t.getCurrentNum().divide(t.getTotalNum().subtract(t.getZaituNum()),4,BigDecimal.ROUND_HALF_UP));
                 }
-                if(Constants.UNIT_TYPE == 1) {
+                /*if(Constants.UNIT_TYPE == 1) {
                     //澶勭悊鍗曚綅鎴愨�滅鈥濓紝涓�绠�=5涓囨敮
                     t.setCurrentNum(Constants.formatBigdecimal(t.getCurrentNum()).divide(new BigDecimal(5), 2, BigDecimal.ROUND_HALF_UP));
                     t.setTotalNum(Constants.formatBigdecimal(t.getTotalNum()).divide(new BigDecimal(5), 2, BigDecimal.ROUND_HALF_UP));
-
-                }
+                }*/
                 result.getDetailList().add(t);
                 result.setCurrentNum(result.getCurrentNum().add(t.getCurrentNum()));
                 result.setTotalNum(result.getTotalNum().add(t.getTotalNum()));
+                result.setZtNum(result.getZtNum().add(t.getZaituNum()));
             }
         }
-        if(result.getTotalNum().compareTo(new BigDecimal(0)) !=0){
-            result.setUseRate(result.getCurrentNum().divide(result.getTotalNum(),4,BigDecimal.ROUND_HALF_UP));
+        if((result.getTotalNum().subtract(result.getZtNum())).compareTo(new BigDecimal(0)) !=0){
+            result.setUseRate(result.getCurrentNum().divide(result.getTotalNum().subtract(result.getZtNum()),4,BigDecimal.ROUND_HALF_UP));
         }
         return result;
     }
     private void getFromReportVehicleQtyList(String code,WholeProvinceZxtDetailVO t, List<TmsTotalAndReportVehicleQtyResponse> responses) {
         BigDecimal current = new BigDecimal(0);
         BigDecimal total= new BigDecimal(0);
+        BigDecimal ztTotal= new BigDecimal(0);
         if(responses!=null && responses.size()>0){
             for(TmsTotalAndReportVehicleQtyResponse model: responses){
                 if(StringUtils.equals(model.getFactoryCode(),code)){
+                    ztTotal = ztTotal.add(Constants.formatBigdecimal(model.getInTransitQty()));
                     total = total.add(Constants.formatBigdecimal(model.getTotalQty()));
                     current = current.add(Constants.formatBigdecimal(model.getReportQty()));
                 }
             }
         }
         t.setCurrentNum(current);
+        t.setZaituNum(ztTotal);
         t.setTotalNum(total);
     }
     private BigDecimal getCurrentOutQryByList(List<TmsOutQtyAndVehicleQtyResponse> response) {
         BigDecimal r = new BigDecimal(0);
         if(response!=null && response.size()>0){
             for(TmsOutQtyAndVehicleQtyResponse model: response){
-                    r = r.add(Constants.formatBigdecimal(model.getTotalOutQty()));
+//                model.setTotalOutQty(Constants.formatBigdecimal(model.getTotalOutT03Qty()).add(Constants.formatBigdecimal(model.getTotalOutT01Qty())));
+                r = r.add(Constants.formatBigdecimal(model.getTotalOutQty()));
             }
         }
         return r ;
diff --git a/server/visits/dmvisit_service/src/main/java/com/doumee/service/business/impl/thrid/WmsServiceImpl.java b/server/visits/dmvisit_service/src/main/java/com/doumee/service/business/impl/thrid/WmsServiceImpl.java
index 6ad06ee..b166f8f 100644
--- a/server/visits/dmvisit_service/src/main/java/com/doumee/service/business/impl/thrid/WmsServiceImpl.java
+++ b/server/visits/dmvisit_service/src/main/java/com/doumee/service/business/impl/thrid/WmsServiceImpl.java
@@ -497,6 +497,7 @@
                         entity.setIocode(d.getIoCode());
                         entity.setJobId(job.getJobId());
                         entity.setWmsJobId(job.getId());
+                        entity.setContractNum(param.getContractNum());
                         entity.setIoQty(d.getIoQty());
                         entity.setRepertotyAddress(job.getRepertotyAddress());
                         entity.setWmsJobId(job.getId());

--
Gitblit v1.9.3