From 1045f256c2d9477b177dec61246bc0d174133f97 Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期一, 20 一月 2025 18:02:49 +0800
Subject: [PATCH] Query适配数据权限、项目查询增加数据权限

---
 business/src/main/resources/mapper/PlanMapper.xml |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/business/src/main/resources/mapper/PlanMapper.xml b/business/src/main/resources/mapper/PlanMapper.xml
index 0b433f7..139c557 100644
--- a/business/src/main/resources/mapper/PlanMapper.xml
+++ b/business/src/main/resources/mapper/PlanMapper.xml
@@ -63,6 +63,7 @@
             pi.invest_type
         FROM t_project_info AS pi
         LEFT JOIN t_plan AS p ON p.project_info_id = pi.id
+        LEFT JOIN sys_dept d ON d.dept_id = PI.project_owner_unit
         <where>
             pi.deleted = 0
             <if test="query.projectName!= null and query.projectName!= ''">
@@ -83,6 +84,7 @@
             <if test="query.yearStatus!= null">
                 AND p.year_status = #{query.yearStatus}
             </if>
+            ${query.params.dataScope}
         </where>
     </select>
 

--
Gitblit v1.8.0