diff --git a/src/main/java/com/spring/modules/change/service/impl/ChangeManagementServiceImpl.java b/src/main/java/com/spring/modules/change/service/impl/ChangeManagementServiceImpl.java index 1ff4f2f0..c888e853 100644 --- a/src/main/java/com/spring/modules/change/service/impl/ChangeManagementServiceImpl.java +++ b/src/main/java/com/spring/modules/change/service/impl/ChangeManagementServiceImpl.java @@ -1219,7 +1219,7 @@ public class ChangeManagementServiceImpl extends ServiceImpl revisionList = partInformationMapper.getPartRevisionList(ifsPart); // revision对象 // 校验revision - boolean b = revisionList.stream().anyMatch(a -> a.getEffPhaseOutDate() == null || a.getEffPhaseOutDate().isEmpty() || a.getEngRevision() == null || a.getEngRevision().isEmpty()); - if (b) { - throw new RuntimeException("请维护库存件版本的失效时间 和 工程版本号!"); - } +// boolean b = revisionList.stream().anyMatch(a -> a.getEffPhaseOutDate() == null || a.getEffPhaseOutDate().isEmpty() || a.getEngRevision() == null || a.getEngRevision().isEmpty()); +// if (b) { +// throw new RuntimeException("请维护库存件版本的失效时间 和 工程版本号!"); +// } // 1.1 库存件主表数据 String getInventoryPartURL = apiUrl + "/part/ifs/getInventoryPart"; diff --git a/src/main/java/com/spring/modules/project/data/PlmProjectPartData.java b/src/main/java/com/spring/modules/project/data/PlmProjectPartData.java index 09122aa9..de355a73 100644 --- a/src/main/java/com/spring/modules/project/data/PlmProjectPartData.java +++ b/src/main/java/com/spring/modules/project/data/PlmProjectPartData.java @@ -49,6 +49,16 @@ public class PlmProjectPartData extends PlmProjectPart { private String plmPartNo; private String nowBm; + private String customerPartNo; + + public String getCustomerPartNo() { + return customerPartNo; + } + + public void setCustomerPartNo(String customerPartNo) { + this.customerPartNo = customerPartNo; + } + public String getPlmPartNo() { return plmPartNo; } diff --git a/src/main/resources/mapper/project/ProjectDao.xml b/src/main/resources/mapper/project/ProjectDao.xml index 3972f37c..8b187b69 100644 --- a/src/main/resources/mapper/project/ProjectDao.xml +++ b/src/main/resources/mapper/project/ProjectDao.xml @@ -282,10 +282,12 @@ a.unit_price, a.tax_unit_price, 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, + d.customer_part_no from plm_project_part as a LEFT JOIN part as b on a.site = b.site and a.test_part_no = b.part_no left join plm_project_info as c on a.site = c.site and a.project_id = c.project_id + left join plm_customer_part_info as d on c.site = d.site and c.customer_id = d.customer_no and a.test_part_no = d.part_no where a.site = #{site} and a.project_id = #{projectId} @@ -479,37 +481,53 @@ update_by,update_date,priority,site,id,project_desc,customer_remark,remark,need_