Browse Source

fix:修改新增联系报错的问题

dist.1.3.0
pref_mail@163.com 6 months ago
parent
commit
83ec8021e8
  1. 3
      blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataStoreContactServiceImpl.java

3
blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataStoreContactServiceImpl.java

@ -34,6 +34,7 @@ import org.springframework.stereotype.Service;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.Objects;
import java.util.stream.Collectors; import java.util.stream.Collectors;
/** /**
@ -111,7 +112,7 @@ public class BasicdataStoreContactServiceImpl extends BaseServiceImpl<BasicdataS
public boolean saveOrUpdateBasicdataStoreContact(BasicdataStoreContactEntity basicdataStoreContact) { public boolean saveOrUpdateBasicdataStoreContact(BasicdataStoreContactEntity basicdataStoreContact) {
//进行客户列表的联系人修改 //进行客户列表的联系人修改
Long shopId = basicdataStoreContact.getShopId(); Long shopId = basicdataStoreContact.getShopId();
if (basicdataStoreContact.getDefaultType()){ if (!Objects.isNull(basicdataStoreContact.getDefaultType()) &&basicdataStoreContact.getDefaultType()){
BasicdataClientEntity basicdataClientEntity = new BasicdataClientEntity(); BasicdataClientEntity basicdataClientEntity = new BasicdataClientEntity();
basicdataClientEntity.setId(shopId); basicdataClientEntity.setId(shopId);
basicdataClientEntity.setLinkman(basicdataStoreContact.getLinkman()); basicdataClientEntity.setLinkman(basicdataStoreContact.getLinkman());

Loading…
Cancel
Save