From 3807a2754a9ea195be9fb43b6cac06b8293c2fc6 Mon Sep 17 00:00:00 2001
From: zxl <763096477@qq.com>
Date: 星期四, 11 十二月 2025 18:06:03 +0800
Subject: [PATCH] 工作台
---
business/src/main/resources/mapper/AuditHistoryMapper.xml | 31 ++++++++++++++++++++++++++++++-
1 files changed, 30 insertions(+), 1 deletions(-)
diff --git a/business/src/main/resources/mapper/AuditHistoryMapper.xml b/business/src/main/resources/mapper/AuditHistoryMapper.xml
index 7bb92f3..5c94d1e 100644
--- a/business/src/main/resources/mapper/AuditHistoryMapper.xml
+++ b/business/src/main/resources/mapper/AuditHistoryMapper.xml
@@ -3,7 +3,7 @@
<mapper namespace="com.ycl.mapper.AuditHistoryMapper">
<!-- 閫氱敤鏌ヨ鏄犲皠缁撴灉 -->
- <resultMap id="BaseResultMap" type="com.ycl.domain.entity.AuditHistory">
+ <resultMap id="BaseResultMap" type="com.ycl.domain.vo.AuditHistoryVO">
<result column="task_id" property="taskId" />
<result column="task_definition_key" property="taskDefinitionKey" />
<result column="viewer" property="viewer" />
@@ -13,7 +13,36 @@
<result column="business_key" property="businessKey" />
<result column="business_table" property="businessTable" />
<result column="content" property="content" />
+ <result column="project_name" property="projectName" />
</resultMap>
+ <select id="getPage" resultMap="BaseResultMap">
+ SELECT
+ ah.task_id,
+ ah.task_definition_key,
+ ah.viewer,
+ ah.commit_dept,
+ ah.audit_type,
+ ah.is_read,
+ ah.business_key,
+ ah.business_table,
+ ah.content,
+ pi.project_name
+ FROM t_audit_history ah
+ LEFT JOIN t_project_info pi ON ah.business_key = pi.id
+ WHERE ah.deleted = 0
+ AND pi.deleted = 0
+ <if test="query.projectIds != null and query.projectIds.size() > 0">
+ AND ah.business_key IN
+ <foreach collection="query.projectIds" item="id" open="(" separator="," close=")">
+ #{id}
+ </foreach>
+ </if>
+ <if test="query.deptId != null">
+ AND
+ ah.commit_dept = #{query.deptId}
+ </if>
+ ORDER BY ah.gmt_create DESC
+ </select>
--
Gitblit v1.8.0