|
|
|
@ -1,9 +1,9 @@
|
|
|
|
<?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.ruoyi.szxc.mapper.SzxcVisitRecardMapper">
|
|
|
|
<mapper namespace="com.ruoyi.szxc.mapper.SzxcVisitRecardMapper">
|
|
|
|
|
|
|
|
|
|
|
|
<resultMap type="SzxcVisitRecard" id="SzxcVisitRecardResult">
|
|
|
|
<resultMap type="SzxcVisitRecard" id="SzxcVisitRecardResult">
|
|
|
|
<result property="id" column="id" />
|
|
|
|
<result property="id" column="id" />
|
|
|
|
<result property="visiterName" column="visiter_name" />
|
|
|
|
<result property="visiterName" column="visiter_name" />
|
|
|
|
@ -18,6 +18,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<result property="content" column="content" />
|
|
|
|
<result property="content" column="content" />
|
|
|
|
<result property="flowPeople" column="flow_people" />
|
|
|
|
<result property="flowPeople" column="flow_people" />
|
|
|
|
<result property="zfStatus" column="zf_status" />
|
|
|
|
<result property="zfStatus" column="zf_status" />
|
|
|
|
|
|
|
|
<result property="auditDept" column="audit_dept" />
|
|
|
|
|
|
|
|
<result property="auditDeptid" column="audit_deptid" />
|
|
|
|
|
|
|
|
<result property="auditName" column="audit_name" />
|
|
|
|
|
|
|
|
<result property="auditResult" column="audit_result" />
|
|
|
|
|
|
|
|
<result property="auditReason" column="audit_reason" />
|
|
|
|
<result property="shRemark" column="sh_remark" />
|
|
|
|
<result property="shRemark" column="sh_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" />
|
|
|
|
@ -29,12 +34,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
</resultMap>
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
|
|
<sql id="selectSzxcVisitRecardVo">
|
|
|
|
<sql id="selectSzxcVisitRecardVo">
|
|
|
|
select id, visiter_name, submit_date, start_date, end_date, type, jm_id, visit_obj, title, picture, content, flow_people, zf_status, sh_remark, create_by, create_time, update_by, update_time, dept_id, dept_name, user_id from szxc_visit_recard
|
|
|
|
select id, visiter_name, submit_date, start_date, end_date, type, jm_id, visit_obj, title, picture, content, flow_people, zf_status, audit_dept, audit_deptid, audit_name, audit_result, audit_reason, sh_remark, create_by, create_time, update_by, update_time, dept_id, dept_name, user_id from szxc_visit_recard
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectSzxcVisitRecardList" parameterType="SzxcVisitRecard" resultMap="SzxcVisitRecardResult">
|
|
|
|
<select id="selectSzxcVisitRecardList" parameterType="SzxcVisitRecard" resultMap="SzxcVisitRecardResult">
|
|
|
|
<include refid="selectSzxcVisitRecardVo"/>
|
|
|
|
<include refid="selectSzxcVisitRecardVo"/>
|
|
|
|
<where>
|
|
|
|
<where>
|
|
|
|
<if test="visiterName != null and visiterName != ''"> and visiter_name like concat('%', #{visiterName}, '%')</if>
|
|
|
|
<if test="visiterName != null and visiterName != ''"> and visiter_name like concat('%', #{visiterName}, '%')</if>
|
|
|
|
<if test="submitDate != null "> and submit_date = #{submitDate}</if>
|
|
|
|
<if test="submitDate != null "> and submit_date = #{submitDate}</if>
|
|
|
|
<if test="startDate != null "> and start_date = #{startDate}</if>
|
|
|
|
<if test="startDate != null "> and start_date = #{startDate}</if>
|
|
|
|
@ -47,18 +52,23 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<if test="content != null and content != ''"> and content = #{content}</if>
|
|
|
|
<if test="content != null and content != ''"> and content = #{content}</if>
|
|
|
|
<if test="flowPeople != null and flowPeople != ''"> and flow_people = #{flowPeople}</if>
|
|
|
|
<if test="flowPeople != null and flowPeople != ''"> and flow_people = #{flowPeople}</if>
|
|
|
|
<if test="zfStatus != null and zfStatus != ''"> and zf_status = #{zfStatus}</if>
|
|
|
|
<if test="zfStatus != null and zfStatus != ''"> and zf_status = #{zfStatus}</if>
|
|
|
|
|
|
|
|
<if test="auditDept != null and auditDept != ''"> and audit_dept = #{auditDept}</if>
|
|
|
|
|
|
|
|
<if test="auditDeptid != null "> and audit_deptid = #{auditDeptid}</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>
|
|
|
|
<if test="shRemark != null and shRemark != ''"> and sh_remark = #{shRemark}</if>
|
|
|
|
<if test="shRemark != null and shRemark != ''"> and sh_remark = #{shRemark}</if>
|
|
|
|
<if test="deptId != null "> and dept_id = #{deptId}</if>
|
|
|
|
<if test="deptId != null "> and dept_id = #{deptId}</if>
|
|
|
|
<if test="deptName != null and deptName != ''"> and dept_name like concat('%', #{deptName}, '%')</if>
|
|
|
|
<if test="deptName != null and deptName != ''"> and dept_name like concat('%', #{deptName}, '%')</if>
|
|
|
|
<if test="userId != null "> and user_id = #{userId}</if>
|
|
|
|
<if test="userId != null "> and user_id = #{userId}</if>
|
|
|
|
</where>
|
|
|
|
</where>
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectSzxcVisitRecardById" parameterType="Long" resultMap="SzxcVisitRecardResult">
|
|
|
|
<select id="selectSzxcVisitRecardById" parameterType="Long" resultMap="SzxcVisitRecardResult">
|
|
|
|
<include refid="selectSzxcVisitRecardVo"/>
|
|
|
|
<include refid="selectSzxcVisitRecardVo"/>
|
|
|
|
where id = #{id}
|
|
|
|
where id = #{id}
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<insert id="insertSzxcVisitRecard" parameterType="SzxcVisitRecard" useGeneratedKeys="true" keyProperty="id">
|
|
|
|
<insert id="insertSzxcVisitRecard" parameterType="SzxcVisitRecard" useGeneratedKeys="true" keyProperty="id">
|
|
|
|
insert into szxc_visit_recard
|
|
|
|
insert into szxc_visit_recard
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
@ -74,6 +84,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<if test="content != null">content,</if>
|
|
|
|
<if test="content != null">content,</if>
|
|
|
|
<if test="flowPeople != null">flow_people,</if>
|
|
|
|
<if test="flowPeople != null">flow_people,</if>
|
|
|
|
<if test="zfStatus != null">zf_status,</if>
|
|
|
|
<if test="zfStatus != null">zf_status,</if>
|
|
|
|
|
|
|
|
<if test="auditDept != null">audit_dept,</if>
|
|
|
|
|
|
|
|
<if test="auditDeptid != null">audit_deptid,</if>
|
|
|
|
|
|
|
|
<if test="auditName != null">audit_name,</if>
|
|
|
|
|
|
|
|
<if test="auditResult != null">audit_result,</if>
|
|
|
|
|
|
|
|
<if test="auditReason != null">audit_reason,</if>
|
|
|
|
<if test="shRemark != null">sh_remark,</if>
|
|
|
|
<if test="shRemark != null">sh_remark,</if>
|
|
|
|
<if test="createBy != null">create_by,</if>
|
|
|
|
<if test="createBy != null">create_by,</if>
|
|
|
|
<if test="createTime != null">create_time,</if>
|
|
|
|
<if test="createTime != null">create_time,</if>
|
|
|
|
@ -82,7 +97,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<if test="deptId != null">dept_id,</if>
|
|
|
|
<if test="deptId != null">dept_id,</if>
|
|
|
|
<if test="deptName != null">dept_name,</if>
|
|
|
|
<if test="deptName != null">dept_name,</if>
|
|
|
|
<if test="userId != null">user_id,</if>
|
|
|
|
<if test="userId != null">user_id,</if>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
<if test="visiterName != null and visiterName != ''">#{visiterName},</if>
|
|
|
|
<if test="visiterName != null and visiterName != ''">#{visiterName},</if>
|
|
|
|
<if test="submitDate != null">#{submitDate},</if>
|
|
|
|
<if test="submitDate != null">#{submitDate},</if>
|
|
|
|
@ -96,6 +111,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<if test="content != null">#{content},</if>
|
|
|
|
<if test="content != null">#{content},</if>
|
|
|
|
<if test="flowPeople != null">#{flowPeople},</if>
|
|
|
|
<if test="flowPeople != null">#{flowPeople},</if>
|
|
|
|
<if test="zfStatus != null">#{zfStatus},</if>
|
|
|
|
<if test="zfStatus != null">#{zfStatus},</if>
|
|
|
|
|
|
|
|
<if test="auditDept != null">#{auditDept},</if>
|
|
|
|
|
|
|
|
<if test="auditDeptid != null">#{auditDeptid},</if>
|
|
|
|
|
|
|
|
<if test="auditName != null">#{auditName},</if>
|
|
|
|
|
|
|
|
<if test="auditResult != null">#{auditResult},</if>
|
|
|
|
|
|
|
|
<if test="auditReason != null">#{auditReason},</if>
|
|
|
|
<if test="shRemark != null">#{shRemark},</if>
|
|
|
|
<if test="shRemark != null">#{shRemark},</if>
|
|
|
|
<if test="createBy != null">#{createBy},</if>
|
|
|
|
<if test="createBy != null">#{createBy},</if>
|
|
|
|
<if test="createTime != null">#{createTime},</if>
|
|
|
|
<if test="createTime != null">#{createTime},</if>
|
|
|
|
@ -104,7 +124,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<if test="deptId != null">#{deptId},</if>
|
|
|
|
<if test="deptId != null">#{deptId},</if>
|
|
|
|
<if test="deptName != null">#{deptName},</if>
|
|
|
|
<if test="deptName != null">#{deptName},</if>
|
|
|
|
<if test="userId != null">#{userId},</if>
|
|
|
|
<if test="userId != null">#{userId},</if>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
</insert>
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
|
|
<update id="updateSzxcVisitRecard" parameterType="SzxcVisitRecard">
|
|
|
|
<update id="updateSzxcVisitRecard" parameterType="SzxcVisitRecard">
|
|
|
|
@ -122,6 +142,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<if test="content != null">content = #{content},</if>
|
|
|
|
<if test="content != null">content = #{content},</if>
|
|
|
|
<if test="flowPeople != null">flow_people = #{flowPeople},</if>
|
|
|
|
<if test="flowPeople != null">flow_people = #{flowPeople},</if>
|
|
|
|
<if test="zfStatus != null">zf_status = #{zfStatus},</if>
|
|
|
|
<if test="zfStatus != null">zf_status = #{zfStatus},</if>
|
|
|
|
|
|
|
|
<if test="auditDept != null">audit_dept = #{auditDept},</if>
|
|
|
|
|
|
|
|
<if test="auditDeptid != null">audit_deptid = #{auditDeptid},</if>
|
|
|
|
|
|
|
|
<if test="auditName != null">audit_name = #{auditName},</if>
|
|
|
|
|
|
|
|
<if test="auditResult != null">audit_result = #{auditResult},</if>
|
|
|
|
|
|
|
|
<if test="auditReason != null">audit_reason = #{auditReason},</if>
|
|
|
|
<if test="shRemark != null">sh_remark = #{shRemark},</if>
|
|
|
|
<if test="shRemark != null">sh_remark = #{shRemark},</if>
|
|
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|
|
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|
|
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
|
|
@ -139,7 +164,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
</delete>
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
|
|
<delete id="deleteSzxcVisitRecardByIds" parameterType="String">
|
|
|
|
<delete id="deleteSzxcVisitRecardByIds" parameterType="String">
|
|
|
|
delete from szxc_visit_recard where id in
|
|
|
|
delete from szxc_visit_recard where id in
|
|
|
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
|
|
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
|
|
|
#{id}
|
|
|
|
#{id}
|
|
|
|
</foreach>
|
|
|
|
</foreach>
|
|
|
|
|