|
|
|
@ -39,6 +39,8 @@
|
|
|
|
|
<result property="reason" column="reason"/>
|
|
|
|
|
<result property="productType" column="product_type"/>
|
|
|
|
|
<result property="orderType" column="order_type"/>
|
|
|
|
|
<result property="standardNo" column="standardNo"/>
|
|
|
|
|
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<sql id="selectQcCheckReportIncomeVo">
|
|
|
|
@ -90,8 +92,16 @@
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="selectQcCheckReportIncomeByRecordId" parameterType="String" resultMap="QcCheckReportIncomeResult">
|
|
|
|
|
<include refid="selectQcCheckReportIncomeVo"/>
|
|
|
|
|
where record_id = #{recordId}
|
|
|
|
|
select qct.record_id, qct.check_no, qct.income_batch_no, qct.order_no, qct.material_code, qct.material_name,
|
|
|
|
|
qct.quality, qct.unit,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_type, qct.attr1, qct.attr2, qct.attr3, qct.attr4,
|
|
|
|
|
qct.create_by, qct.create_time, qct.update_by, qct.update_time,
|
|
|
|
|
qct.factory_code, qct.del_flag,qct.reason,qct.product_type,qct.order_type,
|
|
|
|
|
bp.mvgr5 standardNo
|
|
|
|
|
from qc_check_task qct
|
|
|
|
|
left join base_product bp on bp.product_code = qct.material_code
|
|
|
|
|
where qct.record_id = #{recordId}
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="getQcListBom" resultType="com.op.quality.domain.QcBomComponent">
|
|
|
|
@ -154,7 +164,7 @@
|
|
|
|
|
qctp.upper_diff upperDiff,
|
|
|
|
|
qctp.down_diff downDiff,
|
|
|
|
|
qctp.sample,
|
|
|
|
|
qcp.sample_plan samplePlan,
|
|
|
|
|
td.sample_quality samplePlan,
|
|
|
|
|
qctp.item_type itemType,
|
|
|
|
|
qctp.judge_rate judgeRate,
|
|
|
|
|
qpt.standard_no standardNo,
|
|
|
|
@ -234,17 +244,16 @@
|
|
|
|
|
order by c.create_time desc
|
|
|
|
|
</select>
|
|
|
|
|
<select id="getLastProductTypeInfo" resultType="com.op.quality.domain.QcCheckTaskProduce">
|
|
|
|
|
SELECT
|
|
|
|
|
top 1
|
|
|
|
|
c.product_type productType,
|
|
|
|
|
c.check_man_code checkManCode,
|
|
|
|
|
c.check_man_name checkManName,
|
|
|
|
|
c.confirm_man_code confirmManCode,
|
|
|
|
|
c.confirm_man_name confirmManName
|
|
|
|
|
FROM
|
|
|
|
|
qc_check_task c
|
|
|
|
|
where c.check_type='checkTypeSCXJ' and c.order_no = #{orderNo}
|
|
|
|
|
order by c.create_time desc
|
|
|
|
|
SELECT
|
|
|
|
|
distinct
|
|
|
|
|
c.product_type productType,
|
|
|
|
|
c.check_man_code checkManCode,
|
|
|
|
|
c.check_man_name checkManName,
|
|
|
|
|
c.confirm_man_code confirmManCode,
|
|
|
|
|
c.confirm_man_name confirmManName
|
|
|
|
|
FROM
|
|
|
|
|
qc_check_task c
|
|
|
|
|
where c.check_type='checkTypeSCXJ' and c.order_no = #{orderNo}
|
|
|
|
|
</select>
|
|
|
|
|
<select id="getBatchsByTaskId" resultType="java.lang.String">
|
|
|
|
|
select powb.batch_code incomeBatchNo
|
|
|
|
|