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