|
@@ -48,6 +48,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="productNo" column="product_no" />
|
|
|
<result property="assetOwner" column="asset_owner" />
|
|
|
<result property="hiFlag" column="hiFlag" />
|
|
|
+ <result property="perTestConclusion" column="per_test_conclusion" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectTSpecdevCcVo">
|
|
@@ -62,7 +63,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
d.creater_code,
|
|
|
d.createdate,
|
|
|
d.updater_code, d.updatedate, 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.create_unit, d.check_strategy, d.first_warn_date, d.check_unit, d.docno, d.approve_time, d.change_time, d.engine_no, d.color, d.capacity, d.model, d.engine_type, d.dev_class, d.ex_unit, d.use_dept, d.engineer, d.ex_grade, d.report_no, d.frame_no, d.product_no, d.asset_owner ,s.dept_name,
|
|
|
- (SELECT COUNT(1) from T_SPECHI_CC h where h.DEV_ID = d.id and HI_TYPE = 0 ) as hiFlag
|
|
|
+ (SELECT COUNT(1) from T_SPECHI_CC h where h.DEV_ID = d.id and HI_TYPE = 0 ) as hiFlag, per_test_conclusion
|
|
|
from t_specdev_cc d
|
|
|
left join sys_dept s on s.dept_id = d.dept_id
|
|
|
</sql>
|
|
@@ -165,6 +166,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="frameNo != null">frame_no,</if>
|
|
|
<if test="productNo != null">product_no,</if>
|
|
|
<if test="assetOwner != null">asset_owner,</if>
|
|
|
+ <if test="perTestConclusion != null">per_test_conclusion,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">#{id},</if>
|
|
@@ -209,6 +211,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="frameNo != null">#{frameNo},</if>
|
|
|
<if test="productNo != null">#{productNo},</if>
|
|
|
<if test="assetOwner != null">#{assetOwner},</if>
|
|
|
+ <if test="perTestConclusion != null">#{perTestConclusion},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
@@ -256,6 +259,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="frameNo != null">frame_no = #{frameNo},</if>
|
|
|
<if test="productNo != null">product_no = #{productNo},</if>
|
|
|
<if test="assetOwner != null">asset_owner = #{assetOwner},</if>
|
|
|
+ <if test="perTestConclusion != null">per_test_conclusion = #{perTestConclusion},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|
|
@@ -304,6 +308,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="frameNo != null">frame_no = #{frameNo},</if>
|
|
|
<if test="productNo != null">product_no = #{productNo},</if>
|
|
|
<if test="assetOwner != null">asset_owner = #{assetOwner},</if>
|
|
|
+ <if test="perTestConclusion != null">per_test_conclusion = #{perTestConclusion},</if>
|
|
|
</trim>
|
|
|
where id = #{devId}
|
|
|
</update>
|