Browse Source

2025-01-10

java8
fengyuan_yang 1 year ago
parent
commit
2f1e5e498b
  1. 1
      src/main/java/com/xujie/sys/modules/pms/service/Impl/QcServiceImpl.java
  2. 10
      src/main/resources/mapper/part/BomManagementMapper.xml
  3. 2
      src/main/resources/mapper/pms/QcMapper.xml

1
src/main/java/com/xujie/sys/modules/pms/service/Impl/QcServiceImpl.java

@ -768,7 +768,6 @@ public class QcServiceImpl implements QcService {
for (QcTemplateData qcTemplateData : data.getItemList()) { for (QcTemplateData qcTemplateData : data.getItemList()) {
qcMapper.saveItemDetailed(qcTemplateData); qcMapper.saveItemDetailed(qcTemplateData);
} }
//qcMapper.saveItemDetailed(data.getItemList());
} }
/** /**

10
src/main/resources/mapper/part/BomManagementMapper.xml

@ -98,14 +98,18 @@
isnull(dbo.get_yield_rate(a.site, a.sourceBu, a.product_group_id2, '2'), 100) as yieldRate isnull(dbo.get_yield_rate(a.site, a.sourceBu, a.product_group_id2, '2'), 100) as yieldRate
FROM part as a FROM part as a
<where> <where>
a.site = #{query.site} and a.sourceBu = #{query.buNo} and a.active = 'Y'
and (a.part_type2 <![CDATA[<>]]> 'Purchased (raw)' or a.part_type2 is null)
a.site = #{query.site}
<if test = "query.buNo != null and query.buNo != ''">
AND a.sourceBu = #{query.buNo}
</if>
<if test = "query.partNo != null and query.partNo != ''"> <if test = "query.partNo != null and query.partNo != ''">
AND a.part_no like '%' + #{query.partNo} + '%' AND a.part_no like '%' + #{query.partNo} + '%'
</if> </if>
<if test = "query.partDesc != null and query.partDesc != ''"> <if test = "query.partDesc != null and query.partDesc != ''">
AND a.part_desc like '%' + #{query.partDesc} + '%' AND a.part_desc like '%' + #{query.partDesc} + '%'
</if> </if>
and (a.part_type2 <![CDATA[<>]]> 'Purchased (raw)' or a.part_type2 is null)
and a.active = 'Y'
</where> </where>
</select> </select>
@ -667,7 +671,7 @@
a.update_by, a.update_by,
b.umid2 as printUnit, b.umid2 as printUnit,
dbo.qc_get_um_name(a.site, b.umid2) as printUnitName, dbo.qc_get_um_name(a.site, b.umid2) as printUnitName,
isnull(dbo.get_yield_rate(b.site, b.sourceBu, b.product_group_id2, '2'), 100) as yieldRate
isnull(dbo.get_yield_rate(b.site, b.sourceBu, b.product_group_id2, '2'), 100) as yieldRate,
#{alternativeNo} as alternativeNo #{alternativeNo} as alternativeNo
FROM plm_bom_header as a FROM plm_bom_header as a
left join part as b on a.site = b.site and a.bu_no = b.sourceBu and a.part_no = b.part_no left join part as b on a.site = b.site and a.bu_no = b.sourceBu and a.part_no = b.part_no

2
src/main/resources/mapper/pms/QcMapper.xml

@ -3787,7 +3787,7 @@
from qc_fai_detailed_record as a from qc_fai_detailed_record as a
left join eam_properties_item as b on a.site = b.site and a.bu_no = b.bu_no and a.item_no = b.ItemNo left join eam_properties_item as b on a.site = b.site and a.bu_no = b.bu_no and a.item_no = b.ItemNo
where a.site = #{site} and a.bu_no = #{buNo} and a.inspection_no = #{inspectionNo} and b.ItemType = 'D' and b.inspection_type_no = '106' and b.collection_flag = 'Y' where a.site = #{site} and a.bu_no = #{buNo} and a.inspection_no = #{inspectionNo} and b.ItemType = 'D' and b.inspection_type_no = '106' and b.collection_flag = 'Y'
order by order_id a
order by a.order_id
</select> </select>
<select id="getFQCInspectionDetail" parameterType="EamObjectInData" resultType="EamObjectInData"> <select id="getFQCInspectionDetail" parameterType="EamObjectInData" resultType="EamObjectInData">

Loading…
Cancel
Save