浏览代码

数据看板的数据按照日期升序排列

王苗苗 5 月之前
父节点
当前提交
cfbe400630
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      src/main/resources/mapper/TShuju1Mapper.xml
  2. 1 1
      src/main/resources/mapper/TXlhtAddRecordMapper.xml

+ 1 - 1
src/main/resources/mapper/TShuju1Mapper.xml

@@ -263,7 +263,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="timeBegin != null  and timeBegin != ''"> and SUBSTRING (TIME, 1, 10 ) &gt;= #{timeBegin}</if>
             <if test="timeEnd != null  and timeEnd != ''"> and SUBSTRING (TIME, 1, 10 ) &lt;= #{timeEnd}</if>
         </where>
-        order by id desc
+        order by id ASC
     </select>
 
 

+ 1 - 1
src/main/resources/mapper/TXlhtAddRecordMapper.xml

@@ -116,6 +116,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="timeBegin != null  and timeBegin != ''"> and remark &gt;= #{timeBegin}</if>
             <if test="timeEnd != null  and timeEnd != ''"> and remark &lt;= #{timeEnd}</if>
         </where>
-        and del_flag = 0 order by id desc
+        and del_flag = 0 order by id ASC
     </select>
 </mapper>