Pārlūkot izejas kodu

1、分包运力表地址id存在错误处理;
2、承运订单列表查询调整;

zk 1 gadu atpakaļ
vecāks
revīzija
81f3d74ce9

+ 2 - 2
sckw-modules/sckw-transport/src/main/java/com/sckw/transport/service/KwtLogisticsOrderConsignmentService.java

@@ -1814,7 +1814,7 @@ public class KwtLogisticsOrderConsignmentService {
                     KwtLogisticsOrderAmount orderAmount = new KwtLogisticsOrderAmount();
                     BigDecimal defaultBigDecimal = new BigDecimal("0.00");
                     orderAmount.setLOrderId(orderId);
-                    orderAmount.setLAddressId(addressId);
+                    orderAmount.setLAddressId(loadOrderAddress.getId());
                     orderAmount.setAmount(address.getAmount());
                     orderAmount.setSubcontractAmount(defaultBigDecimal);
                     orderAmount.setEntrustAmount(defaultBigDecimal);
@@ -1886,7 +1886,7 @@ public class KwtLogisticsOrderConsignmentService {
                     KwtLogisticsOrderAmount orderAmount = new KwtLogisticsOrderAmount();
                     BigDecimal defaultBigDecimal = new BigDecimal("0.00");
                     orderAmount.setLOrderId(orderId);
-                    orderAmount.setLAddressId(addressId);
+                    orderAmount.setLAddressId(unloadOrderAddress.getId());
                     orderAmount.setAmount(address.getAmount());
                     orderAmount.setSubcontractAmount(defaultBigDecimal);
                     orderAmount.setEntrustAmount(defaultBigDecimal);

+ 1 - 2
sckw-modules/sckw-transport/src/main/resources/mapper/KwtLogisticsOrderAddressMapper.xml

@@ -50,9 +50,8 @@
                a.detail_address AS loadAddressDetail,
                b.load_amount    AS loadAmount
         FROM kwt_logistics_order_address a
-                 LEFT JOIN kwt_logistics_order_amount b ON a.id = b.l_address_id
+        LEFT JOIN kwt_logistics_order_amount b ON a.id = b.l_address_id AND b.del_flag = 0
         WHERE a.del_flag = 0
-          AND b.del_flag = 0
           AND a.address_type = #{addressType,jdbcType=INTEGER}
           AND a.l_order_id = #{lOrderId}
     </select>