diff --git a/src/main/java/com/spring/modules/sampleManagement/service/Impl/TechnicalSpecificationServiceImpl.java b/src/main/java/com/spring/modules/sampleManagement/service/Impl/TechnicalSpecificationServiceImpl.java index 304e091f..8fa5c712 100644 --- a/src/main/java/com/spring/modules/sampleManagement/service/Impl/TechnicalSpecificationServiceImpl.java +++ b/src/main/java/com/spring/modules/sampleManagement/service/Impl/TechnicalSpecificationServiceImpl.java @@ -382,7 +382,9 @@ public class TechnicalSpecificationServiceImpl implements TechnicalSpecification String customerPartNo = technicalSpecificationMapper.queryCustomerPartNo(data.getSite(),data.getPartNo(),data.getCustomerId()); 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 { //存在数据修改 technicalSpecificationMapper.updateCustomerPartNo(data.getSite(),data.getPartNo(),data.getCustomerId(),data.getCustomerPartNo(),sysUserEntity.getUsername()); diff --git a/src/main/resources/application-dev.yml b/src/main/resources/application-dev.yml index 52da19b6..7e57b511 100644 --- a/src/main/resources/application-dev.yml +++ b/src/main/resources/application-dev.yml @@ -77,7 +77,7 @@ oa-api: # OA接口控制 (false 禁止调用;true 开启调用) oa-control: - control-flag: false + control-flag: true #是否启用域控登录 ldap-control: