Prechádzať zdrojové kódy

fix: 13468 公司邮箱需要按照最新发送时间倒序,基金管理列表按照最新净值日期倒序,基金管理的附件创建时间倒序排列,解析邮件列表按解析日期倒序排,别名管理按照别名的更新时间倒序排列

chenjianhua 7 mesiacov pred
rodič
commit
e367e494ca

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

@@ -58,6 +58,7 @@
         <if test="fundAliasName != null and fundAliasName !=''">
             and (target_fund_name like concat('%',#{fundAliasName},'%')  or target_register_number like concat('%',#{fundAliasName},'%') )
         </if>
+        order by updatetime desc
         limit #{offset},#{pageSize}
     </select>
     <select id="countFundAlias" resultType="java.lang.Long"

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

@@ -38,11 +38,12 @@
         limit #{offset},#{pageSize}
     </select>
     <select id="searchFundInfoList" resultType="com.simuwang.base.pojo.vo.FundInformationVO">
+        select * from (
         select f.fund_id as fundId,
                f.fund_short_name as fundShortName,
                c.company_short_name as companyShortName,
                f.inception_date as inceptionDate,
-               n.last_price_date as lastPriceDate,
+               ifnull(n.last_price_date,'') as lastPriceDate,
                r.nav_frequency as navFrequency,
                r.asset_Frequency as assetFrequency,
                r.frequency_remark as frequencyRemark
@@ -72,9 +73,9 @@
         </if>
         <if test="endDate != null and endDate !=''">
             and f.inception_date <![CDATA[ <= ]]> #{endDate}
-        </if>
-        order by n.last_price_date desc
+        </if>) a
         limit #{offset},#{pageSize}
+        order by a.lastPriceDate desc
     </select>
 
     <select id="queryFundByNameAndRegisterNumber" resultType="com.simuwang.base.pojo.dos.FundInfoDO">