|
@@ -24,10 +24,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="deptName" column="dept_name" />
|
|
|
<result property="isPerson" column="is_person" />
|
|
|
<result property="position" column="position" />
|
|
|
+ <result property="isNew" column="is_new" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectTMtKeymaintenanceVo">
|
|
|
- select d.id, d.plant_code,d.position, d.is_person,d.responsible, d.action, d.deadline, d.status, 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_keymaintenance d
|
|
|
+ select d.id,d.is_new, d.plant_code,d.position, d.is_person,d.responsible, d.action, d.deadline, d.status, 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_keymaintenance d
|
|
|
left join sys_dept s on s.dept_id = d.dept_id
|
|
|
</sql>
|
|
|
|
|
@@ -75,6 +76,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="isHis != null">is_his,</if>
|
|
|
<if test="isPerson != null">is_person,</if>
|
|
|
<if test="position != null">position,</if>
|
|
|
+ <if test="isNew != null">is_new,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">#{id},</if>
|
|
@@ -95,6 +97,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="isHis != null">#{isHis},</if>
|
|
|
<if test="isPerson != null">#{isPerson},</if>
|
|
|
<if test="position != null">#{position},</if>
|
|
|
+ <if test="isNew != null">#{isNew},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
@@ -118,6 +121,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="isHis != null">is_his = #{isHis},</if>
|
|
|
<if test="isPerson != null">is_person = #{isPerson},</if>
|
|
|
<if test="position != null">position = #{position},</if>
|
|
|
+ <if test="isNew != null">is_new = #{isNew},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|