From 0eda1a58a7457299301de761996e5f932317bb71 Mon Sep 17 00:00:00 2001 From: haha Date: Mon, 2 Sep 2024 22:03:50 +0800 Subject: [PATCH] update code --- .../mapper/project/ProProjectInfoMapper.xml | 2 +- .../src/views/project/projectInfo/index.vue | 7 ++++-- yanzhu-ui/src/views/system/user/index.vue | 23 ++++++++++++++++--- 3 files changed, 26 insertions(+), 6 deletions(-) diff --git a/yanzhu-mapper/src/main/resources/mapper/project/ProProjectInfoMapper.xml b/yanzhu-mapper/src/main/resources/mapper/project/ProProjectInfoMapper.xml index eb4c87d..41d8102 100644 --- a/yanzhu-mapper/src/main/resources/mapper/project/ProProjectInfoMapper.xml +++ b/yanzhu-mapper/src/main/resources/mapper/project/ProProjectInfoMapper.xml @@ -34,7 +34,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" and no = #{no} and name like concat('%', #{name}, '%') - and dept_id = #{deptId} + and dept_id in (select dept_id from sys_dept where dept_id=#{deptId} or find_in_set(#{deptId}, ancestors)) and person_name like concat('%', #{personName}, '%') and person_phone = #{personPhone} and proj_status = #{projStatus} diff --git a/yanzhu-ui/src/views/project/projectInfo/index.vue b/yanzhu-ui/src/views/project/projectInfo/index.vue index 4be33c4..c8e4875 100644 --- a/yanzhu-ui/src/views/project/projectInfo/index.vue +++ b/yanzhu-ui/src/views/project/projectInfo/index.vue @@ -1,6 +1,6 @@