提交 9e22fd72 编写于 作者: ibizdev's avatar ibizdev

ibiz4j 发布系统代码 [ibz-wf,统一工作流]

上级 da16be9a
...@@ -24,6 +24,8 @@ import java.io.Serializable; ...@@ -24,6 +24,8 @@ import java.io.Serializable;
import lombok.*; import lombok.*;
import org.springframework.data.annotation.Transient; import org.springframework.data.annotation.Transient;
import cn.ibizlab.util.annotation.Audit; import cn.ibizlab.util.annotation.Audit;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
...@@ -39,6 +41,7 @@ import com.baomidou.mybatisplus.core.toolkit.IdWorker; ...@@ -39,6 +41,7 @@ import com.baomidou.mybatisplus.core.toolkit.IdWorker;
@NoArgsConstructor @NoArgsConstructor
@JsonIgnoreProperties(value = "handler") @JsonIgnoreProperties(value = "handler")
@TableName(value = "IBZWFGROUP", resultMap = "WFGroupResultMap") @TableName(value = "IBZWFGROUP", resultMap = "WFGroupResultMap")
@ApiModel("角色/用户组")
public class WFGroup extends EntityMP implements Serializable { public class WFGroup extends EntityMP implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
...@@ -50,6 +53,7 @@ public class WFGroup extends EntityMP implements Serializable { ...@@ -50,6 +53,7 @@ public class WFGroup extends EntityMP implements Serializable {
@TableId(value = "groupid", type = IdType.ASSIGN_UUID) @TableId(value = "groupid", type = IdType.ASSIGN_UUID)
@JSONField(name = "id") @JSONField(name = "id")
@JsonProperty("id") @JsonProperty("id")
@ApiModelProperty("组标识")
private String id; private String id;
/** /**
* 组名称 * 组名称
...@@ -58,6 +62,7 @@ public class WFGroup extends EntityMP implements Serializable { ...@@ -58,6 +62,7 @@ public class WFGroup extends EntityMP implements Serializable {
@TableField(value = "groupname") @TableField(value = "groupname")
@JSONField(name = "name") @JSONField(name = "name")
@JsonProperty("name") @JsonProperty("name")
@ApiModelProperty("组名称")
private String name; private String name;
/** /**
* 范围 * 范围
...@@ -65,6 +70,7 @@ public class WFGroup extends EntityMP implements Serializable { ...@@ -65,6 +70,7 @@ public class WFGroup extends EntityMP implements Serializable {
@TableField(value = "groupscope") @TableField(value = "groupscope")
@JSONField(name = "groupscope") @JSONField(name = "groupscope")
@JsonProperty("groupscope") @JsonProperty("groupscope")
@ApiModelProperty("范围")
private String groupscope; private String groupscope;
......
...@@ -24,6 +24,8 @@ import java.io.Serializable; ...@@ -24,6 +24,8 @@ import java.io.Serializable;
import lombok.*; import lombok.*;
import org.springframework.data.annotation.Transient; import org.springframework.data.annotation.Transient;
import cn.ibizlab.util.annotation.Audit; import cn.ibizlab.util.annotation.Audit;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/** /**
...@@ -34,6 +36,7 @@ import cn.ibizlab.util.annotation.Audit; ...@@ -34,6 +36,7 @@ import cn.ibizlab.util.annotation.Audit;
@Setter @Setter
@NoArgsConstructor @NoArgsConstructor
@AllArgsConstructor @AllArgsConstructor
@ApiModel("历史")
public class WFHistory extends EntityBase implements Serializable { public class WFHistory extends EntityBase implements Serializable {
/** /**
...@@ -42,6 +45,7 @@ public class WFHistory extends EntityBase implements Serializable { ...@@ -42,6 +45,7 @@ public class WFHistory extends EntityBase implements Serializable {
@DEField(name = "histid", isKeyField = true) @DEField(name = "histid", isKeyField = true)
@JSONField(name = "id") @JSONField(name = "id")
@JsonProperty("id") @JsonProperty("id")
@ApiModelProperty("标识")
private String id; private String id;
/** /**
...@@ -49,6 +53,7 @@ public class WFHistory extends EntityBase implements Serializable { ...@@ -49,6 +53,7 @@ public class WFHistory extends EntityBase implements Serializable {
*/ */
@JSONField(name = "author") @JSONField(name = "author")
@JsonProperty("author") @JsonProperty("author")
@ApiModelProperty("操作者标识")
private String author; private String author;
/** /**
...@@ -56,6 +61,7 @@ public class WFHistory extends EntityBase implements Serializable { ...@@ -56,6 +61,7 @@ public class WFHistory extends EntityBase implements Serializable {
*/ */
@JSONField(name = "authorName") @JSONField(name = "authorName")
@JsonProperty("authorName") @JsonProperty("authorName")
@ApiModelProperty("操作者")
private String authorname; private String authorname;
/** /**
...@@ -64,6 +70,7 @@ public class WFHistory extends EntityBase implements Serializable { ...@@ -64,6 +70,7 @@ public class WFHistory extends EntityBase implements Serializable {
@DEField(name = "message") @DEField(name = "message")
@JSONField(name = "fullMessage") @JSONField(name = "fullMessage")
@JsonProperty("fullMessage") @JsonProperty("fullMessage")
@ApiModelProperty("意见")
private String fullmessage; private String fullmessage;
/** /**
...@@ -73,6 +80,7 @@ public class WFHistory extends EntityBase implements Serializable { ...@@ -73,6 +80,7 @@ public class WFHistory extends EntityBase implements Serializable {
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
@JSONField(name = "time", format = "yyyy-MM-dd HH:mm:ss") @JSONField(name = "time", format = "yyyy-MM-dd HH:mm:ss")
@JsonProperty("time") @JsonProperty("time")
@ApiModelProperty("时间")
private Timestamp time; private Timestamp time;
/** /**
...@@ -81,6 +89,7 @@ public class WFHistory extends EntityBase implements Serializable { ...@@ -81,6 +89,7 @@ public class WFHistory extends EntityBase implements Serializable {
@DEField(name = "actiontype") @DEField(name = "actiontype")
@JSONField(name = "type") @JSONField(name = "type")
@JsonProperty("type") @JsonProperty("type")
@ApiModelProperty("意见类型")
private String type; private String type;
/** /**
...@@ -88,6 +97,7 @@ public class WFHistory extends EntityBase implements Serializable { ...@@ -88,6 +97,7 @@ public class WFHistory extends EntityBase implements Serializable {
*/ */
@JSONField(name = "taskId") @JSONField(name = "taskId")
@JsonProperty("taskId") @JsonProperty("taskId")
@ApiModelProperty("任务标识")
private String taskid; private String taskid;
/** /**
...@@ -96,6 +106,7 @@ public class WFHistory extends EntityBase implements Serializable { ...@@ -96,6 +106,7 @@ public class WFHistory extends EntityBase implements Serializable {
@DEField(name = "instanceid") @DEField(name = "instanceid")
@JSONField(name = "processInstanceId") @JSONField(name = "processInstanceId")
@JsonProperty("processInstanceId") @JsonProperty("processInstanceId")
@ApiModelProperty("实例标识")
private String processinstanceid; private String processinstanceid;
/** /**
...@@ -104,6 +115,7 @@ public class WFHistory extends EntityBase implements Serializable { ...@@ -104,6 +115,7 @@ public class WFHistory extends EntityBase implements Serializable {
@DEField(name = "businesskey") @DEField(name = "businesskey")
@JSONField(name = "processInstanceBusinessKey") @JSONField(name = "processInstanceBusinessKey")
@JsonProperty("processInstanceBusinessKey") @JsonProperty("processInstanceBusinessKey")
@ApiModelProperty("业务键值")
private String processinstancebusinesskey; private String processinstancebusinesskey;
......
...@@ -24,6 +24,8 @@ import java.io.Serializable; ...@@ -24,6 +24,8 @@ import java.io.Serializable;
import lombok.*; import lombok.*;
import org.springframework.data.annotation.Transient; import org.springframework.data.annotation.Transient;
import cn.ibizlab.util.annotation.Audit; import cn.ibizlab.util.annotation.Audit;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
...@@ -39,6 +41,7 @@ import com.baomidou.mybatisplus.core.toolkit.IdWorker; ...@@ -39,6 +41,7 @@ import com.baomidou.mybatisplus.core.toolkit.IdWorker;
@NoArgsConstructor @NoArgsConstructor
@JsonIgnoreProperties(value = "handler") @JsonIgnoreProperties(value = "handler")
@TableName(value = "IBZWFMEMBER", resultMap = "WFMemberResultMap") @TableName(value = "IBZWFMEMBER", resultMap = "WFMemberResultMap")
@ApiModel("成员")
public class WFMember extends EntityMP implements Serializable { public class WFMember extends EntityMP implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
...@@ -50,6 +53,7 @@ public class WFMember extends EntityMP implements Serializable { ...@@ -50,6 +53,7 @@ public class WFMember extends EntityMP implements Serializable {
@TableId(value = "memberid", type = IdType.ASSIGN_UUID) @TableId(value = "memberid", type = IdType.ASSIGN_UUID)
@JSONField(name = "memberid") @JSONField(name = "memberid")
@JsonProperty("memberid") @JsonProperty("memberid")
@ApiModelProperty("组成员标识")
private String memberid; private String memberid;
/** /**
* 组成员名称 * 组成员名称
...@@ -57,6 +61,7 @@ public class WFMember extends EntityMP implements Serializable { ...@@ -57,6 +61,7 @@ public class WFMember extends EntityMP implements Serializable {
@TableField(value = "membername") @TableField(value = "membername")
@JSONField(name = "membername") @JSONField(name = "membername")
@JsonProperty("membername") @JsonProperty("membername")
@ApiModelProperty("组成员名称")
private String membername; private String membername;
/** /**
* 组标识 * 组标识
...@@ -64,6 +69,7 @@ public class WFMember extends EntityMP implements Serializable { ...@@ -64,6 +69,7 @@ public class WFMember extends EntityMP implements Serializable {
@TableField(value = "groupid") @TableField(value = "groupid")
@JSONField(name = "groupid") @JSONField(name = "groupid")
@JsonProperty("groupid") @JsonProperty("groupid")
@ApiModelProperty("组标识")
private String groupid; private String groupid;
/** /**
* 用户组 * 用户组
...@@ -71,6 +77,7 @@ public class WFMember extends EntityMP implements Serializable { ...@@ -71,6 +77,7 @@ public class WFMember extends EntityMP implements Serializable {
@TableField(exist = false) @TableField(exist = false)
@JSONField(name = "groupname") @JSONField(name = "groupname")
@JsonProperty("groupname") @JsonProperty("groupname")
@ApiModelProperty("用户组")
private String groupname; private String groupname;
/** /**
* 用户标识 * 用户标识
...@@ -78,6 +85,7 @@ public class WFMember extends EntityMP implements Serializable { ...@@ -78,6 +85,7 @@ public class WFMember extends EntityMP implements Serializable {
@TableField(value = "userid") @TableField(value = "userid")
@JSONField(name = "userid") @JSONField(name = "userid")
@JsonProperty("userid") @JsonProperty("userid")
@ApiModelProperty("用户标识")
private String userid; private String userid;
/** /**
* 用户 * 用户
...@@ -85,6 +93,7 @@ public class WFMember extends EntityMP implements Serializable { ...@@ -85,6 +93,7 @@ public class WFMember extends EntityMP implements Serializable {
@TableField(exist = false) @TableField(exist = false)
@JSONField(name = "personname") @JSONField(name = "personname")
@JsonProperty("personname") @JsonProperty("personname")
@ApiModelProperty("用户")
private String personname; private String personname;
/** /**
* 单位 * 单位
...@@ -92,6 +101,7 @@ public class WFMember extends EntityMP implements Serializable { ...@@ -92,6 +101,7 @@ public class WFMember extends EntityMP implements Serializable {
@TableField(exist = false) @TableField(exist = false)
@JSONField(name = "orgid") @JSONField(name = "orgid")
@JsonProperty("orgid") @JsonProperty("orgid")
@ApiModelProperty("单位")
private String orgid; private String orgid;
/** /**
* 单位 * 单位
...@@ -99,6 +109,7 @@ public class WFMember extends EntityMP implements Serializable { ...@@ -99,6 +109,7 @@ public class WFMember extends EntityMP implements Serializable {
@TableField(exist = false) @TableField(exist = false)
@JSONField(name = "orgname") @JSONField(name = "orgname")
@JsonProperty("orgname") @JsonProperty("orgname")
@ApiModelProperty("单位")
private String orgname; private String orgname;
/** /**
* 主部门 * 主部门
...@@ -106,6 +117,7 @@ public class WFMember extends EntityMP implements Serializable { ...@@ -106,6 +117,7 @@ public class WFMember extends EntityMP implements Serializable {
@TableField(exist = false) @TableField(exist = false)
@JSONField(name = "mdeptid") @JSONField(name = "mdeptid")
@JsonProperty("mdeptid") @JsonProperty("mdeptid")
@ApiModelProperty("主部门")
private String mdeptid; private String mdeptid;
/** /**
* 主部门 * 主部门
...@@ -113,6 +125,7 @@ public class WFMember extends EntityMP implements Serializable { ...@@ -113,6 +125,7 @@ public class WFMember extends EntityMP implements Serializable {
@TableField(exist = false) @TableField(exist = false)
@JSONField(name = "mdeptname") @JSONField(name = "mdeptname")
@JsonProperty("mdeptname") @JsonProperty("mdeptname")
@ApiModelProperty("主部门")
private String mdeptname; private String mdeptname;
/** /**
......
...@@ -24,6 +24,8 @@ import java.io.Serializable; ...@@ -24,6 +24,8 @@ import java.io.Serializable;
import lombok.*; import lombok.*;
import org.springframework.data.annotation.Transient; import org.springframework.data.annotation.Transient;
import cn.ibizlab.util.annotation.Audit; import cn.ibizlab.util.annotation.Audit;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
...@@ -39,6 +41,7 @@ import com.baomidou.mybatisplus.core.toolkit.IdWorker; ...@@ -39,6 +41,7 @@ import com.baomidou.mybatisplus.core.toolkit.IdWorker;
@NoArgsConstructor @NoArgsConstructor
@JsonIgnoreProperties(value = "handler") @JsonIgnoreProperties(value = "handler")
@TableName(value = "IBZWFDEFINITION", resultMap = "WFProcessDefinitionResultMap") @TableName(value = "IBZWFDEFINITION", resultMap = "WFProcessDefinitionResultMap")
@ApiModel("流程定义")
public class WFProcessDefinition extends EntityMP implements Serializable { public class WFProcessDefinition extends EntityMP implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
...@@ -50,6 +53,7 @@ public class WFProcessDefinition extends EntityMP implements Serializable { ...@@ -50,6 +53,7 @@ public class WFProcessDefinition extends EntityMP implements Serializable {
@TableId(value = "definitionkey", type = IdType.ASSIGN_UUID) @TableId(value = "definitionkey", type = IdType.ASSIGN_UUID)
@JSONField(name = "definitionkey") @JSONField(name = "definitionkey")
@JsonProperty("definitionkey") @JsonProperty("definitionkey")
@ApiModelProperty("DefinitionKey")
private String definitionkey; private String definitionkey;
/** /**
* 流程定义名称 * 流程定义名称
...@@ -57,6 +61,7 @@ public class WFProcessDefinition extends EntityMP implements Serializable { ...@@ -57,6 +61,7 @@ public class WFProcessDefinition extends EntityMP implements Serializable {
@TableField(value = "definitionname") @TableField(value = "definitionname")
@JSONField(name = "definitionname") @JSONField(name = "definitionname")
@JsonProperty("definitionname") @JsonProperty("definitionname")
@ApiModelProperty("流程定义名称")
private String definitionname; private String definitionname;
/** /**
* 模型版本 * 模型版本
...@@ -64,6 +69,7 @@ public class WFProcessDefinition extends EntityMP implements Serializable { ...@@ -64,6 +69,7 @@ public class WFProcessDefinition extends EntityMP implements Serializable {
@TableField(value = "modelversion") @TableField(value = "modelversion")
@JSONField(name = "modelversion") @JSONField(name = "modelversion")
@JsonProperty("modelversion") @JsonProperty("modelversion")
@ApiModelProperty("模型版本")
private Integer modelversion; private Integer modelversion;
/** /**
* 模型是否启用 * 模型是否启用
...@@ -71,6 +77,7 @@ public class WFProcessDefinition extends EntityMP implements Serializable { ...@@ -71,6 +77,7 @@ public class WFProcessDefinition extends EntityMP implements Serializable {
@TableField(value = "modelenable") @TableField(value = "modelenable")
@JSONField(name = "modelenable") @JSONField(name = "modelenable")
@JsonProperty("modelenable") @JsonProperty("modelenable")
@ApiModelProperty("模型是否启用")
private Integer modelenable; private Integer modelenable;
/** /**
* 系统标识 * 系统标识
...@@ -78,6 +85,7 @@ public class WFProcessDefinition extends EntityMP implements Serializable { ...@@ -78,6 +85,7 @@ public class WFProcessDefinition extends EntityMP implements Serializable {
@TableField(value = "pssystemid") @TableField(value = "pssystemid")
@JSONField(name = "pssystemid") @JSONField(name = "pssystemid")
@JsonProperty("pssystemid") @JsonProperty("pssystemid")
@ApiModelProperty("系统标识")
private String pssystemid; private String pssystemid;
/** /**
* 校验 * 校验
...@@ -85,6 +93,7 @@ public class WFProcessDefinition extends EntityMP implements Serializable { ...@@ -85,6 +93,7 @@ public class WFProcessDefinition extends EntityMP implements Serializable {
@TableField(value = "md5check") @TableField(value = "md5check")
@JSONField(name = "md5check") @JSONField(name = "md5check")
@JsonProperty("md5check") @JsonProperty("md5check")
@ApiModelProperty("校验")
private String md5check; private String md5check;
/** /**
* BPMN * BPMN
...@@ -92,6 +101,7 @@ public class WFProcessDefinition extends EntityMP implements Serializable { ...@@ -92,6 +101,7 @@ public class WFProcessDefinition extends EntityMP implements Serializable {
@TableField(value = "bpmnfile") @TableField(value = "bpmnfile")
@JSONField(name = "bpmnfile") @JSONField(name = "bpmnfile")
@JsonProperty("bpmnfile") @JsonProperty("bpmnfile")
@ApiModelProperty("BPMN")
private String bpmnfile; private String bpmnfile;
/** /**
* DeployKey * DeployKey
...@@ -99,6 +109,7 @@ public class WFProcessDefinition extends EntityMP implements Serializable { ...@@ -99,6 +109,7 @@ public class WFProcessDefinition extends EntityMP implements Serializable {
@TableField(value = "deploykey") @TableField(value = "deploykey")
@JSONField(name = "deploykey") @JSONField(name = "deploykey")
@JsonProperty("deploykey") @JsonProperty("deploykey")
@ApiModelProperty("DeployKey")
private String deploykey; private String deploykey;
/** /**
* WebServiceIds * WebServiceIds
...@@ -106,6 +117,7 @@ public class WFProcessDefinition extends EntityMP implements Serializable { ...@@ -106,6 +117,7 @@ public class WFProcessDefinition extends EntityMP implements Serializable {
@TableField(value = "webserviceids") @TableField(value = "webserviceids")
@JSONField(name = "webserviceids") @JSONField(name = "webserviceids")
@JsonProperty("webserviceids") @JsonProperty("webserviceids")
@ApiModelProperty("WebServiceIds")
private String webserviceids; private String webserviceids;
/** /**
* MobileServiceIds * MobileServiceIds
...@@ -113,6 +125,7 @@ public class WFProcessDefinition extends EntityMP implements Serializable { ...@@ -113,6 +125,7 @@ public class WFProcessDefinition extends EntityMP implements Serializable {
@TableField(value = "mobileserviceids") @TableField(value = "mobileserviceids")
@JSONField(name = "mobileserviceids") @JSONField(name = "mobileserviceids")
@JsonProperty("mobileserviceids") @JsonProperty("mobileserviceids")
@ApiModelProperty("MobileServiceIds")
private String mobileserviceids; private String mobileserviceids;
......
...@@ -24,6 +24,8 @@ import java.io.Serializable; ...@@ -24,6 +24,8 @@ import java.io.Serializable;
import lombok.*; import lombok.*;
import org.springframework.data.annotation.Transient; import org.springframework.data.annotation.Transient;
import cn.ibizlab.util.annotation.Audit; import cn.ibizlab.util.annotation.Audit;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/** /**
...@@ -34,6 +36,7 @@ import cn.ibizlab.util.annotation.Audit; ...@@ -34,6 +36,7 @@ import cn.ibizlab.util.annotation.Audit;
@Setter @Setter
@NoArgsConstructor @NoArgsConstructor
@AllArgsConstructor @AllArgsConstructor
@ApiModel("流程实例")
public class WFProcessInstance extends EntityBase implements Serializable { public class WFProcessInstance extends EntityBase implements Serializable {
/** /**
...@@ -42,6 +45,7 @@ public class WFProcessInstance extends EntityBase implements Serializable { ...@@ -42,6 +45,7 @@ public class WFProcessInstance extends EntityBase implements Serializable {
@DEField(name = "instanceid", isKeyField = true) @DEField(name = "instanceid", isKeyField = true)
@JSONField(name = "id") @JSONField(name = "id")
@JsonProperty("id") @JsonProperty("id")
@ApiModelProperty("实例标识")
private String id; private String id;
/** /**
...@@ -50,6 +54,7 @@ public class WFProcessInstance extends EntityBase implements Serializable { ...@@ -50,6 +54,7 @@ public class WFProcessInstance extends EntityBase implements Serializable {
@DEField(name = "instancename") @DEField(name = "instancename")
@JSONField(name = "name") @JSONField(name = "name")
@JsonProperty("name") @JsonProperty("name")
@ApiModelProperty("实例名称")
private String name; private String name;
/** /**
...@@ -58,6 +63,7 @@ public class WFProcessInstance extends EntityBase implements Serializable { ...@@ -58,6 +63,7 @@ public class WFProcessInstance extends EntityBase implements Serializable {
@DEField(name = "definitionkey") @DEField(name = "definitionkey")
@JSONField(name = "processDefinitionKey") @JSONField(name = "processDefinitionKey")
@JsonProperty("processDefinitionKey") @JsonProperty("processDefinitionKey")
@ApiModelProperty("DefinitionKey")
private String processdefinitionkey; private String processdefinitionkey;
/** /**
...@@ -66,6 +72,7 @@ public class WFProcessInstance extends EntityBase implements Serializable { ...@@ -66,6 +72,7 @@ public class WFProcessInstance extends EntityBase implements Serializable {
@DEField(name = "definitionname") @DEField(name = "definitionname")
@JSONField(name = "processDefinitionName") @JSONField(name = "processDefinitionName")
@JsonProperty("processDefinitionName") @JsonProperty("processDefinitionName")
@ApiModelProperty("流程定义名称")
private String processdefinitionname; private String processdefinitionname;
/** /**
...@@ -73,6 +80,7 @@ public class WFProcessInstance extends EntityBase implements Serializable { ...@@ -73,6 +80,7 @@ public class WFProcessInstance extends EntityBase implements Serializable {
*/ */
@JSONField(name = "businessKey") @JSONField(name = "businessKey")
@JsonProperty("businessKey") @JsonProperty("businessKey")
@ApiModelProperty("业务键值")
private String businesskey; private String businesskey;
/** /**
...@@ -81,6 +89,7 @@ public class WFProcessInstance extends EntityBase implements Serializable { ...@@ -81,6 +89,7 @@ public class WFProcessInstance extends EntityBase implements Serializable {
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
@JSONField(name = "startTime", format = "yyyy-MM-dd HH:mm:ss") @JSONField(name = "startTime", format = "yyyy-MM-dd HH:mm:ss")
@JsonProperty("startTime") @JsonProperty("startTime")
@ApiModelProperty("启动时间")
private Timestamp starttime; private Timestamp starttime;
/** /**
...@@ -89,6 +98,7 @@ public class WFProcessInstance extends EntityBase implements Serializable { ...@@ -89,6 +98,7 @@ public class WFProcessInstance extends EntityBase implements Serializable {
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
@JSONField(name = "endTime", format = "yyyy-MM-dd HH:mm:ss") @JSONField(name = "endTime", format = "yyyy-MM-dd HH:mm:ss")
@JsonProperty("endTime") @JsonProperty("endTime")
@ApiModelProperty("结束时间")
private Timestamp endtime; private Timestamp endtime;
/** /**
...@@ -96,6 +106,7 @@ public class WFProcessInstance extends EntityBase implements Serializable { ...@@ -96,6 +106,7 @@ public class WFProcessInstance extends EntityBase implements Serializable {
*/ */
@JSONField(name = "startUserId") @JSONField(name = "startUserId")
@JsonProperty("startUserId") @JsonProperty("startUserId")
@ApiModelProperty("发起人标识")
private String startuserid; private String startuserid;
/** /**
...@@ -103,6 +114,7 @@ public class WFProcessInstance extends EntityBase implements Serializable { ...@@ -103,6 +114,7 @@ public class WFProcessInstance extends EntityBase implements Serializable {
*/ */
@JSONField(name = "startUserName") @JSONField(name = "startUserName")
@JsonProperty("startUserName") @JsonProperty("startUserName")
@ApiModelProperty("发起人")
private String startusername; private String startusername;
......
...@@ -24,6 +24,8 @@ import java.io.Serializable; ...@@ -24,6 +24,8 @@ import java.io.Serializable;
import lombok.*; import lombok.*;
import org.springframework.data.annotation.Transient; import org.springframework.data.annotation.Transient;
import cn.ibizlab.util.annotation.Audit; import cn.ibizlab.util.annotation.Audit;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/** /**
...@@ -34,6 +36,7 @@ import cn.ibizlab.util.annotation.Audit; ...@@ -34,6 +36,7 @@ import cn.ibizlab.util.annotation.Audit;
@Setter @Setter
@NoArgsConstructor @NoArgsConstructor
@AllArgsConstructor @AllArgsConstructor
@ApiModel("流程定义节点")
public class WFProcessNode extends EntityBase implements Serializable { public class WFProcessNode extends EntityBase implements Serializable {
/** /**
...@@ -42,6 +45,7 @@ public class WFProcessNode extends EntityBase implements Serializable { ...@@ -42,6 +45,7 @@ public class WFProcessNode extends EntityBase implements Serializable {
@DEField(name = "nodeid", isKeyField = true) @DEField(name = "nodeid", isKeyField = true)
@JSONField(name = "userTaskId") @JSONField(name = "userTaskId")
@JsonProperty("userTaskId") @JsonProperty("userTaskId")
@ApiModelProperty("节点标识")
private String usertaskid; private String usertaskid;
/** /**
...@@ -50,6 +54,7 @@ public class WFProcessNode extends EntityBase implements Serializable { ...@@ -50,6 +54,7 @@ public class WFProcessNode extends EntityBase implements Serializable {
@DEField(name = "nodename") @DEField(name = "nodename")
@JSONField(name = "userTaskName") @JSONField(name = "userTaskName")
@JsonProperty("userTaskName") @JsonProperty("userTaskName")
@ApiModelProperty("节点名称")
private String usertaskname; private String usertaskname;
/** /**
...@@ -58,6 +63,7 @@ public class WFProcessNode extends EntityBase implements Serializable { ...@@ -58,6 +63,7 @@ public class WFProcessNode extends EntityBase implements Serializable {
@DEField(name = "definitionkey") @DEField(name = "definitionkey")
@JSONField(name = "processDefinitionKey") @JSONField(name = "processDefinitionKey")
@JsonProperty("processDefinitionKey") @JsonProperty("processDefinitionKey")
@ApiModelProperty("DefinitionKey")
private String processdefinitionkey; private String processdefinitionkey;
/** /**
...@@ -66,6 +72,7 @@ public class WFProcessNode extends EntityBase implements Serializable { ...@@ -66,6 +72,7 @@ public class WFProcessNode extends EntityBase implements Serializable {
@DEField(name = "definitionname") @DEField(name = "definitionname")
@JSONField(name = "processDefinitionName") @JSONField(name = "processDefinitionName")
@JsonProperty("processDefinitionName") @JsonProperty("processDefinitionName")
@ApiModelProperty("流程定义名称")
private String processdefinitionname; private String processdefinitionname;
/** /**
...@@ -73,6 +80,7 @@ public class WFProcessNode extends EntityBase implements Serializable { ...@@ -73,6 +80,7 @@ public class WFProcessNode extends EntityBase implements Serializable {
*/ */
@JSONField(name = "version") @JSONField(name = "version")
@JsonProperty("version") @JsonProperty("version")
@ApiModelProperty("版本")
private Integer version; private Integer version;
/** /**
...@@ -80,6 +88,7 @@ public class WFProcessNode extends EntityBase implements Serializable { ...@@ -80,6 +88,7 @@ public class WFProcessNode extends EntityBase implements Serializable {
*/ */
@JSONField(name = "cnt") @JSONField(name = "cnt")
@JsonProperty("cnt") @JsonProperty("cnt")
@ApiModelProperty("数量")
private Integer cnt; private Integer cnt;
......
...@@ -24,6 +24,8 @@ import java.io.Serializable; ...@@ -24,6 +24,8 @@ import java.io.Serializable;
import lombok.*; import lombok.*;
import org.springframework.data.annotation.Transient; import org.springframework.data.annotation.Transient;
import cn.ibizlab.util.annotation.Audit; import cn.ibizlab.util.annotation.Audit;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/** /**
...@@ -34,6 +36,7 @@ import cn.ibizlab.util.annotation.Audit; ...@@ -34,6 +36,7 @@ import cn.ibizlab.util.annotation.Audit;
@Setter @Setter
@NoArgsConstructor @NoArgsConstructor
@AllArgsConstructor @AllArgsConstructor
@ApiModel("流程模型")
public class WFREModel extends EntityBase implements Serializable { public class WFREModel extends EntityBase implements Serializable {
/** /**
...@@ -42,6 +45,7 @@ public class WFREModel extends EntityBase implements Serializable { ...@@ -42,6 +45,7 @@ public class WFREModel extends EntityBase implements Serializable {
@DEField(name = "modelid", isKeyField = true) @DEField(name = "modelid", isKeyField = true)
@JSONField(name = "id") @JSONField(name = "id")
@JsonProperty("id") @JsonProperty("id")
@ApiModelProperty("ID")
private String id; private String id;
/** /**
...@@ -50,6 +54,7 @@ public class WFREModel extends EntityBase implements Serializable { ...@@ -50,6 +54,7 @@ public class WFREModel extends EntityBase implements Serializable {
@DEField(name = "modelname") @DEField(name = "modelname")
@JSONField(name = "name") @JSONField(name = "name")
@JsonProperty("name") @JsonProperty("name")
@ApiModelProperty("名称")
private String name; private String name;
/** /**
...@@ -57,6 +62,7 @@ public class WFREModel extends EntityBase implements Serializable { ...@@ -57,6 +62,7 @@ public class WFREModel extends EntityBase implements Serializable {
*/ */
@JSONField(name = "bPMNFile") @JSONField(name = "bPMNFile")
@JsonProperty("bPMNFile") @JsonProperty("bPMNFile")
@ApiModelProperty("BPMN")
private String bpmnfile; private String bpmnfile;
......
...@@ -24,6 +24,8 @@ import java.io.Serializable; ...@@ -24,6 +24,8 @@ import java.io.Serializable;
import lombok.*; import lombok.*;
import org.springframework.data.annotation.Transient; import org.springframework.data.annotation.Transient;
import cn.ibizlab.util.annotation.Audit; import cn.ibizlab.util.annotation.Audit;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
...@@ -39,6 +41,7 @@ import com.baomidou.mybatisplus.core.toolkit.IdWorker; ...@@ -39,6 +41,7 @@ import com.baomidou.mybatisplus.core.toolkit.IdWorker;
@NoArgsConstructor @NoArgsConstructor
@JsonIgnoreProperties(value = "handler") @JsonIgnoreProperties(value = "handler")
@TableName(value = "IBZPSSYSTEM", resultMap = "WFSystemResultMap") @TableName(value = "IBZPSSYSTEM", resultMap = "WFSystemResultMap")
@ApiModel("系统")
public class WFSystem extends EntityMP implements Serializable { public class WFSystem extends EntityMP implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
...@@ -50,6 +53,7 @@ public class WFSystem extends EntityMP implements Serializable { ...@@ -50,6 +53,7 @@ public class WFSystem extends EntityMP implements Serializable {
@TableId(value = "pssystemid", type = IdType.ASSIGN_UUID) @TableId(value = "pssystemid", type = IdType.ASSIGN_UUID)
@JSONField(name = "pssystemid") @JSONField(name = "pssystemid")
@JsonProperty("pssystemid") @JsonProperty("pssystemid")
@ApiModelProperty("系统标识")
private String pssystemid; private String pssystemid;
/** /**
* 系统名称 * 系统名称
...@@ -57,6 +61,7 @@ public class WFSystem extends EntityMP implements Serializable { ...@@ -57,6 +61,7 @@ public class WFSystem extends EntityMP implements Serializable {
@TableField(value = "pssystemname") @TableField(value = "pssystemname")
@JSONField(name = "pssystemname") @JSONField(name = "pssystemname")
@JsonProperty("pssystemname") @JsonProperty("pssystemname")
@ApiModelProperty("系统名称")
private String pssystemname; private String pssystemname;
......
...@@ -24,6 +24,8 @@ import java.io.Serializable; ...@@ -24,6 +24,8 @@ import java.io.Serializable;
import lombok.*; import lombok.*;
import org.springframework.data.annotation.Transient; import org.springframework.data.annotation.Transient;
import cn.ibizlab.util.annotation.Audit; import cn.ibizlab.util.annotation.Audit;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/** /**
...@@ -34,6 +36,7 @@ import cn.ibizlab.util.annotation.Audit; ...@@ -34,6 +36,7 @@ import cn.ibizlab.util.annotation.Audit;
@Setter @Setter
@NoArgsConstructor @NoArgsConstructor
@AllArgsConstructor @AllArgsConstructor
@ApiModel("工作流任务")
public class WFTask extends EntityBase implements Serializable { public class WFTask extends EntityBase implements Serializable {
/** /**
...@@ -42,6 +45,7 @@ public class WFTask extends EntityBase implements Serializable { ...@@ -42,6 +45,7 @@ public class WFTask extends EntityBase implements Serializable {
@DEField(name = "taskid", isKeyField = true) @DEField(name = "taskid", isKeyField = true)
@JSONField(name = "id") @JSONField(name = "id")
@JsonProperty("id") @JsonProperty("id")
@ApiModelProperty("任务标识")
private String id; private String id;
/** /**
...@@ -50,6 +54,7 @@ public class WFTask extends EntityBase implements Serializable { ...@@ -50,6 +54,7 @@ public class WFTask extends EntityBase implements Serializable {
@DEField(name = "taskname") @DEField(name = "taskname")
@JSONField(name = "name") @JSONField(name = "name")
@JsonProperty("name") @JsonProperty("name")
@ApiModelProperty("状态")
private String name; private String name;
/** /**
...@@ -58,6 +63,7 @@ public class WFTask extends EntityBase implements Serializable { ...@@ -58,6 +63,7 @@ public class WFTask extends EntityBase implements Serializable {
@DEField(name = "definitionid") @DEField(name = "definitionid")
@JSONField(name = "processDefinitionId") @JSONField(name = "processDefinitionId")
@JsonProperty("processDefinitionId") @JsonProperty("processDefinitionId")
@ApiModelProperty("DefinitionId")
private String processdefinitionid; private String processdefinitionid;
/** /**
...@@ -66,6 +72,7 @@ public class WFTask extends EntityBase implements Serializable { ...@@ -66,6 +72,7 @@ public class WFTask extends EntityBase implements Serializable {
@DEField(name = "definitionkey") @DEField(name = "definitionkey")
@JSONField(name = "processDefinitionKey") @JSONField(name = "processDefinitionKey")
@JsonProperty("processDefinitionKey") @JsonProperty("processDefinitionKey")
@ApiModelProperty("DefinitionKey")
private String processdefinitionkey; private String processdefinitionkey;
/** /**
...@@ -74,6 +81,7 @@ public class WFTask extends EntityBase implements Serializable { ...@@ -74,6 +81,7 @@ public class WFTask extends EntityBase implements Serializable {
@DEField(name = "definitionname") @DEField(name = "definitionname")
@JSONField(name = "processDefinitionName") @JSONField(name = "processDefinitionName")
@JsonProperty("processDefinitionName") @JsonProperty("processDefinitionName")
@ApiModelProperty("流程")
private String processdefinitionname; private String processdefinitionname;
/** /**
...@@ -81,6 +89,7 @@ public class WFTask extends EntityBase implements Serializable { ...@@ -81,6 +89,7 @@ public class WFTask extends EntityBase implements Serializable {
*/ */
@JSONField(name = "taskDefinitionKey") @JSONField(name = "taskDefinitionKey")
@JsonProperty("taskDefinitionKey") @JsonProperty("taskDefinitionKey")
@ApiModelProperty("TaskDefinitionKey")
private String taskdefinitionkey; private String taskdefinitionkey;
/** /**
...@@ -88,6 +97,7 @@ public class WFTask extends EntityBase implements Serializable { ...@@ -88,6 +97,7 @@ public class WFTask extends EntityBase implements Serializable {
*/ */
@JSONField(name = "description") @JSONField(name = "description")
@JsonProperty("description") @JsonProperty("description")
@ApiModelProperty("待办事项")
private String description; private String description;
/** /**
...@@ -96,6 +106,7 @@ public class WFTask extends EntityBase implements Serializable { ...@@ -96,6 +106,7 @@ public class WFTask extends EntityBase implements Serializable {
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
@JSONField(name = "createTime", format = "yyyy-MM-dd HH:mm:ss") @JSONField(name = "createTime", format = "yyyy-MM-dd HH:mm:ss")
@JsonProperty("createTime") @JsonProperty("createTime")
@ApiModelProperty("发起时间")
private Timestamp createtime; private Timestamp createtime;
/** /**
...@@ -104,6 +115,7 @@ public class WFTask extends EntityBase implements Serializable { ...@@ -104,6 +115,7 @@ public class WFTask extends EntityBase implements Serializable {
@DEField(name = "instanceid") @DEField(name = "instanceid")
@JSONField(name = "processInstanceId") @JSONField(name = "processInstanceId")
@JsonProperty("processInstanceId") @JsonProperty("processInstanceId")
@ApiModelProperty("实例标识")
private String processinstanceid; private String processinstanceid;
/** /**
...@@ -112,6 +124,7 @@ public class WFTask extends EntityBase implements Serializable { ...@@ -112,6 +124,7 @@ public class WFTask extends EntityBase implements Serializable {
@DEField(name = "businesskey") @DEField(name = "businesskey")
@JSONField(name = "processInstanceBusinessKey") @JSONField(name = "processInstanceBusinessKey")
@JsonProperty("processInstanceBusinessKey") @JsonProperty("processInstanceBusinessKey")
@ApiModelProperty("业务键值")
private String processinstancebusinesskey; private String processinstancebusinesskey;
......
...@@ -24,6 +24,8 @@ import java.io.Serializable; ...@@ -24,6 +24,8 @@ import java.io.Serializable;
import lombok.*; import lombok.*;
import org.springframework.data.annotation.Transient; import org.springframework.data.annotation.Transient;
import cn.ibizlab.util.annotation.Audit; import cn.ibizlab.util.annotation.Audit;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/** /**
...@@ -34,6 +36,7 @@ import cn.ibizlab.util.annotation.Audit; ...@@ -34,6 +36,7 @@ import cn.ibizlab.util.annotation.Audit;
@Setter @Setter
@NoArgsConstructor @NoArgsConstructor
@AllArgsConstructor @AllArgsConstructor
@ApiModel("操作路径")
public class WFTaskWay extends EntityBase implements Serializable { public class WFTaskWay extends EntityBase implements Serializable {
/** /**
...@@ -42,6 +45,7 @@ public class WFTaskWay extends EntityBase implements Serializable { ...@@ -42,6 +45,7 @@ public class WFTaskWay extends EntityBase implements Serializable {
@DEField(name = "wayid", isKeyField = true) @DEField(name = "wayid", isKeyField = true)
@JSONField(name = "sequenceFlowId") @JSONField(name = "sequenceFlowId")
@JsonProperty("sequenceFlowId") @JsonProperty("sequenceFlowId")
@ApiModelProperty("路径标识")
private String sequenceflowid; private String sequenceflowid;
/** /**
...@@ -50,6 +54,7 @@ public class WFTaskWay extends EntityBase implements Serializable { ...@@ -50,6 +54,7 @@ public class WFTaskWay extends EntityBase implements Serializable {
@DEField(name = "wayname") @DEField(name = "wayname")
@JSONField(name = "sequenceFlowName") @JSONField(name = "sequenceFlowName")
@JsonProperty("sequenceFlowName") @JsonProperty("sequenceFlowName")
@ApiModelProperty("路径标识")
private String sequenceflowname; private String sequenceflowname;
/** /**
...@@ -57,6 +62,7 @@ public class WFTaskWay extends EntityBase implements Serializable { ...@@ -57,6 +62,7 @@ public class WFTaskWay extends EntityBase implements Serializable {
*/ */
@JSONField(name = "taskId") @JSONField(name = "taskId")
@JsonProperty("taskId") @JsonProperty("taskId")
@ApiModelProperty("任务标识")
private String taskid; private String taskid;
/** /**
...@@ -64,6 +70,7 @@ public class WFTaskWay extends EntityBase implements Serializable { ...@@ -64,6 +70,7 @@ public class WFTaskWay extends EntityBase implements Serializable {
*/ */
@JSONField(name = "taskDefinitionKey") @JSONField(name = "taskDefinitionKey")
@JsonProperty("taskDefinitionKey") @JsonProperty("taskDefinitionKey")
@ApiModelProperty("TaskDefinitionKey")
private String taskdefinitionkey; private String taskdefinitionkey;
/** /**
...@@ -72,6 +79,7 @@ public class WFTaskWay extends EntityBase implements Serializable { ...@@ -72,6 +79,7 @@ public class WFTaskWay extends EntityBase implements Serializable {
@DEField(name = "instanceid") @DEField(name = "instanceid")
@JSONField(name = "processInstanceId") @JSONField(name = "processInstanceId")
@JsonProperty("processInstanceId") @JsonProperty("processInstanceId")
@ApiModelProperty("实例标识")
private String processinstanceid; private String processinstanceid;
/** /**
...@@ -80,6 +88,7 @@ public class WFTaskWay extends EntityBase implements Serializable { ...@@ -80,6 +88,7 @@ public class WFTaskWay extends EntityBase implements Serializable {
@DEField(name = "definitionkey") @DEField(name = "definitionkey")
@JSONField(name = "processDefinitionKey") @JSONField(name = "processDefinitionKey")
@JsonProperty("processDefinitionKey") @JsonProperty("processDefinitionKey")
@ApiModelProperty("DefinitionKey")
private String processdefinitionkey; private String processdefinitionkey;
/** /**
...@@ -88,6 +97,7 @@ public class WFTaskWay extends EntityBase implements Serializable { ...@@ -88,6 +97,7 @@ public class WFTaskWay extends EntityBase implements Serializable {
@DEField(name = "businesskey") @DEField(name = "businesskey")
@JSONField(name = "processInstanceBusinessKey") @JSONField(name = "processInstanceBusinessKey")
@JsonProperty("processInstanceBusinessKey") @JsonProperty("processInstanceBusinessKey")
@ApiModelProperty("业务键值")
private String processinstancebusinesskey; private String processinstancebusinesskey;
/** /**
...@@ -95,6 +105,7 @@ public class WFTaskWay extends EntityBase implements Serializable { ...@@ -95,6 +105,7 @@ public class WFTaskWay extends EntityBase implements Serializable {
*/ */
@JSONField(name = "refViewKey") @JSONField(name = "refViewKey")
@JsonProperty("refViewKey") @JsonProperty("refViewKey")
@ApiModelProperty("引用视图")
private String refviewkey; private String refviewkey;
......
...@@ -24,6 +24,8 @@ import java.io.Serializable; ...@@ -24,6 +24,8 @@ import java.io.Serializable;
import lombok.*; import lombok.*;
import org.springframework.data.annotation.Transient; import org.springframework.data.annotation.Transient;
import cn.ibizlab.util.annotation.Audit; import cn.ibizlab.util.annotation.Audit;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
...@@ -39,6 +41,7 @@ import com.baomidou.mybatisplus.core.toolkit.IdWorker; ...@@ -39,6 +41,7 @@ import com.baomidou.mybatisplus.core.toolkit.IdWorker;
@NoArgsConstructor @NoArgsConstructor
@JsonIgnoreProperties(value = "handler") @JsonIgnoreProperties(value = "handler")
@TableName(value = "IBZUSER", resultMap = "WFUserResultMap") @TableName(value = "IBZUSER", resultMap = "WFUserResultMap")
@ApiModel("用户")
public class WFUser extends EntityMP implements Serializable { public class WFUser extends EntityMP implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
...@@ -50,6 +53,7 @@ public class WFUser extends EntityMP implements Serializable { ...@@ -50,6 +53,7 @@ public class WFUser extends EntityMP implements Serializable {
@TableId(value = "userid", type = IdType.ASSIGN_UUID) @TableId(value = "userid", type = IdType.ASSIGN_UUID)
@JSONField(name = "id") @JSONField(name = "id")
@JsonProperty("id") @JsonProperty("id")
@ApiModelProperty("用户标识")
private String id; private String id;
/** /**
* 用户全局名 * 用户全局名
...@@ -58,6 +62,7 @@ public class WFUser extends EntityMP implements Serializable { ...@@ -58,6 +62,7 @@ public class WFUser extends EntityMP implements Serializable {
@TableField(value = "username") @TableField(value = "username")
@JSONField(name = "firstname") @JSONField(name = "firstname")
@JsonProperty("firstname") @JsonProperty("firstname")
@ApiModelProperty("用户全局名")
private String firstname; private String firstname;
/** /**
* 用户名称 * 用户名称
...@@ -66,6 +71,7 @@ public class WFUser extends EntityMP implements Serializable { ...@@ -66,6 +71,7 @@ public class WFUser extends EntityMP implements Serializable {
@TableField(value = "personname") @TableField(value = "personname")
@JSONField(name = "displayname") @JSONField(name = "displayname")
@JsonProperty("displayname") @JsonProperty("displayname")
@ApiModelProperty("用户名称")
private String displayname; private String displayname;
/** /**
* 主部门 * 主部门
...@@ -73,6 +79,7 @@ public class WFUser extends EntityMP implements Serializable { ...@@ -73,6 +79,7 @@ public class WFUser extends EntityMP implements Serializable {
@TableField(value = "mdeptid") @TableField(value = "mdeptid")
@JSONField(name = "mdeptid") @JSONField(name = "mdeptid")
@JsonProperty("mdeptid") @JsonProperty("mdeptid")
@ApiModelProperty("主部门")
private String mdeptid; private String mdeptid;
/** /**
* 主部门代码 * 主部门代码
...@@ -80,6 +87,7 @@ public class WFUser extends EntityMP implements Serializable { ...@@ -80,6 +87,7 @@ public class WFUser extends EntityMP implements Serializable {
@TableField(value = "mdeptcode") @TableField(value = "mdeptcode")
@JSONField(name = "mdeptcode") @JSONField(name = "mdeptcode")
@JsonProperty("mdeptcode") @JsonProperty("mdeptcode")
@ApiModelProperty("主部门代码")
private String mdeptcode; private String mdeptcode;
/** /**
* 主部门名称 * 主部门名称
...@@ -87,6 +95,7 @@ public class WFUser extends EntityMP implements Serializable { ...@@ -87,6 +95,7 @@ public class WFUser extends EntityMP implements Serializable {
@TableField(value = "mdeptname") @TableField(value = "mdeptname")
@JSONField(name = "mdeptname") @JSONField(name = "mdeptname")
@JsonProperty("mdeptname") @JsonProperty("mdeptname")
@ApiModelProperty("主部门名称")
private String mdeptname; private String mdeptname;
/** /**
* 业务编码 * 业务编码
...@@ -94,6 +103,7 @@ public class WFUser extends EntityMP implements Serializable { ...@@ -94,6 +103,7 @@ public class WFUser extends EntityMP implements Serializable {
@TableField(value = "bcode") @TableField(value = "bcode")
@JSONField(name = "bcode") @JSONField(name = "bcode")
@JsonProperty("bcode") @JsonProperty("bcode")
@ApiModelProperty("业务编码")
private String bcode; private String bcode;
/** /**
* 单位 * 单位
...@@ -102,6 +112,7 @@ public class WFUser extends EntityMP implements Serializable { ...@@ -102,6 +112,7 @@ public class WFUser extends EntityMP implements Serializable {
@TableField(value = "orgid") @TableField(value = "orgid")
@JSONField(name = "orgid") @JSONField(name = "orgid")
@JsonProperty("orgid") @JsonProperty("orgid")
@ApiModelProperty("单位")
private String orgid; private String orgid;
/** /**
* 单位代码 * 单位代码
...@@ -109,6 +120,7 @@ public class WFUser extends EntityMP implements Serializable { ...@@ -109,6 +120,7 @@ public class WFUser extends EntityMP implements Serializable {
@TableField(value = "orgcode") @TableField(value = "orgcode")
@JSONField(name = "orgcode") @JSONField(name = "orgcode")
@JsonProperty("orgcode") @JsonProperty("orgcode")
@ApiModelProperty("单位代码")
private String orgcode; private String orgcode;
/** /**
* 单位名称 * 单位名称
...@@ -117,6 +129,7 @@ public class WFUser extends EntityMP implements Serializable { ...@@ -117,6 +129,7 @@ public class WFUser extends EntityMP implements Serializable {
@TableField(value = "orgname") @TableField(value = "orgname")
@JSONField(name = "orgname") @JSONField(name = "orgname")
@JsonProperty("orgname") @JsonProperty("orgname")
@ApiModelProperty("单位名称")
private String orgname; private String orgname;
......
...@@ -20,11 +20,14 @@ import javax.validation.constraints.Size; ...@@ -20,11 +20,14 @@ import javax.validation.constraints.Size;
import cn.ibizlab.util.domain.DTOBase; import cn.ibizlab.util.domain.DTOBase;
import cn.ibizlab.util.domain.DTOClient; import cn.ibizlab.util.domain.DTOClient;
import lombok.Data; import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/** /**
* 服务DTO对象[WFGroupDTO] * 服务DTO对象[WFGroupDTO]
*/ */
@Data @Data
@ApiModel("角色/用户组")
public class WFGroupDTO extends DTOBase implements Serializable { public class WFGroupDTO extends DTOBase implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
...@@ -36,6 +39,7 @@ public class WFGroupDTO extends DTOBase implements Serializable { ...@@ -36,6 +39,7 @@ public class WFGroupDTO extends DTOBase implements Serializable {
@JSONField(name = "id") @JSONField(name = "id")
@JsonProperty("id") @JsonProperty("id")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("组标识")
private String id; private String id;
/** /**
...@@ -45,6 +49,7 @@ public class WFGroupDTO extends DTOBase implements Serializable { ...@@ -45,6 +49,7 @@ public class WFGroupDTO extends DTOBase implements Serializable {
@JSONField(name = "name") @JSONField(name = "name")
@JsonProperty("name") @JsonProperty("name")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("组名称")
private String name; private String name;
/** /**
...@@ -54,6 +59,7 @@ public class WFGroupDTO extends DTOBase implements Serializable { ...@@ -54,6 +59,7 @@ public class WFGroupDTO extends DTOBase implements Serializable {
@JSONField(name = "groupscope") @JSONField(name = "groupscope")
@JsonProperty("groupscope") @JsonProperty("groupscope")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("范围")
private String groupscope; private String groupscope;
......
...@@ -20,11 +20,14 @@ import javax.validation.constraints.Size; ...@@ -20,11 +20,14 @@ import javax.validation.constraints.Size;
import cn.ibizlab.util.domain.DTOBase; import cn.ibizlab.util.domain.DTOBase;
import cn.ibizlab.util.domain.DTOClient; import cn.ibizlab.util.domain.DTOClient;
import lombok.Data; import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/** /**
* 服务DTO对象[WFMemberDTO] * 服务DTO对象[WFMemberDTO]
*/ */
@Data @Data
@ApiModel("成员")
public class WFMemberDTO extends DTOBase implements Serializable { public class WFMemberDTO extends DTOBase implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
...@@ -36,6 +39,7 @@ public class WFMemberDTO extends DTOBase implements Serializable { ...@@ -36,6 +39,7 @@ public class WFMemberDTO extends DTOBase implements Serializable {
@JSONField(name = "memberid") @JSONField(name = "memberid")
@JsonProperty("memberid") @JsonProperty("memberid")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("组成员标识")
private String memberid; private String memberid;
/** /**
...@@ -45,6 +49,7 @@ public class WFMemberDTO extends DTOBase implements Serializable { ...@@ -45,6 +49,7 @@ public class WFMemberDTO extends DTOBase implements Serializable {
@JSONField(name = "membername") @JSONField(name = "membername")
@JsonProperty("membername") @JsonProperty("membername")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("组成员名称")
private String membername; private String membername;
/** /**
...@@ -54,6 +59,7 @@ public class WFMemberDTO extends DTOBase implements Serializable { ...@@ -54,6 +59,7 @@ public class WFMemberDTO extends DTOBase implements Serializable {
@JSONField(name = "groupid") @JSONField(name = "groupid")
@JsonProperty("groupid") @JsonProperty("groupid")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("组标识")
private String groupid; private String groupid;
/** /**
...@@ -63,6 +69,7 @@ public class WFMemberDTO extends DTOBase implements Serializable { ...@@ -63,6 +69,7 @@ public class WFMemberDTO extends DTOBase implements Serializable {
@JSONField(name = "groupname") @JSONField(name = "groupname")
@JsonProperty("groupname") @JsonProperty("groupname")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("用户组")
private String groupname; private String groupname;
/** /**
...@@ -72,6 +79,7 @@ public class WFMemberDTO extends DTOBase implements Serializable { ...@@ -72,6 +79,7 @@ public class WFMemberDTO extends DTOBase implements Serializable {
@JSONField(name = "userid") @JSONField(name = "userid")
@JsonProperty("userid") @JsonProperty("userid")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("用户标识")
private String userid; private String userid;
/** /**
...@@ -81,6 +89,7 @@ public class WFMemberDTO extends DTOBase implements Serializable { ...@@ -81,6 +89,7 @@ public class WFMemberDTO extends DTOBase implements Serializable {
@JSONField(name = "personname") @JSONField(name = "personname")
@JsonProperty("personname") @JsonProperty("personname")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("用户")
private String personname; private String personname;
/** /**
...@@ -90,6 +99,7 @@ public class WFMemberDTO extends DTOBase implements Serializable { ...@@ -90,6 +99,7 @@ public class WFMemberDTO extends DTOBase implements Serializable {
@JSONField(name = "orgid") @JSONField(name = "orgid")
@JsonProperty("orgid") @JsonProperty("orgid")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("单位")
private String orgid; private String orgid;
/** /**
...@@ -99,6 +109,7 @@ public class WFMemberDTO extends DTOBase implements Serializable { ...@@ -99,6 +109,7 @@ public class WFMemberDTO extends DTOBase implements Serializable {
@JSONField(name = "orgname") @JSONField(name = "orgname")
@JsonProperty("orgname") @JsonProperty("orgname")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("单位")
private String orgname; private String orgname;
/** /**
...@@ -108,6 +119,7 @@ public class WFMemberDTO extends DTOBase implements Serializable { ...@@ -108,6 +119,7 @@ public class WFMemberDTO extends DTOBase implements Serializable {
@JSONField(name = "mdeptid") @JSONField(name = "mdeptid")
@JsonProperty("mdeptid") @JsonProperty("mdeptid")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("主部门")
private String mdeptid; private String mdeptid;
/** /**
...@@ -117,6 +129,7 @@ public class WFMemberDTO extends DTOBase implements Serializable { ...@@ -117,6 +129,7 @@ public class WFMemberDTO extends DTOBase implements Serializable {
@JSONField(name = "mdeptname") @JSONField(name = "mdeptname")
@JsonProperty("mdeptname") @JsonProperty("mdeptname")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("主部门")
private String mdeptname; private String mdeptname;
......
...@@ -20,11 +20,14 @@ import javax.validation.constraints.Size; ...@@ -20,11 +20,14 @@ import javax.validation.constraints.Size;
import cn.ibizlab.util.domain.DTOBase; import cn.ibizlab.util.domain.DTOBase;
import cn.ibizlab.util.domain.DTOClient; import cn.ibizlab.util.domain.DTOClient;
import lombok.Data; import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/** /**
* 服务DTO对象[WFProcessDefinitionDTO] * 服务DTO对象[WFProcessDefinitionDTO]
*/ */
@Data @Data
@ApiModel("流程定义")
public class WFProcessDefinitionDTO extends DTOBase implements Serializable { public class WFProcessDefinitionDTO extends DTOBase implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
...@@ -36,6 +39,7 @@ public class WFProcessDefinitionDTO extends DTOBase implements Serializable { ...@@ -36,6 +39,7 @@ public class WFProcessDefinitionDTO extends DTOBase implements Serializable {
@JSONField(name = "definitionkey") @JSONField(name = "definitionkey")
@JsonProperty("definitionkey") @JsonProperty("definitionkey")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("DefinitionKey")
private String definitionkey; private String definitionkey;
/** /**
...@@ -45,6 +49,7 @@ public class WFProcessDefinitionDTO extends DTOBase implements Serializable { ...@@ -45,6 +49,7 @@ public class WFProcessDefinitionDTO extends DTOBase implements Serializable {
@JSONField(name = "definitionname") @JSONField(name = "definitionname")
@JsonProperty("definitionname") @JsonProperty("definitionname")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("流程定义名称")
private String definitionname; private String definitionname;
/** /**
...@@ -53,6 +58,7 @@ public class WFProcessDefinitionDTO extends DTOBase implements Serializable { ...@@ -53,6 +58,7 @@ public class WFProcessDefinitionDTO extends DTOBase implements Serializable {
*/ */
@JSONField(name = "modelversion") @JSONField(name = "modelversion")
@JsonProperty("modelversion") @JsonProperty("modelversion")
@ApiModelProperty("模型版本")
private Integer modelversion; private Integer modelversion;
/** /**
...@@ -61,6 +67,7 @@ public class WFProcessDefinitionDTO extends DTOBase implements Serializable { ...@@ -61,6 +67,7 @@ public class WFProcessDefinitionDTO extends DTOBase implements Serializable {
*/ */
@JSONField(name = "modelenable") @JSONField(name = "modelenable")
@JsonProperty("modelenable") @JsonProperty("modelenable")
@ApiModelProperty("模型是否启用")
private Integer modelenable; private Integer modelenable;
/** /**
...@@ -70,6 +77,7 @@ public class WFProcessDefinitionDTO extends DTOBase implements Serializable { ...@@ -70,6 +77,7 @@ public class WFProcessDefinitionDTO extends DTOBase implements Serializable {
@JSONField(name = "pssystemid") @JSONField(name = "pssystemid")
@JsonProperty("pssystemid") @JsonProperty("pssystemid")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("系统标识")
private String pssystemid; private String pssystemid;
/** /**
...@@ -79,6 +87,7 @@ public class WFProcessDefinitionDTO extends DTOBase implements Serializable { ...@@ -79,6 +87,7 @@ public class WFProcessDefinitionDTO extends DTOBase implements Serializable {
@JSONField(name = "md5check") @JSONField(name = "md5check")
@JsonProperty("md5check") @JsonProperty("md5check")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("校验")
private String md5check; private String md5check;
/** /**
...@@ -88,6 +97,7 @@ public class WFProcessDefinitionDTO extends DTOBase implements Serializable { ...@@ -88,6 +97,7 @@ public class WFProcessDefinitionDTO extends DTOBase implements Serializable {
@JSONField(name = "bpmnfile") @JSONField(name = "bpmnfile")
@JsonProperty("bpmnfile") @JsonProperty("bpmnfile")
@Size(min = 0, max = 1000, message = "内容长度必须小于等于[1000]") @Size(min = 0, max = 1000, message = "内容长度必须小于等于[1000]")
@ApiModelProperty("BPMN")
private String bpmnfile; private String bpmnfile;
/** /**
...@@ -97,6 +107,7 @@ public class WFProcessDefinitionDTO extends DTOBase implements Serializable { ...@@ -97,6 +107,7 @@ public class WFProcessDefinitionDTO extends DTOBase implements Serializable {
@JSONField(name = "deploykey") @JSONField(name = "deploykey")
@JsonProperty("deploykey") @JsonProperty("deploykey")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("DeployKey")
private String deploykey; private String deploykey;
/** /**
...@@ -106,6 +117,7 @@ public class WFProcessDefinitionDTO extends DTOBase implements Serializable { ...@@ -106,6 +117,7 @@ public class WFProcessDefinitionDTO extends DTOBase implements Serializable {
@JSONField(name = "webserviceids") @JSONField(name = "webserviceids")
@JsonProperty("webserviceids") @JsonProperty("webserviceids")
@Size(min = 0, max = 200, message = "内容长度必须小于等于[200]") @Size(min = 0, max = 200, message = "内容长度必须小于等于[200]")
@ApiModelProperty("WebServiceIds")
private String webserviceids; private String webserviceids;
/** /**
...@@ -115,6 +127,7 @@ public class WFProcessDefinitionDTO extends DTOBase implements Serializable { ...@@ -115,6 +127,7 @@ public class WFProcessDefinitionDTO extends DTOBase implements Serializable {
@JSONField(name = "mobileserviceids") @JSONField(name = "mobileserviceids")
@JsonProperty("mobileserviceids") @JsonProperty("mobileserviceids")
@Size(min = 0, max = 200, message = "内容长度必须小于等于[200]") @Size(min = 0, max = 200, message = "内容长度必须小于等于[200]")
@ApiModelProperty("MobileServiceIds")
private String mobileserviceids; private String mobileserviceids;
......
...@@ -20,11 +20,14 @@ import javax.validation.constraints.Size; ...@@ -20,11 +20,14 @@ import javax.validation.constraints.Size;
import cn.ibizlab.util.domain.DTOBase; import cn.ibizlab.util.domain.DTOBase;
import cn.ibizlab.util.domain.DTOClient; import cn.ibizlab.util.domain.DTOClient;
import lombok.Data; import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/** /**
* 服务DTO对象[WFREModelDTO] * 服务DTO对象[WFREModelDTO]
*/ */
@Data @Data
@ApiModel("流程模型")
public class WFREModelDTO extends DTOBase implements Serializable { public class WFREModelDTO extends DTOBase implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
...@@ -36,6 +39,7 @@ public class WFREModelDTO extends DTOBase implements Serializable { ...@@ -36,6 +39,7 @@ public class WFREModelDTO extends DTOBase implements Serializable {
@JSONField(name = "id") @JSONField(name = "id")
@JsonProperty("id") @JsonProperty("id")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("ID")
private String id; private String id;
/** /**
...@@ -45,6 +49,7 @@ public class WFREModelDTO extends DTOBase implements Serializable { ...@@ -45,6 +49,7 @@ public class WFREModelDTO extends DTOBase implements Serializable {
@JSONField(name = "name") @JSONField(name = "name")
@JsonProperty("name") @JsonProperty("name")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("名称")
private String name; private String name;
/** /**
...@@ -54,6 +59,7 @@ public class WFREModelDTO extends DTOBase implements Serializable { ...@@ -54,6 +59,7 @@ public class WFREModelDTO extends DTOBase implements Serializable {
@JSONField(name = "bpmnfile") @JSONField(name = "bpmnfile")
@JsonProperty("bpmnfile") @JsonProperty("bpmnfile")
@Size(min = 0, max = 1000, message = "内容长度必须小于等于[1000]") @Size(min = 0, max = 1000, message = "内容长度必须小于等于[1000]")
@ApiModelProperty("BPMN")
private String bpmnfile; private String bpmnfile;
......
...@@ -20,11 +20,14 @@ import javax.validation.constraints.Size; ...@@ -20,11 +20,14 @@ import javax.validation.constraints.Size;
import cn.ibizlab.util.domain.DTOBase; import cn.ibizlab.util.domain.DTOBase;
import cn.ibizlab.util.domain.DTOClient; import cn.ibizlab.util.domain.DTOClient;
import lombok.Data; import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/** /**
* 服务DTO对象[WFSystemDTO] * 服务DTO对象[WFSystemDTO]
*/ */
@Data @Data
@ApiModel("系统")
public class WFSystemDTO extends DTOBase implements Serializable { public class WFSystemDTO extends DTOBase implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
...@@ -36,6 +39,7 @@ public class WFSystemDTO extends DTOBase implements Serializable { ...@@ -36,6 +39,7 @@ public class WFSystemDTO extends DTOBase implements Serializable {
@JSONField(name = "pssystemid") @JSONField(name = "pssystemid")
@JsonProperty("pssystemid") @JsonProperty("pssystemid")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("系统标识")
private String pssystemid; private String pssystemid;
/** /**
...@@ -45,6 +49,7 @@ public class WFSystemDTO extends DTOBase implements Serializable { ...@@ -45,6 +49,7 @@ public class WFSystemDTO extends DTOBase implements Serializable {
@JSONField(name = "pssystemname") @JSONField(name = "pssystemname")
@JsonProperty("pssystemname") @JsonProperty("pssystemname")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("系统名称")
private String pssystemname; private String pssystemname;
......
...@@ -20,11 +20,14 @@ import javax.validation.constraints.Size; ...@@ -20,11 +20,14 @@ import javax.validation.constraints.Size;
import cn.ibizlab.util.domain.DTOBase; import cn.ibizlab.util.domain.DTOBase;
import cn.ibizlab.util.domain.DTOClient; import cn.ibizlab.util.domain.DTOClient;
import lombok.Data; import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/** /**
* 服务DTO对象[WFTaskDTO] * 服务DTO对象[WFTaskDTO]
*/ */
@Data @Data
@ApiModel("工作流任务")
public class WFTaskDTO extends DTOBase implements Serializable { public class WFTaskDTO extends DTOBase implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
...@@ -36,6 +39,7 @@ public class WFTaskDTO extends DTOBase implements Serializable { ...@@ -36,6 +39,7 @@ public class WFTaskDTO extends DTOBase implements Serializable {
@JSONField(name = "id") @JSONField(name = "id")
@JsonProperty("id") @JsonProperty("id")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("任务标识")
private String id; private String id;
/** /**
...@@ -45,6 +49,7 @@ public class WFTaskDTO extends DTOBase implements Serializable { ...@@ -45,6 +49,7 @@ public class WFTaskDTO extends DTOBase implements Serializable {
@JSONField(name = "name") @JSONField(name = "name")
@JsonProperty("name") @JsonProperty("name")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("状态")
private String name; private String name;
/** /**
...@@ -54,6 +59,7 @@ public class WFTaskDTO extends DTOBase implements Serializable { ...@@ -54,6 +59,7 @@ public class WFTaskDTO extends DTOBase implements Serializable {
@JSONField(name = "processdefinitionid") @JSONField(name = "processdefinitionid")
@JsonProperty("processdefinitionid") @JsonProperty("processdefinitionid")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("DefinitionId")
private String processdefinitionid; private String processdefinitionid;
/** /**
...@@ -63,6 +69,7 @@ public class WFTaskDTO extends DTOBase implements Serializable { ...@@ -63,6 +69,7 @@ public class WFTaskDTO extends DTOBase implements Serializable {
@JSONField(name = "processdefinitionkey") @JSONField(name = "processdefinitionkey")
@JsonProperty("processdefinitionkey") @JsonProperty("processdefinitionkey")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("DefinitionKey")
private String processdefinitionkey; private String processdefinitionkey;
/** /**
...@@ -72,6 +79,7 @@ public class WFTaskDTO extends DTOBase implements Serializable { ...@@ -72,6 +79,7 @@ public class WFTaskDTO extends DTOBase implements Serializable {
@JSONField(name = "processdefinitionname") @JSONField(name = "processdefinitionname")
@JsonProperty("processdefinitionname") @JsonProperty("processdefinitionname")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("流程")
private String processdefinitionname; private String processdefinitionname;
/** /**
...@@ -81,6 +89,7 @@ public class WFTaskDTO extends DTOBase implements Serializable { ...@@ -81,6 +89,7 @@ public class WFTaskDTO extends DTOBase implements Serializable {
@JSONField(name = "taskdefinitionkey") @JSONField(name = "taskdefinitionkey")
@JsonProperty("taskdefinitionkey") @JsonProperty("taskdefinitionkey")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("TaskDefinitionKey")
private String taskdefinitionkey; private String taskdefinitionkey;
/** /**
...@@ -90,6 +99,7 @@ public class WFTaskDTO extends DTOBase implements Serializable { ...@@ -90,6 +99,7 @@ public class WFTaskDTO extends DTOBase implements Serializable {
@JSONField(name = "description") @JSONField(name = "description")
@JsonProperty("description") @JsonProperty("description")
@Size(min = 0, max = 1000, message = "内容长度必须小于等于[1000]") @Size(min = 0, max = 1000, message = "内容长度必须小于等于[1000]")
@ApiModelProperty("待办事项")
private String description; private String description;
/** /**
...@@ -99,6 +109,7 @@ public class WFTaskDTO extends DTOBase implements Serializable { ...@@ -99,6 +109,7 @@ public class WFTaskDTO extends DTOBase implements Serializable {
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8") @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "createtime" , format="yyyy-MM-dd HH:mm:ss") @JSONField(name = "createtime" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("createtime") @JsonProperty("createtime")
@ApiModelProperty("发起时间")
private Timestamp createtime; private Timestamp createtime;
/** /**
...@@ -108,6 +119,7 @@ public class WFTaskDTO extends DTOBase implements Serializable { ...@@ -108,6 +119,7 @@ public class WFTaskDTO extends DTOBase implements Serializable {
@JSONField(name = "processinstanceid") @JSONField(name = "processinstanceid")
@JsonProperty("processinstanceid") @JsonProperty("processinstanceid")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("实例标识")
private String processinstanceid; private String processinstanceid;
/** /**
...@@ -117,6 +129,7 @@ public class WFTaskDTO extends DTOBase implements Serializable { ...@@ -117,6 +129,7 @@ public class WFTaskDTO extends DTOBase implements Serializable {
@JSONField(name = "processinstancebusinesskey") @JSONField(name = "processinstancebusinesskey")
@JsonProperty("processinstancebusinesskey") @JsonProperty("processinstancebusinesskey")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("业务键值")
private String processinstancebusinesskey; private String processinstancebusinesskey;
......
...@@ -20,11 +20,14 @@ import javax.validation.constraints.Size; ...@@ -20,11 +20,14 @@ import javax.validation.constraints.Size;
import cn.ibizlab.util.domain.DTOBase; import cn.ibizlab.util.domain.DTOBase;
import cn.ibizlab.util.domain.DTOClient; import cn.ibizlab.util.domain.DTOClient;
import lombok.Data; import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/** /**
* 服务DTO对象[WFUserDTO] * 服务DTO对象[WFUserDTO]
*/ */
@Data @Data
@ApiModel("用户")
public class WFUserDTO extends DTOBase implements Serializable { public class WFUserDTO extends DTOBase implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
...@@ -36,6 +39,7 @@ public class WFUserDTO extends DTOBase implements Serializable { ...@@ -36,6 +39,7 @@ public class WFUserDTO extends DTOBase implements Serializable {
@JSONField(name = "id") @JSONField(name = "id")
@JsonProperty("id") @JsonProperty("id")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("用户标识")
private String id; private String id;
/** /**
...@@ -45,6 +49,7 @@ public class WFUserDTO extends DTOBase implements Serializable { ...@@ -45,6 +49,7 @@ public class WFUserDTO extends DTOBase implements Serializable {
@JSONField(name = "firstname") @JSONField(name = "firstname")
@JsonProperty("firstname") @JsonProperty("firstname")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("用户全局名")
private String firstname; private String firstname;
/** /**
...@@ -54,6 +59,7 @@ public class WFUserDTO extends DTOBase implements Serializable { ...@@ -54,6 +59,7 @@ public class WFUserDTO extends DTOBase implements Serializable {
@JSONField(name = "displayname") @JSONField(name = "displayname")
@JsonProperty("displayname") @JsonProperty("displayname")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("用户名称")
private String displayname; private String displayname;
/** /**
...@@ -63,6 +69,7 @@ public class WFUserDTO extends DTOBase implements Serializable { ...@@ -63,6 +69,7 @@ public class WFUserDTO extends DTOBase implements Serializable {
@JSONField(name = "mdeptid") @JSONField(name = "mdeptid")
@JsonProperty("mdeptid") @JsonProperty("mdeptid")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("主部门")
private String mdeptid; private String mdeptid;
/** /**
...@@ -72,6 +79,7 @@ public class WFUserDTO extends DTOBase implements Serializable { ...@@ -72,6 +79,7 @@ public class WFUserDTO extends DTOBase implements Serializable {
@JSONField(name = "mdeptcode") @JSONField(name = "mdeptcode")
@JsonProperty("mdeptcode") @JsonProperty("mdeptcode")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("主部门代码")
private String mdeptcode; private String mdeptcode;
/** /**
...@@ -81,6 +89,7 @@ public class WFUserDTO extends DTOBase implements Serializable { ...@@ -81,6 +89,7 @@ public class WFUserDTO extends DTOBase implements Serializable {
@JSONField(name = "mdeptname") @JSONField(name = "mdeptname")
@JsonProperty("mdeptname") @JsonProperty("mdeptname")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("主部门名称")
private String mdeptname; private String mdeptname;
/** /**
...@@ -90,6 +99,7 @@ public class WFUserDTO extends DTOBase implements Serializable { ...@@ -90,6 +99,7 @@ public class WFUserDTO extends DTOBase implements Serializable {
@JSONField(name = "bcode") @JSONField(name = "bcode")
@JsonProperty("bcode") @JsonProperty("bcode")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("业务编码")
private String bcode; private String bcode;
/** /**
...@@ -99,6 +109,7 @@ public class WFUserDTO extends DTOBase implements Serializable { ...@@ -99,6 +109,7 @@ public class WFUserDTO extends DTOBase implements Serializable {
@JSONField(name = "orgid") @JSONField(name = "orgid")
@JsonProperty("orgid") @JsonProperty("orgid")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("单位")
private String orgid; private String orgid;
/** /**
...@@ -108,6 +119,7 @@ public class WFUserDTO extends DTOBase implements Serializable { ...@@ -108,6 +119,7 @@ public class WFUserDTO extends DTOBase implements Serializable {
@JSONField(name = "orgcode") @JSONField(name = "orgcode")
@JsonProperty("orgcode") @JsonProperty("orgcode")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("单位代码")
private String orgcode; private String orgcode;
/** /**
...@@ -117,6 +129,7 @@ public class WFUserDTO extends DTOBase implements Serializable { ...@@ -117,6 +129,7 @@ public class WFUserDTO extends DTOBase implements Serializable {
@JSONField(name = "orgname") @JSONField(name = "orgname")
@JsonProperty("orgname") @JsonProperty("orgname")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("单位名称")
private String orgname; private String orgname;
......
...@@ -27,6 +27,16 @@ import java.util.Map; ...@@ -27,6 +27,16 @@ import java.util.Map;
@Component @Component
public class DEFieldDefaultValueAspect public class DEFieldDefaultValueAspect
{ {
/**
* 操作用户标识
*/
final static String TAG_PERSONID = "SRF_PERSONID";
/**
* 操作用户名称
*/
final static String TAG_PERSONNAME = "SRF_PERSONNAME";
/** /**
* 新建数据切入点 * 新建数据切入点
* @param point * @param point
...@@ -221,16 +231,16 @@ public class DEFieldDefaultValueAspect ...@@ -221,16 +231,16 @@ public class DEFieldDefaultValueAspect
switch(preFieldType) { switch(preFieldType) {
case CREATEMAN: case CREATEMAN:
et.set(fieldname, curUser.getUserid()); et.set(fieldname, StringUtils.isEmpty(curUser.getUserid()) ? et.get(TAG_PERSONID) : curUser.getUserid());
break; break;
case CREATEMANNAME: case CREATEMANNAME:
et.set(fieldname, curUser.getPersonname()); et.set(fieldname, StringUtils.isEmpty(curUser.getPersonname()) ? et.get(TAG_PERSONNAME) : curUser.getPersonname());
break; break;
case UPDATEMAN: case UPDATEMAN:
et.set(fieldname, curUser.getUserid()); et.set(fieldname, StringUtils.isEmpty(curUser.getUserid()) ? et.get(TAG_PERSONID) : curUser.getUserid());
break; break;
case UPDATEMANNAME: case UPDATEMANNAME:
et.set(fieldname, curUser.getPersonname()); et.set(fieldname, StringUtils.isEmpty(curUser.getPersonname()) ? et.get(TAG_PERSONNAME) : curUser.getPersonname());
break; break;
case CREATEDATE: case CREATEDATE:
et.set(fieldname, new Timestamp(new Date().getTime())); et.set(fieldname, new Timestamp(new Date().getTime()));
......
...@@ -7,6 +7,7 @@ import lombok.Data; ...@@ -7,6 +7,7 @@ import lombok.Data;
import org.springframework.security.core.GrantedAuthority; import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.context.SecurityContextHolder; import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.security.core.authority.SimpleGrantedAuthority; import org.springframework.security.core.authority.SimpleGrantedAuthority;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.springframework.security.core.userdetails.UserDetails; import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import java.sql.Timestamp; import java.sql.Timestamp;
...@@ -231,6 +232,15 @@ public class AuthenticationUser implements UserDetails ...@@ -231,6 +232,15 @@ public class AuthenticationUser implements UserDetails
return authuserdetail; return authuserdetail;
} }
public static AuthenticationUser setAuthenticationUser(String userId , String userName) {
AuthenticationUser user = new AuthenticationUser();
user.setUserid(userId);
user.setPersonname(userName);
UsernamePasswordAuthenticationToken authentication = new UsernamePasswordAuthenticationToken(user, null, user.getAuthorities());
SecurityContextHolder.getContext().setAuthentication(authentication);
return user;
}
public Map <String,Object> getSessionParams() public Map <String,Object> getSessionParams()
{ {
if(this.sessionParams==null) if(this.sessionParams==null)
......
...@@ -4,11 +4,17 @@ import feign.RequestInterceptor; ...@@ -4,11 +4,17 @@ import feign.RequestInterceptor;
import feign.RequestTemplate; import feign.RequestTemplate;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
import org.springframework.util.LinkedMultiValueMap;
import org.springframework.util.MultiValueMap;
import org.springframework.util.ObjectUtils;
import org.springframework.web.context.request.RequestContextHolder; import org.springframework.web.context.request.RequestContextHolder;
import org.springframework.web.context.request.ServletRequestAttributes; import org.springframework.web.context.request.ServletRequestAttributes;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import java.util.Enumeration; import java.util.Enumeration;
import java.util.LinkedHashMap;
/** /**
* feign请求拦截器 * feign请求拦截器
...@@ -19,23 +25,23 @@ public class FeignRequestInterceptor implements RequestInterceptor { ...@@ -19,23 +25,23 @@ public class FeignRequestInterceptor implements RequestInterceptor {
private final Logger logger = LoggerFactory.getLogger(getClass()); private final Logger logger = LoggerFactory.getLogger(getClass());
@Override @Override
public void apply(RequestTemplate requestTemplate) { public void apply(RequestTemplate requestTemplate) {
ServletRequestAttributes requestAttributes = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes(); ServletRequestAttributes requestAttributes = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes();
if(requestAttributes!=null){ if (requestAttributes != null) {
HttpServletRequest request = requestAttributes.getRequest(); HttpServletRequest request = requestAttributes.getRequest();
Enumeration<String> headerNames = request.getHeaderNames(); Enumeration<String> headerNames = request.getHeaderNames();
if (headerNames != null) { if (headerNames != null) {
while (headerNames.hasMoreElements()) { while (headerNames.hasMoreElements()) {
String name = headerNames.nextElement(); String name = headerNames.nextElement();
if(name.equalsIgnoreCase("transfer-encoding")){ if (name.equalsIgnoreCase("transfer-encoding")) {
continue; continue;
} }
String values = request.getHeader(name); String values = request.getHeader(name);
requestTemplate.header(name, values); requestTemplate.header(name, values);
} }
logger.info("feign interceptor header:{}",requestTemplate); logger.info("feign interceptor header:{}", requestTemplate);
} }
} }
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册