流程管理新增
This commit is contained in:
@@ -7,7 +7,7 @@ import lombok.Data;
|
||||
* 主要用于 { Model#setMetaInfo(String)} 的存储
|
||||
*
|
||||
*
|
||||
* @author 芋道源码
|
||||
* @author hongawen
|
||||
*/
|
||||
@Data
|
||||
public class BpmModelMetaInfoRespDTO {
|
||||
|
||||
@@ -14,7 +14,7 @@ import java.io.Serializable;
|
||||
/**
|
||||
* BPM 流程分类
|
||||
*
|
||||
* @author 芋道源码
|
||||
* @author hongawen
|
||||
*/
|
||||
@Data
|
||||
public class BpmCategoryParam implements Serializable {
|
||||
|
||||
@@ -0,0 +1,92 @@
|
||||
package com.njcn.bpm.pojo.param;
|
||||
|
||||
import com.njcn.common.pojo.constant.PatternRegex;
|
||||
import com.njcn.db.bo.BaseEntity;
|
||||
import com.njcn.web.constant.ValidMessage;
|
||||
import com.njcn.web.pojo.param.BaseParam;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.Pattern;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* BPM 流程标识
|
||||
* </p>
|
||||
*
|
||||
* @author hongawen
|
||||
* @since 2024-05-13
|
||||
*/
|
||||
@Data
|
||||
public class BpmSignParam extends BaseEntity implements Serializable {
|
||||
|
||||
|
||||
/**
|
||||
* 流程名称
|
||||
*/
|
||||
@ApiModelProperty("流程名称")
|
||||
@NotBlank(message = "流程名称不能为空")
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 流程标识key
|
||||
*/
|
||||
@ApiModelProperty("流程标识key")
|
||||
@NotBlank(message = "流程标识key不能为空")
|
||||
private String signKey;
|
||||
|
||||
/**
|
||||
* 流程查看表单路径
|
||||
*/
|
||||
@ApiModelProperty("流程查看表单路径")
|
||||
@NotBlank(message = "流程查看表单路径不能为空")
|
||||
private String viewPath;
|
||||
|
||||
/**
|
||||
* 流程创建表单路径
|
||||
*/
|
||||
@ApiModelProperty("流程创建表单路径")
|
||||
private String createPath;
|
||||
|
||||
|
||||
/**
|
||||
* 更新操作实体
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public static class BpmSignUpdateParam extends BpmSignParam {
|
||||
|
||||
/**
|
||||
* 表Id
|
||||
*/
|
||||
@ApiModelProperty("id")
|
||||
@NotBlank(message = ValidMessage.ID_NOT_BLANK)
|
||||
@Pattern(regexp = PatternRegex.SYSTEM_ID, message = ValidMessage.ID_FORMAT_ERROR)
|
||||
private String id;
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 分页查询实体
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public static class BpmSignQueryParam extends BaseParam {
|
||||
|
||||
|
||||
@ApiModelProperty("标识名称")
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty("标识key")
|
||||
private String key;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -14,7 +14,7 @@ import java.io.Serializable;
|
||||
/**
|
||||
* BPM 流程分类 DO
|
||||
*
|
||||
* @author 芋道源码
|
||||
* @author hongawen
|
||||
*/
|
||||
@TableName("bpm_category")
|
||||
@Data
|
||||
|
||||
@@ -17,7 +17,7 @@ import java.util.List;
|
||||
* BPM 工作流的表单定义
|
||||
* 用于工作流的申请表单,需要动态配置的场景
|
||||
*
|
||||
* @author 芋道源码
|
||||
* @author hongawen
|
||||
*/
|
||||
@TableName(value = "bpm_form", autoResultMap = true)
|
||||
@Data
|
||||
|
||||
@@ -0,0 +1,57 @@
|
||||
package com.njcn.bpm.pojo.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.njcn.db.bo.BaseEntity;
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* BPM 流程标识
|
||||
* </p>
|
||||
*
|
||||
* @author hongawen
|
||||
* @since 2024-05-13
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@TableName("bpm_sign")
|
||||
public class BpmSign extends BaseEntity implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 流程标识索引
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 流程名称
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 流程标识key
|
||||
*/
|
||||
private String signKey;
|
||||
|
||||
/**
|
||||
* 流程查看表单路径
|
||||
*/
|
||||
private String viewPath;
|
||||
|
||||
/**
|
||||
* 流程创建表单路径
|
||||
*/
|
||||
private String createPath;
|
||||
|
||||
/**
|
||||
* 状态:0-删除 1-正常
|
||||
*/
|
||||
private Integer state;
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -1,13 +1,15 @@
|
||||
package com.njcn.bpm.pojo.vo;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* BPM 流程分类 DO
|
||||
*
|
||||
* @author 芋道源码
|
||||
* @author hongawen
|
||||
*/
|
||||
@Data
|
||||
public class BpmCategoryVO implements Serializable {
|
||||
@@ -37,5 +39,10 @@ public class BpmCategoryVO implements Serializable {
|
||||
*/
|
||||
private Integer sort;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.njcn.bpm.pojo.vo;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.njcn.db.bo.BaseEntity;
|
||||
import lombok.Data;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* BPM 流程标识
|
||||
* </p>
|
||||
*
|
||||
* @author hongawen
|
||||
* @since 2024-05-13
|
||||
*/
|
||||
@Data
|
||||
public class BpmSignVO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 流程标识索引
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 流程名称
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 流程标识key
|
||||
*/
|
||||
private String signKey;
|
||||
|
||||
/**
|
||||
* 流程查看表单路径
|
||||
*/
|
||||
private String viewPath;
|
||||
|
||||
/**
|
||||
* 流程创建表单路径
|
||||
*/
|
||||
private String createPath;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user