| | |
| | | import cn.iocoder.yudao.framework.common.pojo.PageResult; |
| | | import cn.iocoder.yudao.module.crm.controller.admin.contract.vo.contract.CrmContractPageReqVO; |
| | | import cn.iocoder.yudao.module.crm.controller.admin.contract.vo.contract.CrmContractSaveReqVO; |
| | | import cn.iocoder.yudao.module.crm.controller.admin.contract.vo.contract.CrmContractImportExcelVO; |
| | | import cn.iocoder.yudao.module.crm.controller.admin.contract.vo.contract.CrmContractImportRespVO; |
| | | import cn.iocoder.yudao.module.crm.controller.admin.contract.vo.contract.CrmContractTransferReqVO; |
| | | import cn.iocoder.yudao.module.crm.dal.dataobject.business.CrmBusinessDO; |
| | | import cn.iocoder.yudao.module.crm.dal.dataobject.contract.CrmContractDO; |
| | |
| | | * @return 编号 |
| | | */ |
| | | Long createContract(@Valid CrmContractSaveReqVO createReqVO, Long userId); |
| | | |
| | | /** |
| | | * 导入合同 |
| | | * |
| | | * @param importList 导入数据(每一行 = 一条明细,相同合同编号合并为一张合同) |
| | | * @return 导入结果 |
| | | */ |
| | | CrmContractImportRespVO importContractList(List<CrmContractImportExcelVO> importList); |
| | | |
| | | /** |
| | | * 更新合同 |
| | |
| | | /** |
| | | * 发起合同审批流程 |
| | | * |
| | | * @param id 合同编号 |
| | | * @param userId 用户编号 |
| | | * @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); |
| | | |
| | | } |