PtlTaxSourceNewMapper.java 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. package com.ydtech.modules.protocol.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.protocol.entity.dto.PtlTaxSourceNewDto;
  6. import com.ydtech.modules.protocol.entity.po.PtlTaxSourceNew;
  7. import com.ydtech.modules.protocol.entity.vo.PtlTaxSourceNewAddVo;
  8. import com.ydtech.modules.protocol.entity.vo.PtlTaxSourceNewVo;
  9. import org.apache.ibatis.annotations.Param;
  10. import java.util.List;
  11. /**
  12. * @author wenks
  13. * @description 针对表【ptl_agreement(协议信息表)】的数据库操作Mapper
  14. * @createDate 2023-06-05 17:59:52
  15. * @Entity com.ydtech.modules.protocol.entity.po.PtlAgreement
  16. */
  17. public interface PtlTaxSourceNewMapper extends BaseMapper<PtlTaxSourceNew> {
  18. /**
  19. * @version
  20. * @author: hxl
  21. * @Date: 2024/5/22 15:51
  22. * @Description: 协议调度分页
  23. */
  24. Page<PtlTaxSourceNewVo> queryPage(@Param("page") Page<SysUserLinkPtlAgreementDto> page, @Param("vo") PtlTaxSourceNewDto ptlTaxSourceNewDto);
  25. /**
  26. * @version
  27. * @author: hxl
  28. * @Date: 2024/5/22 16:02
  29. * @Description: 通过协议id和车牌和id查询是否存在数据
  30. */
  31. int findListByParams(@Param("vo") PtlTaxSourceNewAddVo ptlTaxSourceNewAddVo);
  32. /**
  33. * @version
  34. * @author: hxl
  35. * @Date: 2024/5/23 16:17
  36. * @Description: 通过ids批量查询数据
  37. */
  38. List<PtlTaxSourceNew> findListByIds(@Param("ids") List<Long> ids);
  39. /**
  40. * @version
  41. * @author: hxl
  42. * @Date: 2024/5/24 17:03
  43. * @Description: 通过保险公司id查询默认的数据
  44. */
  45. PtlTaxSourceNew findDefaultAttrLinkByInsCompanyId(@Param("insCompanyId") String insCompanyId);
  46. /**
  47. * @version
  48. * @author: hxl
  49. * @Date: 2024/5/24 17:03
  50. * @Description: 通过所有保险保险的默认的数据
  51. */
  52. List<PtlTaxSourceNew> findDefaultAllAttrLink();
  53. }