| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202 |
- package com.ydtech.modules.protocol.service;
- import com.baomidou.mybatisplus.extension.service.IService;
- import com.ydtech.core.page.HttpResult;
- import com.ydtech.core.page.PageResult;
- import com.ydtech.modules.esm.model.EsmInsCompany;
- import com.ydtech.modules.protocol.entity.dto.PtlAgreementAttributionDto;
- import com.ydtech.modules.protocol.entity.dto.PtlAgreementInsCompanyDto;
- import com.ydtech.modules.protocol.entity.dto.PtlAgreementSaveDto;
- import com.ydtech.modules.protocol.entity.po.PtlAgreement;
- import com.ydtech.modules.protocol.entity.po.PtlAgreementProductCosts;
- import com.ydtech.modules.protocol.entity.po.PtlAgreementUndwrtRules;
- import com.ydtech.modules.protocol.entity.vo.*;
- import java.util.List;
- /**
- * @author wenks
- * @description 针对表【ptl_agreement(协议信息表)】的数据库操作Service
- * @createDate 2023-06-05 17:59:52
- */
- public interface PtlAgreementService extends IService<PtlAgreement> {
- /**
- * 获取可以报价的 协议 及其保险公司
- *
- * @return List<PtlAgreementInsCompanyDto>
- */
- List<PtlAgreementInsCompanyDto> getAgreementCompany(String deptId);
- PtlAgreementInsCompanyDto getAgreementCompany(String deptId,String companyId);
- /**
- * 通过协议id 判断是否存在
- *
- * @param agreementId 协议id
- */
- PtlAgreement ifExistsById(String agreementId);
- /**
- * 添加协议
- *
- * @param agreement 上传的协议信息
- * @param userName 用户名
- * @return HttpResult
- */
- HttpResult<Object> saveAgreement(PtlAgreementSaveVo agreement, String userName);
- /**
- * 添加协议产品费用
- * @param agreement
- * @param userName
- * @return
- */
- HttpResult<Object> saveAgreementProduct(PtlAgreementProductCosts agreement, String userName);
- /**
- * 修改协议产品费用
- * @param agreement
- * @param userName
- * @return
- */
- HttpResult<Object> updateAgreementProduct(PtlAgreementProductCosts agreement, String userName);
- /**
- *
- * @param id
- * @return
- */
- HttpResult<Object> deleteAgreementProduct(String id, String userName);
- /**
- * 添加非车产品协议
- * @param agreement
- * @param userName
- * @return
- */
- HttpResult<Object> saveAgreementNonCarProductCosts(PtlAgreementNonVehicleProductCostsVo agreement, String userName);
- /**
- * 添加承保规则
- * @param ptlAgreementUndwrtRules
- * @param userName
- * @return
- */
- HttpResult<Object> saveAgreementUndwrtRules(PtlAgreementUndwrtRules ptlAgreementUndwrtRules, String userName);
- /**
- * 修改承保规则
- * @param ptlAgreementUndwrtRules
- * @param userName
- * @return
- */
- HttpResult<Object> updateAgreementUndwrtRules(PtlAgreementUndwrtRules ptlAgreementUndwrtRules, String userName);
- /**
- * 删除承保规则
- * @param id
- * @param userName
- * @return
- */
- HttpResult<Object> deleteAgreementUndwrtRules(String id, String userName);
- /**
- * 分页查询协议
- *
- * @param ptlAgreementPageVo 分页查询参数
- * @return HttpResult
- */
- HttpResult<PageResult<PtlAgreement>> pageAgreement(PtlAgreementPageVo ptlAgreementPageVo);
- /**
- * 通过协议id查询
- *
- * @param agreementId 协议id
- * @return HttpResult
- */
- HttpResult<PtlAgreementQueryVo> getByAgreementId(String agreementId);
- /**
- * 删除协议
- *
- * @param agreementId 协议id
- * @return HttpResult
- */
- HttpResult<Object> deleteAgreement(String agreementId,String userName);
- /**
- * 修改协议
- *
- * @param userName 用户名
- * @param agreementId 协议id
- * @param agreement 上传的协议信息
- * @return HttpResult
- */
- HttpResult<Object> reviseAgreement(String userName, String agreementId, PtlAgreementSaveVo agreement);
- /**
- * 提交 产品费用 承保规则 账号信息 授权部门
- *
- * @param agreementId 协议id
- * @param agreement 提交内容
- */
- void saveAssociationInformation(String agreementId, EsmInsCompany insuranceCompanyId, PtlAgreementSaveVo agreement);
- /**
- * 删除关联信息 产品费用 删除非车险产品费用 承保规则 账号信息 授权部门
- *
- * @param agreementId 协议id
- */
- void deleteAssociationInformation(String agreementId);
- /**
- * 删除关联信息 删除非车险产品费用 承保规则 账号信息 授权部门
- */
- void deleteAssociationInformationExcludeCosts(String agreementId);
- /**
- * 审核协议
- *
- * @param agreementId 协议id
- * @param ptlAgreementAuditVo 审核内容
- * @return
- */
- HttpResult<Object> auditAgreement(String agreementId, PtlAgreementAuditVo ptlAgreementAuditVo);
- /**
- * 校验登录
- *
- * @param ptlAgreement 协议信息
- * @param agreementSaveDto 协议添加实体
- * @param attribution 协议归属添加实体
- */
- EsmInsCompany verifyLogin(PtlAgreement ptlAgreement, PtlAgreementSaveDto agreementSaveDto, PtlAgreementAttributionDto attribution);
- /**
- * 根据协议编码,归属保险公司获取非车险费用配置信息
- * @param agreementId
- * @param companyId
- * @return
- */
- HttpResult<List<PtlAgreementNonCarProductCostsVo>> getNonCarCostsInfo(String agreementId, String companyId);
- /**
- * 根据归属保司,查询上级以及本级相关协议集合
- * @param associationCompaniesId
- * @return
- */
- HttpResult<List<PtlAgreement>> findRelationAgreement(String associationCompaniesId);
- /**
- * @version
- * @author: hxl
- * @Date: 2024/4/15 18:04
- * @Description: 查询所有审核的协议
- */
- List<PtlAgreement> findCheckAgreementList(PtlAgreement ptlAgreement);
- }
|