|
@@ -38,6 +38,36 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="tested" column="tested" />
|
|
|
</resultMap>
|
|
|
|
|
|
+ <resultMap type="VerificationData" id="VerificationData">
|
|
|
+ <result property="id" column="id" />
|
|
|
+
|
|
|
+ <result property="useScene" column="use_scene"/>
|
|
|
+ <result property="searchCondition" column="search_condition" />
|
|
|
+
|
|
|
+ <result property="result1Id" column="result1_id" />
|
|
|
+
|
|
|
+ <result property="result2Id" column="result2_id" />
|
|
|
+
|
|
|
+ <result property="result3Id" column="result3_id" />
|
|
|
+
|
|
|
+ <result property="result4Id" column="result4_id" />
|
|
|
+
|
|
|
+ <result property="result5Id" column="result5_id" />
|
|
|
+
|
|
|
+ <result property="calculate1Id" column="calculate1_id" />
|
|
|
+
|
|
|
+ <result property="calculate2Id" column="calculate2_id" />
|
|
|
+
|
|
|
+ <result property="calculate3Id" column="calculate3_id" />
|
|
|
+
|
|
|
+ <result property="calculate4Id" column="calculate4_id" />
|
|
|
+
|
|
|
+ <result property="calculate5Id" column="calculate5_id" />
|
|
|
+
|
|
|
+ <result property="trained" column="trained" />
|
|
|
+ <result property="tested" column="tested" />
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
<sql id="selectTVerificationTaskDetailVo">
|
|
|
select id, task_id, use_scene,search_condition, result1, result2, result3, result4, result5, calculate1, calculate2, calculate3,calculate4,calculate5, create_by, create_time, update_by, update_time, remark from t_verification_task_detail
|
|
|
</sql>
|
|
@@ -73,6 +103,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
</select>
|
|
|
+ <select id="alldata" resultMap="TVerificationTaskDetailResult">
|
|
|
+ select id,task_id, use_scene,search_condition, result1,result1_id, result2,result2_id, result3,result3_id, result4,result4_id, result5,result5_id, calculate1,calculate1_id, calculate2,calculate2_id, calculate3,calculate3_id,calculate4,calculate4_id,calculate5,calculate5_id, create_by, create_time, update_by, update_time, remark,trained,tested from t_verification_task_detail
|
|
|
+ where task_id=#{taskid}
|
|
|
+ </select>
|
|
|
+ <select id="getComponentId" resultType="java.lang.Long">
|
|
|
+ select id from t_electron_component where t_electron_component.component_name=#{attr}
|
|
|
+ AND t_electron_component.component_model=#{attr1}
|
|
|
+ AND t_electron_component.quality_grade=#{attr2}
|
|
|
+ </select>
|
|
|
+ <select id="getComponentids" resultMap="VerificationData">
|
|
|
+ select use_scene, search_condition, result1_id, result2_id, result3_id, result4_id, result5_id,calculate1_id,calculate2_id,calculate3_id,calculate4_id,calculate5_id,trained,tested from t_verification_task_detail
|
|
|
+ where task_id = #{taskid}
|
|
|
+ </select>
|
|
|
|
|
|
<insert id="insertTVerificationTaskDetail" parameterType="TVerificationTaskDetail" useGeneratedKeys="true" keyProperty="id">
|
|
|
insert into t_verification_task_detail
|
|
@@ -125,20 +168,32 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="useScene != null">use_scene = #{useScene},</if>
|
|
|
<if test="searchCondition != null">search_condition = #{searchCondition},</if>
|
|
|
<if test="result1 != null">result1 = #{result1},</if>
|
|
|
+ <if test="result1Id != null">result1_id = #{result1Id},</if>
|
|
|
<if test="result2 != null">result2 = #{result2},</if>
|
|
|
+ <if test="result2Id != null">result2_id = #{result2Id},</if>
|
|
|
<if test="result3 != null">result3 = #{result3},</if>
|
|
|
+ <if test="result3Id != null">result3_id = #{result3Id},</if>
|
|
|
<if test="result4 != null">result4 = #{result4},</if>
|
|
|
+ <if test="result4Id != null">result4_id = #{result4Id},</if>
|
|
|
<if test="result5 != null">result5 = #{result5},</if>
|
|
|
+ <if test="result5Id != null">result5_id = #{result5Id},</if>
|
|
|
<if test="calculate1 != null">calculate1 = #{calculate1},</if>
|
|
|
+ <if test="calculate1Id != null">calculate1_id = #{calculate1Id},</if>
|
|
|
<if test="calculate2 != null">calculate2 = #{calculate2},</if>
|
|
|
+ <if test="calculate2Id != null">calculate2_id = #{calculate2Id},</if>
|
|
|
<if test="calculate3 != null">calculate3 = #{calculate3},</if>
|
|
|
+ <if test="calculate3Id != null">calculate3_id = #{calculate3Id},</if>
|
|
|
<if test="calculate4 != null">calculate4 = #{calculate4},</if>
|
|
|
+ <if test="calculate4Id != null">calculate4_id = #{calculate4Id},</if>
|
|
|
<if test="calculate5 != null">calculate5 = #{calculate5},</if>
|
|
|
+ <if test="calculate5Id != null">calculate5_id = #{calculate5Id},</if>
|
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
<if test="remark != null">remark = #{remark},</if>
|
|
|
+ <if test="trained != null">trained = #{trained},</if>
|
|
|
+ <if test="tested != null">tested = #{tested}</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|