feat: 企标制修订结束后自动设置标准来源字段
This commit is contained in:
+8
@@ -103,6 +103,14 @@ public class ProcessESRevisionEndListener implements ExecutionListener {
|
||||
variables.put(FieldCommon.AUTH_DEPT, data.getAuthDept());
|
||||
String standardId = IdWorker.getIdStr();
|
||||
variables.put(FieldCommon.ID, standardId);
|
||||
String nameCode = (String) variables.get(FieldCommon.ENTERPRISE_NAME_CODE);
|
||||
if (StrUtil.isNotBlank(nameCode)) {
|
||||
if (nameCode.equals("WQ")) {
|
||||
variables.put(FieldCommon.STANDARD_SOURCE, "2");
|
||||
} else {
|
||||
variables.put(FieldCommon.STANDARD_SOURCE, "1");
|
||||
}
|
||||
}
|
||||
// minio上传在线编辑文件
|
||||
String onEditFile = data.getOnEditFile();
|
||||
if (StringUtils.isNotBlank(onEditFile)) {
|
||||
|
||||
@@ -225,6 +225,8 @@ public class FieldCommon {
|
||||
public static final String STANDARD_PROPERTY = "standard_property";
|
||||
// 标准拆分状态
|
||||
public static final String STANDARD_SPLIT_STATUS = "standard_split_status";
|
||||
// 标准来源
|
||||
public static final String STANDARD_SOURCE = "standard_source";
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user