|
|
@ -382,7 +382,9 @@ public class TechnicalSpecificationServiceImpl implements TechnicalSpecification |
|
|
String customerPartNo = technicalSpecificationMapper.queryCustomerPartNo(data.getSite(),data.getPartNo(),data.getCustomerId()); |
|
|
String customerPartNo = technicalSpecificationMapper.queryCustomerPartNo(data.getSite(),data.getPartNo(),data.getCustomerId()); |
|
|
if (StringUtils.isEmpty(customerPartNo)){ |
|
|
if (StringUtils.isEmpty(customerPartNo)){ |
|
|
// 不存在数据 新增 |
|
|
// 不存在数据 新增 |
|
|
technicalSpecificationMapper.saveCustomerPartNo(data.getSite(),data.getPartNo(),data.getCustomerId(),data.getCustomerPartNo(),sysUserEntity.getUsername()); |
|
|
|
|
|
|
|
|
if (StringUtils.hasText(data.getCustomerPartNo())){ |
|
|
|
|
|
technicalSpecificationMapper.saveCustomerPartNo(data.getSite(),data.getPartNo(),data.getCustomerId(),data.getCustomerPartNo(),sysUserEntity.getUsername()); |
|
|
|
|
|
} |
|
|
}else { |
|
|
}else { |
|
|
//存在数据修改 |
|
|
//存在数据修改 |
|
|
technicalSpecificationMapper.updateCustomerPartNo(data.getSite(),data.getPartNo(),data.getCustomerId(),data.getCustomerPartNo(),sysUserEntity.getUsername()); |
|
|
technicalSpecificationMapper.updateCustomerPartNo(data.getSite(),data.getPartNo(),data.getCustomerId(),data.getCustomerPartNo(),sysUserEntity.getUsername()); |
|
|
|