|
|
@@ -24,10 +24,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="deptId" column="dept_id" />
|
|
|
<result property="deptName" column="dept_name" />
|
|
|
<result property="fileNum" column="file_num" />
|
|
|
+ <result property="rcStatus" column="rc_status" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectTRcauditVo">
|
|
|
- select p.name_cn as menuName, d.id, d.plant_code, d.rc_code, d.menuid, d.name_cn, d.name_en, d.yes, d.no, d.na, d.link, d.del_flag, d.creater_code, d.createdate, d.updater_code, d.updatedate, d.remarks, d.dept_id ,s.dept_name, d.file_num from t_rcaudit d
|
|
|
+ select p.name_cn as menuName,d.rc_status, d.id, d.plant_code, d.rc_code, d.menuid, d.name_cn, d.name_en, d.yes, d.no, d.na, d.link, d.del_flag, d.creater_code, d.createdate, d.updater_code, d.updatedate, d.remarks, d.dept_id ,s.dept_name, d.file_num from t_rcaudit d
|
|
|
left join sys_dept s on s.dept_id = d.dept_id
|
|
|
left join t_rcauditmenu p on p.serial_num = d.menuid and d.dept_id = p.dept_id and p.del_flag=0
|
|
|
</sql>
|
|
|
@@ -73,6 +74,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="remarks != null">remarks,</if>
|
|
|
<if test="fileNum != null">file_num,</if>
|
|
|
<if test="deptId != null">dept_id,</if>
|
|
|
+ <if test="rcStatus != null">rc_status,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">#{id},</if>
|
|
|
@@ -93,12 +95,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="remarks != null">#{remarks},</if>
|
|
|
<if test="fileNum != null">#{fileNum},</if>
|
|
|
<if test="deptId != null">#{deptId},</if>
|
|
|
+ <if test="rcStatus != null">#{rcStatus},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
|
<update id="updateTRcaudit" parameterType="TRcaudit">
|
|
|
update t_rcaudit
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
+ <if test="rcStatus != null and rcStatus != ''">rc_status = #{rcStatus},</if>
|
|
|
<if test="plantCode != null and plantCode != ''">plant_code = #{plantCode},</if>
|
|
|
<if test="rcCode != null and rcCode != ''">rc_code = #{rcCode},</if>
|
|
|
<if test="menuid != null and menuid != ''">menuid = #{menuid},</if>
|