增加一些模糊查询的字段

master
hansha 1 year ago
parent fe7bf739f9
commit 0b348e38b0

@ -58,16 +58,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="ywType != null and ywType != ''"> and yw_type = #{ywType}</if> <if test="ywType != null and ywType != ''"> and yw_type = #{ywType}</if>
<if test="muId != null "> and b.mu_id = #{muId}</if> <if test="muId != null "> and b.mu_id = #{muId}</if>
<if test="muPath != null and muPath != ''"> and mu_path = #{muPath}</if> <if test="muPath != null and muPath != ''"> and mu_path = #{muPath}</if>
<if test="birthNum != null and birthNum != ''"> and birth_num = #{birthNum}</if> <if test="birthNum != null and birthNum != ''"> and birth_num like concat('%', #{birthNum}, '%') </if>
<if test="name != null and name != ''"> <if test="name != null and name != ''">
and (name like concat('%', #{name}, '%') and (name like concat('%', #{name}, '%')
or m_name like concat('%', #{name}, '%') or m_name like concat('%', #{name}, '%')
or f_name like concat('%', #{name}, '%') or f_name like concat('%', #{name}, '%')
) )
</if> </if>
<if test="birthday != null "> and birthday = #{birthday}</if> <if test="birthday != null "> and birthday like concat('%', #{birthday}, '%') </if>
<if test="sex != null and sex != ''"> and sex = #{sex}</if> <if test="sex != null and sex != ''"> and sex = #{sex}</if>
<if test="bornAddress != null and bornAddress != ''"> and born_address = #{bornAddress}</if> <if test="bornAddress != null and bornAddress != ''"> and born_address like concat('%', #{bornAddress}, '%') </if>
<if test="mName != null and mName != ''"> and m_name like concat('%', #{mName}, '%')</if> <if test="mName != null and mName != ''"> and m_name like concat('%', #{mName}, '%')</if>
<if test="mAge != null and mAge != ''"> and m_age = #{mAge}</if> <if test="mAge != null and mAge != ''"> and m_age = #{mAge}</if>
<if test="mGj != null and mGj != ''"> and m_gj = #{mGj}</if> <if test="mGj != null and mGj != ''"> and m_gj = #{mGj}</if>
@ -81,7 +81,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="homeAddress != null and homeAddress != ''"> and home_address = #{homeAddress}</if> <if test="homeAddress != null and homeAddress != ''"> and home_address = #{homeAddress}</if>
<if test="momSign != null and momSign != ''"> and mom_sign = #{momSign}</if> <if test="momSign != null and momSign != ''"> and mom_sign = #{momSign}</if>
<if test="jsrySign != null and jsrySign != ''"> and jsry_sign = #{jsrySign}</if> <if test="jsrySign != null and jsrySign != ''"> and jsry_sign = #{jsrySign}</if>
<if test="jsUnit != null and jsUnit != ''"> and js_unit = #{jsUnit}</if> <if test="jsUnit != null and jsUnit != ''"> and js_unit like concat('%', #{jsUnit}, '%')</if>
<if test="djType != null and djType != ''"> and dj_type = #{djType}</if> <if test="djType != null and djType != ''"> and dj_type = #{djType}</if>
<if test="picIds != null and picIds != ''"> and pic_ids = #{picIds}</if> <if test="picIds != null and picIds != ''"> and pic_ids = #{picIds}</if>
<if test="pictures != null and pictures != ''"> and pictures = #{pictures}</if> <if test="pictures != null and pictures != ''"> and pictures = #{pictures}</if>

@ -97,10 +97,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="jhr2 != null and jhr2 != ''"> and jhr2 = #{jhr2}</if> <if test="jhr2 != null and jhr2 != ''"> and jhr2 = #{jhr2}</if>
<if test="jhgx2 != null and jhgx2 != ''"> and jhgx2 = #{jhgx2}</if> <if test="jhgx2 != null and jhgx2 != ''"> and jhgx2 = #{jhgx2}</if>
<if test="gmcszqfrq != null and gmcszqfrq != ''"> and gmcszqfrq = #{gmcszqfrq}</if> <if test="gmcszqfrq != null and gmcszqfrq != ''"> and gmcszqfrq = #{gmcszqfrq}</if>
<if test="birthday != null and birthday != ''"> and birthday = #{birthday}</if> <if test="birthday != null and birthday != ''">
and birthday like concat('%', #{birthday}, '%') </if>
<if test="address != null and address != ''"> and address = #{address}</if> <if test="address != null and address != ''"> and address = #{address}</if>
<if test="yj != null and yj != ''"> and yj = #{yj}</if> <if test="yj != null and yj != ''"> and yj = #{yj}</if>
<if test="nation != null and nation != ''"> and nation = #{nation}</if> <if test="nation != null and nation != ''"> and nation like concat('%', #{nation}, '%') </if>
<if test="zjxy != null and zjxy != ''"> and zjxy = #{zjxy}</if> <if test="zjxy != null and zjxy != ''"> and zjxy = #{zjxy}</if>
<if test="whcd != null and whcd != ''"> and whcd = #{whcd}</if> <if test="whcd != null and whcd != ''"> and whcd = #{whcd}</if>
<if test="hyzk != null and hyzk != ''"> and hyzk = #{hyzk}</if> <if test="hyzk != null and hyzk != ''"> and hyzk = #{hyzk}</if>
@ -127,7 +128,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="sljmsfzqm != null and sljmsfzqm != ''"> and sljmsfzqm = #{sljmsfzqm}</if> <if test="sljmsfzqm != null and sljmsfzqm != ''"> and sljmsfzqm = #{sljmsfzqm}</if>
<if test="qfyj != null and qfyj != ''"> and qfyj = #{qfyj}</if> <if test="qfyj != null and qfyj != ''"> and qfyj = #{qfyj}</if>
<if test="yxrq != null and yxrq != ''"> and yxrq = #{yxrq}</if> <if test="yxrq != null and yxrq != ''"> and yxrq = #{yxrq}</if>
<if test="cardId != null and cardId != ''"> and card_id = #{cardId}</if> <if test="cardId != null and cardId != ''"> and card_id concat('%', #{cardId}, '%')</if>
<if test="picIds != null and picIds != ''"> and pic_ids = #{picIds}</if> <if test="picIds != null and picIds != ''"> and pic_ids = #{picIds}</if>
<if test="pictures != null and pictures != ''"> and pictures = #{pictures}</if> <if test="pictures != null and pictures != ''"> and pictures = #{pictures}</if>
<if test="allPicIds != null and allPicIds != ''"> and all_pic_ids = #{allPicIds}</if> <if test="allPicIds != null and allPicIds != ''"> and all_pic_ids = #{allPicIds}</if>
@ -163,15 +164,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="otherName != null and otherName != ''"> and other_name like concat('%', #{otherName}, '%')</if> <if test="otherName != null and otherName != ''"> and other_name like concat('%', #{otherName}, '%')</if>
<if test="usedName != null and usedName != ''"> and used_name like concat('%', #{usedName}, '%')</if> <if test="usedName != null and usedName != ''"> and used_name like concat('%', #{usedName}, '%')</if>
<if test="sex != null and sex != ''"> and sex = #{sex}</if> <if test="sex != null and sex != ''"> and sex = #{sex}</if>
<if test="jhr1 != null and jhr1 != ''"> and jhr1 = #{jhr1}</if> <if test="jhr1 != null and jhr1 != ''"> and jhr1 like concat('%', #{jhr1}, '%') </if>
<if test="jhgx1 != null and jhgx1 != ''"> and jhgx1 = #{jhgx1}</if> <if test="jhgx1 != null and jhgx1 != ''"> and jhgx1 = #{jhgx1}</if>
<if test="jhr2 != null and jhr2 != ''"> and jhr2 = #{jhr2}</if> <if test="jhr2 != null and jhr2 != ''"> and jhr2 like concat('%', #{jhr2}, '%') </if>
<if test="jhgx2 != null and jhgx2 != ''"> and jhgx2 = #{jhgx2}</if> <if test="jhgx2 != null and jhgx2 != ''"> and jhgx2 = #{jhgx2}</if>
<if test="gmcszqfrq != null and gmcszqfrq != ''"> and gmcszqfrq = #{gmcszqfrq}</if> <if test="gmcszqfrq != null and gmcszqfrq != ''"> and gmcszqfrq = #{gmcszqfrq}</if>
<if test="birthday != null and birthday != ''"> and birthday = #{birthday}</if> <if test="birthday != null and birthday != ''">
and birthday like concat('%', #{birthday}, '%') </if>
<if test="address != null and address != ''"> and address = #{address}</if> <if test="address != null and address != ''"> and address = #{address}</if>
<if test="yj != null and yj != ''"> and yj = #{yj}</if> <if test="yj != null and yj != ''"> and yj = #{yj}</if>
<if test="nation != null and nation != ''"> and nation = #{nation}</if> <if test="nation != null and nation != ''"> and nation like concat('%', #{nation}, '%') </if>
<if test="zjxy != null and zjxy != ''"> and zjxy = #{zjxy}</if> <if test="zjxy != null and zjxy != ''"> and zjxy = #{zjxy}</if>
<if test="whcd != null and whcd != ''"> and whcd = #{whcd}</if> <if test="whcd != null and whcd != ''"> and whcd = #{whcd}</if>
<if test="hyzk != null and hyzk != ''"> and hyzk = #{hyzk}</if> <if test="hyzk != null and hyzk != ''"> and hyzk = #{hyzk}</if>
@ -198,7 +200,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="sljmsfzqm != null and sljmsfzqm != ''"> and sljmsfzqm = #{sljmsfzqm}</if> <if test="sljmsfzqm != null and sljmsfzqm != ''"> and sljmsfzqm = #{sljmsfzqm}</if>
<if test="qfyj != null and qfyj != ''"> and qfyj = #{qfyj}</if> <if test="qfyj != null and qfyj != ''"> and qfyj = #{qfyj}</if>
<if test="yxrq != null and yxrq != ''"> and yxrq = #{yxrq}</if> <if test="yxrq != null and yxrq != ''"> and yxrq = #{yxrq}</if>
<if test="cardId != null and cardId != ''"> and card_id = #{cardId}</if> <if test="cardId != null and cardId != ''"> and card_id concat('%', #{cardId}, '%')</if>
<if test="picIds != null and picIds != ''"> and pic_ids = #{picIds}</if> <if test="picIds != null and picIds != ''"> and pic_ids = #{picIds}</if>
<if test="pictures != null and pictures != ''"> and pictures = #{pictures}</if> <if test="pictures != null and pictures != ''"> and pictures = #{pictures}</if>
<if test="allPicIds != null and allPicIds != ''"> and all_pic_ids = #{allPicIds}</if> <if test="allPicIds != null and allPicIds != ''"> and all_pic_ids = #{allPicIds}</if>

@ -42,6 +42,7 @@
<if test="ywType != null and ywType != ''"> and yw_type = #{ywType}</if> <if test="ywType != null and ywType != ''"> and yw_type = #{ywType}</if>
<if test="recognize != null and recognize != ''"> and recognize = #{recognize}</if> <if test="recognize != null and recognize != ''"> and recognize = #{recognize}</if>
<if test="errorCorrect != null and errorCorrect != ''"> and error_correct = #{errorCorrect}</if> <if test="errorCorrect != null and errorCorrect != ''"> and error_correct = #{errorCorrect}</if>
<if test="createTime != null"> and create_time = #{createTime}</if>
</where> </where>
order by id DESC order by id DESC
</select> </select>

@ -59,8 +59,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="ywType != null and ywType != ''"> and yw_type = #{ywType}</if> <if test="ywType != null and ywType != ''"> and yw_type = #{ywType}</if>
<if test="muId != null "> and q.mu_id = #{muId}</if> <if test="muId != null "> and q.mu_id = #{muId}</if>
<if test="muPath != null and muPath != ''"> and mu_path = #{muPath}</if> <if test="muPath != null and muPath != ''"> and mu_path = #{muPath}</if>
<if test="fwUnit != null and fwUnit != ''"> and fw_unit = #{fwUnit}</if> <if test="fwUnit != null and fwUnit != ''"> and fw_unit like concat('%', #{fwUnit}, '%') </if>
<if test="wjXh != null and wjXh != ''"> and wj_xh = #{wjXh}</if> <if test="wjXh != null and wjXh != ''"> and wj_xh like concat('%', #{wjXh}, '%') </if>
<if test="name1 != null and name1 != ''"> <if test="name1 != null and name1 != ''">
and ( name1 like concat('%', #{name1}, '%') and ( name1 like concat('%', #{name1}, '%')
or name2 like concat('%', #{name1}, '%') or name2 like concat('%', #{name1}, '%')
@ -69,7 +69,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
) )
</if> </if>
<if test="sex1 != null and sex1 != ''"> and sex1 = #{sex1}</if> <if test="sex1 != null and sex1 != ''"> and sex1 = #{sex1}</if>
<if test="cardId1 != null and cardId1 != ''"> and card_id1 = #{cardId1}</if> <if test="cardId1 != null and cardId1 != ''">
/*and (card_id1 like concat('%', #{cardId1}, '%')
or cardId2 like concat('%', #{cardId1}, '%')
or cardId3 like concat('%', #{cardId1}, '%')
or cardId4 like concat('%', #{cardId1}, '%')
)*/
and card_id1 like concat('%', #{cardId1}, '%')
</if>
<if test="name2 != null and name2 != ''"> and name2 = #{name2}</if> <if test="name2 != null and name2 != ''"> and name2 = #{name2}</if>
<if test="sex2 != null and sex2 != ''"> and sex2 = #{sex2}</if> <if test="sex2 != null and sex2 != ''"> and sex2 = #{sex2}</if>
<if test="cardId2 != null and cardId2 != ''"> and card_id2 = #{cardId2}</if> <if test="cardId2 != null and cardId2 != ''"> and card_id2 = #{cardId2}</if>

@ -55,8 +55,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="ywType != null and ywType != ''"> and yw_type = #{ywType}</if> <if test="ywType != null and ywType != ''"> and yw_type = #{ywType}</if>
<if test="muId != null "> and y.mu_id = #{muId}</if> <if test="muId != null "> and y.mu_id = #{muId}</if>
<if test="muPath != null and muPath != ''"> and mu_path = #{muPath}</if> <if test="muPath != null and muPath != ''"> and mu_path = #{muPath}</if>
<if test="year != null and year != ''"> and year = #{year}</if> <if test="year != null and year != ''"> and year like concat('%', #{year}, '%') </if>
<if test="xh != null and xh != ''"> and xh = #{xh}</if> <if test="xh != null and xh != ''"> and xh like concat('%', #{xh}, '%') </if>
<if test="wName != null and wName != ''"> <if test="wName != null and wName != ''">
and ( w_name like concat('%', #{wName}, '%') and ( w_name like concat('%', #{wName}, '%')
or m_name like concat('%', #{wName}, '%') or m_name like concat('%', #{wName}, '%')
@ -67,8 +67,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="mName != null and mName != ''"> and m_name like concat('%', #{mName}, '%')</if> <if test="mName != null and mName != ''"> and m_name like concat('%', #{mName}, '%')</if>
<if test="mUnit != null and mUnit != ''"> and m_unit = #{mUnit}</if> <if test="mUnit != null and mUnit != ''"> and m_unit = #{mUnit}</if>
<if test="mCardId != null and mCardId != ''"> and m_card_id = #{mCardId}</if> <if test="mCardId != null and mCardId != ''"> and m_card_id = #{mCardId}</if>
<if test="syzh != null and syzh != ''"> and syzh = #{syzh}</if> <if test="syzh != null and syzh != ''"> and syzh like concat('%', #{syzh}, '%')</if>
<if test="birthday != null "> and birthday = #{birthday}</if> <if test="birthday != null "> and birthday like concat('%', #{birthday}, '%') </if>
<if test="hospital != null and hospital != ''"> and hospital = #{hospital}</if> <if test="hospital != null and hospital != ''"> and hospital = #{hospital}</if>
<if test="babySex != null and babySex != ''"> and baby_sex = #{babySex}</if> <if test="babySex != null and babySex != ''"> and baby_sex = #{babySex}</if>
<if test="suggest != null and suggest != ''"> and suggest = #{suggest}</if> <if test="suggest != null and suggest != ''"> and suggest = #{suggest}</if>

@ -61,7 +61,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="ywType != null and ywType != ''"> and yw_type = #{ywType}</if> <if test="ywType != null and ywType != ''"> and yw_type = #{ywType}</if>
<if test="muId != null "> and z.mu_id = #{muId}</if> <if test="muId != null "> and z.mu_id = #{muId}</if>
<if test="muPath != null and muPath != ''"> and mu_path = #{muPath}</if> <if test="muPath != null and muPath != ''"> and mu_path = #{muPath}</if>
<if test="num != null and num != ''"> and num = #{num}</if> <if test="num != null and num != ''"> and num like concat('%', #{num}, '%') </if>
<if test="name != null and name != ''"> <if test="name != null and name != ''">
and ( name like concat('%', #{name}, '%') and ( name like concat('%', #{name}, '%')
or name1 like concat('%', #{name}, '%') or name1 like concat('%', #{name}, '%')
@ -89,8 +89,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="sex5 != null and sex5 != ''"> and sex5 = #{sex5}</if> <if test="sex5 != null and sex5 != ''"> and sex5 = #{sex5}</if>
<if test="jg1 != null and jg1 != ''"> and jg1 = #{jg1}</if> <if test="jg1 != null and jg1 != ''"> and jg1 = #{jg1}</if>
<if test="jg2 != null and jg2 != ''"> and jg2 = #{jg2}</if> <if test="jg2 != null and jg2 != ''"> and jg2 = #{jg2}</if>
<if test="cbr != null and cbr != ''"> and cbr = #{cbr}</if> <if test="cbr != null and cbr != ''"> and cbr like concat('%', #{cbr}, '%') </if>
<if test="cbDate != null "> and cb_date = #{cbDate}</if> <if test="cbDate != null "> and cb_date like concat('%', #{cbDate}, '%') </if>
<if test="picIds != null and picIds != ''"> and pic_ids = #{picIds}</if> <if test="picIds != null and picIds != ''"> and pic_ids = #{picIds}</if>
<if test="pictures != null and pictures != ''"> and pictures = #{pictures}</if> <if test="pictures != null and pictures != ''"> and pictures = #{pictures}</if>
<if test="allPicIds != null and allPicIds != ''"> and all_pic_ids = #{allPicIds}</if> <if test="allPicIds != null and allPicIds != ''"> and all_pic_ids = #{allPicIds}</if>

@ -70,7 +70,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="ywType != null and ywType != ''"> and yw_type = #{ywType}</if> <if test="ywType != null and ywType != ''"> and yw_type = #{ywType}</if>
<if test="muId != null "> and z.mu_id = #{muId}</if> <if test="muId != null "> and z.mu_id = #{muId}</if>
<if test="muPath != null and muPath != ''"> and mu_path = #{muPath}</if> <if test="muPath != null and muPath != ''"> and mu_path = #{muPath}</if>
<if test="num != null and num != ''"> and num = #{num}</if> <if test="num != null and num != ''"> and num like concat('%',#{num}, '%') </if>
<if test="name != null and name != ''"> <if test="name != null and name != ''">
and ( name like concat('%', #{name}, '%') and ( name like concat('%', #{name}, '%')
or name1 like concat('%', #{name}, '%') or name1 like concat('%', #{name}, '%')
@ -79,7 +79,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
or name4 like concat('%', #{name}, '%') or name4 like concat('%', #{name}, '%')
) )
</if> </if>
<if test="cardId != null and cardId != ''"> and card_id = #{cardId}</if> <if test="cardId != null and cardId != ''">
and card_id like concat('%', #{cardId}, '%')
</if>
<if test="address != null and address != ''"> and address = #{address}</if> <if test="address != null and address != ''"> and address = #{address}</if>
<if test="djJg != null and djJg != ''"> and dj_jg = #{djJg}</if> <if test="djJg != null and djJg != ''"> and dj_jg = #{djJg}</if>
<if test="relation1 != null and relation1 != ''"> and relation1 = #{relation1}</if> <if test="relation1 != null and relation1 != ''"> and relation1 = #{relation1}</if>

Loading…
Cancel
Save