Browse Source

Merge remote-tracking branch 'origin/dev' into dev

master
pref_mail@163.com 2 months ago
parent
commit
813e090767
  1. 12
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/receiver/report/DeliverFinishReportListener.java
  2. 6
      blade-service/logpm-report/src/main/java/com/logpm/report/mapper/QualityDispatchNumberMapper.xml
  3. 1
      blade-service/logpm-report/src/main/resources/application-dev.yml
  4. 1
      blade-service/logpm-report/src/main/resources/application-prod.yml
  5. 1
      blade-service/logpm-report/src/main/resources/application-test.yml
  6. 1
      blade-service/logpm-statisticsdata/src/main/java/com/logpm/statistics/mapper/ExpenseDispatchTrainDetailMapper.xml

12
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/receiver/report/DeliverFinishReportListener.java

@ -395,7 +395,7 @@ public class DeliverFinishReportListener implements ReportService {
}
// 最大公里数计算
if (NumberUtil.equals(kilometerCalculationRule, 3)) {
BigDecimal total = null;
BigDecimal total = BigDecimal.ZERO;
String lastCode = null;
if (CollUtil.isNotEmpty(firstRouteMap)) {
for (Map.Entry<String, String> firstEntry : firstRouteMap.entrySet()) {
@ -521,7 +521,7 @@ public class DeliverFinishReportListener implements ReportService {
}
// 最大公里数计算
if (NumberUtil.equals(subsidyKilometerRule, 3)) {
BigDecimal total = null;
BigDecimal total = BigDecimal.ZERO;
String lastCode = null;
if (CollUtil.isNotEmpty(firstRouteMap)) {
for (Map.Entry<String, String> firstEntry : firstRouteMap.entrySet()) {
@ -673,7 +673,7 @@ public class DeliverFinishReportListener implements ReportService {
if (NumberUtil.equals(overZoneKilometerRule, 3)) {
Integer overZoneSiteMode = rule.getOverZoneSiteMode();
if (NumberUtil.equals(overZoneSiteMode, 1)) {
BigDecimal total = null;
BigDecimal total = BigDecimal.ZERO;
String lastCode = null;
if (CollUtil.isNotEmpty(firstRouteMap)) {
for (Map.Entry<String, String> firstEntry : firstRouteMap.entrySet()) {
@ -709,7 +709,7 @@ public class DeliverFinishReportListener implements ReportService {
// 按区域计费
if (NumberUtil.equals(overZoneSiteMode, 2)) {
if (CollUtil.isNotEmpty(overZoneEntityMap)) {
BigDecimal total = null;
BigDecimal total = BigDecimal.ZERO;
String lastCode = null;
if (CollUtil.isNotEmpty(firstRouteMap)) {
for (Map.Entry<String, String> firstEntry : firstRouteMap.entrySet()) {
@ -964,13 +964,13 @@ public class DeliverFinishReportListener implements ReportService {
if (StrUtil.isNotEmpty(arrivePositioning)) {
// A-B A-C A-D 仓库为起点到每一个点的距离
Long first = GaoDeApiUtil.measureDistance(firstPositioning, arrivePositioning);
firstRouteMap.put(value1.getSignReservationCode(), Convert.toStr(first / 1000));
firstRouteMap.put(value1.getSignReservationCode(), Convert.toStr(ObjectUtil.isNotEmpty(first) ? NumberUtil.div(new BigDecimal(first), 1000) : 0L / 1000));
if (StrUtil.isEmpty(beforePositioning)) {
beforePositioning = firstPositioning;
}
// A-B B-C C-D 每一个点为起点到下一个点的距离
Long distance = GaoDeApiUtil.measureDistance(beforePositioning, arrivePositioning);
allRouteMap.put(value1.getSignReservationCode(), Convert.toStr(distance / 1000));
allRouteMap.put(value1.getSignReservationCode(), Convert.toStr(ObjectUtil.isNotEmpty(distance) ? NumberUtil.div(new BigDecimal(distance), 1000) : 0L / 1000));
beforePositioning = arrivePositioning;
}
}

6
blade-service/logpm-report/src/main/java/com/logpm/report/mapper/QualityDispatchNumberMapper.xml

@ -248,6 +248,9 @@
<if test="item == '市配'">
2
</if>
<if test="item == '自提'">
0
</if>
</foreach>
</if>
group by dl.warehouse_name
@ -294,6 +297,9 @@
<if test="item == '市配'">
2
</if>
<if test="item == '自提'">
0
</if>
</foreach>
</if>
group by t.abnormal_type, dr.reservation_code) t

1
blade-service/logpm-report/src/main/resources/application-dev.yml

@ -21,6 +21,7 @@ spring:
#启用sql日志拦截器
proxy-filters:
- sqlLogInterceptor
query-timeout: 60000
#设置默认的数据源或者数据源组,默认值即为master
primary: master
datasource:

1
blade-service/logpm-report/src/main/resources/application-prod.yml

@ -21,6 +21,7 @@ spring:
#启用sql日志拦截器
proxy-filters:
- sqlLogInterceptor
query-timeout: 60000
#设置默认的数据源或者数据源组,默认值即为master
primary: master
datasource:

1
blade-service/logpm-report/src/main/resources/application-test.yml

@ -21,6 +21,7 @@ spring:
#启用sql日志拦截器
proxy-filters:
- sqlLogInterceptor
query-timeout: 60000
#设置默认的数据源或者数据源组,默认值即为master
primary: master
datasource:

1
blade-service/logpm-statisticsdata/src/main/java/com/logpm/statistics/mapper/ExpenseDispatchTrainDetailMapper.xml

@ -43,6 +43,7 @@
<if test="expenseDispatchTrainDetail.deliveryVehicle != null and expenseDispatchTrainDetail.deliveryVehicle != ''">
and delivery_vehicle like concat('%', #{expenseDispatchTrainDetail.deliveryVehicle}, '%')
</if>
order by id desc
</select>

Loading…
Cancel
Save