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