Browse Source

feat: 分红查询按更新时间排序

chenjianhua 7 tháng trước cách đây
mục cha
commit
2f37bfaef1

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

@@ -71,9 +71,9 @@
             ON info.trust_id = c.company_id AND c.isvalid = 1
             JOIN PPW_EMAIL.nav n
             ON n.fund_id = d.fund_id and d.distribute_date=n.price_date
+            AND n.isvalid = 1
         WHERE d.isvalid = 1
             AND info.isvalid = 1
-            AND n.isvalid = 1
         <if test="companyName != null and companyName !=''">
             and (c.company_name like concat('%',#{companyName},'%') or c.company_short_name like concat('%',#{companyName},'%'))
         </if>
@@ -89,6 +89,7 @@
         <if test="endDate != null and endDate !=''">
             and d.distribute_date <![CDATA[ <= ]]> #{endDate}
         </if>
+        order by d.updatetime desc
         limit #{offset},#{pageSize}
     </select>
     <select id="countDistributionList" resultType="java.lang.Long"