Browse Source

fix:数据详情优化查询

chenjianhua 1 month ago
parent
commit
188ace1c4e

+ 1 - 1
service-base/src/main/java/com/simuwang/base/mapper/FundInfoMapper.java

@@ -52,5 +52,5 @@ public interface FundInfoMapper {
 
     Long countFundTotal();
 
-    List<FundInformationDO> searchFundInfoListByFundIdList(@Param("fundIdList")List<String> fundIdList);
+    List<FundInfoDO> searchFundInfoListByFundIdList(@Param("fundIdList")List<String> fundIdList);
 }

+ 1 - 0
service-base/src/main/resources/mapper/FundInfoMapper.xml

@@ -4,6 +4,7 @@
     <resultMap id="BaseResultMap" type="com.simuwang.base.pojo.dos.FundInfoDO">
         <id column="id" property="id"/>
         <result column="p_fund_id" property="pFundId"/>
+        <result column="fund_id" property="fundId"/>
         <result column="fund_name" property="fundName"/>
         <result column="fund_short_name" property="fundShortName"/>
         <result column="fund_type" property="fundType"/>

+ 2 - 2
service-manage/src/main/java/com/simuwang/manage/service/impl/FundInformationServiceImpl.java

@@ -63,8 +63,8 @@ public class FundInformationServiceImpl implements FundInformationService {
     @Override
     public Map<String, String> getFundIdNameByFundIdList(List<String> fundIdList) {
         Map<String, String> map = new HashMap<>();
-        List<FundInformationDO> result = fundInfoMapper.searchFundInfoListByFundIdList(fundIdList);
-        for (FundInformationDO fundInformationDO : result) {
+        List<FundInfoDO> result = fundInfoMapper.searchFundInfoListByFundIdList(fundIdList);
+        for (FundInfoDO fundInformationDO : result) {
             map.put(fundInformationDO.getFundId(), fundInformationDO.getFundShortName());
         }
         return map;