| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- 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<PtlAgreement> {
- /**
- * 通过协议id 判断是否存在
- *
- * @param agreementId 协议id
- */
- PtlAgreement ifExistsById(Long agreementId);
- /**
- * 添加协议
- *
- * @param agreement 上传的协议信息
- * @param userName 用户名
- * @return HttpResult
- */
- HttpResult<Object> saveAgreement(PtlAgreementSaveVo agreement, String userName);
- /**
- * 分页查询协议
- *
- * @param ptlAgreementPageVo 分页查询参数
- * @return HttpResult
- */
- HttpResult<PageResult<PtlAgreement>> pageAgreement(PtlAgreementPageVo ptlAgreementPageVo);
- /**
- * 通过协议id查询
- *
- * @param agreementId 协议id
- * @return HttpResult
- */
- HttpResult<PtlAgreementQueryVo> getByAgreementId(Long agreementId);
- /**
- * 删除协议
- *
- * @param agreementId 协议id
- * @return HttpResult
- */
- HttpResult<Object> deleteAgreement(Long agreementId);
- /**
- * 修改协议
- * @param userName 用户名
- * @param agreementId 协议id
- * @param agreement 上传的协议信息
- * @return HttpResult
- */
- HttpResult<Object> 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<Object> auditAgreement(Long agreementId, PtlAgreementAuditVo ptlAgreementAuditVo);
- }
|