|
|
|
@ -2,11 +2,9 @@ package com.sztzjy.fund_investment.controller;
|
|
|
|
|
|
|
|
|
|
import cn.hutool.core.util.IdUtil;
|
|
|
|
|
import com.sztzjy.fund_investment.annotation.AnonymousAccess;
|
|
|
|
|
import com.sztzjy.fund_investment.config.Constant;
|
|
|
|
|
import com.sztzjy.fund_investment.entity.*;
|
|
|
|
|
import com.sztzjy.fund_investment.mapper.FlowMapper;
|
|
|
|
|
import com.sztzjy.fund_investment.mapper.PerformanceScoreMapper;
|
|
|
|
|
import com.sztzjy.fund_investment.mapper.TopicsMapper;
|
|
|
|
|
import com.sztzjy.fund_investment.mapper.UserMapper;
|
|
|
|
|
import com.sztzjy.fund_investment.service.PerformanceScoreService;
|
|
|
|
|
import com.sztzjy.fund_investment.service.TopicService;
|
|
|
|
@ -132,7 +130,11 @@ public class TopicController {
|
|
|
|
|
PerformanceScoreExample performanceScoreExample = new PerformanceScoreExample();
|
|
|
|
|
performanceScoreExample.createCriteria().andFlowIdEqualTo(flowId);
|
|
|
|
|
List<PerformanceScore> performanceScores = performanceScoreMapper.selectByExample(performanceScoreExample);
|
|
|
|
|
return new ResultEntity<>(performanceScores.get(0));
|
|
|
|
|
if (performanceScores.isEmpty()) {
|
|
|
|
|
return null;
|
|
|
|
|
} else {
|
|
|
|
|
return new ResultEntity<>(performanceScores.get(0));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|