|
|
|
@ -6,6 +6,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
|
|
|
|
<resultMap type="org.dromara.qms.domain.vo.QcInspectionMainVo" id="QcInspectionMainResult">
|
|
|
|
|
<result property="inspectionId" column="inspection_id" />
|
|
|
|
|
<result property="planDetailId" column="plan_detail_id" />
|
|
|
|
|
<result property="inspectionNo" column="inspection_no" />
|
|
|
|
|
<result property="templateId" column="template_id" />
|
|
|
|
|
<result property="materialCode" column="material_code" />
|
|
|
|
@ -32,7 +33,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<sql id="selectQcInspectionMainVo">
|
|
|
|
|
select inspection_id, tenant_id, inspection_no, template_id, material_code, material_type, material_name, process_name, station_name, inspection_qty, qualified_qty, unqualified_qty, result, workshop, inspection_type, status, inspector, shift, team, inspection_time, production_order, batch_no, barcode, supplier_name, remark, create_dept, create_by, create_time, update_by, update_time, del_flag
|
|
|
|
|
select inspection_id, tenant_id,
|
|
|
|
|
plan_detail_id,
|
|
|
|
|
inspection_no, template_id, material_code, material_type, material_name, process_name, station_name, inspection_qty, qualified_qty, unqualified_qty, result, workshop, inspection_type, status, inspector, shift, team, inspection_time, production_order, batch_no, barcode, supplier_name, remark, create_dept, create_by, create_time, update_by, update_time, del_flag
|
|
|
|
|
from qc_inspection_main
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
@ -40,6 +43,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<include refid="selectQcInspectionMainVo"/>
|
|
|
|
|
<where>
|
|
|
|
|
<if test="inspectionId != null "> and inspection_id = #{inspectionId}</if>
|
|
|
|
|
<if test="planDetailId != null "> and plan_detail_id = #{planDetailId}</if>
|
|
|
|
|
<if test="inspectionNo != null and inspectionNo != ''"> and inspection_no = #{inspectionNo}</if>
|
|
|
|
|
<if test="templateId != null "> and template_id = #{templateId}</if>
|
|
|
|
|
<if test="materialCode != null and materialCode != ''"> and material_code = #{materialCode}</if>
|
|
|
|
|