ci: 企标计划实体类字段变更

This commit is contained in:
2023-10-12 10:25:18 +08:00
parent 8b64c86c9e
commit 651e594f81
6 changed files with 75 additions and 10 deletions
@@ -0,0 +1,50 @@
package com.jero.modules.activiti.process.common.enums;
/**
* @author: Mzaxd
* @Date: 2023/10/12 9:37
* 流程类型
*/
public enum ProcessType {
/**
* 企标立项变更
*/
ES_INIT_CHANGE("企标立项/变更计划", "1", "es-init-change"),
;
private final String name;
private final String value;
private final String processKey;
ProcessType(String name, String value, String processKey) {
this.name = name;
this.value = value;
this.processKey = processKey;
}
public String getProcessTypeNameByProcessKey(String processKey) {
for (ProcessType processType : ProcessType.values()) {
if (processType.getProcessKey().equals(processKey)) {
return processType.getName();
}
}
return null;
}
public String getName() {
return name;
}
public String getValue() {
return value;
}
public String getProcessKey() {
return processKey;
}
}
@@ -73,7 +73,7 @@ public class ActFlowCommonService {
Task task = taskService.createTaskQuery().taskId(taskId).singleResult();
if (task == null) {
log.error("completeProcess - task is null!!");
log.error("找不到对应任务");
throw new JeroBootException("找不到对应任务");
}
@@ -279,6 +279,11 @@ public class ProcessEsInitChange implements Serializable {
*/
private String remarks;
/**
* 上传附件
*/
private String uploadAttachment;
/**
* 附件
*/
@@ -354,6 +359,11 @@ public class ProcessEsInitChange implements Serializable {
*/
private String authDept;
/**
* 配合单位
*/
private String cooperationUnit;
@TableField(exist = false)
private static final long serialVersionUID = 1781238971297838971L;
}
@@ -83,9 +83,9 @@ public class ProcessEsInitChangeServiceImpl extends ServiceImpl<ProcessEsInitCha
// 保存到业务流程表
saveBatch(esInitChangeList);
ProcessEsInitChange initChange = esInitChangeList.get(0);
// TODO 根据业务需求设置流程状态
// 对数据进行其他操作
String beanName = "initChange";
String beanName = "initChangeService";
ProcessInstance processInstance = actFlowCommonService.startProcess(processDefinitionKey, beanName, initChange.getId());
@@ -148,6 +148,8 @@ public class ProcessEsInitChangeServiceImpl extends ServiceImpl<ProcessEsInitCha
@Override
public void saveToDraft(List<ProcessEsInitChange> esInitChange) {
// TODO 保存到草稿
saveOrUpdateBatch(esInitChange);
}
}