|
|
@ -44,6 +44,9 @@
|
|
|
|
<result property="confirmManName" column="confirm_man_name"/>
|
|
|
|
<result property="confirmManName" column="confirm_man_name"/>
|
|
|
|
<result property="confirmRemark" column="confirm_remark"/>
|
|
|
|
<result property="confirmRemark" column="confirm_remark"/>
|
|
|
|
<result property="confirmTime" column="confirm_time"/>
|
|
|
|
<result property="confirmTime" column="confirm_time"/>
|
|
|
|
|
|
|
|
<result property="workorderCodeSap" column="workorderCodeSap"/>
|
|
|
|
|
|
|
|
<result property="cpkType" column="cpk_type"/>
|
|
|
|
|
|
|
|
|
|
|
|
</resultMap>
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
|
|
<resultMap type="QcCheckReportIncome" id="QcCheckReportIncomeResult">
|
|
|
|
<resultMap type="QcCheckReportIncome" id="QcCheckReportIncomeResult">
|
|
|
@ -103,14 +106,17 @@
|
|
|
|
qct.supplier_code, qct.supplier_name, qct.income_time, qct.check_loc, qct.check_status,
|
|
|
|
qct.supplier_code, qct.supplier_name, qct.income_time, qct.check_loc, qct.check_status,
|
|
|
|
qct.check_man_code, qct.check_man_name,qct.check_time, qct.check_result, qct.status,
|
|
|
|
qct.check_man_code, qct.check_man_name,qct.check_time, qct.check_result, qct.status,
|
|
|
|
qct.create_by,qct.create_time, qct.update_by, qct.update_time,
|
|
|
|
qct.create_by,qct.create_time, qct.update_by, qct.update_time,
|
|
|
|
qct.check_type,qct.sample_quality,qct.noOk_quality,
|
|
|
|
qct.check_type,qct.sample_quality,qct.noOk_quality,bpa.cpk_type,
|
|
|
|
q.type_code,q.check_name
|
|
|
|
q.type_code,q.check_name,SUBSTRING(pow.workorder_code_sap, 4, 12) workorderCodeSap
|
|
|
|
from qc_check_task qct
|
|
|
|
from qc_check_task qct
|
|
|
|
left join qc_check_type q on q.id = qct.check_type
|
|
|
|
left join qc_check_type q on q.id = qct.check_type
|
|
|
|
|
|
|
|
left join pro_order_workorder pow on pow.workorder_code = qct.order_no
|
|
|
|
|
|
|
|
left join base_product_attached bpa on concat('0000000',bpa.product_code) = qct.material_code
|
|
|
|
<where>
|
|
|
|
<where>
|
|
|
|
<if test="checkNo != null and checkNo != ''">and qct.check_no = #{checkNo}</if>
|
|
|
|
<if test="checkNo != null and checkNo != ''">and qct.check_no = #{checkNo}</if>
|
|
|
|
<if test="incomeBatchNo != null and incomeBatchNo != ''">and qct.income_batch_no = #{incomeBatchNo}</if>
|
|
|
|
<if test="incomeBatchNo != null and incomeBatchNo != ''">and qct.income_batch_no = #{incomeBatchNo}</if>
|
|
|
|
<if test="orderNo != null and orderNo != ''">and qct.order_no = #{orderNo}</if>
|
|
|
|
<if test="orderNo != null and orderNo != ''">and qct.order_no = #{orderNo}</if>
|
|
|
|
|
|
|
|
<if test="workorderCodeSap != null and workorderCodeSap != ''">and pow.workorder_code_sap like concat('%',#{workorderCodeSap}, '%')</if>
|
|
|
|
<if test="materialCode != null and materialCode != ''">and qct.material_code like concat('%',
|
|
|
|
<if test="materialCode != null and materialCode != ''">and qct.material_code like concat('%',
|
|
|
|
#{materialCode}, '%')</if>
|
|
|
|
#{materialCode}, '%')</if>
|
|
|
|
<if test="materialName != null and materialName != ''">and qct.material_name like concat('%',
|
|
|
|
<if test="materialName != null and materialName != ''">and qct.material_name like concat('%',
|
|
|
@ -137,6 +143,7 @@
|
|
|
|
<if test="checkTimeEnd != null ">and #{checkTimeEnd} > CONVERT(varchar(30),qct.check_time, 120)</if>
|
|
|
|
<if test="checkTimeEnd != null ">and #{checkTimeEnd} > CONVERT(varchar(30),qct.check_time, 120)</if>
|
|
|
|
<if test="checkType != null ">and qct.check_type = #{checkType}</if>
|
|
|
|
<if test="checkType != null ">and qct.check_type = #{checkType}</if>
|
|
|
|
<if test="typeCode != null ">and q.type_code = #{typeCode}</if>
|
|
|
|
<if test="typeCode != null ">and q.type_code = #{typeCode}</if>
|
|
|
|
|
|
|
|
and pow.del_flag = '0'
|
|
|
|
</where>
|
|
|
|
</where>
|
|
|
|
order by qct.create_time desc
|
|
|
|
order by qct.create_time desc
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|