diff --git a/hz-pm-api/src/main/java/com/hz/pm/api/projectlib/manage/QxProjectManage.java b/hz-pm-api/src/main/java/com/hz/pm/api/projectlib/manage/QxProjectManage.java index bce91b6..530885f 100644 --- a/hz-pm-api/src/main/java/com/hz/pm/api/projectlib/manage/QxProjectManage.java +++ b/hz-pm-api/src/main/java/com/hz/pm/api/projectlib/manage/QxProjectManage.java @@ -208,7 +208,8 @@ public class QxProjectManage { .exists(StrUtil.isNotBlank(req.getReplaceType()), "select 1 from qx_project_system_replace_infos " + "where qx_project_system_replace_infos.project_id = qx_project.id " + - "and replace_type = {0}", req.getReplaceType()); + "and replace_type = {0}", req.getReplaceType()) + .orderByDesc(QxProject::getUpdateOn); UnitQueryState unitQuery = unitQueryHelper.listCanViewUnitIds(req.getBuildOrgCode()); if (!unitQuery.isState()) { return PageVo.empty();