SysUserLinkFrontLineDeptMapper.java 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. package com.ydtech.modules.admin.dao;
  2. import com.baomidou.mybatisplus.core.mapper.BaseMapper;
  3. import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
  4. import com.ydtech.modules.admin.model.SysDept;
  5. import com.ydtech.modules.admin.model.dto.SysUserDto;
  6. import com.ydtech.modules.admin.model.dto.SysUserLinkFrontLineDeptDto;
  7. import com.ydtech.modules.admin.model.po.SysUserLinkFrontLineDept;
  8. import com.ydtech.modules.admin.model.vo.SysUserBaseVO;
  9. import com.ydtech.modules.admin.model.vo.SysUserLinkFrontLineDeptQueryVo;
  10. import org.apache.ibatis.annotations.Param;
  11. import java.util.List;
  12. /**
  13. * @author Administrator
  14. * @description 针对表【sys_user_link_front_line_dept(后线人员配置内部机构表)】的数据库操作Mapper
  15. * @createDate 2024-06-26 17:28:18
  16. * @Entity generator.domain.SysUserLinkFrontLineDept
  17. */
  18. public interface SysUserLinkFrontLineDeptMapper extends BaseMapper<SysUserLinkFrontLineDept> {
  19. /**
  20. * @version
  21. * @author: hxl
  22. * @Date: 2024/6/26 19:26
  23. * @Description: 通过用户id删除的绑定的数据
  24. */
  25. void deleteByUserId(@Param("userId") String userId);
  26. /**
  27. * @version
  28. * @author: hxl
  29. * @Date: 2024/6/26 19:30
  30. * @Description: 分页查询
  31. */
  32. Page<SysUserLinkFrontLineDeptDto> queryPage(@Param("page") Page<SysUserLinkFrontLineDeptDto> page,@Param("vo") SysUserLinkFrontLineDeptQueryVo sysUserLinkFrontLineDeptQueryVo);
  33. /**
  34. * @version
  35. * @author: hxl
  36. * @Date: 2024/6/27 11:00
  37. * @Description: 通过用户id查询绑定的数据
  38. */
  39. List<SysDept> findDeptListByUserId(@Param("userId") String userId);
  40. /**
  41. * @version
  42. * @author: hxl
  43. * @Date: 2024/6/27 11:27
  44. * @Description: 查询用户数据
  45. */
  46. Page<SysUserBaseVO> findUserListByDeptPage(@Param("page") Page<SysUserBaseVO> page,@Param("user") SysUserDto sysUserDto);
  47. }