|
@@ -8,10 +8,12 @@ import cn.hutool.core.map.MapUtil;
|
|
|
import cn.hutool.core.text.CharSequenceUtil;
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
import com.smppw.analysis.application.dto.info.*;
|
|
|
-import com.smppw.analysis.domain.dataobject.CmManualFundNoticeInfoDO;
|
|
|
+import com.smppw.analysis.domain.dataobject.FundArchivesInfoDO;
|
|
|
+import com.smppw.analysis.domain.dataobject.ManualFundNoticeInfoDO;
|
|
|
import com.smppw.analysis.domain.dataobject.FundSimilarDo;
|
|
|
import com.smppw.analysis.domain.dto.info.FundSimilarParams;
|
|
|
import com.smppw.analysis.domain.dto.info.FundSimilarVO;
|
|
|
+import com.smppw.analysis.domain.dto.info.ManualFundInvestInfoVO;
|
|
|
import com.smppw.analysis.domain.dto.info.ManualFundNoticeInfoVO;
|
|
|
import com.smppw.analysis.domain.dto.performance.IndicatorParams;
|
|
|
import com.smppw.analysis.domain.manager.performance.Performance;
|
|
@@ -148,7 +150,8 @@ public class FundInfoService {
|
|
|
List<FundSimilarVO> resultList = ListUtil.list(true);
|
|
|
for (FundSimilarDo map : dataList) {
|
|
|
FundSimilarVO similarVO = BeanUtil.copyProperties(map, FundSimilarVO.class);
|
|
|
- int i = fundIds.indexOf(map.getFundId()) + 1; // 因为第一个基金是当前基金,所以需要 + 1 来取该基金与当前基金的相关性
|
|
|
+ // 因为第一个基金是当前基金,所以需要 + 1 来取该基金与当前基金的相关性
|
|
|
+ int i = fundIds.indexOf(map.getFundId()) + 1;
|
|
|
similarVO.setSimilar(corArr[0][i]);
|
|
|
similarVO.setStrategy(StrategyHandleUtils.getStrategy(map.getStrategy()).getStrategyNameDesc());
|
|
|
similarVO.setSubStrategy(this.getStrategyName(map.getSubStrategy()));
|
|
@@ -196,11 +199,11 @@ public class FundInfoService {
|
|
|
typeList.addAll(StrUtil.split(s, ","));
|
|
|
}
|
|
|
//todo 确认基金公告表所在的库
|
|
|
- List<CmManualFundNoticeInfoDO> dataList = baseInfoService.queryFundAnnounce(fundId, typeList, title);
|
|
|
+ List<ManualFundNoticeInfoDO> dataList = this.baseInfoService.queryFundAnnounce(fundId, typeList, title);
|
|
|
List<ManualFundNoticeInfoVO> resultList = ListUtil.list(true);
|
|
|
// key value互换
|
|
|
Map<String, String> reverse = MapUtil.reverse(typeMapper);
|
|
|
- for (CmManualFundNoticeInfoDO temp : dataList) {
|
|
|
+ for (ManualFundNoticeInfoDO temp : dataList) {
|
|
|
ManualFundNoticeInfoVO vo = BeanUtil.copyProperties(temp, ManualFundNoticeInfoVO.class);
|
|
|
vo.setType(reverse.getOrDefault(vo.getType(), "4"));
|
|
|
vo.setDate(DateUtil.formatDate(temp.getDate()));
|
|
@@ -208,4 +211,16 @@ public class FundInfoService {
|
|
|
}
|
|
|
return resultList;
|
|
|
}
|
|
|
+
|
|
|
+ public ManualFundInvestInfoVO investInfo(String refId) {
|
|
|
+ ManualFundInvestInfoVO fundInvestInfoVO = new ManualFundInvestInfoVO();
|
|
|
+ FundArchivesInfoDO fundArchivesInfo = this.baseInfoService.queryFundArchives(refId);
|
|
|
+ if(fundArchivesInfo==null){
|
|
|
+ return fundInvestInfoVO;
|
|
|
+ }
|
|
|
+ fundInvestInfoVO.setInvestmentObjective(fundArchivesInfo.getInvestmentObjective());
|
|
|
+ fundInvestInfoVO.setStrategyDescription(fundArchivesInfo.getStrategyDescription());
|
|
|
+ fundInvestInfoVO.setInvestmentScope(fundArchivesInfo.getInvestmentScope());
|
|
|
+ return fundInvestInfoVO;
|
|
|
+ }
|
|
|
}
|