PtlAgreementService.java 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. package com.ydtech.modules.protocol.service;
  2. import com.baomidou.mybatisplus.extension.service.IService;
  3. import com.ydtech.core.page.HttpResult;
  4. import com.ydtech.core.page.PageResult;
  5. import com.ydtech.modules.protocol.entity.po.PtlAgreement;
  6. import com.ydtech.modules.protocol.entity.vo.PtlAgreementAuditVo;
  7. import com.ydtech.modules.protocol.entity.vo.PtlAgreementPageVo;
  8. import com.ydtech.modules.protocol.entity.vo.PtlAgreementQueryVo;
  9. import com.ydtech.modules.protocol.entity.vo.PtlAgreementSaveVo;
  10. /**
  11. * @author Administrator
  12. * @description 针对表【ptl_agreement(协议信息表)】的数据库操作Service
  13. * @createDate 2023-06-05 17:59:52
  14. */
  15. public interface PtlAgreementService extends IService<PtlAgreement> {
  16. /**
  17. * 通过协议id 判断是否存在
  18. *
  19. * @param agreementId 协议id
  20. */
  21. PtlAgreement ifExistsById(Long agreementId);
  22. /**
  23. * 添加协议
  24. *
  25. * @param agreement 上传的协议信息
  26. * @param userName 用户名
  27. * @return HttpResult
  28. */
  29. HttpResult<Object> saveAgreement(PtlAgreementSaveVo agreement, String userName);
  30. /**
  31. * 分页查询协议
  32. *
  33. * @param ptlAgreementPageVo 分页查询参数
  34. * @return HttpResult
  35. */
  36. HttpResult<PageResult<PtlAgreement>> pageAgreement(PtlAgreementPageVo ptlAgreementPageVo);
  37. /**
  38. * 通过协议id查询
  39. *
  40. * @param agreementId 协议id
  41. * @return HttpResult
  42. */
  43. HttpResult<PtlAgreementQueryVo> getByAgreementId(Long agreementId);
  44. /**
  45. * 删除协议
  46. *
  47. * @param agreementId 协议id
  48. * @return HttpResult
  49. */
  50. HttpResult<Object> deleteAgreement(Long agreementId);
  51. /**
  52. * 修改协议
  53. * @param userName 用户名
  54. * @param agreementId 协议id
  55. * @param agreement 上传的协议信息
  56. * @return HttpResult
  57. */
  58. HttpResult<Object> reviseAgreement(String userName, Long agreementId, PtlAgreementSaveVo agreement);
  59. /**
  60. * 提交 产品费用 承保规则 账号信息 授权部门
  61. * @param agreementId 协议id
  62. * @param agreement 提交内容
  63. */
  64. void saveAssociationInformation(Long agreementId, String insuranceCompany, PtlAgreementSaveVo agreement);
  65. /**
  66. * 删除关联信息 产品费用 承保规则 账号信息 授权部门
  67. * @param agreementId 协议id
  68. */
  69. void deleteAssociationInformation(Long agreementId);
  70. /**
  71. * 审核协议
  72. * @param agreementId 协议id
  73. * @param ptlAgreementAuditVo 审核内容
  74. * @return
  75. */
  76. HttpResult<Object> auditAgreement(Long agreementId, PtlAgreementAuditVo ptlAgreementAuditVo);
  77. }