瀏覽代碼

修改地址参数

czh 1 年之前
父節點
當前提交
eb30584ca5
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      sckw-modules/sckw-order/src/main/resources/mapper/KwoTradeOrderMapper.xml

+ 4 - 4
sckw-modules/sckw-order/src/main/resources/mapper/KwoTradeOrderMapper.xml

@@ -304,11 +304,11 @@
                 and a.id in (
                 SELECT t_order_id from kwo_trade_order_address where del_flag = 0
                 <if test="query.loadAddressCode != null and query.loadAddressCode != ''">
-                    address_type = 1
+                    and address_type = 1
                     and left(city_code, #{query.loadAddressLevel, jdbcType=INTEGER}) = left( #{query.loadAddressCode, jdbcType=INTEGER}, #{query.loadAddressLevel, jdbcType=INTEGER} )
                 </if>
                 <if test="query.unloadAddressCode != null and query.unloadAddressCode != ''">
-                    address_type = 2
+                    and address_type = 2
                     and left(city_code, #{query.unloadAddressLevel, jdbcType=INTEGER}) = left( #{query.unloadAddressCode, jdbcType=INTEGER}, #{query.unloadAddressLevel, jdbcType=INTEGER} )
                 </if>
                 )
@@ -557,11 +557,11 @@
                 and a.id in (
                 SELECT t_order_id from kwo_trade_order_address where del_flag = 0
                 <if test="query.loadAddressCode != null and query.loadAddressCode != ''">
-                    address_type = 1
+                    and address_type = 1
                     and left(city_code, #{query.loadAddressLevel, jdbcType=INTEGER}) = left( #{query.loadAddressCode, jdbcType=INTEGER}, #{query.loadAddressLevel, jdbcType=INTEGER} )
                 </if>
                 <if test="query.unloadAddressCode != null and query.unloadAddressCode != ''">
-                    address_type = 2
+                    and address_type = 2
                     and left(city_code, #{query.unloadAddressLevel, jdbcType=INTEGER}) = left( #{query.unloadAddressCode, jdbcType=INTEGER}, #{query.unloadAddressLevel, jdbcType=INTEGER} )
                 </if>
                 )