md
This commit is contained in:
parent
326c162ec0
commit
4fe3501289
@ -36,8 +36,19 @@
|
|||||||
<where>
|
<where>
|
||||||
<if test="id != null "> and id = #{id}</if>
|
<if test="id != null "> and id = #{id}</if>
|
||||||
<if test="regionCode != null and regionCode != ''"> and region_code=#{regionCode}</if>
|
<if test="regionCode != null and regionCode != ''"> and region_code=#{regionCode}</if>
|
||||||
<if test="regionName != null and regionName != ''"> and ( region_name like concat('%', #{regionName}, '%') or region_name_en like concat('%', #{regionName}, '%') )</if>
|
<if test="regionName != null and regionName != ''">
|
||||||
<if test="regionNameEn != null and regionNameEn != ''">and ( region_name like concat('%', #{regionNameEn}, '%') or region_name_en like concat('%', #{regionNameEn}, '%') ) </if>
|
and (
|
||||||
|
region_name like concat('%', #{regionName}, '%') or region_name_en like concat('%', #{regionName}, '%')
|
||||||
|
or #{regionName} like concat('%',region_name, '%') or #{regionName} like concat('%',region_name_en, '%')
|
||||||
|
)
|
||||||
|
</if>
|
||||||
|
<if test="regionNameEn != null and regionNameEn != ''">
|
||||||
|
and (
|
||||||
|
region_name like concat('%', #{regionName}, '%') or region_name_en like concat('%', #{regionName}, '%')
|
||||||
|
or #{regionName} like concat('%',region_name, '%') or #{regionName} like concat('%',region_name_en, '%')
|
||||||
|
)
|
||||||
|
|
||||||
|
</if>
|
||||||
<if test="regionType != null "> and region_type = #{regionType}</if>
|
<if test="regionType != null "> and region_type = #{regionType}</if>
|
||||||
<if test="shortName != null and shortName != ''"> and short_name like concat('%', #{shortName}, '%')</if>
|
<if test="shortName != null and shortName != ''"> and short_name like concat('%', #{shortName}, '%')</if>
|
||||||
<if test="parentCode != null and parentCode != ''"> and parent_code=#{parentCode}</if>
|
<if test="parentCode != null and parentCode != ''"> and parent_code=#{parentCode}</if>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user