feat(pms-business): 为 examine_task 表的查询结果添加按创建时间降序排序
- 在 ExamineTaskMapper.xml 文件中的两个查询语句末尾添加了 order by 子句 - 第一个查询按 create_time 降序排序 - 第二个查询按 t1.create_time 降序排序dev_1.1.0
parent
64ef5730bf
commit
a8692d640f
|
@ -38,6 +38,7 @@
|
||||||
AND year = #{year}
|
AND year = #{year}
|
||||||
</if>
|
</if>
|
||||||
</where>
|
</where>
|
||||||
|
order by create_time desc
|
||||||
</select>
|
</select>
|
||||||
<select id="listTask" resultMap="ExamineTaskMap">
|
<select id="listTask" resultMap="ExamineTaskMap">
|
||||||
select distinct t1.id,t1.task_name, t1.people_number, t1.people_number_detail, t1.task_status, t1.create_time, t1.end_time
|
select distinct t1.id,t1.task_name, t1.people_number, t1.people_number_detail, t1.task_status, t1.create_time, t1.end_time
|
||||||
|
@ -64,7 +65,7 @@
|
||||||
<!-- 数据范围过滤 -->
|
<!-- 数据范围过滤 -->
|
||||||
${params.dataScope}
|
${params.dataScope}
|
||||||
</where>
|
</where>
|
||||||
|
order by t1.create_time desc
|
||||||
</select>
|
</select>
|
||||||
<select id="queryById" resultMap="ExamineTaskMap">
|
<select id="queryById" resultMap="ExamineTaskMap">
|
||||||
SELECT * FROM pms_examine_task
|
SELECT * FROM pms_examine_task
|
||||||
|
|
Loading…
Reference in New Issue