SysUserLinkPtlAgreementMapper.java 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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.dto.SysUserLinkPtlAgreementDto;
  5. import com.ydtech.modules.admin.model.dto.SysUserLinkPtlAgreementQueryDto;
  6. import com.ydtech.modules.admin.model.po.SysUserLinkPtlAgreement;
  7. import com.ydtech.modules.admin.model.vo.SysUserLinkPtlAgreementVo;
  8. import com.ydtech.modules.protocol.entity.po.PtlAgreement;
  9. import org.apache.ibatis.annotations.Mapper;
  10. import org.apache.ibatis.annotations.Param;
  11. import java.util.List;
  12. /**
  13. * @version
  14. * @author: hxl
  15. * @Date: 2024/4/15 14:47
  16. * @Description: 用户关联协议表Dao
  17. */
  18. @Mapper
  19. public interface SysUserLinkPtlAgreementMapper extends BaseMapper<SysUserLinkPtlAgreement> {
  20. /**
  21. * @version
  22. * @author: hxl
  23. * @Date: 2024/4/15 15:32
  24. * @Description: 分页
  25. */
  26. Page<SysUserLinkPtlAgreementDto> queryPage(@Param("page") Page<SysUserLinkPtlAgreementDto> page, @Param("vo") SysUserLinkPtlAgreementVo sysUserLinkPtlAgreementVo, @Param("ids") List<String> ids);
  27. /**
  28. * @version
  29. * @author: hxl
  30. * @Date: 2024/4/15 17:08
  31. * @Description: 通过用户id删除旧数据
  32. */
  33. void deleteByUserId(@Param("userId") String userId);
  34. /**
  35. * @version
  36. * @author: hxl
  37. * @Date: 2024/4/16 9:32
  38. * @Description: 通过后线人员id查询关联的协议列表
  39. */
  40. List<SysUserLinkPtlAgreementDto> findPtlAgreementListByUserId(@Param("userId") String userId);
  41. /**
  42. * @version
  43. * @author: hxl
  44. * @Date: 2024/4/19 9:56
  45. * @Description:创建后线人员绑定的协议回显
  46. */
  47. List<PtlAgreement> findAllPtlAgreementListByUserId(@Param("userId") String userId);
  48. /**
  49. * @version
  50. * @author: hxl
  51. * @Date: 2024/7/2 14:53
  52. * @Description: 查询后现人员绑定的协议
  53. */
  54. Page<PtlAgreement> findPtlAgreementListByUserIdPage(@Param("page") Page<PtlAgreement> page, @Param("vo") SysUserLinkPtlAgreementQueryDto sysUserLinkPtlAgreementQueryDto);
  55. /**
  56. * @version
  57. * @author: hxl
  58. * @Date: 2024/8/14 11:55
  59. * @Description: 通过用户id查询关联的协议
  60. */
  61. List<Long> findAgreeIdsByUserId(@Param("userId") String userId);
  62. }