| | |
| | | /** |
| | | * MES 设计项目 Service 接口 |
| | | * |
| | | * @author 芋道源码 |
| | | * @author 超级管理员 |
| | | */ |
| | | public interface MesPdProjectService { |
| | | |
| | |
| | | void uploadProject(Long id, Long userId); |
| | | |
| | | /** |
| | | * 审核设计项目(待审核→待归档) |
| | | * 提交设计项目审批(待审核→审批中) |
| | | * <p> |
| | | * 创建 BPM 流程实例,审批通过后由监听器回调更新为待归档 |
| | | * |
| | | * @param id 编号 |
| | | * @param id 编号 |
| | | * @param processDefinitionKey 流程定义 Key |
| | | */ |
| | | void auditProject(Long id); |
| | | void submitProjectApproval(Long id, String processDefinitionKey); |
| | | |
| | | /** |
| | | * 获得设计项目审批流程列表 |
| | | * |
| | | * @return 流程列表(id/name/version/key) |
| | | */ |
| | | List<Map<String, Object>> getProjectApproveProcessDefinitionList(); |
| | | |
| | | /** |
| | | * 更新设计项目审批状态(BPM 监听器回调) |
| | | * |
| | | * @param id 编号 |
| | | * @param bpmResult BPM 审批结果 |
| | | */ |
| | | void updateProjectAuditStatus(Long id, Integer bpmResult); |
| | | |
| | | /** |
| | | * 归档设计项目(待归档→已归档) |