From f40a9f9c1b90d3efd52926b29f3612cb1c293afa Mon Sep 17 00:00:00 2001 From: LSH Date: 星期一, 11 九月 2023 13:25:42 +0800 Subject: [PATCH] #跟踪项目负责人默认值 --- src/main/java/com/zy/crm/system/mapper/UserMapper.java | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/zy/crm/system/mapper/UserMapper.java b/src/main/java/com/zy/crm/system/mapper/UserMapper.java index bef5e5c..52c0a5e 100644 --- a/src/main/java/com/zy/crm/system/mapper/UserMapper.java +++ b/src/main/java/com/zy/crm/system/mapper/UserMapper.java @@ -2,11 +2,10 @@ import com.baomidou.mybatisplus.mapper.BaseMapper; import com.baomidou.mybatisplus.plugins.Page; +import com.zy.crm.system.entity.User; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; -import org.apache.ibatis.annotations.Select; import org.springframework.stereotype.Repository; -import com.zy.crm.system.entity.User; import java.util.List; @@ -16,7 +15,8 @@ List<User> listByPage(Page page, @Param("hostId")Long hostId, @Param("deptId") String deptId, @Param("username") Object username, @Param("mobile") Object mobile); - @Select("select sys_user.* from sys_user left join sys_dept on sys_user.dept_id = sys_dept.id where sys_dept.parent_id = 1") - List<User> getUserByDept(Long deptId); + List<User> getUserByDept(@Param("hostId")Long hostId, @Param("deptId")Long deptId); + + List<User> getDeptManager(@Param("hostId")Long hostId, @Param("deptId")Long deptId); } -- Gitblit v1.9.1