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