gaodd il y a 5 ans
Parent
commit
7b7b0989e3

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

@@ -0,0 +1,16 @@
1
+package com.unissoft.mapper;
2
+
3
+import com.unissoft.model.ProcessAudit;
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-16
13
+ */
14
+public interface ProcessAuditMapper extends BaseMapper<ProcessAudit> {
15
+
16
+}

+ 30 - 0
src/main/java/com/unissoft/mapper/ProcessAuditMapper.xml

@@ -0,0 +1,30 @@
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.ProcessAuditMapper">
4
+
5
+    <!-- 通用查询映射结果 -->
6
+    <resultMap id="BaseResultMap" type="com.unissoft.model.ProcessAudit">
7
+        <id column="id" property="id" />
8
+        <result column="main_id" property="mainId" />
9
+        <result column="sub_id" property="subId" />
10
+        <result column="sub_data" property="subData" />
11
+        <result column="audit_state" property="auditState" />
12
+        <result column="operation_time" property="operationTime" />
13
+        <result column="type" property="type" />
14
+        <result column="house_id" property="houseId" />
15
+        <result column="depot_id" property="depotId" />
16
+        <result column="from_people" property="fromPeople" />
17
+        <result column="to_people" property="toPeople" />
18
+        <result column="result" property="result" />
19
+        <result column="apply_people" property="applyPeople" />
20
+        <result column="audit_time" property="auditTime" />
21
+        <result column="process_id" property="processId" />
22
+        <result column="ongoing_step" property="ongoingStep" />
23
+    </resultMap>
24
+
25
+    <!-- 通用查询结果列 -->
26
+    <sql id="Base_Column_List">
27
+        id, main_id, sub_id, sub_data, audit_state, operation_time, type, house_id, depot_id, from_people, to_people, result, apply_people, audit_time, process_id, ongoing_step
28
+    </sql>
29
+
30
+</mapper>

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

@@ -0,0 +1,16 @@
1
+package com.unissoft.mapper;
2
+
3
+import com.unissoft.model.ProcessMain;
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-16
13
+ */
14
+public interface ProcessMainMapper extends BaseMapper<ProcessMain> {
15
+
16
+}

+ 20 - 0
src/main/java/com/unissoft/mapper/ProcessMainMapper.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.ProcessMainMapper">
4
+
5
+    <!-- 通用查询映射结果 -->
6
+    <resultMap id="BaseResultMap" type="com.unissoft.model.ProcessMain">
7
+        <id column="id" property="id" />
8
+        <result column="type" property="type" />
9
+        <result column="title" property="title" />
10
+        <result column="step" property="step" />
11
+        <result column="exist_process" property="existProcess" />
12
+        <result column="next_id" property="nextId" />
13
+    </resultMap>
14
+
15
+    <!-- 通用查询结果列 -->
16
+    <sql id="Base_Column_List">
17
+        id, type, title, step, exist_process, next_id
18
+    </sql>
19
+
20
+</mapper>

+ 272 - 0
src/main/java/com/unissoft/model/ProcessAudit.java

@@ -0,0 +1,272 @@
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-16
18
+ */
19
+@TableName("process_audit")
20
+@ApiModel(value="ProcessAudit对象", description="")
21
+public class ProcessAudit implements Serializable {
22
+
23
+    private static final long serialVersionUID = 1L;
24
+    
25
+    
26
+    
27
+    //业务字段
28
+    @TableField(exist = false)
29
+    private String houseName;
30
+    @TableField(exist = false)
31
+	private String applyName;
32
+    @TableField(exist = false)
33
+	private String departmentName;
34
+    @TableField(exist = false)
35
+	private String companyName;
36
+	
37
+	
38
+	
39
+	
40
+
41
+    public String getHouseName() {
42
+		return houseName;
43
+	}
44
+
45
+	public void setHouseName(String houseName) {
46
+		this.houseName = houseName;
47
+	}
48
+
49
+	public String getApplyName() {
50
+		return applyName;
51
+	}
52
+
53
+	public void setApplyName(String applyName) {
54
+		this.applyName = applyName;
55
+	}
56
+
57
+	public String getDepartmentName() {
58
+		return departmentName;
59
+	}
60
+
61
+	public void setDepartmentName(String departmentName) {
62
+		this.departmentName = departmentName;
63
+	}
64
+
65
+	public String getCompanyName() {
66
+		return companyName;
67
+	}
68
+
69
+	public void setCompanyName(String companyName) {
70
+		this.companyName = companyName;
71
+	}
72
+	
73
+
74
+    @ApiModelProperty(value = "流程审批表")
75
+    @TableId(value = "id", type = IdType.AUTO)
76
+    private Integer id;
77
+
78
+    @ApiModelProperty(value = "主流程id")
79
+    @TableField("main_id")
80
+    private Integer mainId;
81
+
82
+    @ApiModelProperty(value = "子流程的id")
83
+    @TableField("sub_id")
84
+    private Integer subId;
85
+
86
+    @ApiModelProperty(value = "子流程的数据(1:是,0:否)")
87
+    @TableField("sub_data")
88
+    private Integer subData;
89
+
90
+    @ApiModelProperty(value = "审批状态(0:提交,1审批通过:,2:审批不通过,3:审批完成进行中,4已完成)")
91
+    @TableField("audit_state")
92
+    private Integer auditState;
93
+
94
+    @ApiModelProperty(value = "子流程的操作时间")
95
+    @TableField("operation_time")
96
+    private String operationTime;
97
+
98
+    @ApiModelProperty(value = "流程类型(如:tf)")
99
+    @TableField("type")
100
+    private String type;
101
+
102
+    @ApiModelProperty(value = "仓房id")
103
+    @TableField("house_id")
104
+    private Integer houseId;
105
+
106
+    @ApiModelProperty(value = "库id")
107
+    @TableField("depot_id")
108
+    private Integer depotId;
109
+
110
+    @ApiModelProperty(value = "提交人")
111
+    @TableField("from_people")
112
+    private Integer fromPeople;
113
+
114
+    @ApiModelProperty(value = "审批人")
115
+    @TableField("to_people")
116
+    private Integer toPeople;
117
+
118
+    @ApiModelProperty(value = "是否是整个业务的首条记录(1是0否)")
119
+    @TableField("result")
120
+    private Integer result;
121
+
122
+    @ApiModelProperty(value = "申请人")
123
+    @TableField("apply_people")
124
+    private Integer applyPeople;
125
+
126
+    @ApiModelProperty(value = "审批时间")
127
+    @TableField("audit_time")
128
+    private String auditTime;
129
+
130
+    @ApiModelProperty(value = "每一个业务流程的流程标识")
131
+    @TableField("process_id")
132
+    private String processId;
133
+
134
+    @ApiModelProperty(value = "进行到哪一步的主流程id")
135
+    @TableField("ongoing_step")
136
+    private String ongoingStep;
137
+
138
+    public Integer getId() {
139
+        return id;
140
+    }
141
+
142
+    public void setId(Integer id) {
143
+        this.id = id;
144
+    }
145
+    public Integer getMainId() {
146
+        return mainId;
147
+    }
148
+
149
+    public void setMainId(Integer mainId) {
150
+        this.mainId = mainId;
151
+    }
152
+    public Integer getSubId() {
153
+        return subId;
154
+    }
155
+
156
+    public void setSubId(Integer subId) {
157
+        this.subId = subId;
158
+    }
159
+    public Integer getSubData() {
160
+        return subData;
161
+    }
162
+
163
+    public void setSubData(Integer subData) {
164
+        this.subData = subData;
165
+    }
166
+    public Integer getAuditState() {
167
+        return auditState;
168
+    }
169
+
170
+    public void setAuditState(Integer auditState) {
171
+        this.auditState = auditState;
172
+    }
173
+    public String getOperationTime() {
174
+        return operationTime;
175
+    }
176
+
177
+    public void setOperationTime(String operationTime) {
178
+        this.operationTime = operationTime;
179
+    }
180
+    public String getType() {
181
+        return type;
182
+    }
183
+
184
+    public void setType(String type) {
185
+        this.type = type;
186
+    }
187
+    public Integer getHouseId() {
188
+        return houseId;
189
+    }
190
+
191
+    public void setHouseId(Integer houseId) {
192
+        this.houseId = houseId;
193
+    }
194
+    public Integer getDepotId() {
195
+        return depotId;
196
+    }
197
+
198
+    public void setDepotId(Integer depotId) {
199
+        this.depotId = depotId;
200
+    }
201
+    public Integer getFromPeople() {
202
+        return fromPeople;
203
+    }
204
+
205
+    public void setFromPeople(Integer fromPeople) {
206
+        this.fromPeople = fromPeople;
207
+    }
208
+    public Integer getToPeople() {
209
+        return toPeople;
210
+    }
211
+
212
+    public void setToPeople(Integer toPeople) {
213
+        this.toPeople = toPeople;
214
+    }
215
+    public Integer getResult() {
216
+        return result;
217
+    }
218
+
219
+    public void setResult(Integer result) {
220
+        this.result = result;
221
+    }
222
+    public Integer getApplyPeople() {
223
+        return applyPeople;
224
+    }
225
+
226
+    public void setApplyPeople(Integer applyPeople) {
227
+        this.applyPeople = applyPeople;
228
+    }
229
+    public String getAuditTime() {
230
+        return auditTime;
231
+    }
232
+
233
+    public void setAuditTime(String auditTime) {
234
+        this.auditTime = auditTime;
235
+    }
236
+    public String getProcessId() {
237
+        return processId;
238
+    }
239
+
240
+    public void setProcessId(String processId) {
241
+        this.processId = processId;
242
+    }
243
+    public String getOngoingStep() {
244
+        return ongoingStep;
245
+    }
246
+
247
+    public void setOngoingStep(String ongoingStep) {
248
+        this.ongoingStep = ongoingStep;
249
+    }
250
+
251
+    @Override
252
+    public String toString() {
253
+        return "ProcessAudit{" +
254
+            "id=" + id +
255
+            ", mainId=" + mainId +
256
+            ", subId=" + subId +
257
+            ", subData=" + subData +
258
+            ", auditState=" + auditState +
259
+            ", operationTime=" + operationTime +
260
+            ", type=" + type +
261
+            ", houseId=" + houseId +
262
+            ", depotId=" + depotId +
263
+            ", fromPeople=" + fromPeople +
264
+            ", toPeople=" + toPeople +
265
+            ", result=" + result +
266
+            ", applyPeople=" + applyPeople +
267
+            ", auditTime=" + auditTime +
268
+            ", processId=" + processId +
269
+            ", ongoingStep=" + ongoingStep +
270
+        "}";
271
+    }
272
+}

+ 103 - 0
src/main/java/com/unissoft/model/ProcessMain.java

@@ -0,0 +1,103 @@
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-16
18
+ */
19
+@TableName("process_main")
20
+@ApiModel(value="ProcessMain对象", description="")
21
+public class ProcessMain implements Serializable {
22
+
23
+    private static final long serialVersionUID = 1L;
24
+
25
+    @ApiModelProperty(value = "主流程表")
26
+    @TableId(value = "id", type = IdType.AUTO)
27
+    private Integer id;
28
+
29
+    @ApiModelProperty(value = "流程类型")
30
+    @TableField("type")
31
+    private String type;
32
+
33
+    @ApiModelProperty(value = "流程名称")
34
+    @TableField("title")
35
+    private String title;
36
+
37
+    @ApiModelProperty(value = "执行顺序")
38
+    @TableField("step")
39
+    private String step;
40
+
41
+    @ApiModelProperty(value = "是否存在流程(0:存在,1:不存在)")
42
+    @TableField("exist_process")
43
+    private Integer existProcess;
44
+
45
+    @ApiModelProperty(value = "下一步的id")
46
+    @TableField("next_id")
47
+    private String nextId;
48
+
49
+    public Integer getId() {
50
+        return id;
51
+    }
52
+
53
+    public void setId(Integer id) {
54
+        this.id = id;
55
+    }
56
+    public String getType() {
57
+        return type;
58
+    }
59
+
60
+    public void setType(String type) {
61
+        this.type = type;
62
+    }
63
+    public String getTitle() {
64
+        return title;
65
+    }
66
+
67
+    public void setTitle(String title) {
68
+        this.title = title;
69
+    }
70
+    public String getStep() {
71
+        return step;
72
+    }
73
+
74
+    public void setStep(String step) {
75
+        this.step = step;
76
+    }
77
+    public Integer getExistProcess() {
78
+        return existProcess;
79
+    }
80
+
81
+    public void setExistProcess(Integer existProcess) {
82
+        this.existProcess = existProcess;
83
+    }
84
+    public String getNextId() {
85
+        return nextId;
86
+    }
87
+
88
+    public void setNextId(String nextId) {
89
+        this.nextId = nextId;
90
+    }
91
+
92
+    @Override
93
+    public String toString() {
94
+        return "ProcessMain{" +
95
+            "id=" + id +
96
+            ", type=" + type +
97
+            ", title=" + title +
98
+            ", step=" + step +
99
+            ", existProcess=" + existProcess +
100
+            ", nextId=" + nextId +
101
+        "}";
102
+    }
103
+}