gaodd 5 年之前
父节点
当前提交
edc15fae64

+ 16 - 0
src/main/java/com/unissoft/mapper/ProcessSubMapper.java

@@ -0,0 +1,16 @@
1
+package com.unissoft.mapper;
2
+
3
+import com.unissoft.model.ProcessSub;
4
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
+
6
+/**
7
+ * <p>
8
+ *  Mapper 接口
9
+ * </p>
10
+ *
11
+ * @author My SunShine
12
+ * @since 2020-12-21
13
+ */
14
+public interface ProcessSubMapper extends BaseMapper<ProcessSub> {
15
+
16
+}

+ 20 - 0
src/main/java/com/unissoft/mapper/ProcessSubMapper.xml

@@ -0,0 +1,20 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3
+<mapper namespace="com.unissoft.mapper.ProcessSubMapper">
4
+
5
+    <!-- 通用查询映射结果 -->
6
+    <resultMap id="BaseResultMap" type="com.unissoft.model.ProcessSub">
7
+        <id column="id" property="id" />
8
+        <result column="zid" property="zid" />
9
+        <result column="details" property="details" />
10
+        <result column="title" property="title" />
11
+        <result column="operation_time" property="operationTime" />
12
+        <result column="step" property="step" />
13
+    </resultMap>
14
+
15
+    <!-- 通用查询结果列 -->
16
+    <sql id="Base_Column_List">
17
+        id, zid, details, title, operation_time, step
18
+    </sql>
19
+
20
+</mapper>

+ 115 - 0
src/main/java/com/unissoft/model/ProcessSub.java

@@ -0,0 +1,115 @@
1
+package com.unissoft.model;
2
+
3
+import com.baomidou.mybatisplus.annotation.TableName;
4
+import com.baomidou.mybatisplus.annotation.IdType;
5
+import com.baomidou.mybatisplus.annotation.TableId;
6
+import com.baomidou.mybatisplus.annotation.TableField;
7
+import java.io.Serializable;
8
+import io.swagger.annotations.ApiModel;
9
+import io.swagger.annotations.ApiModelProperty;
10
+
11
+/**
12
+ * <p>
13
+ * 
14
+ * </p>
15
+ *
16
+ * @author My SunShine
17
+ * @since 2020-12-21
18
+ */
19
+@TableName("process_sub")
20
+@ApiModel(value="ProcessSub对象", description="")
21
+public class ProcessSub implements Serializable {
22
+
23
+    private static final long serialVersionUID = 1L;
24
+
25
+    //业务字段
26
+    @TableField(exist = false)
27
+    private Integer subData;
28
+    
29
+    public Integer getSubData() {
30
+        return subData;
31
+    }
32
+
33
+    public void setSubData(Integer subData) {
34
+        this.subData = subData;
35
+    }
36
+    
37
+    
38
+    @ApiModelProperty(value = "流程子表")
39
+    @TableId(value = "id", type = IdType.AUTO)
40
+    private Integer id;
41
+
42
+    @ApiModelProperty(value = "主流程id")
43
+    @TableField("zid")
44
+    private Integer zid;
45
+
46
+    @ApiModelProperty(value = "流程数据选项")
47
+    @TableField("details")
48
+    private String details;
49
+
50
+    @ApiModelProperty(value = "流程标题")
51
+    @TableField("title")
52
+    private String title;
53
+
54
+    @TableField("operation_time")
55
+    private String operationTime;
56
+
57
+    @ApiModelProperty(value = "顺序")
58
+    @TableField("step")
59
+    private Integer step;
60
+
61
+    public Integer getId() {
62
+        return id;
63
+    }
64
+
65
+    public void setId(Integer id) {
66
+        this.id = id;
67
+    }
68
+    public Integer getZid() {
69
+        return zid;
70
+    }
71
+
72
+    public void setZid(Integer zid) {
73
+        this.zid = zid;
74
+    }
75
+    public String getDetails() {
76
+        return details;
77
+    }
78
+
79
+    public void setDetails(String details) {
80
+        this.details = details;
81
+    }
82
+    public String getTitle() {
83
+        return title;
84
+    }
85
+
86
+    public void setTitle(String title) {
87
+        this.title = title;
88
+    }
89
+    public String getOperationTime() {
90
+        return operationTime;
91
+    }
92
+
93
+    public void setOperationTime(String operationTime) {
94
+        this.operationTime = operationTime;
95
+    }
96
+    public Integer getStep() {
97
+        return step;
98
+    }
99
+
100
+    public void setStep(Integer step) {
101
+        this.step = step;
102
+    }
103
+
104
+    @Override
105
+    public String toString() {
106
+        return "ProcessSub{" +
107
+            "id=" + id +
108
+            ", zid=" + zid +
109
+            ", details=" + details +
110
+            ", title=" + title +
111
+            ", operationTime=" + operationTime +
112
+            ", step=" + step +
113
+        "}";
114
+    }
115
+}