|
@@ -41,11 +41,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<result property="changeTime" column="change_time" />
|
|
<result property="changeTime" column="change_time" />
|
|
<result property="reportNo" column="report_no" />
|
|
<result property="reportNo" column="report_no" />
|
|
<result property="hiFlag" column="hiFlag" />
|
|
<result property="hiFlag" column="hiFlag" />
|
|
|
|
+ <result property="perTestConclusion" column="per_test_conclusion" />
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectTSpecdevDtVo">
|
|
<sql id="selectTSpecdevDtVo">
|
|
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 ,s.dept_name,
|
|
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 ,s.dept_name,
|
|
- (SELECT COUNT(1) from T_SPECHI_DT h where h.DEV_ID = d.id and HI_TYPE = 0 ) as hiFlag
|
|
|
|
|
|
+ (SELECT COUNT(1) from T_SPECHI_DT h where h.DEV_ID = d.id and HI_TYPE = 0 ) as hiFlag, per_test_conclusion
|
|
from t_specdev_dt d
|
|
from t_specdev_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>
|
|
@@ -147,6 +148,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="approveTime != null">approve_time,</if>
|
|
<if test="approveTime != null">approve_time,</if>
|
|
<if test="changeTime != null">change_time,</if>
|
|
<if test="changeTime != null">change_time,</if>
|
|
<if test="reportNo != null">report_no,</if>
|
|
<if test="reportNo != null">report_no,</if>
|
|
|
|
+ <if test="perTestConclusion != null">per_test_conclusion,</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>
|
|
@@ -184,6 +186,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="approveTime != null">#{approveTime},</if>
|
|
<if test="approveTime != null">#{approveTime},</if>
|
|
<if test="changeTime != null">#{changeTime},</if>
|
|
<if test="changeTime != null">#{changeTime},</if>
|
|
<if test="reportNo != null">#{reportNo},</if>
|
|
<if test="reportNo != null">#{reportNo},</if>
|
|
|
|
+ <if test="perTestConclusion != null">#{perTestConclusion},</if>
|
|
</trim>
|
|
</trim>
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
@@ -224,6 +227,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="approveTime != null">approve_time = #{approveTime},</if>
|
|
<if test="approveTime != null">approve_time = #{approveTime},</if>
|
|
<if test="changeTime != null">change_time = #{changeTime},</if>
|
|
<if test="changeTime != null">change_time = #{changeTime},</if>
|
|
<if test="reportNo != null">report_no = #{reportNo},</if>
|
|
<if test="reportNo != null">report_no = #{reportNo},</if>
|
|
|
|
+ <if test="perTestConclusion != null">per_test_conclusion = #{perTestConclusion},</if>
|
|
</trim>
|
|
</trim>
|
|
where id = #{id}
|
|
where id = #{id}
|
|
</update>
|
|
</update>
|
|
@@ -265,6 +269,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="approveTime != null">approve_time = #{approveTime},</if>
|
|
<if test="approveTime != null">approve_time = #{approveTime},</if>
|
|
<if test="changeTime != null">change_time = #{changeTime},</if>
|
|
<if test="changeTime != null">change_time = #{changeTime},</if>
|
|
<if test="reportNo != null">report_no = #{reportNo},</if>
|
|
<if test="reportNo != null">report_no = #{reportNo},</if>
|
|
|
|
+ <if test="perTestConclusion != null">per_test_conclusion = #{perTestConclusion},</if>
|
|
</trim>
|
|
</trim>
|
|
where id = #{devId}
|
|
where id = #{devId}
|
|
</update>
|
|
</update>
|