新增按国家去重区块标题接口,优化计费列表请求方式
This commit is contained in:
@@ -30,6 +30,26 @@
|
||||
order by group_id desc
|
||||
</select>
|
||||
|
||||
<select id="selectBlockTitlesByCountry" resultType="string">
|
||||
select distinct block_title
|
||||
from pay_postcode_group
|
||||
where block_title is not null
|
||||
and block_title <> ''
|
||||
<if test="countryCode != null and countryCode != ''">
|
||||
and (
|
||||
upper(ifnull(country_code, '')) = upper(#{countryCode})
|
||||
or upper(ifnull(catalog_country, '')) = upper(#{countryCode})
|
||||
)
|
||||
</if>
|
||||
<if test="countryName != null and countryName != ''">
|
||||
and (
|
||||
country_name like concat('%', #{countryName}, '%')
|
||||
or catalog_country like concat('%', #{countryName}, '%')
|
||||
)
|
||||
</if>
|
||||
order by block_title asc
|
||||
</select>
|
||||
|
||||
<select id="selectLineList" parameterType="com.bms.price.domain.PayPostcodeLine" resultType="com.bms.price.domain.PayPostcodeLine">
|
||||
select line_id as lineId, group_id as groupId, country_name as countryName, country_code as countryCode,
|
||||
region_name as regionName, region_name_cn as regionNameCn, city_name as cityName, region_code as regionCode,
|
||||
|
||||
Reference in New Issue
Block a user