xiaoyi
3 天以前 abf1c0a35d85d38239ff5d2ed746a4e4b797c9d1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package cn.iocoder.yudao.module.crm.service.contract;
 
import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.module.crm.controller.admin.contract.vo.command.CrmContractCommandPageReqVO;
import cn.iocoder.yudao.module.crm.controller.admin.contract.vo.command.CrmContractCommandRespVO;
import cn.iocoder.yudao.module.crm.controller.admin.contract.vo.command.CrmContractCommandSaveReqVO;
import jakarta.validation.Valid;
 
public interface CrmContractCommandService {
 
    Long createCommand(@Valid CrmContractCommandSaveReqVO createReqVO);
 
    void updateCommand(@Valid CrmContractCommandSaveReqVO updateReqVO);
 
    void deleteCommand(Long id);
 
    CrmContractCommandRespVO getCommand(Long id);
 
    PageResult<CrmContractCommandRespVO> getCommandPage(CrmContractCommandPageReqVO pageReqVO);
 
    /**
     * 执行指令(状态 0/10 -> 20 已完成)
     */
    void executeCommand(Long id);
 
    /**
     * 取消指令(仅待执行/已下发状态可取消)
     */
    void cancelCommand(Long id);
 
    Long countByContractId(Long contractId);
 
}