From 15b6a1fb83f878d1b4c6f657043f425c0f48e0fa Mon Sep 17 00:00:00 2001
From: caoyizhong <1270296080>
Date: Sat, 16 Dec 2023 19:17:56 +0800
Subject: [PATCH] =?UTF-8?q?=E5=A4=87=E8=B4=A7=E6=9F=A5=E8=AF=A2=E6=95=B0?=
=?UTF-8?q?=E9=87=8F=E4=BF=A1=E6=81=AF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../vo/DistrilbutionBillLadingVO.java | 2 ++
.../mapper/DistrilbutionBillLadingMapper.xml | 16 +++++++-------
.../DistrilbutionBillLadingServiceImpl.java | 21 +++++++++++--------
3 files changed, 23 insertions(+), 16 deletions(-)
diff --git a/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistrilbutionBillLadingVO.java b/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistrilbutionBillLadingVO.java
index 706a4ec39..a4f1fa0b1 100644
--- a/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistrilbutionBillLadingVO.java
+++ b/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistrilbutionBillLadingVO.java
@@ -61,7 +61,9 @@ public class DistrilbutionBillLadingVO extends DistrilbutionBillLadingEntity {
private String assignStatusName;
private Integer treatNum; //待
+ private Integer signedFor ; //已签收
private Integer stopNum; //已
+ private Integer sumTotal; //总数
@ApiModelProperty(value = "提货状态")
private String conditionName;
diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistrilbutionBillLadingMapper.xml b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistrilbutionBillLadingMapper.xml
index 0dd78186f..20c2edddc 100644
--- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistrilbutionBillLadingMapper.xml
+++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistrilbutionBillLadingMapper.xml
@@ -370,7 +370,7 @@
select DISTINCT (select count(conditions)
from logpm_distrilbution_bill_lading
- conditions IN (10) and is_deleted = '0'
+ conditions IN (10,20) and is_deleted = '0' and warehouse_id = #{param.warehouseId}
and pick_up_time between #{param.startDate} and #{param.entDate}
and DATE(pick_up_time) = CURDATE()
@@ -378,16 +378,18 @@
(select count(conditions)
from logpm_distrilbution_bill_lading
- conditions IN (20) and is_deleted = '0'
+ conditions IN (30) and is_deleted = '0' and warehouse_id = #{param.warehouseId}
and pick_up_time between #{param.startDate} and #{param.entDate}
and DATE(pick_up_time) = CURDATE()
- ) stopNum
- from logpm_distrilbution_bill_lading
+ ) stopNum, COUNT(ldbls.id) signedFor,COUNT(ldbp.id) sumTotal
+ from logpm_distrilbution_bill_lading ldbl
+ LEFT JOIN logpm_distrilbution_bill_package ldbp on ldbp.bill_lading_id = ldbl.id
+ LEFT JOIN logpm_distribution_bill_lading_scan ldbls on ldbls.parcel_list_id = ldbp.parce_list_id
- is_deleted = '0'
- and pick_up_time between #{param.startDate} and #{param.entDate}
- and DATE(pick_up_time) = CURDATE()
+ ldbl.is_deleted = '0' and ldbl.warehouse_id = #{param.warehouseId}
+ and ldbl.pick_up_time between #{param.startDate} and #{param.entDate}
+ and DATE(ldbl.pick_up_time) = CURDATE()
diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistrilbutionBillLadingServiceImpl.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistrilbutionBillLadingServiceImpl.java
index 7b75f405a..67b347b1d 100644
--- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistrilbutionBillLadingServiceImpl.java
+++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistrilbutionBillLadingServiceImpl.java
@@ -1690,6 +1690,10 @@ public class DistrilbutionBillLadingServiceImpl extends BaseServiceImpl distrilbutionBillLading) {
+ BasicdataWarehouseEntity myCurrentWarehouse = warehouseClient.getMyCurrentWarehouse();
+ if(ObjectUtils.isNotNull(myCurrentWarehouse)){
+ distrilbutionBillLading.put("warehouse_id",myCurrentWarehouse.getId());
+ }
DistrilbutionBillLadingDTO billLadingEntity = JSONObject.parseObject(JSONObject.toJSONString(distrilbutionBillLading), DistrilbutionBillLadingDTO.class);
DistrilbutionBillLadingVO billLadingVO = baseMapper.getBillLadingNum(billLadingEntity); //查询
@@ -1698,7 +1702,7 @@ public class DistrilbutionBillLadingServiceImpl extends BaseServiceImpl