|
|
@ -7,6 +7,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<resultMap type="QualityManufacturingUnqualifiedClass" id="QualityManufacturingUnqualifiedClassResult"> |
|
|
|
<result property="manufacturingUnqualifiedClassId" column="manufacturing_unqualified_class_id" /> |
|
|
|
<result property="manufacturingCheckoutCode" column="manufacturing_checkout_code" /> |
|
|
|
<result property="materialNo" column="material_no" /> |
|
|
|
<result property="manufacturingProcessCode" column="manufacturing_process_code" /> |
|
|
|
<result property="manufacturingProcessName" column="manufacturing_process_name" /> |
|
|
|
<result property="processBadClassification" column="process_bad_classification" /> |
|
|
@ -20,7 +21,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<sql id="selectQualityManufacturingUnqualifiedClassVo"> |
|
|
|
select manufacturing_unqualified_class_id, manufacturing_checkout_code, manufacturing_process_code, manufacturing_process_name, process_bad_classification, process_bad_grade, process_bad_num, remark, create_by, create_time, update_by, update_time from quality_manufacturing_unqualified_class |
|
|
|
select manufacturing_unqualified_class_id, manufacturing_checkout_code, manufacturing_process_code, manufacturing_process_name, process_bad_classification, process_bad_grade, process_bad_num, remark, create_by, create_time, update_by, update_time, material_no from quality_manufacturing_unqualified_class |
|
|
|
</sql> |
|
|
|
|
|
|
|
<select id="selectQualityManufacturingUnqualifiedClassList" parameterType="QualityManufacturingUnqualifiedClass" resultMap="QualityManufacturingUnqualifiedClassResult"> |
|
|
@ -38,6 +39,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
insert into quality_manufacturing_unqualified_class |
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=","> |
|
|
|
<if test="manufacturingCheckoutCode != null">manufacturing_checkout_code,</if> |
|
|
|
<if test="materialNo != null">material_no,</if> |
|
|
|
<if test="manufacturingProcessCode != null">manufacturing_process_code,</if> |
|
|
|
<if test="manufacturingProcessName != null">manufacturing_process_name,</if> |
|
|
|
<if test="processBadClassification != null">process_bad_classification,</if> |
|
|
@ -51,6 +53,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
</trim> |
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
|
<if test="manufacturingCheckoutCode != null">#{manufacturingCheckoutCode},</if> |
|
|
|
<if test="materialNo != null">#{materialNo},</if> |
|
|
|
<if test="manufacturingProcessCode != null">#{manufacturingProcessCode},</if> |
|
|
|
<if test="manufacturingProcessName != null">#{manufacturingProcessName},</if> |
|
|
|
<if test="processBadClassification != null">#{processBadClassification},</if> |
|
|
@ -68,6 +71,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
update quality_manufacturing_unqualified_class |
|
|
|
<trim prefix="SET" suffixOverrides=","> |
|
|
|
<if test="manufacturingCheckoutCode != null">manufacturing_checkout_code = #{manufacturingCheckoutCode},</if> |
|
|
|
<if test="materialNo != null">material_no = #{materialNo},</if> |
|
|
|
<if test="manufacturingProcessCode != null">manufacturing_process_code = #{manufacturingProcessCode},</if> |
|
|
|
<if test="manufacturingProcessName != null">manufacturing_process_name = #{manufacturingProcessName},</if> |
|
|
|
<if test="processBadClassification != null">process_bad_classification = #{processBadClassification},</if> |
|
|
@ -101,4 +105,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
update quality_manufacturing_unqualified_class set del_flag = '0' where manufacturing_unqualified_class_id = #{manufacturingUnqualifiedClassId} |
|
|
|
</update> |
|
|
|
|
|
|
|
<select id="selectCheckoutUnqualifiedClassByCodes" parameterType="map" resultMap="QualityManufacturingUnqualifiedClassResult"> |
|
|
|
<include refid="selectQualityManufacturingUnqualifiedClassVo"/> |
|
|
|
<where> |
|
|
|
<if test="manufacturingCheckoutCode != null"> |
|
|
|
manufacturing_checkout_code = #{manufacturingCheckoutCode} |
|
|
|
</if> |
|
|
|
<if test="materialNo != null"> |
|
|
|
and material_no = #{materialNo} |
|
|
|
</if> |
|
|
|
<if test="manufacturingProcessCode != null"> |
|
|
|
and manufacturing_process_code = #{manufacturingProcessCode} |
|
|
|
</if> |
|
|
|
</where> |
|
|
|
</select> |
|
|
|
|
|
|
|
</mapper> |