|
@@ -20,10 +20,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="meetingId" column="meeting_id" />
|
|
|
<result property="isHis" column="is_his" />
|
|
|
<result property="deptName" column="dept_name" />
|
|
|
+ <result property="assessment" column="assessment" />
|
|
|
+
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectTMtRiskreminderVo">
|
|
|
- select d.id, d.plant_code, d.maincontents, d.risk, d.inputdate, d.del_flag, d.creater_code, d.createdate, d.updater_code, d.updatedate, d.dept_id, d.remarks, d.meeting_id, d.is_his ,s.dept_name from t_mt_riskreminder d
|
|
|
+ select d.id, d.plant_code,d.assessment, d.maincontents, d.risk, d.inputdate, d.del_flag, d.creater_code, d.createdate, d.updater_code, d.updatedate, d.dept_id, d.remarks, d.meeting_id, d.is_his ,s.dept_name from t_mt_riskreminder d
|
|
|
left join sys_dept s on s.dept_id = d.dept_id
|
|
|
</sql>
|
|
|
|
|
@@ -65,6 +67,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="remarks != null">remarks,</if>
|
|
|
<if test="meetingId != null">meeting_id,</if>
|
|
|
<if test="isHis != null">is_his,</if>
|
|
|
+ <if test="assessment != null">assessment,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">#{id},</if>
|
|
@@ -81,6 +84,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="remarks != null">#{remarks},</if>
|
|
|
<if test="meetingId != null">#{meetingId},</if>
|
|
|
<if test="isHis != null">#{isHis},</if>
|
|
|
+ <if test="assessment != null">#{assessment},</if>
|
|
|
+
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
@@ -100,6 +105,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="remarks != null">remarks = #{remarks},</if>
|
|
|
<if test="meetingId != null">meeting_id = #{meetingId},</if>
|
|
|
<if test="isHis != null">is_his = #{isHis},</if>
|
|
|
+ <if test="assessment != null">assessment = #{assessment},</if>
|
|
|
+
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|