|
@ -6,11 +6,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
|
|
|
|
|
<resultMap type="QualityOrderReport" id="QualityOrderReportResult"> |
|
|
<resultMap type="QualityOrderReport" id="QualityOrderReportResult"> |
|
|
<result property="qualityOrderReportId" column="quality_order_report_id" /> |
|
|
<result property="qualityOrderReportId" column="quality_order_report_id" /> |
|
|
|
|
|
<result property="qualityOrderCode" column="quality_order_code" /> |
|
|
<result property="supplierCode" column="supplier_code" /> |
|
|
<result property="supplierCode" column="supplier_code" /> |
|
|
<result property="supplierName" column="supplier_name" /> |
|
|
<result property="supplierName" column="supplier_name" /> |
|
|
<result property="materialNo" column="material_no" /> |
|
|
<result property="materialNo" column="material_no" /> |
|
|
<result property="materialName" column="material_name" /> |
|
|
<result property="materialName" column="material_name" /> |
|
|
<result property="makeTotal" column="make_total" /> |
|
|
<result property="makeTotal" column="make_total" /> |
|
|
|
|
|
<result property="actualArriveNum" column="actual_arrive_num" /> |
|
|
<result property="qualityHasqualifiedNum" column="quality_hasqualified_num" /> |
|
|
<result property="qualityHasqualifiedNum" column="quality_hasqualified_num" /> |
|
|
<result property="okAcceptedNum" column="ok_accepted_num" /> |
|
|
<result property="okAcceptedNum" column="ok_accepted_num" /> |
|
|
<result property="okReportUrl" column="ok_report_url" /> |
|
|
<result property="okReportUrl" column="ok_report_url" /> |
|
@ -29,7 +31,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
</resultMap> |
|
|
</resultMap> |
|
|
|
|
|
|
|
|
<sql id="selectQualityOrderReportVo"> |
|
|
<sql id="selectQualityOrderReportVo"> |
|
|
select quality_order_report_id, supplier_code, supplier_name, material_no, material_name, make_total, quality_hasqualified_num, ok_accepted_num, ok_report_url, special_concessions_num, special_report_url, checkout_completion_time, process_bad_classification, process_bad_grade, process_bad_num, unqualified_report_url, remark, create_by, create_time, update_by, update_time from quality_order_report |
|
|
select quality_order_report_id, quality_order_code, supplier_code, supplier_name, material_no, material_name, make_total, actual_arrive_num,quality_hasqualified_num, ok_accepted_num, ok_report_url, special_concessions_num, special_report_url, checkout_completion_time, process_bad_classification, process_bad_grade, process_bad_num, unqualified_report_url, remark, create_by, create_time, update_by, update_time from quality_order_report |
|
|
</sql> |
|
|
</sql> |
|
|
|
|
|
|
|
|
<select id="selectQualityOrderReportList" parameterType="QualityOrderReport" resultMap="QualityOrderReportResult"> |
|
|
<select id="selectQualityOrderReportList" parameterType="QualityOrderReport" resultMap="QualityOrderReportResult"> |
|
@ -47,16 +49,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<include refid="selectQualityOrderReportVo"/> |
|
|
<include refid="selectQualityOrderReportVo"/> |
|
|
where material_no = #{materialNo} |
|
|
where material_no = #{materialNo} |
|
|
and supplier_code = #{supplierCode} |
|
|
and supplier_code = #{supplierCode} |
|
|
|
|
|
and quality_order_code = #{qualityOrderCode} |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
<insert id="insertQualityOrderReport" parameterType="QualityOrderReport" useGeneratedKeys="true" keyProperty="qualityOrderReportId"> |
|
|
<insert id="insertQualityOrderReport" parameterType="QualityOrderReport" useGeneratedKeys="true" keyProperty="qualityOrderReportId"> |
|
|
insert into quality_order_report |
|
|
insert into quality_order_report |
|
|
<trim prefix="(" suffix=")" suffixOverrides=","> |
|
|
<trim prefix="(" suffix=")" suffixOverrides=","> |
|
|
|
|
|
<if test="qualityOrderCode != null">quality_order_code,</if> |
|
|
<if test="supplierCode != null">supplier_code,</if> |
|
|
<if test="supplierCode != null">supplier_code,</if> |
|
|
<if test="supplierName != null">supplier_name,</if> |
|
|
<if test="supplierName != null">supplier_name,</if> |
|
|
<if test="materialNo != null">material_no,</if> |
|
|
<if test="materialNo != null">material_no,</if> |
|
|
<if test="materialName != null">material_name,</if> |
|
|
<if test="materialName != null">material_name,</if> |
|
|
<if test="makeTotal != null">make_total,</if> |
|
|
<if test="makeTotal != null">make_total,</if> |
|
|
|
|
|
<if test="actualArriveNum != null">actual_arrive_num,</if> |
|
|
<if test="qualityHasqualifiedNum != null">quality_hasqualified_num,</if> |
|
|
<if test="qualityHasqualifiedNum != null">quality_hasqualified_num,</if> |
|
|
<if test="okAcceptedNum != null">ok_accepted_num,</if> |
|
|
<if test="okAcceptedNum != null">ok_accepted_num,</if> |
|
|
<if test="okReportUrl != null">ok_report_url,</if> |
|
|
<if test="okReportUrl != null">ok_report_url,</if> |
|
@ -74,11 +79,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<if test="updateTime != null">update_time,</if> |
|
|
<if test="updateTime != null">update_time,</if> |
|
|
</trim> |
|
|
</trim> |
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
|
|
|
<if test="qualityOrderCode != null">#{qualityOrderCode},</if> |
|
|
<if test="supplierCode != null">#{supplierCode},</if> |
|
|
<if test="supplierCode != null">#{supplierCode},</if> |
|
|
<if test="supplierName != null">#{supplierName},</if> |
|
|
<if test="supplierName != null">#{supplierName},</if> |
|
|
<if test="materialNo != null">#{materialNo},</if> |
|
|
<if test="materialNo != null">#{materialNo},</if> |
|
|
<if test="materialName != null">#{materialName},</if> |
|
|
<if test="materialName != null">#{materialName},</if> |
|
|
<if test="makeTotal != null">#{makeTotal},</if> |
|
|
<if test="makeTotal != null">#{makeTotal},</if> |
|
|
|
|
|
<if test="actualArriveNum != null">#{actualArriveNum},</if> |
|
|
<if test="qualityHasqualifiedNum != null">#{qualityHasqualifiedNum},</if> |
|
|
<if test="qualityHasqualifiedNum != null">#{qualityHasqualifiedNum},</if> |
|
|
<if test="okAcceptedNum != null">#{okAcceptedNum},</if> |
|
|
<if test="okAcceptedNum != null">#{okAcceptedNum},</if> |
|
|
<if test="okReportUrl != null">#{okReportUrl},</if> |
|
|
<if test="okReportUrl != null">#{okReportUrl},</if> |
|
@ -100,11 +107,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<update id="updateQualityOrderReport" parameterType="QualityOrderReport"> |
|
|
<update id="updateQualityOrderReport" parameterType="QualityOrderReport"> |
|
|
update quality_order_report |
|
|
update quality_order_report |
|
|
<trim prefix="SET" suffixOverrides=","> |
|
|
<trim prefix="SET" suffixOverrides=","> |
|
|
|
|
|
<if test="qualityOrderCode != null">quality_order_code = #{qualityOrderCode},</if> |
|
|
<if test="supplierCode != null">supplier_code = #{supplierCode},</if> |
|
|
<if test="supplierCode != null">supplier_code = #{supplierCode},</if> |
|
|
<if test="supplierName != null">supplier_name = #{supplierName},</if> |
|
|
<if test="supplierName != null">supplier_name = #{supplierName},</if> |
|
|
<if test="materialNo != null">material_no = #{materialNo},</if> |
|
|
<if test="materialNo != null">material_no = #{materialNo},</if> |
|
|
<if test="materialName != null">material_name = #{materialName},</if> |
|
|
<if test="materialName != null">material_name = #{materialName},</if> |
|
|
<if test="makeTotal != null">make_total = #{makeTotal},</if> |
|
|
<if test="makeTotal != null">make_total = #{makeTotal},</if> |
|
|
|
|
|
<if test="actualArriveNum != null">actual_arrive_num = #{actualArriveNum},</if> |
|
|
<if test="qualityHasqualifiedNum != null">quality_hasqualified_num = #{qualityHasqualifiedNum},</if> |
|
|
<if test="qualityHasqualifiedNum != null">quality_hasqualified_num = #{qualityHasqualifiedNum},</if> |
|
|
<if test="okAcceptedNum != null">ok_accepted_num = #{okAcceptedNum},</if> |
|
|
<if test="okAcceptedNum != null">ok_accepted_num = #{okAcceptedNum},</if> |
|
|
<if test="okReportUrl != null">ok_report_url = #{okReportUrl},</if> |
|
|
<if test="okReportUrl != null">ok_report_url = #{okReportUrl},</if> |
|
|