|
@@ -43,10 +43,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<result property="devId" column="dev_id" />
|
|
<result property="devId" column="dev_id" />
|
|
<result property="hiType" column="hi_type" />
|
|
<result property="hiType" column="hi_type" />
|
|
<result property="deptName" column="dept_name" />
|
|
<result property="deptName" column="dept_name" />
|
|
|
|
+ <result property="useDept" column="use_dept" />
|
|
|
|
+ <result property="plantMaint" column="plant_maint" />
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectTSpechiDtVo">
|
|
<sql id="selectTSpechiDtVo">
|
|
- select d.id, d.plant_code, d.unit, d.devname, d.devno, d.createdate, d.submitdate, d.status, d.del_flag, d.creater_code, d.creater_date, d.updater_code, d.updater_date, d.dept_id, d.remarks, d.approve_status, d.regno, d.useno, d.warn_date, d.warn_cycle, d.next_warn_date, d.warn_flag, d.model, d.capacity, d.floor, d.create_unit, d.maint_contractor, d.location, d.check_strategy, d.first_warn_date, d.check_unit, d.docno, d.approve_time, d.change_time, d.report_no, d.dev_id, d.hi_type ,s.dept_name from t_spechi_dt d
|
|
|
|
|
|
+ select d.id, d.plant_code, d.plant_maint,d.use_dept,d.unit, d.devname, d.devno, d.createdate, d.submitdate, d.status, d.del_flag, d.creater_code, d.creater_date, d.updater_code, d.updater_date, d.dept_id, d.remarks, d.approve_status, d.regno, d.useno, d.warn_date, d.warn_cycle, d.next_warn_date, d.warn_flag, d.model, d.capacity, d.floor, d.create_unit, d.maint_contractor, d.location, d.check_strategy, d.first_warn_date, d.check_unit, d.docno, d.approve_time, d.change_time, d.report_no, d.dev_id, d.hi_type ,s.dept_name from t_spechi_dt 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
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
@@ -152,6 +154,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="reportNo != null">report_no,</if>
|
|
<if test="reportNo != null">report_no,</if>
|
|
<if test="devId != null">dev_id,</if>
|
|
<if test="devId != null">dev_id,</if>
|
|
<if test="hiType != null">hi_type,</if>
|
|
<if test="hiType != null">hi_type,</if>
|
|
|
|
+ <if test="plantMaint != null">plant_maint,</if>
|
|
|
|
+ <if test="useDept != null">use_dept,</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>
|
|
@@ -191,6 +195,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="reportNo != null">#{reportNo},</if>
|
|
<if test="reportNo != null">#{reportNo},</if>
|
|
<if test="devId != null">#{devId},</if>
|
|
<if test="devId != null">#{devId},</if>
|
|
<if test="hiType != null">#{hiType},</if>
|
|
<if test="hiType != null">#{hiType},</if>
|
|
|
|
+ <if test="plantMaint != null">#{plantMaint},</if>
|
|
|
|
+ <if test="useDept != null">#{useDept},</if>
|
|
</trim>
|
|
</trim>
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
@@ -237,6 +243,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="reportNo != null">report_no,</if>
|
|
<if test="reportNo != null">report_no,</if>
|
|
<if test="devId != null">dev_id,</if>
|
|
<if test="devId != null">dev_id,</if>
|
|
<if test="hiType != null">hi_type,</if>
|
|
<if test="hiType != null">hi_type,</if>
|
|
|
|
+ <if test="plantMaint != null">plant_maint,</if>
|
|
|
|
+ <if test="useDept != null">use_dept,</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>
|
|
@@ -276,6 +284,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="reportNo != null">#{reportNo},</if>
|
|
<if test="reportNo != null">#{reportNo},</if>
|
|
<if test="devId != null">#{devId},</if>
|
|
<if test="devId != null">#{devId},</if>
|
|
<if test="hiType != null">#{hiType},</if>
|
|
<if test="hiType != null">#{hiType},</if>
|
|
|
|
+ <if test="plantMaint != null">#{plantMaint},</if>
|
|
|
|
+ <if test="useDept != null">#{useDept},</if>
|
|
</trim>
|
|
</trim>
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
@@ -318,6 +328,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="reportNo != null">report_no = #{reportNo},</if>
|
|
<if test="reportNo != null">report_no = #{reportNo},</if>
|
|
<if test="devId != null">dev_id = #{devId},</if>
|
|
<if test="devId != null">dev_id = #{devId},</if>
|
|
<if test="hiType != null">hi_type = #{hiType},</if>
|
|
<if test="hiType != null">hi_type = #{hiType},</if>
|
|
|
|
+ <if test="plantMaint != null">plant_maint = #{plantMaint},</if>
|
|
|
|
+ <if test="useDept != null">use_dept = #{useDept},</if>
|
|
</trim>
|
|
</trim>
|
|
where id = #{id}
|
|
where id = #{id}
|
|
</update>
|
|
</update>
|