|
|
|
@ -972,7 +972,7 @@ |
|
|
|
LEFT JOIN qc_part_attribute as qpa ON qpa.attribute_no = qat.attribute_no and qat.site = qpa.site |
|
|
|
LEFT JOIN qc_template as qt ON qat.template_id = qt.template_id and qat.site = qt.site |
|
|
|
LEFT JOIN qc_sampling_inspection_level as qsil ON qat.sampling_level_no = qsil.sampling_level_no |
|
|
|
LEFT JOIN qc_inspection_type as qit ON qt.inspection_type_no = qit.inspection_type_no |
|
|
|
LEFT JOIN qc_inspection_type as qit ON qt.inspection_type_no = qit.inspection_type_no and qt.site = qit.site |
|
|
|
LEFT JOIN qc_sampling_inspection_programme as qsip ON qat.sampling_programme_no = qsip.sampling_programme_no |
|
|
|
WHERE qat.site = #{site} and qpa.attribute_type = #{attributeType} and qpa.attribute_no = #{attributeNo} |
|
|
|
</select> |
|
|
|
@ -1713,6 +1713,12 @@ |
|
|
|
VALUES(#{inspectionNo}, #{orderNo}, #{templateId}, #{samplingLevelNo}, #{samplingLevelDesc}, #{samplingProgrammeNo}, #{samplingProgrammeDesc}, #{aql,jdbcType=DECIMAL}, #{ac,jdbcType=DECIMAL}, #{re,jdbcType=DECIMAL}, #{itemNo}, #{itemDesc}, #{objectId}, #{objectDesc}, #{defaultValue}, #{minValue,jdbcType=DECIMAL}, #{maxValue,jdbcType=DECIMAL}, #{valueTypeDb}, #{valueType}, #{site}, #{samplingQty,jdbcType=DECIMAL}) |
|
|
|
</insert> |
|
|
|
|
|
|
|
<!-- 新增IPQC记录到count表 --> |
|
|
|
<insert id="saveIPQCRecordCount" parameterType="QcFAIRecordData"> |
|
|
|
INSERT INTO qc_ipqc_record_count (inspection_no, site, state, task_date, inspection_type_no, inspection_cycle, order_no, operation_desc, resource_id, part_no, roll_qty, sampling_qty, seq_no, batch_roll_no, special_requirements, work_center_no, roll_no, um_id, new_data) |
|
|
|
VALUES(#{inspectionNo}, #{site}, #{state}, getDate(), #{inspectionTypeNo}, #{inspectionCycle,jdbcType=DECIMAL}, #{orderNo}, #{operationDesc}, #{resourceId}, #{partNo}, #{rollQty}, #{samplingQty,jdbcType=DECIMAL}, #{seqNo}, #{batchRollNo}, #{specialRequirements}, #{workCenterNo}, #{rollNo}, #{umId}, 'Y') |
|
|
|
</insert> |
|
|
|
|
|
|
|
<!-- 新增IPQC主记录信息 --> |
|
|
|
<insert id="saveIPQCRecord" parameterType="QcFAIRecordData"> |
|
|
|
INSERT INTO qc_ipqc_record (inspection_no, site, state, task_date, inspection_type_no, inspection_cycle, order_no, operation_desc, resource_id, part_no, roll_qty, sampling_qty, ssr_id, seq_no, batch_roll_no, special_requirements, work_center_no, roll_no, um_id) |
|
|
|
@ -1834,6 +1840,12 @@ |
|
|
|
WHERE inspection_no = #{inspectionNo} and site = #{site} |
|
|
|
</delete> |
|
|
|
|
|
|
|
<!-- 删除IPQC检验记录 --> |
|
|
|
<delete id="deleteIPQCRecordCount" parameterType="QcFAIRecordData"> |
|
|
|
DELETE FROM qc_ipqc_record_count |
|
|
|
WHERE inspection_no = #{inspectionNo} and site = #{site} |
|
|
|
</delete> |
|
|
|
|
|
|
|
<!-- 删除IPQC明细记录信息 --> |
|
|
|
<delete id="deleteIPQCDetailedRecord" parameterType="QcFAIRecordData"> |
|
|
|
DELETE FROM qc_ipqc_detailed_record |
|
|
|
|