SysUserLinkPtlAgreementMapper.java 2.7 KB

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