PtlAgreementService.java 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  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.esm.model.EsmInsCompany;
  6. import com.ydtech.modules.protocol.entity.dto.PtlAgreementAttributionDto;
  7. import com.ydtech.modules.protocol.entity.dto.PtlAgreementInsCompanyDto;
  8. import com.ydtech.modules.protocol.entity.dto.PtlAgreementSaveDto;
  9. import com.ydtech.modules.protocol.entity.po.PtlAgreement;
  10. import com.ydtech.modules.protocol.entity.po.PtlAgreementProductCosts;
  11. import com.ydtech.modules.protocol.entity.po.PtlAgreementUndwrtRules;
  12. import com.ydtech.modules.protocol.entity.vo.*;
  13. import java.util.List;
  14. /**
  15. * @author wenks
  16. * @description 针对表【ptl_agreement(协议信息表)】的数据库操作Service
  17. * @createDate 2023-06-05 17:59:52
  18. */
  19. public interface PtlAgreementService extends IService<PtlAgreement> {
  20. /**
  21. * 获取可以报价的 协议 及其保险公司
  22. *
  23. * @return List<PtlAgreementInsCompanyDto>
  24. */
  25. List<PtlAgreementInsCompanyDto> getAgreementCompany(String deptId);
  26. PtlAgreementInsCompanyDto getAgreementCompany(String deptId,String companyId);
  27. /**
  28. * 通过协议id 判断是否存在
  29. *
  30. * @param agreementId 协议id
  31. */
  32. PtlAgreement ifExistsById(String agreementId);
  33. /**
  34. * 添加协议
  35. *
  36. * @param agreement 上传的协议信息
  37. * @param userName 用户名
  38. * @return HttpResult
  39. */
  40. HttpResult<Object> saveAgreement(PtlAgreementSaveVo agreement, String userName);
  41. /**
  42. * 添加协议产品费用
  43. * @param agreement
  44. * @param userName
  45. * @return
  46. */
  47. HttpResult<Object> saveAgreementProduct(PtlAgreementProductCosts agreement, String userName);
  48. /**
  49. * 修改协议产品费用
  50. * @param agreement
  51. * @param userName
  52. * @return
  53. */
  54. HttpResult<Object> updateAgreementProduct(PtlAgreementProductCosts agreement, String userName);
  55. /**
  56. *
  57. * @param id
  58. * @return
  59. */
  60. HttpResult<Object> deleteAgreementProduct(String id, String userName);
  61. /**
  62. * 添加非车产品协议
  63. * @param agreement
  64. * @param userName
  65. * @return
  66. */
  67. HttpResult<Object> saveAgreementNonCarProductCosts(PtlAgreementNonVehicleProductCostsVo agreement, String userName);
  68. /**
  69. * 添加承保规则
  70. * @param ptlAgreementUndwrtRules
  71. * @param userName
  72. * @return
  73. */
  74. HttpResult<Object> saveAgreementUndwrtRules(PtlAgreementUndwrtRules ptlAgreementUndwrtRules, String userName);
  75. /**
  76. * 修改承保规则
  77. * @param ptlAgreementUndwrtRules
  78. * @param userName
  79. * @return
  80. */
  81. HttpResult<Object> updateAgreementUndwrtRules(PtlAgreementUndwrtRules ptlAgreementUndwrtRules, String userName);
  82. /**
  83. * 删除承保规则
  84. * @param id
  85. * @param userName
  86. * @return
  87. */
  88. HttpResult<Object> deleteAgreementUndwrtRules(String id, String userName);
  89. /**
  90. * 分页查询协议
  91. *
  92. * @param ptlAgreementPageVo 分页查询参数
  93. * @return HttpResult
  94. */
  95. HttpResult<PageResult<PtlAgreement>> pageAgreement(PtlAgreementPageVo ptlAgreementPageVo);
  96. /**
  97. * 通过协议id查询
  98. *
  99. * @param agreementId 协议id
  100. * @return HttpResult
  101. */
  102. HttpResult<PtlAgreementQueryVo> getByAgreementId(String agreementId);
  103. /**
  104. * 删除协议
  105. *
  106. * @param agreementId 协议id
  107. * @return HttpResult
  108. */
  109. HttpResult<Object> deleteAgreement(String agreementId,String userName);
  110. /**
  111. * 修改协议
  112. *
  113. * @param userName 用户名
  114. * @param agreementId 协议id
  115. * @param agreement 上传的协议信息
  116. * @return HttpResult
  117. */
  118. HttpResult<Object> reviseAgreement(String userName, String agreementId, PtlAgreementSaveVo agreement);
  119. /**
  120. * 提交 产品费用 承保规则 账号信息 授权部门
  121. *
  122. * @param agreementId 协议id
  123. * @param agreement 提交内容
  124. */
  125. void saveAssociationInformation(String agreementId, EsmInsCompany insuranceCompanyId, PtlAgreementSaveVo agreement);
  126. /**
  127. * 删除关联信息 产品费用 删除非车险产品费用 承保规则 账号信息 授权部门
  128. *
  129. * @param agreementId 协议id
  130. */
  131. void deleteAssociationInformation(String agreementId);
  132. /**
  133. * 删除关联信息 删除非车险产品费用 承保规则 账号信息 授权部门
  134. */
  135. void deleteAssociationInformationExcludeCosts(String agreementId);
  136. /**
  137. * 审核协议
  138. *
  139. * @param agreementId 协议id
  140. * @param ptlAgreementAuditVo 审核内容
  141. * @return
  142. */
  143. HttpResult<Object> auditAgreement(String agreementId, PtlAgreementAuditVo ptlAgreementAuditVo);
  144. /**
  145. * 校验登录
  146. *
  147. * @param ptlAgreement 协议信息
  148. * @param agreementSaveDto 协议添加实体
  149. * @param attribution 协议归属添加实体
  150. */
  151. EsmInsCompany verifyLogin(PtlAgreement ptlAgreement, PtlAgreementSaveDto agreementSaveDto, PtlAgreementAttributionDto attribution);
  152. /**
  153. * 根据协议编码,归属保险公司获取非车险费用配置信息
  154. * @param agreementId
  155. * @param companyId
  156. * @return
  157. */
  158. HttpResult<List<PtlAgreementNonCarProductCostsVo>> getNonCarCostsInfo(String agreementId, String companyId);
  159. /**
  160. * 根据归属保司,查询上级以及本级相关协议集合
  161. * @param associationCompaniesId
  162. * @return
  163. */
  164. HttpResult<List<PtlAgreement>> findRelationAgreement(String associationCompaniesId);
  165. /**
  166. * @version
  167. * @author: hxl
  168. * @Date: 2024/4/15 18:04
  169. * @Description: 查询所有审核的协议
  170. */
  171. List<PtlAgreement> findCheckAgreementList(PtlAgreement ptlAgreement);
  172. }