Browse Source

优化排序

pull/268/head
chenzhihang 8 months ago
parent
commit
316cca31a4
3 changed files with 3 additions and 3 deletions
  1. +1
    -1
      ruoyi-modules/management-platform/src/main/resources/mapper/managementPlatform/ActiveLearnDaoMapper.xml
  2. +1
    -1
      ruoyi-modules/management-platform/src/main/resources/mapper/managementPlatform/MachineLearnDaoMapper.xml
  3. +1
    -1
      ruoyi-modules/management-platform/src/main/resources/mapper/managementPlatform/RayDaoMapper.xml

+ 1
- 1
ruoyi-modules/management-platform/src/main/resources/mapper/managementPlatform/ActiveLearnDaoMapper.xml View File

@@ -9,7 +9,7 @@
<select id="queryByPage" resultType="com.ruoyi.platform.domain.ActiveLearn">
select * from active_learn
<include refid="common_condition"></include>
order by create_time desc limit #{pageable.offset}, #{pageable.pageSize}
order by update_time desc limit #{pageable.offset}, #{pageable.pageSize}
</select>

<select id="getActiveLearnByName" resultType="com.ruoyi.platform.domain.ActiveLearn">


+ 1
- 1
ruoyi-modules/management-platform/src/main/resources/mapper/managementPlatform/MachineLearnDaoMapper.xml View File

@@ -10,7 +10,7 @@
<select id="queryByPage" resultType="com.ruoyi.platform.domain.MachineLearn">
select * from machine_learn
<include refid="common_condition"></include>
order by create_time desc limit #{pageable.offset}, #{pageable.pageSize}
order by update_time desc limit #{pageable.offset}, #{pageable.pageSize}
</select>

<insert id="save" keyProperty="id" useGeneratedKeys="true">


+ 1
- 1
ruoyi-modules/management-platform/src/main/resources/mapper/managementPlatform/RayDaoMapper.xml View File

@@ -86,7 +86,7 @@
<select id="queryByPage" resultType="com.ruoyi.platform.domain.Ray">
select * from ray
<include refid="common_condition"></include>
order by create_time desc limit #{pageable.offset}, #{pageable.pageSize}
order by update_time desc limit #{pageable.offset}, #{pageable.pageSize}
</select>

<select id="getRayByName" resultType="com.ruoyi.platform.domain.Ray">


Loading…
Cancel
Save