浏览代码

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

chenjianhua 6 月之前
父节点
当前提交
378355189e
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      service-base/src/main/resources/mapper/CompanyEmailHistoryMapper.xml

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

@@ -39,7 +39,7 @@
             cec.company_id,
             cec.company_id,
             c.company_name,
             c.company_name,
             cec.email,
             cec.email,
-            maxce.send_time,
+            maxce.send_time as send_time,
             maxce.send_remark,
             maxce.send_remark,
             ifnull(maxce.send_status,-1) as send_status
             ifnull(maxce.send_status,-1) as send_status
         FROM
         FROM
@@ -61,7 +61,7 @@
         <if test="sendStatus == -1">
         <if test="sendStatus == -1">
             and maxce.send_status is null
             and maxce.send_status is null
         </if>
         </if>
-        order by maxce.send_time desc
+        order by send_time desc
         limit #{offset},#{pageSize}
         limit #{offset},#{pageSize}
     </select>
     </select>