This commit is contained in:
linfso 2024-11-17 23:35:54 +08:00
parent 3315f3703d
commit 36063058fe

View File

@ -27,12 +27,24 @@
<include refid="selectEmisCountryVo"/>
<where>
<if test="id != null "> and id = #{id}</if>
<if test="name != null and name != ''"> and ( three_code=#{name} or two_code=#{name} or name like concat('%', #{name}, '%') or name_en like concat('%', #{name}, '%') )</if>
<if test="nameEn != null and nameEn != ''"> and ( three_code=#{name} or two_code=#{name} or name like concat('%', #{nameEn}, '%') or name_en like concat('%', #{nameEn}, '%') ) </if>
<if test="name != null and name != ''"> and (
three_code=#{name} or
two_code=#{name} or
name like concat('%', #{name}, '%')
or ( name_en!='' and name_en like concat('%', #{name}, '%') )
)</if>
<if test="nameEn != null and nameEn != ''"> and (
three_code=#{name}
or two_code=#{name}
or ( name!='' and name like concat('%', #{nameEn}, '%') )
or ( name_en!='' and name_en like concat('%', #{nameEn}, '%') )
) </if>
<if test="code != null and code != ''"> and find_in_set(code,#{code})</if>
<if test="telAreaCode != null and telAreaCode != ''"> and tel_area_code=#{telAreaCode}</if>
<if test="isoCode != null and isoCode != ''"> and iso_code=#{isoCode}</if>
<if test="continentId != null and continentId != ''"> and find_in_set(#{continentId},continent_id)</if> <if test="orderNum != null "> and order_num = #{orderNum}</if>
<if test="continentId != null and continentId != ''"> and find_in_set(#{continentId},continent_id)</if>
<if test="orderNum != null "> and order_num = #{orderNum}</if>
<if test="twoCode != null and twoCode != ''"> and two_code=#{twoCode}</if>
<if test="threeCode != null and threeCode != ''"> and three_code=#{threeCode}</if>
<if test="remark != null and remark != ''"> and remark like concat('%', #{remark}, '%')</if>