Browse Source

feat:基金搜索过慢优化

chenjianhua 1 week ago
parent
commit
70d837fd31

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

@@ -37,7 +37,7 @@
         f.register_number as "registerNumber"
         from PPW_EMAIL.pvn_fund_info f where f.isvalid =1
         <if test="keyword != null and keyword !=''">
-            and (f.fund_name like concat('%',#{keyword},'%') or f.fund_short_name like concat('%',#{keyword},'%') or f.register_number like concat('%',#{keyword},'%') or f.fund_id like concat('%',#{keyword},'%'))
+            and (f.fund_name like concat(#{keyword},'%') or f.fund_short_name like concat(#{keyword},'%') or f.register_number like concat(#{keyword},'%'))
         </if>
         limit #{offset},#{pageSize}
     </select>

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

@@ -41,8 +41,6 @@ public class FundInformationServiceImpl implements FundInformationService {
             vo.setRegisterNumber(map.get("registerNumber"));
             fundInfoSearchVOList.add(vo);
         }
-        //不存在分页情况,不查询总数
-//        long total = fundInfoMapper.countFundInfoByKeyword(fundInputPageQuery);
         long total = fundInfoList.size();
         return MybatisPage.of(total,fundInfoSearchVOList);
     }