|
|
@ -494,17 +494,15 @@ public class TechnicalSpecificationServiceImpl implements TechnicalSpecification |
|
|
project.setProjectId(data.getProjectId()); |
|
|
project.setProjectId(data.getProjectId()); |
|
|
project.setFinalCustomerId(data.getFinalCustomerNo()); |
|
|
project.setFinalCustomerId(data.getFinalCustomerNo()); |
|
|
projectDao.updateProjectFinalCustomerNo(project); |
|
|
projectDao.updateProjectFinalCustomerNo(project); |
|
|
// customerPartNo |
|
|
|
|
|
// 判断是否存在CustomerPartNo |
|
|
|
|
|
String customerPartNo = technicalSpecificationMapper.queryCustomerPartNo(data.getSite(),data.getPartNo(),data.getCustomerId()); |
|
|
|
|
|
|
|
|
// 客户料号与项目物料一致,按项目物料临时料号同步 plm_customer_part_info |
|
|
|
|
|
String customerPartKey = StringUtils.hasText(data.getTestPartNo()) ? data.getTestPartNo() : data.getPartNo(); |
|
|
|
|
|
String customerPartNo = technicalSpecificationMapper.queryCustomerPartNo(data.getSite(), customerPartKey, data.getCustomerId()); |
|
|
if (StringUtils.isEmpty(customerPartNo)) { |
|
|
if (StringUtils.isEmpty(customerPartNo)) { |
|
|
// 不存在数据 新增 |
|
|
|
|
|
if (StringUtils.hasText(data.getCustomerPartNo())){ |
|
|
if (StringUtils.hasText(data.getCustomerPartNo())){ |
|
|
technicalSpecificationMapper.saveCustomerPartNo(data.getSite(),data.getPartNo(),data.getCustomerId(),data.getCustomerPartNo(),sysUserEntity.getUsername()); |
|
|
|
|
|
|
|
|
technicalSpecificationMapper.saveCustomerPartNo(data.getSite(), customerPartKey, data.getCustomerId(), data.getCustomerPartNo(), sysUserEntity.getUsername()); |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
//存在数据修改 |
|
|
|
|
|
technicalSpecificationMapper.updateCustomerPartNo(data.getSite(),data.getPartNo(),data.getCustomerId(),data.getCustomerPartNo(),sysUserEntity.getUsername()); |
|
|
|
|
|
|
|
|
technicalSpecificationMapper.updateCustomerPartNo(data.getSite(), customerPartKey, data.getCustomerId(), data.getCustomerPartNo(), sysUserEntity.getUsername()); |
|
|
} |
|
|
} |
|
|
// 技术参数卡 |
|
|
// 技术参数卡 |
|
|
technicalSpecificationMapper.updateBMcustomerInfo(data); |
|
|
technicalSpecificationMapper.updateBMcustomerInfo(data); |
|
|
|