Procházet zdrojové kódy

fix: 基金管理增加日期字段排序

chenjianhua před 6 měsíci
rodič
revize
100a323c24

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

@@ -88,11 +88,12 @@
         </if>) a
         <choose>
             <when test="sort != null and sort !='' and sort=='lastPriceDate' and order != null and order !=''">
+                order by
                 CASE
                     WHEN a.lastPriceDate IS NULL THEN 1
                 ELSE 0
                 END,
-                order by a.lastPriceDate ${order}
+                a.lastPriceDate ${order}
             </when>
             <otherwise>
                 order by a.lastPriceDate desc