diff --git a/src/main/java/com/spring/modules/part/vo/PartInformationVo.java b/src/main/java/com/spring/modules/part/vo/PartInformationVo.java index 5181fefd..040d3ea3 100644 --- a/src/main/java/com/spring/modules/part/vo/PartInformationVo.java +++ b/src/main/java/com/spring/modules/part/vo/PartInformationVo.java @@ -128,6 +128,10 @@ public class PartInformationVo extends PartInformationEntity { * 规划方法名称 **/ private String planningMethodDesc; + /** + * 最终物料编码 + **/ + private String finalPartNo; /** * 复制物料 */ diff --git a/src/main/resources/mapper/part/PartInformationMapper.xml b/src/main/resources/mapper/part/PartInformationMapper.xml index fe9d8b98..4debad1b 100644 --- a/src/main/resources/mapper/part/PartInformationMapper.xml +++ b/src/main/resources/mapper/part/PartInformationMapper.xml @@ -1328,7 +1328,8 @@ c.part_no, c.part_desc, a.bu_no, - dbo.plm_get_bu_desc(a.site,a.bu_no) buDesc + dbo.plm_get_bu_desc(a.site,a.bu_no) buDesc, + c.ifs_part_no as finalPartNo FROM (select prp1.site, prp1.test_part_no, @@ -1377,7 +1378,8 @@ SELECT a.site, a.part_no, - a.part_desc + a.part_desc, + a.ifs_part_no as finalPartNo FROM part as a left join plm_project_part as b on a.site = b.site and a.part_no = b.test_part_no where a.site = #{query.site} @@ -1398,9 +1400,9 @@ insert into plm_project_part - (site, project_id, test_part_no, create_date, create_by, part_no_source, bu_no) VALUES + (site, project_id, test_part_no, create_date, create_by, part_no_source, bu_no, final_part_no) VALUES - (#{item.site}, #{item.projectId}, #{item.partNo}, getDate(), #{item.createBy}, #{item.partNoSource}, #{item.buNo}) + (#{item.site}, #{item.projectId}, #{item.partNo}, getDate(), #{item.createBy}, #{item.partNoSource}, #{item.buNo}, #{item.finalPartNo})