Commit c71a6f95aaa655ca40897351dc694aae65e8af52

Authored by zhangmeiyang
1 parent d082f5c7

金蝶对接pt8

etrade-thirdparty/src/main/java/com/diligrp/etrade/thirdparty/demarcate/AbstractBasicHandler.java
@@ -10,6 +10,7 @@ import com.diligrp.etrade.thirdparty.mapper.TransMapper; @@ -10,6 +10,7 @@ import com.diligrp.etrade.thirdparty.mapper.TransMapper;
10 import com.diligrp.etrade.thirdparty.type.BasicEnum; 10 import com.diligrp.etrade.thirdparty.type.BasicEnum;
11 import com.kingdee.bos.webapi.entity.IdentifyInfo; 11 import com.kingdee.bos.webapi.entity.IdentifyInfo;
12 import jakarta.annotation.Resource; 12 import jakarta.annotation.Resource;
  13 +import org.springframework.util.ObjectUtils;
13 14
14 import java.util.Arrays; 15 import java.util.Arrays;
15 import java.util.Set; 16 import java.util.Set;
@@ -95,6 +96,9 @@ public abstract class AbstractBasicHandler<T extends BaseSourceCo> implements Ty @@ -95,6 +96,9 @@ public abstract class AbstractBasicHandler<T extends BaseSourceCo> implements Ty
95 */ 96 */
96 protected boolean isSync(Long marketId, String systemCode) { 97 protected boolean isSync(Long marketId, String systemCode) {
97 BaseConfigDto baseConfig = transMapper.getBaseConfig(systemCode, marketId); 98 BaseConfigDto baseConfig = transMapper.getBaseConfig(systemCode, marketId);
  99 + if (ObjectUtils.isEmpty(baseConfig)){
  100 + return false;
  101 + }
98 Set<String> set = Arrays.stream(baseConfig.getSyncItem().split(",")).map(String::toUpperCase).collect(Collectors.toSet()); 102 Set<String> set = Arrays.stream(baseConfig.getSyncItem().split(",")).map(String::toUpperCase).collect(Collectors.toSet());
99 return set.contains(getType().code); 103 return set.contains(getType().code);
100 } 104 }