gaodd 5 年 前
コミット
779937b0d7

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

@@ -0,0 +1,29 @@
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
+    </resultMap>
23
+
24
+    <!-- 通用查询结果列 -->
25
+    <sql id="Base_Column_List">
26
+        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
27
+    </sql>
28
+
29
+</mapper>

+ 21 - 0
bin/src/main/java/com/unissoft/mapper/ProcessBasisMapper.xml

@@ -0,0 +1,21 @@
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.ProcessBasisMapper">
4
+
5
+    <!-- 通用查询映射结果 -->
6
+    <resultMap id="BaseResultMap" type="com.unissoft.model.ProcessBasis">
7
+        <id column="id" property="id" />
8
+        <result column="main_id" property="mainId" />
9
+        <result column="type" property="type" />
10
+        <result column="title" property="title" />
11
+        <result column="content" property="content" />
12
+        <result column="step" property="step" />
13
+        <result column="create_time" property="createTime" />
14
+    </resultMap>
15
+
16
+    <!-- 通用查询结果列 -->
17
+    <sql id="Base_Column_List">
18
+        id, main_id, type, title, content, step, create_time
19
+    </sql>
20
+
21
+</mapper>

+ 19 - 0
bin/src/main/java/com/unissoft/mapper/ProcessMainMapper.xml

@@ -0,0 +1,19 @@
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
+    </resultMap>
13
+
14
+    <!-- 通用查询结果列 -->
15
+    <sql id="Base_Column_List">
16
+        id, type, title, step, exist_process
17
+    </sql>
18
+
19
+</mapper>

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

@@ -0,0 +1,19 @@
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
+    </resultMap>
13
+
14
+    <!-- 通用查询结果列 -->
15
+    <sql id="Base_Column_List">
16
+        id, zid, details, title, operation_time
17
+    </sql>
18
+
19
+</mapper>

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

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

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

+ 136 - 0
src/main/java/com/unissoft/model/ProcessBasis.java

@@ -0,0 +1,136 @@
1
+package com.unissoft.model;
2
+
3
+import com.baomidou.mybatisplus.annotation.TableName;
4
+import com.baomidou.mybatisplus.annotation.IdType;
5
+import java.util.Date;
6
+import com.baomidou.mybatisplus.annotation.TableId;
7
+import com.baomidou.mybatisplus.annotation.TableField;
8
+import java.io.Serializable;
9
+import io.swagger.annotations.ApiModel;
10
+import io.swagger.annotations.ApiModelProperty;
11
+
12
+/**
13
+ * <p>
14
+ * 
15
+ * </p>
16
+ *
17
+ * @author My SunShine
18
+ * @since 2020-12-17
19
+ */
20
+@TableName("process_basis")
21
+@ApiModel(value="ProcessBasis对象", description="")
22
+public class ProcessBasis implements Serializable {
23
+
24
+    private static final long serialVersionUID = 1L;
25
+
26
+    //业务字段
27
+    @TableField(exist = false)
28
+    private Integer content;
29
+    @TableField(exist = false)
30
+    private Integer zid;
31
+    @TableField(exist = false)
32
+    private Integer depotId;
33
+    
34
+    public Integer getContent() {
35
+		return content;
36
+	}
37
+
38
+	public void setContent(Integer content) {
39
+		this.content = content;
40
+	}
41
+
42
+	public Integer getZid() {
43
+		return zid;
44
+	}
45
+
46
+	public void setZid(Integer zid) {
47
+		this.zid = zid;
48
+	}
49
+
50
+	public Integer getDepotId() {
51
+		return depotId;
52
+	}
53
+
54
+	public void setDepotId(Integer depotId) {
55
+		this.depotId = depotId;
56
+	}
57
+    
58
+    @ApiModelProperty(value = "流程基础表")
59
+    @TableId(value = "id", type = IdType.AUTO)
60
+    private Integer id;
61
+
62
+	@ApiModelProperty(value = "主流程的id")
63
+    @TableField("main_id")
64
+    private Integer mainId;
65
+
66
+    @ApiModelProperty(value = "流程的类型")
67
+    @TableField("type")
68
+    private String type;
69
+
70
+    @ApiModelProperty(value = "每一项流程的名称")
71
+    @TableField("title")
72
+    private String title;
73
+
74
+    @ApiModelProperty(value = "执行顺序")
75
+    @TableField("step")
76
+    private String step;
77
+
78
+    @ApiModelProperty(value = "创建时间")
79
+    @TableField("create_time")
80
+    private Date createTime;
81
+
82
+    public Integer getId() {
83
+        return id;
84
+    }
85
+
86
+    public void setId(Integer id) {
87
+        this.id = id;
88
+    }
89
+    public Integer getMainId() {
90
+        return mainId;
91
+    }
92
+
93
+    public void setMainId(Integer mainId) {
94
+        this.mainId = mainId;
95
+    }
96
+    public String getType() {
97
+        return type;
98
+    }
99
+
100
+    public void setType(String type) {
101
+        this.type = type;
102
+    }
103
+    public String getTitle() {
104
+        return title;
105
+    }
106
+
107
+    public void setTitle(String title) {
108
+        this.title = title;
109
+    }
110
+    public String getStep() {
111
+        return step;
112
+    }
113
+
114
+    public void setStep(String step) {
115
+        this.step = step;
116
+    }
117
+    public Date getCreateTime() {
118
+        return createTime;
119
+    }
120
+
121
+    public void setCreateTime(Date createTime) {
122
+        this.createTime = createTime;
123
+    }
124
+
125
+    @Override
126
+    public String toString() {
127
+        return "ProcessBasis{" +
128
+            "id=" + id +
129
+            ", mainId=" + mainId +
130
+            ", type=" + type +
131
+            ", title=" + title +
132
+            ", step=" + step +
133
+            ", createTime=" + createTime +
134
+        "}";
135
+    }
136
+}