|
|
|
|
@ -83,16 +83,35 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="muPath != null and muPath != ''">and mu_path = #{muPath}</if>
|
|
|
|
|
<if test="relation != null and relation != ''">and relation = #{relation}</if>
|
|
|
|
|
<if test="name != null and name != ''">
|
|
|
|
|
and ( name like concat('%', #{name}, '%')
|
|
|
|
|
<!--and ( name like concat('%', #{name}, '%')
|
|
|
|
|
or hz_name like concat('%', #{name}, '%')
|
|
|
|
|
or other_name like concat('%', #{name}, '%')
|
|
|
|
|
or used_name like concat('%', #{name}, '%')
|
|
|
|
|
or jhr1 like concat('%', #{name}, '%')
|
|
|
|
|
or jhr2 like concat('%', #{name}, '%')
|
|
|
|
|
)-->
|
|
|
|
|
and (
|
|
|
|
|
(name like concat('%', #{name}, '%')OR to_pinyin ( name ) LIKE CONCAT( '%', to_pinyin ( #{name} ), '%'
|
|
|
|
|
))
|
|
|
|
|
or
|
|
|
|
|
(hz_name like concat('%', #{name}, '%')OR to_pinyin ( hz_name ) LIKE CONCAT( '%', to_pinyin ( #{name} ),
|
|
|
|
|
'%' ))
|
|
|
|
|
or
|
|
|
|
|
(other_name like concat('%', #{name}, '%')OR to_pinyin ( other_name ) LIKE CONCAT( '%', to_pinyin (
|
|
|
|
|
#{name} ), '%' ))
|
|
|
|
|
or
|
|
|
|
|
(used_name like concat('%', #{name}, '%')OR to_pinyin ( used_name ) LIKE CONCAT( '%', to_pinyin (
|
|
|
|
|
#{name} ), '%' ))
|
|
|
|
|
or
|
|
|
|
|
(jhr1 like concat('%', #{name}, '%')OR to_pinyin ( jhr1 ) LIKE CONCAT( '%', to_pinyin ( #{name} ), '%'
|
|
|
|
|
))
|
|
|
|
|
or
|
|
|
|
|
(jhr2 like concat('%', #{name}, '%')OR to_pinyin ( jhr2 ) LIKE CONCAT( '%', to_pinyin ( #{name} ), '%'
|
|
|
|
|
))
|
|
|
|
|
)
|
|
|
|
|
</if>
|
|
|
|
|
<if test="birthday != null and birthday != ''">
|
|
|
|
|
and birthday like concat('%', #{birthday}, '%')
|
|
|
|
|
and birthday like concat('%', #{birthday},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cardId != null and cardId != ''">
|
|
|
|
|
and card_id like concat('%', #{cardId}, '%')
|
|
|
|
|
@ -114,13 +133,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="zyjfwcs != null and zyjfwcs != ''">and zyjfwcs = #{zyjfwcs}</if>
|
|
|
|
|
<if test="bxsqtzz != null and bxsqtzz != ''">and bxsqtzz = #{bxsqtzz}</if>
|
|
|
|
|
<if test="gmzdhhmqfjgjrq != null and gmzdhhmqfjgjrq != ''">and gmzdhhmqfjgjrq = #{gmzdhhmqfjgjrq}</if>
|
|
|
|
|
<if test="hsyhdqlbxshsdjhk != null and hsyhdqlbxshsdjhk != ''"> and hsyhdqlbxshsdjhk = #{hsyhdqlbxshsdjhk}</if>
|
|
|
|
|
<if test="hsybxshcqlhsdjhk != null and hsybxshcqlhsdjhk != ''"> and hsybxshcqlhsdjhk = #{hsybxshcqlhsdjhk}</if>
|
|
|
|
|
<if test="hsyhdqlbxshsdjhk != null and hsyhdqlbxshsdjhk != ''">and hsyhdqlbxshsdjhk = #{hsyhdqlbxshsdjhk}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="hsybxshcqlhsdjhk != null and hsybxshcqlhsdjhk != ''">and hsybxshcqlhsdjhk = #{hsybxshcqlhsdjhk}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="hshyqwhd != null and hshyqwhd != ''">and hshyqwhd = #{hshyqwhd}</if>
|
|
|
|
|
<if test="zxhkrq != null and zxhkrq != ''">and zxhkrq = #{zxhkrq}</if>
|
|
|
|
|
<if test="zxhkyy != null and zxhkyy != ''">and zxhkyy = #{zxhkyy}</if>
|
|
|
|
|
<if test="hkdjsxbgjznrsjjblrz1 != null and hkdjsxbgjznrsjjblrz1 != ''"> and hkdjsxbgjznrsjjblrz1 = #{hkdjsxbgjznrsjjblrz1}</if>
|
|
|
|
|
<if test="hkdjsxbgjznrsjjblrz2 != null and hkdjsxbgjznrsjjblrz2 != ''"> and hkdjsxbgjznrsjjblrz2 = #{hkdjsxbgjznrsjjblrz2}</if>
|
|
|
|
|
<if test="hkdjsxbgjznrsjjblrz1 != null and hkdjsxbgjznrsjjblrz1 != ''">and hkdjsxbgjznrsjjblrz1 =
|
|
|
|
|
#{hkdjsxbgjznrsjjblrz1}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="hkdjsxbgjznrsjjblrz2 != null and hkdjsxbgjznrsjjblrz2 != ''">and hkdjsxbgjznrsjjblrz2 =
|
|
|
|
|
#{hkdjsxbgjznrsjjblrz2}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="jiguan != null and jiguan != ''">and jiguan = #{jiguan}</if>
|
|
|
|
|
<if test="xzz != null and xzz != ''">and xzz = #{xzz}</if>
|
|
|
|
|
<if test="hzName != null and hzName != ''">and hz_name like concat('%', #{hzName}, '%')</if>
|
|
|
|
|
@ -154,7 +179,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="userId != null ">and uc.user_id = #{userId}</if>
|
|
|
|
|
<if test="ywType != null and ywType != ''">and yw_type = #{ywType}</if>
|
|
|
|
|
<if test="name != null and name != ''">
|
|
|
|
|
and ( name like concat('%', #{name}, '%')
|
|
|
|
|
<!--and ( name like concat('%', #{name}, '%')
|
|
|
|
|
or hz_name like concat('%', #{name}, '%')
|
|
|
|
|
or other_name like concat('%', #{name}, '%')
|
|
|
|
|
or used_name like concat('%', #{name}, '%')
|
|
|
|
|
@ -162,6 +187,27 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
or jhr2 like concat('%', #{name}, '%')
|
|
|
|
|
or birthday like concat('%', #{name}, '%')
|
|
|
|
|
or card_id like concat('%', #{name}, '%')
|
|
|
|
|
)-->
|
|
|
|
|
and (
|
|
|
|
|
(name like concat('%', #{name}, '%')OR to_pinyin ( name ) LIKE CONCAT( '%', to_pinyin ( #{name} ), '%'
|
|
|
|
|
))
|
|
|
|
|
or
|
|
|
|
|
(hz_name like concat('%', #{name}, '%')OR to_pinyin ( hz_name ) LIKE CONCAT( '%', to_pinyin ( #{name} ),
|
|
|
|
|
'%' ))
|
|
|
|
|
or
|
|
|
|
|
(other_name like concat('%', #{name}, '%')OR to_pinyin ( other_name ) LIKE CONCAT( '%', to_pinyin (
|
|
|
|
|
#{name} ), '%' ))
|
|
|
|
|
or
|
|
|
|
|
(used_name like concat('%', #{name}, '%')OR to_pinyin ( used_name ) LIKE CONCAT( '%', to_pinyin (
|
|
|
|
|
#{name} ), '%' ))
|
|
|
|
|
or
|
|
|
|
|
(jhr1 like concat('%', #{name}, '%')OR to_pinyin ( jhr1 ) LIKE CONCAT( '%', to_pinyin ( #{name} ), '%'
|
|
|
|
|
))
|
|
|
|
|
or
|
|
|
|
|
(jhr2 like concat('%', #{name}, '%')OR to_pinyin ( jhr2 ) LIKE CONCAT( '%', to_pinyin ( #{name} ), '%'
|
|
|
|
|
))
|
|
|
|
|
or birthday like concat('%', #{name}, '%')
|
|
|
|
|
or card_id like concat('%', #{name}, '%')
|
|
|
|
|
)
|
|
|
|
|
</if>
|
|
|
|
|
</where>
|
|
|
|
|
|