Commit 9beef173 by 弓厶

提交流程步骤的实体类

parent fad81c9b
...@@ -50,6 +50,7 @@ public class Step { ...@@ -50,6 +50,7 @@ public class Step {
/** /**
* 下一步骤的流程ID主键 * 下一步骤的流程ID主键
* 主要描述情况 A,不归属完成 * 主要描述情况 A,不归属完成
* 如果当前数据的值为空(null or "")代表当前流程没 A 分支
*/ */
private String selectA; private String selectA;
...@@ -61,6 +62,7 @@ public class Step { ...@@ -61,6 +62,7 @@ public class Step {
/** /**
* 下一步骤的流程ID主键 * 下一步骤的流程ID主键
* 主要描述情况 B,不归属完成 * 主要描述情况 B,不归属完成
* 如果当前数据的值为空(null or "")代表当前流程没 B 分支
*/ */
private String selectB; private String selectB;
...@@ -72,6 +74,7 @@ public class Step { ...@@ -72,6 +74,7 @@ public class Step {
/** /**
* 下一步骤的流程ID主键 * 下一步骤的流程ID主键
* 主要描述当前流程完成 * 主要描述当前流程完成
* 如果当前数据的值为空(null or "")当做下一步结束处理(也就是当前节点就是流程终点)
*/ */
private String selectNext; private String selectNext;
......
package com.winsun.constant;
/**
* @author Liph
* @datetime 2020-04-20/4/2 17:28
*/
public enum FormState {
/**
* 表单状态枚举
*/
ENABLE("0", "禁用"), DISABLE("10000", "启用");
FormState(String id, String name) {
this.id = id;
this.name = name;
}
private String id;
private String name;
public String getId() {
return id;
}
public String getName() {
return name;
}
/**
* 根据ID获取状态枚举
* @param id 状态ID
* @return
*/
public static FormState findById(String id) {
for(FormState state : values()) {
if(state.getId().equals(id)) {
return state;
}
}
return null;
}
}
package com.winsun.controller;
import com.winsun.auth.core.common.model.ResponseData;
import com.winsun.bean.Form;
import com.winsun.mapper.FormMapper;
import org.springframework.beans.factory.annotation.Autowired;
/**
* 用于作为表单的创建、信息返回等使用
* @author Liph
* @datetime 2020-04-20/4/2 17:17
*/
public class FormController {
private static FormMapper formMapper;
@Autowired
public FormController(FormMapper formMapper) {
FormController.formMapper = formMapper;
}
public ResponseData<Form> list() {
return ResponseData.error(null);
}
public ResponseData<Form> creat() {
return ResponseData.error(null);
}
public ResponseData<Form> modify() {
return ResponseData.error(null);
}
public ResponseData<Form> delete() {
return ResponseData.error(null);
}
public ResponseData<Form> disable() {
return ResponseData.error(null);
}
public ResponseData<Form> enable() {
return ResponseData.error(null);
}
}
package com.winsun.mapper;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
/**
* @author Liph
* @datetime 2020-04-20/4/2 17:26
*/
@Mapper
public interface FormMapper extends BaseMapper<FormMapper> {
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment