|
@@ -12,6 +12,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<result property="item" column="item" />
|
|
<result property="item" column="item" />
|
|
<result property="content" column="content" />
|
|
<result property="content" column="content" />
|
|
<result property="confirm" column="confirm" />
|
|
<result property="confirm" column="confirm" />
|
|
|
|
+ <result property="confirmName" column="confirm_name" />
|
|
<result property="confirmationDate" column="confirmation_date" />
|
|
<result property="confirmationDate" column="confirmation_date" />
|
|
<result property="delFlag" column="del_flag" />
|
|
<result property="delFlag" column="del_flag" />
|
|
<result property="createrCode" column="creater_code" />
|
|
<result property="createrCode" column="creater_code" />
|
|
@@ -20,15 +21,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<result property="updatedate" column="updatedate" />
|
|
<result property="updatedate" column="updatedate" />
|
|
<result property="deptId" column="dept_id" />
|
|
<result property="deptId" column="dept_id" />
|
|
<result property="remarks" column="remarks" />
|
|
<result property="remarks" column="remarks" />
|
|
- <result property="deptName" column="dept_name" />
|
|
|
|
- <result property="region" column="region" />
|
|
|
|
- <result property="unit" column="unit" />
|
|
|
|
<result property="unitDes" column="unit_des" />
|
|
<result property="unitDes" column="unit_des" />
|
|
|
|
+ <result property="unit" column="unit" />
|
|
|
|
+ <result property="region" column="region" />
|
|
|
|
+ <result property="approveStatus" column="approve_status" />
|
|
|
|
+ <result property="deptName" column="dept_name" />
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectTPssrSubcontentVo">
|
|
<sql id="selectTPssrSubcontentVo">
|
|
- select d.id, d.approve_id, d.aboveall_id,d.region, d.unit,d.unit_des, d.serial_number, d.item, d.content, d.confirm, d.confirmation_date, d.del_flag, d.creater_code, d.createdate, d.updater_code, d.updatedate, d.dept_id, d.remarks ,s.dept_name from t_pssr_subcontent d
|
|
|
|
|
|
+ select d.id, d.approve_id, d.aboveall_id, d.serial_number, d.item, d.content, d.confirm,u.NICK_NAME confirm_name, d.confirmation_date, d.del_flag, d.creater_code, d.createdate, d.updater_code, d.updatedate, d.dept_id, d.remarks, d.unit_des, d.unit, d.region, d.approve_status ,s.dept_name from t_pssr_subcontent d
|
|
left join sys_dept s on s.dept_id = d.dept_id
|
|
left join sys_dept s on s.dept_id = d.dept_id
|
|
|
|
+ left join sys_user u on d.CONFIRM = u.USER_ID
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
<select id="selectTPssrSubcontentList" parameterType="TPssrSubcontent" resultMap="TPssrSubcontentResult">
|
|
<select id="selectTPssrSubcontentList" parameterType="TPssrSubcontent" resultMap="TPssrSubcontentResult">
|
|
@@ -36,9 +39,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<where>
|
|
<where>
|
|
<if test="approveId != null "> and approve_id = #{approveId}</if>
|
|
<if test="approveId != null "> and approve_id = #{approveId}</if>
|
|
<if test="aboveallId != null "> and aboveall_id = #{aboveallId}</if>
|
|
<if test="aboveallId != null "> and aboveall_id = #{aboveallId}</if>
|
|
- <if test="region != null and region != ''"> and region = #{region}</if>
|
|
|
|
- <if test="unitDes != null and unitDes != ''"> and unit_des = #{unitDes}</if>
|
|
|
|
- <if test="unit != null and unit != ''"> and unit = #{unit}</if>
|
|
|
|
<if test="serialNumber != null and serialNumber != ''"> and serial_number = #{serialNumber}</if>
|
|
<if test="serialNumber != null and serialNumber != ''"> and serial_number = #{serialNumber}</if>
|
|
<if test="item != null and item != ''"> and item = #{item}</if>
|
|
<if test="item != null and item != ''"> and item = #{item}</if>
|
|
<if test="content != null and content != ''"> and content = #{content}</if>
|
|
<if test="content != null and content != ''"> and content = #{content}</if>
|
|
@@ -50,6 +50,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="updatedate != null "> and updatedate = #{updatedate}</if>
|
|
<if test="updatedate != null "> and updatedate = #{updatedate}</if>
|
|
<if test="deptId != null "> and dept_id = #{deptId}</if>
|
|
<if test="deptId != null "> and dept_id = #{deptId}</if>
|
|
<if test="remarks != null and remarks != ''"> and remarks = #{remarks}</if>
|
|
<if test="remarks != null and remarks != ''"> and remarks = #{remarks}</if>
|
|
|
|
+ <if test="unitDes != null and unitDes != ''"> and unit_des = #{unitDes}</if>
|
|
|
|
+ <if test="unit != null and unit != ''"> and unit = #{unit}</if>
|
|
|
|
+ <if test="region != null and region != ''"> and region = #{region}</if>
|
|
|
|
+ <if test="approveStatus != null "> and approve_status = #{approveStatus}</if>
|
|
and d.del_flag = 0
|
|
and d.del_flag = 0
|
|
</where>
|
|
</where>
|
|
<!-- 数据范围过滤 -->
|
|
<!-- 数据范围过滤 -->
|
|
@@ -71,9 +75,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="id != null">id,</if>
|
|
<if test="id != null">id,</if>
|
|
<if test="approveId != null">approve_id,</if>
|
|
<if test="approveId != null">approve_id,</if>
|
|
<if test="aboveallId != null">aboveall_id,</if>
|
|
<if test="aboveallId != null">aboveall_id,</if>
|
|
- <if test="region != null">region,</if>
|
|
|
|
- <if test="unit != null">unit,</if>
|
|
|
|
- <if test="unitDes != null">unit_des,</if>
|
|
|
|
<if test="serialNumber != null">serial_number,</if>
|
|
<if test="serialNumber != null">serial_number,</if>
|
|
<if test="item != null">item,</if>
|
|
<if test="item != null">item,</if>
|
|
<if test="content != null">content,</if>
|
|
<if test="content != null">content,</if>
|
|
@@ -86,14 +87,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="updatedate != null">updatedate,</if>
|
|
<if test="updatedate != null">updatedate,</if>
|
|
<if test="deptId != null">dept_id,</if>
|
|
<if test="deptId != null">dept_id,</if>
|
|
<if test="remarks != null">remarks,</if>
|
|
<if test="remarks != null">remarks,</if>
|
|
|
|
+ <if test="unitDes != null">unit_des,</if>
|
|
|
|
+ <if test="unit != null">unit,</if>
|
|
|
|
+ <if test="region != null">region,</if>
|
|
|
|
+ <if test="approveStatus != null">approve_status,</if>
|
|
</trim>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="id != null">#{id},</if>
|
|
<if test="id != null">#{id},</if>
|
|
<if test="approveId != null">#{approveId},</if>
|
|
<if test="approveId != null">#{approveId},</if>
|
|
<if test="aboveallId != null">#{aboveallId},</if>
|
|
<if test="aboveallId != null">#{aboveallId},</if>
|
|
- <if test="region != null">#{region},</if>
|
|
|
|
- <if test="unit != null">#{unit},</if>
|
|
|
|
- <if test="unitDes != null">#{unitDes},</if>
|
|
|
|
<if test="serialNumber != null">#{serialNumber},</if>
|
|
<if test="serialNumber != null">#{serialNumber},</if>
|
|
<if test="item != null">#{item},</if>
|
|
<if test="item != null">#{item},</if>
|
|
<if test="content != null">#{content},</if>
|
|
<if test="content != null">#{content},</if>
|
|
@@ -106,6 +108,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="updatedate != null">#{updatedate},</if>
|
|
<if test="updatedate != null">#{updatedate},</if>
|
|
<if test="deptId != null">#{deptId},</if>
|
|
<if test="deptId != null">#{deptId},</if>
|
|
<if test="remarks != null">#{remarks},</if>
|
|
<if test="remarks != null">#{remarks},</if>
|
|
|
|
+ <if test="unitDes != null">#{unitDes},</if>
|
|
|
|
+ <if test="unit != null">#{unit},</if>
|
|
|
|
+ <if test="region != null">#{region},</if>
|
|
|
|
+ <if test="approveStatus != null">#{approveStatus},</if>
|
|
</trim>
|
|
</trim>
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
@@ -114,9 +120,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<if test="approveId != null">approve_id = #{approveId},</if>
|
|
<if test="approveId != null">approve_id = #{approveId},</if>
|
|
<if test="aboveallId != null">aboveall_id = #{aboveallId},</if>
|
|
<if test="aboveallId != null">aboveall_id = #{aboveallId},</if>
|
|
- <if test="region != null">region = #{region},</if>
|
|
|
|
- <if test="unit != null">unit = #{unit},</if>
|
|
|
|
- <if test="unitDes != null">unit_des = #{unitDes},</if>
|
|
|
|
<if test="serialNumber != null">serial_number = #{serialNumber},</if>
|
|
<if test="serialNumber != null">serial_number = #{serialNumber},</if>
|
|
<if test="item != null">item = #{item},</if>
|
|
<if test="item != null">item = #{item},</if>
|
|
<if test="content != null">content = #{content},</if>
|
|
<if test="content != null">content = #{content},</if>
|
|
@@ -129,6 +132,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="updatedate != null">updatedate = #{updatedate},</if>
|
|
<if test="updatedate != null">updatedate = #{updatedate},</if>
|
|
<if test="deptId != null">dept_id = #{deptId},</if>
|
|
<if test="deptId != null">dept_id = #{deptId},</if>
|
|
<if test="remarks != null">remarks = #{remarks},</if>
|
|
<if test="remarks != null">remarks = #{remarks},</if>
|
|
|
|
+ <if test="unitDes != null">unit_des = #{unitDes},</if>
|
|
|
|
+ <if test="unit != null">unit = #{unit},</if>
|
|
|
|
+ <if test="region != null">region = #{region},</if>
|
|
|
|
+ <if test="approveStatus != null">approve_status = #{approveStatus},</if>
|
|
</trim>
|
|
</trim>
|
|
where id = #{id}
|
|
where id = #{id}
|
|
</update>
|
|
</update>
|