| | |
| | | package cn.iocoder.yudao.module.crm.service.cancellation; |
| | | |
| | | import cn.iocoder.yudao.framework.common.pojo.PageResult; |
| | | import cn.iocoder.yudao.module.crm.controller.admin.cancellation.vo.CrmCancellationAuditReqVO; |
| | | import cn.iocoder.yudao.module.crm.controller.admin.cancellation.vo.CrmCancellationPageReqVO; |
| | | import cn.iocoder.yudao.module.crm.controller.admin.cancellation.vo.CrmCancellationRespVO; |
| | | import cn.iocoder.yudao.module.crm.controller.admin.cancellation.vo.CrmCancellationSaveReqVO; |
| | | import jakarta.validation.Valid; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.Set; |
| | | |
| | | public interface CrmCancellationService { |
| | | |
| | |
| | | |
| | | List<CrmCancellationRespVO> getCancellationList(CrmCancellationPageReqVO reqVO); |
| | | |
| | | void auditCancellation(@Valid CrmCancellationAuditReqVO auditReqVO); |
| | | /** |
| | | * 提交销户申请审批(草稿 / 审核不通过 → 审批中) |
| | | * |
| | | * 审批人由「系统管理 - 审批配置」按业务类型统一配置(业务编码 cancellation_approve), |
| | | * 提交时无需指定;未启用审批或未配置有效审批人时抛出业务异常。 |
| | | * |
| | | * @param id 销户申请编号 |
| | | */ |
| | | void submitCancellation(Long id); |
| | | |
| | | void submitCancellation(Long id, String processDefinitionKey, Long userId); |
| | | /** |
| | | * 获得销户申请审批的审批人编号集合 |
| | | * |
| | | * 供前端判断当前登录用户是否应展示「审核」按钮;未配置时返回空集合。 |
| | | * |
| | | * @return 审批人用户编号集合 |
| | | */ |
| | | Set<Long> getCancellationApproverUserIds(); |
| | | |
| | | void updateCancellationAuditStatus(Long id, Integer bpmResult); |
| | | |
| | | List<Map<String, Object>> getCancellationApproveProcessDefinitionList(); |
| | | /** |
| | | * 审核销户申请(审批中 → 审核通过 / 审核不通过) |
| | | * |
| | | * 仅业务编码 cancellation_approve 配置的审批人可操作(多人时或签);审核不通过时必须填写不通过原因。 |
| | | * |
| | | * @param id 销户申请编号 |
| | | * @param pass 是否通过:true=审核通过 / false=审核不通过 |
| | | * @param reviewRemark 审核意见(不通过时即不通过原因,必填) |
| | | */ |
| | | void auditCancellation(Long id, Boolean pass, String reviewRemark); |
| | | |
| | | } |