feat: 项目列表按更新时间倒序排列

This commit is contained in:
wkc
2026-02-27 14:36:07 +08:00
parent d77ba7011c
commit 66a81af2a0

View File

@@ -14,6 +14,7 @@
<result property="mediumRiskCount" column="medium_risk_count"/>
<result property="lowRiskCount" column="low_risk_count"/>
<result property="createTime" column="create_time"/>
<result property="updateTime" column="update_time"/>
<result property="createBy" column="create_by"/>
<result property="createByName" column="create_by_name"/>
</resultMap>
@@ -24,6 +25,7 @@
p.project_id, p.project_name, p.description, p.config_type,
p.status, p.is_archived, p.target_count, p.high_risk_count,
p.medium_risk_count, p.low_risk_count, p.create_time,
p.update_time,
p.create_by,
IFNULL(u.nick_name, p.create_by) AS create_by_name
FROM ccdi_project p
@@ -36,6 +38,6 @@
AND p.status = #{queryDTO.status}
</if>
</where>
ORDER BY p.create_time DESC
ORDER BY p.update_time DESC
</select>
</mapper>