|
@@ -18,19 +18,19 @@ import java.util.Map;
|
|
|
@Component
|
|
|
public class FundInformationDao {
|
|
|
private final FundAssetSizeMapper fundAssetSizeMapper;
|
|
|
- private final FundFrequencyDoMapper fundFrequencyDoMapper;
|
|
|
- private final FundInformationDoMapper fundInformationDoMapper;
|
|
|
+ private final FundFrequencyMapper fundFrequencyMapper;
|
|
|
+ private final FundInformationMapper fundInformationMapper;
|
|
|
private final MonetaryFundProfitMapper monetaryFundProfitMapper;
|
|
|
private final CompanyFundScaleRangeHistoryMapper companyFundScaleRangeHistoryMapper;
|
|
|
|
|
|
- public FundInformationDao( FundAssetSizeMapper fundAssetSizeMapper,
|
|
|
- FundFrequencyDoMapper fundFrequencyDoMapper,
|
|
|
- FundInformationDoMapper fundInformationDoMapper,
|
|
|
+ public FundInformationDao(FundAssetSizeMapper fundAssetSizeMapper,
|
|
|
+ FundFrequencyMapper fundFrequencyMapper,
|
|
|
+ FundInformationMapper fundInformationMapper,
|
|
|
MonetaryFundProfitMapper monetaryFundProfitMapper,
|
|
|
- CompanyFundScaleRangeHistoryMapper companyFundScaleRangeHistoryMapper) {
|
|
|
+ CompanyFundScaleRangeHistoryMapper companyFundScaleRangeHistoryMapper) {
|
|
|
this.fundAssetSizeMapper = fundAssetSizeMapper;
|
|
|
- this.fundFrequencyDoMapper = fundFrequencyDoMapper;
|
|
|
- this.fundInformationDoMapper = fundInformationDoMapper;
|
|
|
+ this.fundFrequencyMapper = fundFrequencyMapper;
|
|
|
+ this.fundInformationMapper = fundInformationMapper;
|
|
|
this.monetaryFundProfitMapper = monetaryFundProfitMapper;
|
|
|
this.companyFundScaleRangeHistoryMapper = companyFundScaleRangeHistoryMapper;
|
|
|
}
|
|
@@ -42,21 +42,21 @@ public class FundInformationDao {
|
|
|
* @return /
|
|
|
*/
|
|
|
public List<FundInfoDO> listFundInfo(List<String> fundIds) {
|
|
|
- return this.fundInformationDoMapper.queryFundInfoList(fundIds);
|
|
|
+ return this.fundInformationMapper.queryFundInfoList(fundIds);
|
|
|
}
|
|
|
|
|
|
public FundInfoDO getFundInfoById(String fundId) {
|
|
|
- List<FundInfoDO> dataList = this.fundInformationDoMapper.queryFundInfoList(ListUtil.toList(fundId));
|
|
|
+ List<FundInfoDO> dataList = this.fundInformationMapper.queryFundInfoList(ListUtil.toList(fundId));
|
|
|
return dataList.stream().filter(e -> fundId.equals(e.getFundId())).findFirst().orElse(null);
|
|
|
}
|
|
|
|
|
|
public String getNavFrequencyByFundId(String secId) {
|
|
|
- return this.fundFrequencyDoMapper.getNavFrequencyByFundId(secId);
|
|
|
+ return this.fundFrequencyMapper.getNavFrequencyByFundId(secId);
|
|
|
}
|
|
|
|
|
|
public Map<String, Frequency> getNavFrequency(List<String> secIdList) {
|
|
|
Map<String, Frequency> secFrequencyMap = new HashMap<>();
|
|
|
- List<FundFrequencyDo> fundFrequencyDos = fundFrequencyDoMapper.getNavFrequencyByFundIdList(secIdList);
|
|
|
+ List<FundFrequencyDo> fundFrequencyDos = fundFrequencyMapper.getNavFrequencyByFundIdList(secIdList);
|
|
|
for (FundFrequencyDo fundFrequencyDo : fundFrequencyDos) {
|
|
|
String frequencyStr = fundFrequencyDo.getNavFrequency();
|
|
|
Frequency frequency = Frequency.Monthly;
|
|
@@ -71,7 +71,7 @@ public class FundInformationDao {
|
|
|
}
|
|
|
|
|
|
public Map<String, String> getMarketFundIdNameMap(List<String> fundIdList) {
|
|
|
- List<FundInformationDo> fundInformationDos = fundInformationDoMapper.listFundInfo(fundIdList);
|
|
|
+ List<FundInformationDo> fundInformationDos = fundInformationMapper.listFundInfo(fundIdList);
|
|
|
Map<String, String> fundIdNameMap = new HashMap<>();
|
|
|
for (FundInformationDo fundInformationDo : fundInformationDos) {
|
|
|
fundIdNameMap.put(fundInformationDo.getFundId(), fundInformationDo.getFundShortName());
|
|
@@ -89,27 +89,27 @@ public class FundInformationDao {
|
|
|
params.put("rankDate", rankDate);
|
|
|
params.put("indexIds", String.join("_", indexIds));
|
|
|
params.put("indicator", indicator.getId());
|
|
|
- return this.fundInformationDoMapper.getFundRankByCall(params);
|
|
|
+ return this.fundInformationMapper.getFundRankByCall(params);
|
|
|
}
|
|
|
|
|
|
public List<FundSimilarDo> getSameCompanyFundIds(Map<String, Object> params) {
|
|
|
- return this.fundInformationDoMapper.getSameCompanyFundIds(params);
|
|
|
+ return this.fundInformationMapper.getSameCompanyFundIds(params);
|
|
|
}
|
|
|
|
|
|
public List<FundSimilarDo> getSameStrategyFundIds(Map<String, Object> params) {
|
|
|
- return this.fundInformationDoMapper.getSameStrategyFundIds(params);
|
|
|
+ return this.fundInformationMapper.getSameStrategyFundIds(params);
|
|
|
}
|
|
|
|
|
|
public FundFeeDo getFundFee(String fundId) {
|
|
|
- return this.fundInformationDoMapper.getFundFee(fundId);
|
|
|
+ return this.fundInformationMapper.getFundFee(fundId);
|
|
|
}
|
|
|
|
|
|
public List<ManualFundManagerChangeDo> listFundManagerChangeHistory(String fundId) {
|
|
|
- return this.fundInformationDoMapper.listFundManagerChangeHistory(fundId);
|
|
|
+ return this.fundInformationMapper.listFundManagerChangeHistory(fundId);
|
|
|
}
|
|
|
|
|
|
public List<MfManagerFundNumDo> listMfManagerFundNumByManagerId(List<String> managerIdList) {
|
|
|
- return this.fundInformationDoMapper.listMfManagerFundNumByManagerId(managerIdList);
|
|
|
+ return this.fundInformationMapper.listMfManagerFundNumByManagerId(managerIdList);
|
|
|
}
|
|
|
|
|
|
public String getFundLastAssetSize(String fundId) {
|