Browse Source

修改大屏查询

dev
chenlong 2 weeks ago
parent
commit
c6a11e3fce
  1. 2
      blade-service/logpm-report/src/main/java/com/logpm/report/controller/LargeScreenController.java
  2. 4
      blade-service/logpm-report/src/main/java/com/logpm/report/mapper/largeScreen/BillingDataMapper.xml

2
blade-service/logpm-report/src/main/java/com/logpm/report/controller/LargeScreenController.java

@ -62,7 +62,7 @@ public class LargeScreenController{
this.trunkData = trunkData;
this.deliveryDataService = deliveryDataService;
this.businessRatio = businessRatio;
}
}
/**

4
blade-service/logpm-report/src/main/java/com/logpm/report/mapper/largeScreen/BillingDataMapper.xml

@ -18,7 +18,7 @@
count(d.id) as value,
w.destination_warehouse_id as warehouseId
from logpm_platform.logpm_warehouse_waybill as w
INNER JOIN logpm_platform.logpm_trunkline_advance_detail as d on w.waybill_no = d.waybill_no
INNER JOIN logpm_platform.logpm_trunkline_advance_detail as d on w.id = d.waybill_id
where w.freeze_status = 0
and w.create_time BETWEEN #{startTime} and #{endTime}
group by w.destination_warehouse_id
@ -30,7 +30,7 @@
count(d.id) as value,
date_format(w.create_time, '%Y-%m') as month
from logpm_platform.logpm_warehouse_waybill as w
INNER JOIN logpm_platform.logpm_trunkline_advance_detail as d on w.waybill_no = d.waybill_no
INNER JOIN logpm_platform.logpm_trunkline_advance_detail as d on w.id = d.waybill_id
where w.freeze_status = 0
and w.create_time BETWEEN #{startTime} and #{endTime}
group by month

Loading…
Cancel
Save