| | |
| | | package com.zy.crm.system.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.mapper.BaseMapper; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Select; |
| | | import org.springframework.stereotype.Repository; |
| | | 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.springframework.stereotype.Repository; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | @Repository |
| | | public interface UserMapper extends BaseMapper<User> { |
| | | |
| | | @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> listByPage(Page page, @Param("hostId")Long hostId, @Param("deptId") String deptId, @Param("username") Object username, @Param("mobile") Object mobile); |
| | | |
| | | List<User> getUserByDept(@Param("hostId")Long hostId, @Param("deptId")Long deptId); |
| | | |
| | | List<User> getDeptManager(@Param("hostId")Long hostId, @Param("deptId")Long deptId); |
| | | |
| | | } |