소스 검색

fix: 公司邮箱配置页面查询排序问题修复

chenjianhua 6 달 전
부모
커밋
3def04c8d7
1개의 변경된 파일6개의 추가작업 그리고 1개의 파일을 삭제
  1. 6 1
      service-base/src/main/resources/mapper/CompanyEmailHistoryMapper.xml

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

@@ -61,7 +61,12 @@
         <if test="sendStatus == -1">
             and maxce.send_status is null
         </if>
-        order by send_time desc
+        order by
+        CASE
+            WHEN send_time IS NULL THEN 1
+        ELSE 0
+        END,
+            send_time desc
         limit #{offset},#{pageSize}
     </select>