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.protocol.entity.po.PtlAgreement; import com.ydtech.modules.protocol.entity.vo.PtlAgreementAuditVo; import com.ydtech.modules.protocol.entity.vo.PtlAgreementPageVo; import com.ydtech.modules.protocol.entity.vo.PtlAgreementQueryVo; import com.ydtech.modules.protocol.entity.vo.PtlAgreementSaveVo; /** * @author Administrator * @description 针对表【ptl_agreement(协议信息表)】的数据库操作Service * @createDate 2023-06-05 17:59:52 */ public interface PtlAgreementService extends IService { /** * 通过协议id 判断是否存在 * * @param agreementId 协议id */ PtlAgreement ifExistsById(Long agreementId); /** * 添加协议 * * @param agreement 上传的协议信息 * @param userName 用户名 * @return HttpResult */ HttpResult saveAgreement(PtlAgreementSaveVo agreement, String userName); /** * 分页查询协议 * * @param ptlAgreementPageVo 分页查询参数 * @return HttpResult */ HttpResult> pageAgreement(PtlAgreementPageVo ptlAgreementPageVo); /** * 通过协议id查询 * * @param agreementId 协议id * @return HttpResult */ HttpResult getByAgreementId(Long agreementId); /** * 删除协议 * * @param agreementId 协议id * @return HttpResult */ HttpResult deleteAgreement(Long agreementId); /** * 修改协议 * @param userName 用户名 * @param agreementId 协议id * @param agreement 上传的协议信息 * @return HttpResult */ HttpResult reviseAgreement(String userName, Long agreementId, PtlAgreementSaveVo agreement); /** * 提交 产品费用 承保规则 账号信息 授权部门 * @param agreementId 协议id * @param agreement 提交内容 */ void saveAssociationInformation(Long agreementId, String insuranceCompany, PtlAgreementSaveVo agreement); /** * 删除关联信息 产品费用 承保规则 账号信息 授权部门 * @param agreementId 协议id */ void deleteAssociationInformation(Long agreementId); /** * 审核协议 * @param agreementId 协议id * @param ptlAgreementAuditVo 审核内容 * @return */ HttpResult auditAgreement(Long agreementId, PtlAgreementAuditVo ptlAgreementAuditVo); }