|
|
|
@ -1,69 +1,69 @@
|
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
|
<!DOCTYPE mapper
|
|
|
|
<!DOCTYPE mapper
|
|
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
<mapper namespace="com.da.dangan.mapper.DaCzrkdjMapper">
|
|
|
|
<mapper namespace="com.da.dangan.mapper.DaCzrkdjMapper">
|
|
|
|
<resultMap type="DaCzrkdj" id="DaCzrkdjResult">
|
|
|
|
<resultMap type="DaCzrkdj" id="DaCzrkdjResult">
|
|
|
|
<result property="id" column="id" />
|
|
|
|
<result property="id" column="id"/>
|
|
|
|
<result property="taskId" column="task_id" />
|
|
|
|
<result property="taskId" column="task_id"/>
|
|
|
|
<result property="ywType" column="yw_type" />
|
|
|
|
<result property="ywType" column="yw_type"/>
|
|
|
|
<result property="muId" column="mu_id" />
|
|
|
|
<result property="muId" column="mu_id"/>
|
|
|
|
<result property="muPath" column="mu_path" />
|
|
|
|
<result property="muPath" column="mu_path"/>
|
|
|
|
<result property="relation" column="relation" />
|
|
|
|
<result property="relation" column="relation"/>
|
|
|
|
<result property="name" column="name" />
|
|
|
|
<result property="name" column="name"/>
|
|
|
|
<result property="otherName" column="other_name" />
|
|
|
|
<result property="otherName" column="other_name"/>
|
|
|
|
<result property="usedName" column="used_name" />
|
|
|
|
<result property="usedName" column="used_name"/>
|
|
|
|
<result property="sex" column="sex" />
|
|
|
|
<result property="sex" column="sex"/>
|
|
|
|
<result property="jhr1" column="jhr1" />
|
|
|
|
<result property="jhr1" column="jhr1"/>
|
|
|
|
<result property="jhgx1" column="jhgx1" />
|
|
|
|
<result property="jhgx1" column="jhgx1"/>
|
|
|
|
<result property="jhr2" column="jhr2" />
|
|
|
|
<result property="jhr2" column="jhr2"/>
|
|
|
|
<result property="jhgx2" column="jhgx2" />
|
|
|
|
<result property="jhgx2" column="jhgx2"/>
|
|
|
|
<result property="gmcszqfrq" column="gmcszqfrq" />
|
|
|
|
<result property="gmcszqfrq" column="gmcszqfrq"/>
|
|
|
|
<result property="birthday" column="birthday" />
|
|
|
|
<result property="birthday" column="birthday"/>
|
|
|
|
<result property="address" column="address" />
|
|
|
|
<result property="address" column="address"/>
|
|
|
|
<result property="yj" column="yj" />
|
|
|
|
<result property="yj" column="yj"/>
|
|
|
|
<result property="nation" column="nation" />
|
|
|
|
<result property="nation" column="nation"/>
|
|
|
|
<result property="zjxy" column="zjxy" />
|
|
|
|
<result property="zjxy" column="zjxy"/>
|
|
|
|
<result property="whcd" column="whcd" />
|
|
|
|
<result property="whcd" column="whcd"/>
|
|
|
|
<result property="hyzk" column="hyzk" />
|
|
|
|
<result property="hyzk" column="hyzk"/>
|
|
|
|
<result property="zyjfwcs" column="zyjfwcs" />
|
|
|
|
<result property="zyjfwcs" column="zyjfwcs"/>
|
|
|
|
<result property="bxsqtzz" column="bxsqtzz" />
|
|
|
|
<result property="bxsqtzz" column="bxsqtzz"/>
|
|
|
|
<result property="gmzdhhmqfjgjrq" column="gmzdhhmqfjgjrq" />
|
|
|
|
<result property="gmzdhhmqfjgjrq" column="gmzdhhmqfjgjrq"/>
|
|
|
|
<result property="hsyhdqlbxshsdjhk" column="hsyhdqlbxshsdjhk" />
|
|
|
|
<result property="hsyhdqlbxshsdjhk" column="hsyhdqlbxshsdjhk"/>
|
|
|
|
<result property="hsybxshcqlhsdjhk" column="hsybxshcqlhsdjhk" />
|
|
|
|
<result property="hsybxshcqlhsdjhk" column="hsybxshcqlhsdjhk"/>
|
|
|
|
<result property="hshyqwhd" column="hshyqwhd" />
|
|
|
|
<result property="hshyqwhd" column="hshyqwhd"/>
|
|
|
|
<result property="zxhkrq" column="zxhkrq" />
|
|
|
|
<result property="zxhkrq" column="zxhkrq"/>
|
|
|
|
<result property="zxhkyy" column="zxhkyy" />
|
|
|
|
<result property="zxhkyy" column="zxhkyy"/>
|
|
|
|
<result property="hkdjsxbgjznrsjjblrz1" column="hkdjsxbgjznrsjjblrz1" />
|
|
|
|
<result property="hkdjsxbgjznrsjjblrz1" column="hkdjsxbgjznrsjjblrz1"/>
|
|
|
|
<result property="hkdjsxbgjznrsjjblrz2" column="hkdjsxbgjznrsjjblrz2" />
|
|
|
|
<result property="hkdjsxbgjznrsjjblrz2" column="hkdjsxbgjznrsjjblrz2"/>
|
|
|
|
<result property="jiguan" column="jiguan" />
|
|
|
|
<result property="jiguan" column="jiguan"/>
|
|
|
|
<result property="xzz" column="xzz" />
|
|
|
|
<result property="xzz" column="xzz"/>
|
|
|
|
<result property="hzName" column="hz_name" />
|
|
|
|
<result property="hzName" column="hz_name"/>
|
|
|
|
<result property="hb" column="hb" />
|
|
|
|
<result property="hb" column="hb"/>
|
|
|
|
<result property="djrq" column="djrq" />
|
|
|
|
<result property="djrq" column="djrq"/>
|
|
|
|
<result property="byzk" column="byzk" />
|
|
|
|
<result property="byzk" column="byzk"/>
|
|
|
|
<result property="height" column="height" />
|
|
|
|
<result property="height" column="height"/>
|
|
|
|
<result property="blood" column="blood" />
|
|
|
|
<result property="blood" column="blood"/>
|
|
|
|
<result property="zy" column="zy" />
|
|
|
|
<result property="zy" column="zy"/>
|
|
|
|
<result property="slReason" column="sl_reason" />
|
|
|
|
<result property="slReason" column="sl_reason"/>
|
|
|
|
<result property="sljmsfzqm" column="sljmsfzqm" />
|
|
|
|
<result property="sljmsfzqm" column="sljmsfzqm"/>
|
|
|
|
<result property="qfyj" column="qfyj" />
|
|
|
|
<result property="qfyj" column="qfyj"/>
|
|
|
|
<result property="yxrq" column="yxrq" />
|
|
|
|
<result property="yxrq" column="yxrq"/>
|
|
|
|
<result property="cardId" column="card_id" />
|
|
|
|
<result property="cardId" column="card_id"/>
|
|
|
|
<result property="picIds" column="pic_ids" />
|
|
|
|
<result property="picIds" column="pic_ids"/>
|
|
|
|
<result property="pictures" column="pictures" />
|
|
|
|
<result property="pictures" column="pictures"/>
|
|
|
|
<result property="allPicIds" column="all_pic_ids" />
|
|
|
|
<result property="allPicIds" column="all_pic_ids"/>
|
|
|
|
<result property="allPics" column="all_pics" />
|
|
|
|
<result property="allPics" column="all_pics"/>
|
|
|
|
<result property="errorCorrect" column="error_correct" />
|
|
|
|
<result property="errorCorrect" column="error_correct"/>
|
|
|
|
<result property="auditStatus" column="audit_status" />
|
|
|
|
<result property="auditStatus" column="audit_status"/>
|
|
|
|
<result property="auditName" column="audit_name" />
|
|
|
|
<result property="auditName" column="audit_name"/>
|
|
|
|
<result property="auditResult" column="audit_result" />
|
|
|
|
<result property="auditResult" column="audit_result"/>
|
|
|
|
<result property="auditReason" column="audit_reason" />
|
|
|
|
<result property="auditReason" column="audit_reason"/>
|
|
|
|
<result property="remark" column="remark" />
|
|
|
|
<result property="remark" column="remark"/>
|
|
|
|
<result property="createBy" column="create_by" />
|
|
|
|
<result property="createBy" column="create_by"/>
|
|
|
|
<result property="createTime" column="create_time" />
|
|
|
|
<result property="createTime" column="create_time"/>
|
|
|
|
<result property="updateBy" column="update_by" />
|
|
|
|
<result property="updateBy" column="update_by"/>
|
|
|
|
<result property="updateTime" column="update_time" />
|
|
|
|
<result property="updateTime" column="update_time"/>
|
|
|
|
</resultMap>
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
|
|
<sql id="selectDaCzrkdjVo">
|
|
|
|
<sql id="selectDaCzrkdjVo">
|
|
|
|
@ -71,95 +71,141 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectDaCzrkdjList" parameterType="DaCzrkdj" resultMap="DaCzrkdjResult">
|
|
|
|
<select id="selectDaCzrkdjList" parameterType="DaCzrkdj" resultMap="DaCzrkdjResult">
|
|
|
|
select distinct c.* from da_czrkdj c
|
|
|
|
select distinct c.* from da_czrkdj c
|
|
|
|
left join da_user_catalog uc on c.mu_id = uc.mu_id
|
|
|
|
left join da_user_catalog uc on c.mu_id = uc.mu_id
|
|
|
|
<where>
|
|
|
|
<where>
|
|
|
|
<if test="userId != null "> and uc.user_id = #{userId}</if>
|
|
|
|
<if test="userId != null ">and uc.user_id = #{userId}</if>
|
|
|
|
<if test="taskId != null "> and task_id = #{taskId}</if>
|
|
|
|
<if test="taskId != null ">and task_id = #{taskId}</if>
|
|
|
|
<!-- flag=0 展示全部 =1不展示没有姓名的记录 -->
|
|
|
|
<!-- flag=0 展示全部 =1不展示没有姓名的记录 -->
|
|
|
|
<if test="flag != null and flag=='1'.toString()"> and name !='无'</if>
|
|
|
|
<if test="flag != null and flag=='1'.toString()">and name !='无'</if>
|
|
|
|
<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 c.mu_id = #{muId}</if>
|
|
|
|
<if test="muId != null ">and c.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="relation != null and relation != ''"> and relation = #{relation}</if>
|
|
|
|
<if test="relation != null and relation != ''">and relation = #{relation}</if>
|
|
|
|
<if test="name != null and name != ''">
|
|
|
|
<if test="name != null and name != ''">
|
|
|
|
and ( name like concat('%', #{name}, '%')
|
|
|
|
<!--and ( name like concat('%', #{name}, '%')
|
|
|
|
or hz_name like concat('%', #{name}, '%')
|
|
|
|
or hz_name like concat('%', #{name}, '%')
|
|
|
|
or other_name like concat('%', #{name}, '%')
|
|
|
|
or other_name like concat('%', #{name}, '%')
|
|
|
|
or used_name like concat('%', #{name}, '%')
|
|
|
|
or used_name like concat('%', #{name}, '%')
|
|
|
|
or jhr1 like concat('%', #{name}, '%')
|
|
|
|
or jhr1 like concat('%', #{name}, '%')
|
|
|
|
or jhr2 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>
|
|
|
|
<if test="birthday != null and birthday != ''">
|
|
|
|
<if test="birthday != null and birthday != ''">
|
|
|
|
and birthday like concat('%', #{birthday}, '%')
|
|
|
|
and birthday like concat('%', #{birthday},
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="cardId != null and cardId != ''">
|
|
|
|
<if test="cardId != null and cardId != ''">
|
|
|
|
and card_id like concat('%', #{cardId}, '%')
|
|
|
|
and card_id like concat('%', #{cardId}, '%')
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<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 = #{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 = #{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="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 like concat('%', #{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>
|
|
|
|
<if test="zyjfwcs != null and zyjfwcs != ''"> and zyjfwcs = #{zyjfwcs}</if>
|
|
|
|
<if test="zyjfwcs != null and zyjfwcs != ''">and zyjfwcs = #{zyjfwcs}</if>
|
|
|
|
<if test="bxsqtzz != null and bxsqtzz != ''"> and bxsqtzz = #{bxsqtzz}</if>
|
|
|
|
<if test="bxsqtzz != null and bxsqtzz != ''">and bxsqtzz = #{bxsqtzz}</if>
|
|
|
|
<if test="gmzdhhmqfjgjrq != null and gmzdhhmqfjgjrq != ''"> and gmzdhhmqfjgjrq = #{gmzdhhmqfjgjrq}</if>
|
|
|
|
<if test="gmzdhhmqfjgjrq != null and gmzdhhmqfjgjrq != ''">and gmzdhhmqfjgjrq = #{gmzdhhmqfjgjrq}</if>
|
|
|
|
<if test="hsyhdqlbxshsdjhk != null and hsyhdqlbxshsdjhk != ''"> and hsyhdqlbxshsdjhk = #{hsyhdqlbxshsdjhk}</if>
|
|
|
|
<if test="hsyhdqlbxshsdjhk != null and hsyhdqlbxshsdjhk != ''">and hsyhdqlbxshsdjhk = #{hsyhdqlbxshsdjhk}
|
|
|
|
<if test="hsybxshcqlhsdjhk != null and hsybxshcqlhsdjhk != ''"> and hsybxshcqlhsdjhk = #{hsybxshcqlhsdjhk}</if>
|
|
|
|
</if>
|
|
|
|
<if test="hshyqwhd != null and hshyqwhd != ''"> and hshyqwhd = #{hshyqwhd}</if>
|
|
|
|
<if test="hsybxshcqlhsdjhk != null and hsybxshcqlhsdjhk != ''">and hsybxshcqlhsdjhk = #{hsybxshcqlhsdjhk}
|
|
|
|
<if test="zxhkrq != null and zxhkrq != ''"> and zxhkrq = #{zxhkrq}</if>
|
|
|
|
</if>
|
|
|
|
<if test="zxhkyy != null and zxhkyy != ''"> and zxhkyy = #{zxhkyy}</if>
|
|
|
|
<if test="hshyqwhd != null and hshyqwhd != ''">and hshyqwhd = #{hshyqwhd}</if>
|
|
|
|
<if test="hkdjsxbgjznrsjjblrz1 != null and hkdjsxbgjznrsjjblrz1 != ''"> and hkdjsxbgjznrsjjblrz1 = #{hkdjsxbgjznrsjjblrz1}</if>
|
|
|
|
<if test="zxhkrq != null and zxhkrq != ''">and zxhkrq = #{zxhkrq}</if>
|
|
|
|
<if test="hkdjsxbgjznrsjjblrz2 != null and hkdjsxbgjznrsjjblrz2 != ''"> and hkdjsxbgjznrsjjblrz2 = #{hkdjsxbgjznrsjjblrz2}</if>
|
|
|
|
<if test="zxhkyy != null and zxhkyy != ''">and zxhkyy = #{zxhkyy}</if>
|
|
|
|
<if test="jiguan != null and jiguan != ''"> and jiguan = #{jiguan}</if>
|
|
|
|
<if test="hkdjsxbgjznrsjjblrz1 != null and hkdjsxbgjznrsjjblrz1 != ''">and hkdjsxbgjznrsjjblrz1 =
|
|
|
|
<if test="xzz != null and xzz != ''"> and xzz = #{xzz}</if>
|
|
|
|
#{hkdjsxbgjznrsjjblrz1}
|
|
|
|
<if test="hzName != null and hzName != ''"> and hz_name like concat('%', #{hzName}, '%')</if>
|
|
|
|
</if>
|
|
|
|
<if test="hb != null and hb != ''"> and hb = #{hb}</if>
|
|
|
|
<if test="hkdjsxbgjznrsjjblrz2 != null and hkdjsxbgjznrsjjblrz2 != ''">and hkdjsxbgjznrsjjblrz2 =
|
|
|
|
<if test="djrq != null and djrq != ''"> and djrq = #{djrq}</if>
|
|
|
|
#{hkdjsxbgjznrsjjblrz2}
|
|
|
|
<if test="byzk != null and byzk != ''"> and byzk = #{byzk}</if>
|
|
|
|
</if>
|
|
|
|
<if test="height != null and height != ''"> and height = #{height}</if>
|
|
|
|
<if test="jiguan != null and jiguan != ''">and jiguan = #{jiguan}</if>
|
|
|
|
<if test="blood != null and blood != ''"> and blood = #{blood}</if>
|
|
|
|
<if test="xzz != null and xzz != ''">and xzz = #{xzz}</if>
|
|
|
|
<if test="zy != null and zy != ''"> and zy = #{zy}</if>
|
|
|
|
<if test="hzName != null and hzName != ''">and hz_name like concat('%', #{hzName}, '%')</if>
|
|
|
|
<if test="slReason != null and slReason != ''"> and sl_reason = #{slReason}</if>
|
|
|
|
<if test="hb != null and hb != ''">and hb = #{hb}</if>
|
|
|
|
<if test="sljmsfzqm != null and sljmsfzqm != ''"> and sljmsfzqm = #{sljmsfzqm}</if>
|
|
|
|
<if test="djrq != null and djrq != ''">and djrq = #{djrq}</if>
|
|
|
|
<if test="qfyj != null and qfyj != ''"> and qfyj = #{qfyj}</if>
|
|
|
|
<if test="byzk != null and byzk != ''">and byzk = #{byzk}</if>
|
|
|
|
<if test="yxrq != null and yxrq != ''"> and yxrq = #{yxrq}</if>
|
|
|
|
<if test="height != null and height != ''">and height = #{height}</if>
|
|
|
|
<if test="picIds != null and picIds != ''"> and pic_ids = #{picIds}</if>
|
|
|
|
<if test="blood != null and blood != ''">and blood = #{blood}</if>
|
|
|
|
<if test="pictures != null and pictures != ''"> and pictures = #{pictures}</if>
|
|
|
|
<if test="zy != null and zy != ''">and zy = #{zy}</if>
|
|
|
|
<if test="allPicIds != null and allPicIds != ''"> and all_pic_ids = #{allPicIds}</if>
|
|
|
|
<if test="slReason != null and slReason != ''">and sl_reason = #{slReason}</if>
|
|
|
|
<if test="allPics != null and allPics != ''"> and all_pics = #{allPics}</if>
|
|
|
|
<if test="sljmsfzqm != null and sljmsfzqm != ''">and sljmsfzqm = #{sljmsfzqm}</if>
|
|
|
|
<if test="errorCorrect != null and errorCorrect != ''"> and error_correct = #{errorCorrect}</if>
|
|
|
|
<if test="qfyj != null and qfyj != ''">and qfyj = #{qfyj}</if>
|
|
|
|
<if test="auditStatus != null and auditStatus != ''"> and audit_status = #{auditStatus}</if>
|
|
|
|
<if test="yxrq != null and yxrq != ''">and yxrq = #{yxrq}</if>
|
|
|
|
<if test="auditName != null and auditName != ''"> and audit_name like concat('%', #{auditName}, '%')</if>
|
|
|
|
<if test="picIds != null and picIds != ''">and pic_ids = #{picIds}</if>
|
|
|
|
<if test="auditResult != null and auditResult != ''"> and audit_result = #{auditResult}</if>
|
|
|
|
<if test="pictures != null and pictures != ''">and pictures = #{pictures}</if>
|
|
|
|
<if test="auditReason != null and auditReason != ''"> and audit_reason = #{auditReason}</if>
|
|
|
|
<if test="allPicIds != null and allPicIds != ''">and all_pic_ids = #{allPicIds}</if>
|
|
|
|
|
|
|
|
<if test="allPics != null and allPics != ''">and all_pics = #{allPics}</if>
|
|
|
|
|
|
|
|
<if test="errorCorrect != null and errorCorrect != ''">and error_correct = #{errorCorrect}</if>
|
|
|
|
|
|
|
|
<if test="auditStatus != null and auditStatus != ''">and audit_status = #{auditStatus}</if>
|
|
|
|
|
|
|
|
<if test="auditName != null and auditName != ''">and audit_name like concat('%', #{auditName}, '%')</if>
|
|
|
|
|
|
|
|
<if test="auditResult != null and auditResult != ''">and audit_result = #{auditResult}</if>
|
|
|
|
|
|
|
|
<if test="auditReason != null and auditReason != ''">and audit_reason = #{auditReason}</if>
|
|
|
|
</where>
|
|
|
|
</where>
|
|
|
|
order by id desc
|
|
|
|
order by id desc
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
<!--检索-->
|
|
|
|
<!--检索-->
|
|
|
|
<select id="searchDaCzrkdjList" parameterType="DaCzrkdj" resultMap="DaCzrkdjResult">
|
|
|
|
<select id="searchDaCzrkdjList" parameterType="DaCzrkdj" resultMap="DaCzrkdjResult">
|
|
|
|
select distinct c.* from da_czrkdj c
|
|
|
|
select distinct c.* from da_czrkdj c
|
|
|
|
left join da_user_catalog uc on c.mu_id = uc.mu_id
|
|
|
|
left join da_user_catalog uc on c.mu_id = uc.mu_id
|
|
|
|
<where>
|
|
|
|
<where>
|
|
|
|
<if test="userId != null "> and uc.user_id = #{userId}</if>
|
|
|
|
<if test="userId != null ">and uc.user_id = #{userId}</if>
|
|
|
|
<if test="ywType != null and ywType != ''"> and yw_type = #{ywType}</if>
|
|
|
|
<if test="ywType != null and ywType != ''">and yw_type = #{ywType}</if>
|
|
|
|
<if test="name != null and name != ''">
|
|
|
|
<if test="name != null and name != ''">
|
|
|
|
and ( name like concat('%', #{name}, '%')
|
|
|
|
<!--and ( name like concat('%', #{name}, '%')
|
|
|
|
or hz_name like concat('%', #{name}, '%')
|
|
|
|
or hz_name like concat('%', #{name}, '%')
|
|
|
|
or other_name like concat('%', #{name}, '%')
|
|
|
|
or other_name like concat('%', #{name}, '%')
|
|
|
|
or used_name like concat('%', #{name}, '%')
|
|
|
|
or used_name like concat('%', #{name}, '%')
|
|
|
|
or jhr1 like concat('%', #{name}, '%')
|
|
|
|
or jhr1 like concat('%', #{name}, '%')
|
|
|
|
or jhr2 like concat('%', #{name}, '%')
|
|
|
|
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 birthday like concat('%', #{name}, '%')
|
|
|
|
or card_id like concat('%', #{name}, '%')
|
|
|
|
or card_id like concat('%', #{name}, '%')
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|