|
@@ -14,6 +14,7 @@ import com.smppw.analysis.domain.event.SaveCacheEvent;
|
|
import com.smppw.analysis.domain.gateway.CacheFactory;
|
|
import com.smppw.analysis.domain.gateway.CacheFactory;
|
|
import com.smppw.analysis.domain.gateway.CacheGateway;
|
|
import com.smppw.analysis.domain.gateway.CacheGateway;
|
|
import com.smppw.analysis.domain.mapper.core.CommonIndexMapper;
|
|
import com.smppw.analysis.domain.mapper.core.CommonIndexMapper;
|
|
|
|
+import com.smppw.analysis.domain.mapper.core.FundAssetSizeMapper;
|
|
import com.smppw.analysis.domain.mapper.core.MfChargeRateMapper;
|
|
import com.smppw.analysis.domain.mapper.core.MfChargeRateMapper;
|
|
import com.smppw.analysis.domain.mapper.core.PersonnelInformationMapper;
|
|
import com.smppw.analysis.domain.mapper.core.PersonnelInformationMapper;
|
|
import com.smppw.analysis.domain.service.BaseInfoService;
|
|
import com.smppw.analysis.domain.service.BaseInfoService;
|
|
@@ -71,11 +72,13 @@ public class BaseInfoServiceImpl implements BaseInfoService, ApplicationContextA
|
|
private ApplicationContext applicationContext;
|
|
private ApplicationContext applicationContext;
|
|
@Autowired
|
|
@Autowired
|
|
private CommonIndexMapper commonIndexMapper;
|
|
private CommonIndexMapper commonIndexMapper;
|
|
|
|
+ private final FundAssetSizeMapper fundAssetSizeMapper;
|
|
|
|
|
|
public BaseInfoServiceImpl(AnalysisProperty property, CacheFactory factory, RankFactory rankFactory,
|
|
public BaseInfoServiceImpl(AnalysisProperty property, CacheFactory factory, RankFactory rankFactory,
|
|
IndexesProfileDao indexesProfileDao, RongzhiIndexNavDao rongzhiIndexNavDao,
|
|
IndexesProfileDao indexesProfileDao, RongzhiIndexNavDao rongzhiIndexNavDao,
|
|
FundInformationDao fundInformationDao, FundAnnounceDao fundAnnounceDao,
|
|
FundInformationDao fundInformationDao, FundAnnounceDao fundAnnounceDao,
|
|
- FundArchivesDao fundArchivesDao, MfChargeRateMapper mfChargeRateMapper, PersonnelInformationMapper personnelInformationMapper) {
|
|
|
|
|
|
+ FundArchivesDao fundArchivesDao, MfChargeRateMapper mfChargeRateMapper,
|
|
|
|
+ PersonnelInformationMapper personnelInformationMapper, FundAssetSizeMapper fundAssetSizeMapper) {
|
|
this.rankDao = rankFactory.getInstance(property.getDataSource());
|
|
this.rankDao = rankFactory.getInstance(property.getDataSource());
|
|
this.cacheGateway = factory.getCacheGateway(property.getCacheType());
|
|
this.cacheGateway = factory.getCacheGateway(property.getCacheType());
|
|
this.indexesProfileDao = indexesProfileDao;
|
|
this.indexesProfileDao = indexesProfileDao;
|
|
@@ -85,6 +88,7 @@ public class BaseInfoServiceImpl implements BaseInfoService, ApplicationContextA
|
|
this.fundArchivesDao = fundArchivesDao;
|
|
this.fundArchivesDao = fundArchivesDao;
|
|
this.mfChargeRateMapper = mfChargeRateMapper;
|
|
this.mfChargeRateMapper = mfChargeRateMapper;
|
|
this.personnelInformationMapper = personnelInformationMapper;
|
|
this.personnelInformationMapper = personnelInformationMapper;
|
|
|
|
+ this.fundAssetSizeMapper = fundAssetSizeMapper;
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
@@ -230,9 +234,6 @@ public class BaseInfoServiceImpl implements BaseInfoService, ApplicationContextA
|
|
// 市场指数
|
|
// 市场指数
|
|
List<String> marketIndexIds = ListUtil.of(SecType.INDEX_FUND, SecType.RONGZHI_INDEX, SecType.THIRD_INDEX_FUND);
|
|
List<String> marketIndexIds = ListUtil.of(SecType.INDEX_FUND, SecType.RONGZHI_INDEX, SecType.THIRD_INDEX_FUND);
|
|
this.loadNameMap(secNameMap, typeSecMap, marketIndexIds, this.indexesProfileDao::getFundIdNameMap);
|
|
this.loadNameMap(secNameMap, typeSecMap, marketIndexIds, this.indexesProfileDao::getFundIdNameMap);
|
|
- // 策略
|
|
|
|
- List<String> strategyIds = ListUtil.of(SecType.STRATEGY);
|
|
|
|
- this.loadNameMap(secNameMap, typeSecMap, strategyIds, this::getStrategyIdNameMap);
|
|
|
|
// 推送事件,存缓存
|
|
// 推送事件,存缓存
|
|
SaveCacheEvent<Map<String, Object>> event = new SaveCacheEvent<>(key, secNameMap, t -> {
|
|
SaveCacheEvent<Map<String, Object>> event = new SaveCacheEvent<>(key, secNameMap, t -> {
|
|
this.cacheGateway.hset(key, t);
|
|
this.cacheGateway.hset(key, t);
|
|
@@ -318,6 +319,21 @@ public class BaseInfoServiceImpl implements BaseInfoService, ApplicationContextA
|
|
return fundInformationDao.listFundManagerChangeHistory(fundId);
|
|
return fundInformationDao.listFundManagerChangeHistory(fundId);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @Override
|
|
|
|
+ public List<MfManagerFundNumDo> listMfManagerFundNumByManagerId(List<String> managerIdList) {
|
|
|
|
+ return fundInformationDao.listMfManagerFundNumByManagerId(managerIdList);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public List<PersonnelInformationDo> getFundPresentManagerInfo(String refId) {
|
|
|
|
+ return personnelInformationMapper.getFundPresentManagerInfo(refId);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public List<ManualFundAssetSizeDo> getAssetSizeList(String managerId) {
|
|
|
|
+ return fundAssetSizeMapper.getAssetSizeList(managerId);
|
|
|
|
+ }
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 把指定类型的标的的名称映射查询出来
|
|
* 把指定类型的标的的名称映射查询出来
|
|
*
|
|
*
|