|
@@ -248,9 +248,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="sfzlx != null and sfzlx != ''"> and a.sfzlx = #{sfzlx}</if>
|
|
|
<if test="sfzhm != null and sfzhm != ''"> and a.sfzhm like concat('%', #{sfzhm}, '%')</if>
|
|
|
<if test="xb != null and xb != ''"> and a.xb = #{xb}</if>
|
|
|
+ <if test="whcd != null and whcd != ''"> and a.whcd = #{whcd}</if>
|
|
|
+ <if test='isGbmb == "01"'> and b.dwxz in ('30','31','32','33','40','41','42','43') </if>
|
|
|
+ <if test='isGbmb == "00"'> and b.dwxz in ('10','20','21','22','23') </if>
|
|
|
+ <if test="isGbmy != null and isGbmy != ''"> and b.is_gbmy = #{isGbmy}</if>
|
|
|
<if test="lxdh != null and lxdh != ''"> and a.lxdh like concat('%', #{lxdh}, '%')</if>
|
|
|
<if test="shbn != null and shbn != ''"> and a.shbn = #{shbn}</if>
|
|
|
- <if test="cyrq != null and cyrq != ''"> and a.cyrq >= #{cyrq}</if>
|
|
|
+ <if test="cyrq != null and cyrq != ''"> and a.cyrq <= #{cyrq}</if>
|
|
|
<if test="zzzt != null and zzzt != ''"> and a.zzzt = #{zzzt}</if>
|
|
|
<if test="zylx != null and zylx != ''"> and a.zylx = #{zylx}</if>
|
|
|
<if test="gwlx != null and gwlx != ''"> and a.gwlx = #{gwlx}</if>
|
|
@@ -280,6 +284,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="xm != null and xm != ''"> and a.xm like concat('%', #{xm}, '%')</if>
|
|
|
<if test="sfzhm != null and sfzhm != ''"> and a.sfzhm like concat('%', #{sfzhm}, '%')</if>
|
|
|
<if test="jgmc != null and jgmc != ''"> and b.jgmc like concat('%', #{jgmc}, '%')</if>
|
|
|
+
|
|
|
+ <if test="isGbmb!= null and isGbmb != ''">
|
|
|
+ <if test='isGbmb.contains("01") and isGbmb.contains("00")'> and b.dwxz in ('10','20','21','22','23','30','31','32','33','40','41','42','43') </if>
|
|
|
+ <if test='isGbmb == "00"'> and b.dwxz in ('10','20','21','22','23') </if>
|
|
|
+ <if test='isGbmb == "01"'> and b.dwxz in ('30','31','32','33','40','41','42','43') </if>
|
|
|
+ </if>
|
|
|
+ <if test="isGbmy != null and isGbmy != ''"> and b.is_gbmy in
|
|
|
+ <foreach item="isGbmy" index="index" collection="isGbmy.split(',')" open="(" separator="," close=")">
|
|
|
+ #{isGbmy}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
+
|
|
|
<if test="zylx != null and zylx != ''">
|
|
|
AND a.zylx in
|
|
|
<foreach item="zylx" index="index" collection="zylx.split(',')" open="(" separator="," close=")">
|
|
@@ -299,7 +315,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</foreach>
|
|
|
</if>
|
|
|
<if test="lxdh != null and lxdh != ''"> and a.lxdh like concat('%', #{lxdh}, '%')</if>
|
|
|
- <if test="cyrq != null and cyrq != ''"> and a.cyrq >= #{cyrq}</if>
|
|
|
+ <if test="cyrq != null and cyrq != ''"> and a.cyrq <= #{cyrq}</if>
|
|
|
<if test="params.beginLzsj != null and params.beginLzsj != '' and params.endLzsj != null and params.endLzsj != ''"> and a.lzsj between #{params.beginLzsj} and #{params.endLzsj}</if>
|
|
|
<if test="hlydj != null and hlydj != ''"> and a.hlydj = #{hlydj}</if>
|
|
|
|
|
@@ -331,12 +347,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="params.beginAge != null and params.beginAge != '' and params.endAge != null and params.endAge != ''"> and substring(a.sfzhm, 7, 8) between #{params.beginAge} and #{params.endAge}</if>
|
|
|
<if test="params.beginAge != null and params.beginAge != '' and (params.endAge == null or params.endAge == '')"> and substring(a.sfzhm, 7, 8) >= #{params.beginAge}</if>
|
|
|
<if test="(params.beginAge == null or params.beginAge == '') and params.endAge != null and params.endAge != ''"> and substring(a.sfzhm, 7, 8) <= #{params.endAge}</if>
|
|
|
- <if test="whcd != null and whcd != ''">
|
|
|
- AND a.whcd in
|
|
|
- <foreach item="whcd" index="index" collection="whcd.split(',')" open="(" separator="," close=")">
|
|
|
- #{whcd}
|
|
|
- </foreach>
|
|
|
- </if>
|
|
|
<if test="shbn != null and shbn != ''"> and a.shbn = #{shbn}</if>
|
|
|
<if test="zw != null and zw != ''"> and a.zw like concat('%', #{zw}, '%')</if>
|
|
|
<if test="gwlx != null and gwlx != ''">
|
|
@@ -379,7 +389,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="sfzhm != null and sfzhm != ''"> and a.sfzhm like concat('%', #{sfzhm}, '%')</if>
|
|
|
<if test="xb != null and xb != ''"> and a.xb = #{xb}</if>
|
|
|
<if test="whcd != null and whcd != ''"> and a.whcd = #{whcd}</if>
|
|
|
- <if test="cyrq != null and cyrq != ''"> and a.cyrq >= #{cyrq}</if>
|
|
|
+ <if test="cyrq != null and cyrq != ''"> and a.cyrq <= #{cyrq}</if>
|
|
|
<if test="lxdh != null and lxdh != ''"> and a.lxdh like concat('%', #{lxdh}, '%')</if>
|
|
|
<if test="shbn != null and shbn != ''"> and a.shbn = #{shbn}</if>
|
|
|
<if test="zzzt != null and zzzt != ''"> and a.zzzt = #{zzzt}</if>
|