|
|
|
@ -502,10 +502,10 @@ |
|
|
|
</delete> |
|
|
|
|
|
|
|
<!-- 搜索所有检验类型 --> |
|
|
|
<select id="InspectionTypeSearch" resultType="QcInspectionTypeData" parameterType="QcInspectionTypeData"> |
|
|
|
<select id="inspectionTypeSearch" resultType="QcInspectionTypeData" parameterType="QcInspectionTypeData"> |
|
|
|
SELECT inspection_type_no, |
|
|
|
inspection_type_name |
|
|
|
FROM qc_inspection_type |
|
|
|
FROM qc_inspection_type |
|
|
|
WHERE site = #{site} |
|
|
|
</select> |
|
|
|
|
|
|
|
@ -1423,8 +1423,8 @@ |
|
|
|
|
|
|
|
<!-- 新增FAI主记录信息 --> |
|
|
|
<insert id="saveFAIRecord" parameterType="QcFAIRecordData"> |
|
|
|
INSERT INTO qc_fai_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) |
|
|
|
VALUES(#{inspectionNo}, #{site}, #{state}, getDate(), #{inspectionTypeNo}, #{inspectionCycle,jdbcType=DECIMAL}, #{orderNo}, #{operationDesc}, #{resourceId}, #{partNo}, #{rollQty}, #{samplingQty,jdbcType=DECIMAL}, #{ssrId}, #{seqNo}, #{batchRollNo}, #{specialRequirements}, #{workCenterNo}, #{rollNo}) |
|
|
|
INSERT INTO qc_fai_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) |
|
|
|
VALUES(#{inspectionNo}, #{site}, #{state}, getDate(), #{inspectionTypeNo}, #{inspectionCycle,jdbcType=DECIMAL}, #{orderNo}, #{operationDesc}, #{resourceId}, #{partNo}, #{rollQty}, #{samplingQty,jdbcType=DECIMAL}, #{ssrId}, #{seqNo}, #{batchRollNo}, #{specialRequirements}, #{workCenterNo}, #{rollNo}, #{umId}) |
|
|
|
</insert> |
|
|
|
|
|
|
|
<!-- 新增FAI明细记录信息 --> |
|
|
|
@ -1468,7 +1468,9 @@ |
|
|
|
batch_roll_no, |
|
|
|
special_requirements, |
|
|
|
work_center_no, |
|
|
|
roll_no |
|
|
|
roll_no, |
|
|
|
um_id, |
|
|
|
dbo.qc_get_um_name(site, um_id) as umName |
|
|
|
FROM qc_fai_record |
|
|
|
<where> |
|
|
|
site = #{query.site} |
|
|
|
@ -1703,8 +1705,8 @@ |
|
|
|
|
|
|
|
<!-- 新增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) |
|
|
|
VALUES(#{inspectionNo}, #{site}, #{state}, getDate(), #{inspectionTypeNo}, #{inspectionCycle,jdbcType=DECIMAL}, #{orderNo}, #{operationDesc}, #{resourceId}, #{partNo}, #{rollQty}, #{samplingQty,jdbcType=DECIMAL}, #{ssrId}, #{seqNo}, #{batchRollNo}, #{specialRequirements}, #{workCenterNo}, #{rollNo}) |
|
|
|
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) |
|
|
|
VALUES(#{inspectionNo}, #{site}, #{state}, getDate(), #{inspectionTypeNo}, #{inspectionCycle,jdbcType=DECIMAL}, #{orderNo}, #{operationDesc}, #{resourceId}, #{partNo}, #{rollQty}, #{samplingQty,jdbcType=DECIMAL}, #{ssrId}, #{seqNo}, #{batchRollNo}, #{specialRequirements}, #{workCenterNo}, #{rollNo}, #{umId}) |
|
|
|
</insert> |
|
|
|
|
|
|
|
<!-- 查询IPQC主记录信息 --> |
|
|
|
@ -1741,7 +1743,9 @@ |
|
|
|
batch_roll_no, |
|
|
|
special_requirements, |
|
|
|
work_center_no, |
|
|
|
roll_no |
|
|
|
roll_no, |
|
|
|
um_id, |
|
|
|
dbo.qc_get_um_name(site, um_id) as umName |
|
|
|
FROM qc_ipqc_record |
|
|
|
<where> |
|
|
|
site = #{query.site} |
|
|
|
@ -1752,7 +1756,7 @@ |
|
|
|
AND part_no LIKE '%' + #{query.partNo} + '%' |
|
|
|
</if> |
|
|
|
<if test = "query.state != null and query.state != ''"> |
|
|
|
AND `state` = #{query.state} |
|
|
|
AND state = #{query.state} |
|
|
|
</if> |
|
|
|
<if test = "query.inspectionTypeNo != null and query.inspectionTypeNo != ''"> |
|
|
|
AND inspection_type_no = #{query.inspectionTypeNo} |
|
|
|
@ -2318,7 +2322,9 @@ |
|
|
|
batch_roll_no, |
|
|
|
special_requirements, |
|
|
|
work_center_no, |
|
|
|
roll_no |
|
|
|
roll_no, |
|
|
|
um_id, |
|
|
|
dbo.qc_get_um_name(site, um_id) as umName |
|
|
|
FROM qc_fqc_record |
|
|
|
<where> |
|
|
|
site = #{query.site} |
|
|
|
@ -2359,8 +2365,8 @@ |
|
|
|
|
|
|
|
<!-- 新增FQC主记录信息 --> |
|
|
|
<insert id="saveFQCRecord" parameterType="QcFAIRecordData"> |
|
|
|
INSERT INTO qc_fqc_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) |
|
|
|
VALUES(#{inspectionNo}, #{site}, #{state}, getDate(), #{inspectionTypeNo}, #{inspectionCycle,jdbcType=DECIMAL}, #{orderNo}, #{operationDesc}, #{resourceId}, #{partNo}, #{rollQty}, #{samplingQty,jdbcType=DECIMAL}, #{ssrId}, #{seqNo}, #{batchRollNo}, #{specialRequirements}, #{workCenterNo}, #{rollNo}) |
|
|
|
INSERT INTO qc_fqc_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) |
|
|
|
VALUES(#{inspectionNo}, #{site}, #{state}, getDate(), #{inspectionTypeNo}, #{inspectionCycle,jdbcType=DECIMAL}, #{orderNo}, #{operationDesc}, #{resourceId}, #{partNo}, #{rollQty}, #{samplingQty,jdbcType=DECIMAL}, #{ssrId}, #{seqNo}, #{batchRollNo}, #{specialRequirements}, #{workCenterNo}, #{rollNo}, #{umId}) |
|
|
|
</insert> |
|
|
|
|
|
|
|
<!-- FQC明细记录查询 --> |
|
|
|
@ -2688,6 +2694,16 @@ |
|
|
|
</if> |
|
|
|
</where> |
|
|
|
</select> |
|
|
|
|
|
|
|
<!-- 查询单位列表 --> |
|
|
|
<select id="umSearch" resultType="QcFAIRecordData" parameterType="QcFAIRecordData"> |
|
|
|
SELECT |
|
|
|
site, |
|
|
|
UMID as umId, |
|
|
|
UMName as umName |
|
|
|
FROM UM |
|
|
|
WHERE site = #{site} and active = #{active} |
|
|
|
</select> |
|
|
|
</mapper> |
|
|
|
|
|
|
|
|
|
|
|
|