163 lines
10 KiB
XML
163 lines
10 KiB
XML
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||
|
<!DOCTYPE mapper
|
||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||
|
<mapper namespace="com.yanzhu.manage.mapper.ProProjectCheckedMapper">
|
||
|
|
||
|
<resultMap type="ProProjectChecked" id="ProProjectCheckedResult">
|
||
|
<result property="id" column="id" />
|
||
|
<result property="comId" column="com_id" />
|
||
|
<result property="projectId" column="project_id" />
|
||
|
<result property="checkType" column="check_type" />
|
||
|
<result property="mainImage" column="main_image" />
|
||
|
<result property="imageUrls" column="image_urls" />
|
||
|
<result property="workingPosition" column="working_position" />
|
||
|
<result property="workingPositionType" column="working_position_type" />
|
||
|
<result property="checkingNum" column="checking_num" />
|
||
|
<result property="checkResult" column="check_result" />
|
||
|
<result property="intro" column="intro" />
|
||
|
<result property="technicianUser" column="technician_user" />
|
||
|
<result property="technicianUserName" column="technician_user_name" />
|
||
|
<result property="superviseUser" column="supervise_user" />
|
||
|
<result property="superviseUserName" column="supervise_user_name" />
|
||
|
<result property="groupDeptUser" column="group_dept_user" />
|
||
|
<result property="groupDeptUserName" column="group_dept_user_name" />
|
||
|
<result property="checkingDate" column="checking_date" />
|
||
|
<result property="checkingFiles" column="checking_files" />
|
||
|
<result property="isDel" column="is_del" />
|
||
|
<result property="approveStatus" column="approve_status" />
|
||
|
<result property="createBy" column="create_by" />
|
||
|
<result property="createTime" column="create_time" />
|
||
|
<result property="updateBy" column="update_by" />
|
||
|
<result property="updateTime" column="update_time" />
|
||
|
<result property="remark" column="remark" />
|
||
|
</resultMap>
|
||
|
|
||
|
<sql id="selectProProjectCheckedVo">
|
||
|
select id, com_id, project_id, check_type, main_image, image_urls, working_position, working_position_type, checking_num, check_result, intro, technician_user, technician_user_name, supervise_user, supervise_user_name, group_dept_user, group_dept_user_name, checking_date, checking_files, is_del, approve_status, create_by, create_time, update_by, update_time, remark from pro_project_checked
|
||
|
</sql>
|
||
|
|
||
|
<select id="selectProProjectCheckedList" parameterType="ProProjectChecked" resultMap="ProProjectCheckedResult">
|
||
|
<include refid="selectProProjectCheckedVo"/>
|
||
|
<where>
|
||
|
<if test="comId != null "> and com_id = #{comId}</if>
|
||
|
<if test="projectId != null "> and project_id = #{projectId}</if>
|
||
|
<if test="checkType != null and checkType != ''"> and check_type = #{checkType}</if>
|
||
|
<if test="workingPosition != null and workingPosition != ''"> and working_position = #{workingPosition}</if>
|
||
|
<if test="workingPositionType != null and workingPositionType != ''"> and working_position_type = #{workingPositionType}</if>
|
||
|
<if test="checkResult != null and checkResult != ''"> and check_result = #{checkResult}</if>
|
||
|
<if test="technicianUser != null and technicianUser != ''"> and technician_user = #{technicianUser}</if>
|
||
|
<if test="superviseUser != null and superviseUser != ''"> and supervise_user = #{superviseUser}</if>
|
||
|
<if test="groupDeptUser != null and groupDeptUser != ''"> and group_dept_user = #{groupDeptUser}</if>
|
||
|
<if test="checkingDate != null "> and checking_date = #{checkingDate}</if>
|
||
|
<if test="isDel != null "> and is_del = #{isDel}</if>
|
||
|
<if test="approveStatus != null and approveStatus != ''"> and approve_status = #{approveStatus}</if>
|
||
|
</where>
|
||
|
</select>
|
||
|
|
||
|
<select id="selectProProjectCheckedById" parameterType="Long" resultMap="ProProjectCheckedResult">
|
||
|
<include refid="selectProProjectCheckedVo"/>
|
||
|
where id = #{id}
|
||
|
</select>
|
||
|
|
||
|
<insert id="insertProProjectChecked" parameterType="ProProjectChecked" useGeneratedKeys="true" keyProperty="id">
|
||
|
insert into pro_project_checked
|
||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||
|
<if test="comId != null">com_id,</if>
|
||
|
<if test="projectId != null">project_id,</if>
|
||
|
<if test="checkType != null">check_type,</if>
|
||
|
<if test="mainImage != null">main_image,</if>
|
||
|
<if test="imageUrls != null">image_urls,</if>
|
||
|
<if test="workingPosition != null">working_position,</if>
|
||
|
<if test="workingPositionType != null">working_position_type,</if>
|
||
|
<if test="checkingNum != null">checking_num,</if>
|
||
|
<if test="checkResult != null">check_result,</if>
|
||
|
<if test="intro != null">intro,</if>
|
||
|
<if test="technicianUser != null">technician_user,</if>
|
||
|
<if test="technicianUserName != null">technician_user_name,</if>
|
||
|
<if test="superviseUser != null">supervise_user,</if>
|
||
|
<if test="superviseUserName != null">supervise_user_name,</if>
|
||
|
<if test="groupDeptUser != null">group_dept_user,</if>
|
||
|
<if test="groupDeptUserName != null">group_dept_user_name,</if>
|
||
|
<if test="checkingDate != null">checking_date,</if>
|
||
|
<if test="checkingFiles != null">checking_files,</if>
|
||
|
<if test="isDel != null">is_del,</if>
|
||
|
<if test="approveStatus != null">approve_status,</if>
|
||
|
<if test="createBy != null">create_by,</if>
|
||
|
<if test="createTime != null">create_time,</if>
|
||
|
<if test="updateBy != null">update_by,</if>
|
||
|
<if test="updateTime != null">update_time,</if>
|
||
|
<if test="remark != null">remark,</if>
|
||
|
</trim>
|
||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||
|
<if test="comId != null">#{comId},</if>
|
||
|
<if test="projectId != null">#{projectId},</if>
|
||
|
<if test="checkType != null">#{checkType},</if>
|
||
|
<if test="mainImage != null">#{mainImage},</if>
|
||
|
<if test="imageUrls != null">#{imageUrls},</if>
|
||
|
<if test="workingPosition != null">#{workingPosition},</if>
|
||
|
<if test="workingPositionType != null">#{workingPositionType},</if>
|
||
|
<if test="checkingNum != null">#{checkingNum},</if>
|
||
|
<if test="checkResult != null">#{checkResult},</if>
|
||
|
<if test="intro != null">#{intro},</if>
|
||
|
<if test="technicianUser != null">#{technicianUser},</if>
|
||
|
<if test="technicianUserName != null">#{technicianUserName},</if>
|
||
|
<if test="superviseUser != null">#{superviseUser},</if>
|
||
|
<if test="superviseUserName != null">#{superviseUserName},</if>
|
||
|
<if test="groupDeptUser != null">#{groupDeptUser},</if>
|
||
|
<if test="groupDeptUserName != null">#{groupDeptUserName},</if>
|
||
|
<if test="checkingDate != null">#{checkingDate},</if>
|
||
|
<if test="checkingFiles != null">#{checkingFiles},</if>
|
||
|
<if test="isDel != null">#{isDel},</if>
|
||
|
<if test="approveStatus != null">#{approveStatus},</if>
|
||
|
<if test="createBy != null">#{createBy},</if>
|
||
|
<if test="createTime != null">#{createTime},</if>
|
||
|
<if test="updateBy != null">#{updateBy},</if>
|
||
|
<if test="updateTime != null">#{updateTime},</if>
|
||
|
<if test="remark != null">#{remark},</if>
|
||
|
</trim>
|
||
|
</insert>
|
||
|
|
||
|
<update id="updateProProjectChecked" parameterType="ProProjectChecked">
|
||
|
update pro_project_checked
|
||
|
<trim prefix="SET" suffixOverrides=",">
|
||
|
<if test="comId != null">com_id = #{comId},</if>
|
||
|
<if test="projectId != null">project_id = #{projectId},</if>
|
||
|
<if test="checkType != null">check_type = #{checkType},</if>
|
||
|
<if test="mainImage != null">main_image = #{mainImage},</if>
|
||
|
<if test="imageUrls != null">image_urls = #{imageUrls},</if>
|
||
|
<if test="workingPosition != null">working_position = #{workingPosition},</if>
|
||
|
<if test="workingPositionType != null">working_position_type = #{workingPositionType},</if>
|
||
|
<if test="checkingNum != null">checking_num = #{checkingNum},</if>
|
||
|
<if test="checkResult != null">check_result = #{checkResult},</if>
|
||
|
<if test="intro != null">intro = #{intro},</if>
|
||
|
<if test="technicianUser != null">technician_user = #{technicianUser},</if>
|
||
|
<if test="technicianUserName != null">technician_user_name = #{technicianUserName},</if>
|
||
|
<if test="superviseUser != null">supervise_user = #{superviseUser},</if>
|
||
|
<if test="superviseUserName != null">supervise_user_name = #{superviseUserName},</if>
|
||
|
<if test="groupDeptUser != null">group_dept_user = #{groupDeptUser},</if>
|
||
|
<if test="groupDeptUserName != null">group_dept_user_name = #{groupDeptUserName},</if>
|
||
|
<if test="checkingDate != null">checking_date = #{checkingDate},</if>
|
||
|
<if test="checkingFiles != null">checking_files = #{checkingFiles},</if>
|
||
|
<if test="isDel != null">is_del = #{isDel},</if>
|
||
|
<if test="approveStatus != null">approve_status = #{approveStatus},</if>
|
||
|
<if test="createBy != null">create_by = #{createBy},</if>
|
||
|
<if test="createTime != null">create_time = #{createTime},</if>
|
||
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||
|
<if test="remark != null">remark = #{remark},</if>
|
||
|
</trim>
|
||
|
where id = #{id}
|
||
|
</update>
|
||
|
|
||
|
<delete id="deleteProProjectCheckedById" parameterType="Long">
|
||
|
delete from pro_project_checked where id = #{id}
|
||
|
</delete>
|
||
|
|
||
|
<delete id="deleteProProjectCheckedByIds" parameterType="String">
|
||
|
delete from pro_project_checked where id in
|
||
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||
|
#{id}
|
||
|
</foreach>
|
||
|
</delete>
|
||
|
</mapper>
|