实现历史项目导入任务提交流程

This commit is contained in:
wkc
2026-03-29 09:49:44 +08:00
parent eb0d896114
commit b098d4eed1
7 changed files with 180 additions and 3 deletions

View File

@@ -19,6 +19,15 @@
<result property="createByName" column="create_by_name"/>
</resultMap>
<resultMap id="ProjectHistoryListItemResultMap" type="com.ruoyi.ccdi.project.domain.vo.CcdiProjectHistoryListItemVO">
<id property="projectId" column="project_id"/>
<result property="projectName" column="project_name"/>
<result property="description" column="description"/>
<result property="status" column="status"/>
<result property="isArchived" column="is_archived"/>
<result property="createTime" column="create_time"/>
</resultMap>
<!-- 分页查询项目列表 -->
<select id="selectProjectPage" resultMap="ProjectVOResultMap">
SELECT
@@ -41,6 +50,24 @@
ORDER BY p.update_time DESC
</select>
<select id="selectHistoryProjects" resultMap="ProjectHistoryListItemResultMap">
SELECT
p.project_id,
p.project_name,
p.description,
p.status,
p.is_archived,
p.create_time
FROM ccdi_project p
<where>
p.status in ('1', '2')
<if test="queryDTO.projectName != null and queryDTO.projectName != ''">
AND p.project_name LIKE CONCAT('%', #{queryDTO.projectName}, '%')
</if>
</where>
ORDER BY p.update_time DESC
</select>
<update id="updateRiskCountsByProjectId">
update ccdi_project
set high_risk_count = #{highRiskCount},