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