|
@@ -42,10 +42,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="taskProcessKey" column="task_process_key" />
|
|
|
<result property="taskNodeKey" column="task_node_key" />
|
|
|
<result property="wtNumber" column="wt_number" />
|
|
|
+ <result property="temperature" column="temperature" />
|
|
|
+ <result property="experStandard" column="exper_standard" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectDetectionResultVo">
|
|
|
- select id, serial_number, `date`, lot_number, specification, alloy_state, manufacturer, tensile_value_mpa, rate_of_elongation, fracture_deformation, maximum_force, tensile_strength_avg, fracture_force_rate_avg, repeat_survey, product_type, production_direction, tensile_value_mpa_two, rate_of_elongation_two, standard, decision_result, lsl_one, usl, lsl2, inspector, performance_creation_time, remark, create_by_id, create_by, create_time, update_by_id, update_by, update_time, del_flag, data_approval_status, process_key, task_process_key, task_node_key,wt_number from {DBNAME}.detection_result
|
|
|
+ select id, serial_number, `date`, lot_number, specification, alloy_state, manufacturer, tensile_value_mpa, rate_of_elongation, fracture_deformation,
|
|
|
+ maximum_force, tensile_strength_avg, fracture_force_rate_avg, repeat_survey, product_type, production_direction, tensile_value_mpa_two,
|
|
|
+ rate_of_elongation_two, standard, decision_result, lsl_one, usl, lsl2, inspector, performance_creation_time, remark, create_by_id, create_by,
|
|
|
+ create_time, update_by_id, update_by, update_time, del_flag, data_approval_status, process_key, task_process_key, task_node_key,wt_number,temperature,exper_standard
|
|
|
+ from {DBNAME}.detection_result
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectDetectionResultList" parameterType="com.zkqy.laboratory.domain.DetectionResult" resultMap="DetectionResultResult">
|
|
@@ -82,6 +88,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="taskProcessKey != null and taskProcessKey != ''"> and task_process_key = #{taskProcessKey}</if>
|
|
|
<if test="taskNodeKey != null and taskNodeKey != ''"> and task_node_key = #{taskNodeKey}</if>
|
|
|
<if test="wtNumber != null and wtNumber != ''"> and wt_number = #{wtNumber}</if>
|
|
|
+ <if test="temperature != null and temperature != ''"> and temperature = #{temperature}</if>
|
|
|
+ <if test="experStandard != null and experStandard != ''"> and exper_standard = #{experStandard}</if>
|
|
|
</where>
|
|
|
order by id desc
|
|
|
</select>
|
|
@@ -130,7 +138,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="processKey != null">process_key,</if>
|
|
|
<if test="taskProcessKey != null">task_process_key,</if>
|
|
|
<if test="taskNodeKey != null">task_node_key,</if>
|
|
|
- <if test="wtNumber != null and wtNumber != ''">wt_number</if>
|
|
|
+ <if test="wtNumber != null and wtNumber != ''">wt_number,</if>
|
|
|
+ <if test="temperature != null and temperature != ''">temperature,</if>
|
|
|
+ <if test="experStandard != null and experStandard != ''">exper_standard</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="serialNumber != null">#{serialNumber},</if>
|
|
@@ -169,7 +179,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="processKey != null">#{processKey},</if>
|
|
|
<if test="taskProcessKey != null">#{taskProcessKey},</if>
|
|
|
<if test="taskNodeKey != null">#{taskNodeKey},</if>
|
|
|
- <if test="wtNumber != null and wtNumber != ''">#{wtNumber}</if>
|
|
|
+ <if test="wtNumber != null and wtNumber != ''">#{wtNumber},</if>
|
|
|
+ <if test="temperature != null and temperature != ''">#{temperature},</if>
|
|
|
+ <if test="experStandard != null and experStandard != ''">#{experStandard}</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
@@ -212,7 +224,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="processKey != null">process_key = #{processKey},</if>
|
|
|
<if test="taskProcessKey != null">task_process_key = #{taskProcessKey},</if>
|
|
|
<if test="taskNodeKey != null">task_node_key = #{taskNodeKey},</if>
|
|
|
- <if test="wtNumber != null and wtNumber != ''">wt_number=#{wtNumber}</if>
|
|
|
+ <if test="wtNumber != null and wtNumber != ''">wt_number=#{wtNumber},</if>
|
|
|
+ <if test="temperature != null and temperature != ''">temperature=#{temperature},</if>
|
|
|
+ <if test="experStandard != null and experStandard != ''">exper_standard=#{experStandard}</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|