提交 1748eb04 编写于 作者: ibizdev's avatar ibizdev

zhouweidong 部署微服务接口 [ibz-wf,microservice]

上级 8ae26315
...@@ -12,3 +12,4 @@ ...@@ -12,3 +12,4 @@
**.iml **.iml
*.jar *.jar
*.log *.log
.DS_Store
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
], ],
"entities":[ "entities":[
{ {
"dename":"WFTask", "dename":"WFGroup",
"delogicname":"工作流任务", "delogicname":"角色/用户组",
"sysmoudle":{"id":"WORKFLOW","name":"workflow"}, "sysmoudle":{"id":"WORKFLOW","name":"workflow"},
"dedataset":[{"id":"Default" , "name":"DEFAULT"}], "dedataset":[{"id":"Default" , "name":"DEFAULT"}],
"deaction":[{"id":"Create" , "name":"Create" , "type":"BUILTIN" },{"id":"Update" , "name":"Update" , "type":"BUILTIN" },{"id":"Remove" , "name":"Remove" , "type":"BUILTIN" },{"id":"Get" , "name":"Get" , "type":"BUILTIN" },{"id":"GetDraft" , "name":"GetDraft" , "type":"BUILTIN" },{"id":"CheckKey" , "name":"CheckKey" , "type":"BUILTIN" },{"id":"Save" , "name":"Save" , "type":"BUILTIN" }], "deaction":[{"id":"Create" , "name":"Create" , "type":"BUILTIN" },{"id":"Update" , "name":"Update" , "type":"BUILTIN" },{"id":"Remove" , "name":"Remove" , "type":"BUILTIN" },{"id":"Get" , "name":"Get" , "type":"BUILTIN" },{"id":"GetDraft" , "name":"GetDraft" , "type":"BUILTIN" },{"id":"CheckKey" , "name":"CheckKey" , "type":"BUILTIN" },{"id":"Save" , "name":"Save" , "type":"BUILTIN" }],
...@@ -20,16 +20,8 @@ ...@@ -20,16 +20,8 @@
"datascope":[{"id":"all","name":"全部数据"}, {"id":"curorg","name":"当前单位"},{"id":"porg","name":"上级单位"},{"id":"sorg","name":"下级单位"} ] "datascope":[{"id":"all","name":"全部数据"}, {"id":"curorg","name":"当前单位"},{"id":"porg","name":"上级单位"},{"id":"sorg","name":"下级单位"} ]
} }
, { , {
"dename":"WFUser", "dename":"WFProcessDefinition",
"delogicname":"用户", "delogicname":"流程定义",
"sysmoudle":{"id":"WORKFLOW","name":"workflow"},
"dedataset":[{"id":"Default" , "name":"DEFAULT"}],
"deaction":[{"id":"Create" , "name":"Create" , "type":"BUILTIN" },{"id":"Update" , "name":"Update" , "type":"BUILTIN" },{"id":"Remove" , "name":"Remove" , "type":"BUILTIN" },{"id":"Get" , "name":"Get" , "type":"BUILTIN" },{"id":"GetDraft" , "name":"GetDraft" , "type":"BUILTIN" },{"id":"CheckKey" , "name":"CheckKey" , "type":"BUILTIN" },{"id":"Save" , "name":"Save" , "type":"BUILTIN" }],
"datascope":[{"id":"all","name":"全部数据"}, {"id":"curorg","name":"当前单位"},{"id":"porg","name":"上级单位"},{"id":"sorg","name":"下级单位"} ]
}
, {
"dename":"WFGroup",
"delogicname":"角色/用户组",
"sysmoudle":{"id":"WORKFLOW","name":"workflow"}, "sysmoudle":{"id":"WORKFLOW","name":"workflow"},
"dedataset":[{"id":"Default" , "name":"DEFAULT"}], "dedataset":[{"id":"Default" , "name":"DEFAULT"}],
"deaction":[{"id":"Create" , "name":"Create" , "type":"BUILTIN" },{"id":"Update" , "name":"Update" , "type":"BUILTIN" },{"id":"Remove" , "name":"Remove" , "type":"BUILTIN" },{"id":"Get" , "name":"Get" , "type":"BUILTIN" },{"id":"GetDraft" , "name":"GetDraft" , "type":"BUILTIN" },{"id":"CheckKey" , "name":"CheckKey" , "type":"BUILTIN" },{"id":"Save" , "name":"Save" , "type":"BUILTIN" }], "deaction":[{"id":"Create" , "name":"Create" , "type":"BUILTIN" },{"id":"Update" , "name":"Update" , "type":"BUILTIN" },{"id":"Remove" , "name":"Remove" , "type":"BUILTIN" },{"id":"Get" , "name":"Get" , "type":"BUILTIN" },{"id":"GetDraft" , "name":"GetDraft" , "type":"BUILTIN" },{"id":"CheckKey" , "name":"CheckKey" , "type":"BUILTIN" },{"id":"Save" , "name":"Save" , "type":"BUILTIN" }],
...@@ -52,13 +44,21 @@ ...@@ -52,13 +44,21 @@
"datascope":[{"id":"all","name":"全部数据"}] "datascope":[{"id":"all","name":"全部数据"}]
} }
, { , {
"dename":"WFProcessDefinition", "dename":"WFTask",
"delogicname":"流程定义", "delogicname":"工作流任务",
"sysmoudle":{"id":"WORKFLOW","name":"workflow"}, "sysmoudle":{"id":"WORKFLOW","name":"workflow"},
"dedataset":[{"id":"Default" , "name":"DEFAULT"}], "dedataset":[{"id":"Default" , "name":"DEFAULT"}],
"deaction":[{"id":"Create" , "name":"Create" , "type":"BUILTIN" },{"id":"Update" , "name":"Update" , "type":"BUILTIN" },{"id":"Remove" , "name":"Remove" , "type":"BUILTIN" },{"id":"Get" , "name":"Get" , "type":"BUILTIN" },{"id":"GetDraft" , "name":"GetDraft" , "type":"BUILTIN" },{"id":"CheckKey" , "name":"CheckKey" , "type":"BUILTIN" },{"id":"Save" , "name":"Save" , "type":"BUILTIN" }], "deaction":[{"id":"Create" , "name":"Create" , "type":"BUILTIN" },{"id":"Update" , "name":"Update" , "type":"BUILTIN" },{"id":"Remove" , "name":"Remove" , "type":"BUILTIN" },{"id":"Get" , "name":"Get" , "type":"BUILTIN" },{"id":"GetDraft" , "name":"GetDraft" , "type":"BUILTIN" },{"id":"CheckKey" , "name":"CheckKey" , "type":"BUILTIN" },{"id":"Save" , "name":"Save" , "type":"BUILTIN" }],
"datascope":[{"id":"all","name":"全部数据"}] "datascope":[{"id":"all","name":"全部数据"}]
} }
, {
"dename":"WFUser",
"delogicname":"用户",
"sysmoudle":{"id":"WORKFLOW","name":"workflow"},
"dedataset":[{"id":"Default" , "name":"DEFAULT"}],
"deaction":[{"id":"Create" , "name":"Create" , "type":"BUILTIN" },{"id":"Update" , "name":"Update" , "type":"BUILTIN" },{"id":"Remove" , "name":"Remove" , "type":"BUILTIN" },{"id":"Get" , "name":"Get" , "type":"BUILTIN" },{"id":"GetDraft" , "name":"GetDraft" , "type":"BUILTIN" },{"id":"CheckKey" , "name":"CheckKey" , "type":"BUILTIN" },{"id":"Save" , "name":"Save" , "type":"BUILTIN" }],
"datascope":[{"id":"all","name":"全部数据"}, {"id":"curorg","name":"当前单位"},{"id":"porg","name":"上级单位"},{"id":"sorg","name":"下级单位"} ]
}
], ],
"appmenus":[ "appmenus":[
......
...@@ -9,6 +9,8 @@ ...@@ -9,6 +9,8 @@
"table_name":"IBZWFGROUP", "table_name":"IBZWFGROUP",
"system_id":"ibzwf", "system_id":"ibzwf",
"system_name":"ibzwf", "system_name":"ibzwf",
"module_id":"workflow",
"module_name":"workflow",
"fields":[ "fields":[
{ {
"fieldname":"GROUPID" , "fieldname":"GROUPID" ,
...@@ -72,6 +74,8 @@ ...@@ -72,6 +74,8 @@
"table_name":"IBZWFHISTORY", "table_name":"IBZWFHISTORY",
"system_id":"ibzwf", "system_id":"ibzwf",
"system_name":"ibzwf", "system_name":"ibzwf",
"module_id":"workflow",
"module_name":"workflow",
"fields":[ "fields":[
{ {
"fieldname":"HISTID" , "fieldname":"HISTID" ,
...@@ -212,6 +216,8 @@ ...@@ -212,6 +216,8 @@
"table_name":"IBZWFMEMBER", "table_name":"IBZWFMEMBER",
"system_id":"ibzwf", "system_id":"ibzwf",
"system_name":"ibzwf", "system_name":"ibzwf",
"module_id":"workflow",
"module_name":"workflow",
"fields":[ "fields":[
{ {
"fieldname":"MEMBERID" , "fieldname":"MEMBERID" ,
...@@ -415,6 +421,8 @@ ...@@ -415,6 +421,8 @@
"table_name":"IBZWFDEFINITION", "table_name":"IBZWFDEFINITION",
"system_id":"ibzwf", "system_id":"ibzwf",
"system_name":"ibzwf", "system_name":"ibzwf",
"module_id":"workflow",
"module_name":"workflow",
"fields":[ "fields":[
{ {
"fieldname":"DEFINITIONKEY" , "fieldname":"DEFINITIONKEY" ,
...@@ -569,6 +577,8 @@ ...@@ -569,6 +577,8 @@
"table_name":"IBZWFINSTANCE", "table_name":"IBZWFINSTANCE",
"system_id":"ibzwf", "system_id":"ibzwf",
"system_name":"ibzwf", "system_name":"ibzwf",
"module_id":"workflow",
"module_name":"workflow",
"fields":[ "fields":[
{ {
"fieldname":"INSTANCEID" , "fieldname":"INSTANCEID" ,
...@@ -708,6 +718,8 @@ ...@@ -708,6 +718,8 @@
"table_name":"IBZWFNODE", "table_name":"IBZWFNODE",
"system_id":"ibzwf", "system_id":"ibzwf",
"system_name":"ibzwf", "system_name":"ibzwf",
"module_id":"workflow",
"module_name":"workflow",
"fields":[ "fields":[
{ {
"fieldname":"NODEID" , "fieldname":"NODEID" ,
...@@ -805,6 +817,8 @@ ...@@ -805,6 +817,8 @@
"table_name":"IBZWFMODEL", "table_name":"IBZWFMODEL",
"system_id":"ibzwf", "system_id":"ibzwf",
"system_name":"ibzwf", "system_name":"ibzwf",
"module_id":"workflow",
"module_name":"workflow",
"fields":[ "fields":[
{ {
"fieldname":"MODELID" , "fieldname":"MODELID" ,
...@@ -862,6 +876,8 @@ ...@@ -862,6 +876,8 @@
"table_name":"IBZPSSYSTEM", "table_name":"IBZPSSYSTEM",
"system_id":"ibzwf", "system_id":"ibzwf",
"system_name":"ibzwf", "system_name":"ibzwf",
"module_id":"workflow",
"module_name":"workflow",
"fields":[ "fields":[
{ {
"fieldname":"PSSYSTEMID" , "fieldname":"PSSYSTEMID" ,
...@@ -905,6 +921,8 @@ ...@@ -905,6 +921,8 @@
"table_name":"IBZTASK", "table_name":"IBZTASK",
"system_id":"ibzwf", "system_id":"ibzwf",
"system_name":"ibzwf", "system_name":"ibzwf",
"module_id":"workflow",
"module_name":"workflow",
"fields":[ "fields":[
{ {
"fieldname":"TASKID" , "fieldname":"TASKID" ,
...@@ -1059,6 +1077,8 @@ ...@@ -1059,6 +1077,8 @@
"table_name":"IBZWFTASKWAY", "table_name":"IBZWFTASKWAY",
"system_id":"ibzwf", "system_id":"ibzwf",
"system_name":"ibzwf", "system_name":"ibzwf",
"module_id":"workflow",
"module_name":"workflow",
"fields":[ "fields":[
{ {
"fieldname":"WAYID" , "fieldname":"WAYID" ,
...@@ -1186,6 +1206,8 @@ ...@@ -1186,6 +1206,8 @@
"table_name":"IBZUSER", "table_name":"IBZUSER",
"system_id":"ibzwf", "system_id":"ibzwf",
"system_name":"ibzwf", "system_name":"ibzwf",
"module_id":"workflow",
"module_name":"workflow",
"fields":[ "fields":[
{ {
"fieldname":"USERID" , "fieldname":"USERID" ,
......
package cn.ibizlab.util.domain; package cn.ibizlab.util.domain;
import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnore;
import com.alibaba.fastjson.annotation.JSONField; import lombok.Data;
import cn.ibizlab.util.helper.DEFieldCacheMap;
import org.springframework.cglib.beans.BeanMap;
import org.springframework.data.annotation.Transient;
import org.springframework.util.StringUtils;
import java.io.Serializable; import java.io.Serializable;
import java.util.HashMap; import java.util.HashMap;
import java.util.HashSet; import java.util.HashSet;
import java.util.Map; import java.util.Map;
import java.util.Set; import java.util.Set;
import lombok.Data;
@Data @Data
public class DTOBase implements Serializable { public class DTOBase implements Serializable {
...@@ -73,9 +77,44 @@ public class DTOBase implements Serializable { ...@@ -73,9 +77,44 @@ public class DTOBase implements Serializable {
return extensionparams; return extensionparams;
} }
@JsonIgnore
@JSONField(serialize = false)
@Transient
private BeanMap map;
private BeanMap getMap()
{
if(map==null) {
map=BeanMap.create(this);
}
return map;
}
public Object get(String field) {
String fieldRealName= DEFieldCacheMap.getFieldRealName(this.getClass(),field);
if(!StringUtils.isEmpty(fieldRealName)) {
return getMap().get(fieldRealName);
}
else {
return this.extensionparams.get(field.toLowerCase());
}
}
@JsonAnySetter @JsonAnySetter
public void set(String name, Object value) { public void set(String field, Object value) {
extensionparams.put(name.toLowerCase(), value); field=field.toLowerCase();
String fieldRealName=DEFieldCacheMap.getFieldRealName(this.getClass(),field);
if(!StringUtils.isEmpty(fieldRealName)) {
if (value == null) {
getMap().put(fieldRealName, null);
}
else {
getMap().put(fieldRealName, DEFieldCacheMap.fieldValueOf(this.getClass(), fieldRealName, value));
}
}
else {
this.extensionparams.put(field.toLowerCase(),value);
}
} }
} }
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册