|
@@ -19,7 +19,6 @@ import org.springframework.util.CollectionUtils;
|
|
|
import org.springframework.util.StringUtils;
|
|
|
|
|
|
import java.util.*;
|
|
|
-import java.util.stream.Collectors;
|
|
|
|
|
|
@Component
|
|
|
@Slf4j
|
|
@@ -44,7 +43,7 @@ public class CategoryStrategy implements ScoreStrategy {
|
|
|
return scores;
|
|
|
}
|
|
|
AccountCategory accountCategory = accountCategoryRepository.getByGhIdAndStatus(param.getGhId(), StatusEnum.ONE.getCode());
|
|
|
- if (Objects.isNull(accountCategory) || StringUtils.hasText(accountCategory.getCategoryMap())) {
|
|
|
+ if (Objects.isNull(accountCategory) || !StringUtils.hasText(accountCategory.getCategoryMap())) {
|
|
|
return scores;
|
|
|
}
|
|
|
Map<String, Double> categoryWeightMap = JSONObject.parseObject(accountCategory.getCategoryMap()).toJavaObject(HashMap.class);
|