| | |
| | | * 发起合同审批流程 |
| | | * |
| | | * @param id 合同编号 |
| | | * @param processDefinitionKey 流程定义 Key |
| | | * @param userId 用户编号 |
| | | */ |
| | | void submitContract(Long id, Long userId); |
| | | void submitContract(Long id, String processDefinitionKey, Long userId); |
| | | |
| | | /** |
| | | * 获取合同审批流程列表 |
| | | * |
| | | * @return 流程定义列表 |
| | | */ |
| | | List<Map<String, Object>> getContractApproveProcessDefinitionList(); |
| | | |
| | | /** |
| | | * 更新合同流程审批结果 |
| | |
| | | */ |
| | | Long generateSaleOrder(Long id, Long userId); |
| | | |
| | | /** |
| | | * 更新合同状态 |
| | | * |
| | | * @param id 合同编号 |
| | | * @param status 状态 |
| | | */ |
| | | void updateContractStatus(Long id, Integer status); |
| | | |
| | | /** |
| | | * 根据销售订单编号更新合同状态 |
| | | * |
| | | * @param orderId 销售订单编号 |
| | | * @param status 状态 |
| | | */ |
| | | void updateContractStatusByOrderId(Long orderId, Integer status); |
| | | |
| | | } |