傅行帆 6 lat temu
rodzic
commit
8176be50c7
50 zmienionych plików z 4589 dodań i 38 usunięć
  1. 1
    0
      SmartCommunity/SmartCommunityV1/community-common/src/main/java/com/community/commom/redis/RedisConfiguration.java
  2. 17
    0
      SmartCommunity/mybatisGeneratorCode/src/main/java/com/example/demo/com/community/huiju/dao/TpMessageMapper.java
  3. 175
    0
      SmartCommunity/mybatisGeneratorCode/src/main/java/com/example/demo/com/community/huiju/model/TpMessage.java
  4. 175
    0
      SmartCommunity/mybatisGeneratorCode/src/main/java/com/example/demo/com/community/huiju/model/TpMessage.java.1
  5. 19
    0
      SmartCommunity/mybatisGeneratorCode/src/main/java/com/example/demo/dao/MqMessageMapper.java
  6. 17
    0
      SmartCommunity/mybatisGeneratorCode/src/main/java/com/example/demo/dao/SysNationMapper.java
  7. 17
    0
      SmartCommunity/mybatisGeneratorCode/src/main/java/com/example/demo/dao/TaSysMenuImgMapper.java
  8. 17
    0
      SmartCommunity/mybatisGeneratorCode/src/main/java/com/example/demo/dao/TaSysMenuMapper.java
  9. 17
    0
      SmartCommunity/mybatisGeneratorCode/src/main/java/com/example/demo/dao/TpBillInvoiceMapper.java
  10. 17
    0
      SmartCommunity/mybatisGeneratorCode/src/main/java/com/example/demo/dao/TpBillMapper.java
  11. 17
    0
      SmartCommunity/mybatisGeneratorCode/src/main/java/com/example/demo/dao/TpBillStatementMapper.java
  12. 17
    0
      SmartCommunity/mybatisGeneratorCode/src/main/java/com/example/demo/dao/TpSysMenuMapper.java
  13. 17
    0
      SmartCommunity/mybatisGeneratorCode/src/main/java/com/example/demo/dao/TpUserCommunityMapper.java
  14. 17
    0
      SmartCommunity/mybatisGeneratorCode/src/main/java/com/example/demo/dao/TpUserMapper.java
  15. 285
    0
      SmartCommunity/mybatisGeneratorCode/src/main/java/com/example/demo/model/MqMessage.java
  16. 105
    0
      SmartCommunity/mybatisGeneratorCode/src/main/java/com/example/demo/model/SysNation.java
  17. 83
    0
      SmartCommunity/mybatisGeneratorCode/src/main/java/com/example/demo/model/TaSysMenu.java
  18. 33
    0
      SmartCommunity/mybatisGeneratorCode/src/main/java/com/example/demo/model/TaSysMenuImg.java
  19. 145
    0
      SmartCommunity/mybatisGeneratorCode/src/main/java/com/example/demo/model/TpBill.java
  20. 155
    0
      SmartCommunity/mybatisGeneratorCode/src/main/java/com/example/demo/model/TpBillInvoice.java
  21. 95
    0
      SmartCommunity/mybatisGeneratorCode/src/main/java/com/example/demo/model/TpBillStatement.java
  22. 93
    0
      SmartCommunity/mybatisGeneratorCode/src/main/java/com/example/demo/model/TpSysMenu.java
  23. 135
    0
      SmartCommunity/mybatisGeneratorCode/src/main/java/com/example/demo/model/TpUser.java
  24. 33
    0
      SmartCommunity/mybatisGeneratorCode/src/main/java/com/example/demo/model/TpUserCommunity.java
  25. 235
    0
      SmartCommunity/mybatisGeneratorCode/src/main/resources/com/community/huiju/dao/TpMessageMapper.xml
  26. 3
    11
      SmartCommunity/mybatisGeneratorCode/src/main/resources/generatorConfig.xml
  27. 402
    0
      SmartCommunity/mybatisGeneratorCode/src/main/resources/mapper/MqMessageMapper.xml
  28. 153
    0
      SmartCommunity/mybatisGeneratorCode/src/main/resources/mapper/SysNationMapper.xml
  29. 71
    0
      SmartCommunity/mybatisGeneratorCode/src/main/resources/mapper/TaSysMenuImgMapper.xml
  30. 128
    0
      SmartCommunity/mybatisGeneratorCode/src/main/resources/mapper/TaSysMenuMapper.xml
  31. 213
    0
      SmartCommunity/mybatisGeneratorCode/src/main/resources/mapper/TpBillInvoiceMapper.xml
  32. 199
    0
      SmartCommunity/mybatisGeneratorCode/src/main/resources/mapper/TpBillMapper.xml
  33. 142
    0
      SmartCommunity/mybatisGeneratorCode/src/main/resources/mapper/TpBillStatementMapper.xml
  34. 139
    0
      SmartCommunity/mybatisGeneratorCode/src/main/resources/mapper/TpSysMenuMapper.xml
  35. 71
    0
      SmartCommunity/mybatisGeneratorCode/src/main/resources/mapper/TpUserCommunityMapper.xml
  36. 188
    0
      SmartCommunity/mybatisGeneratorCode/src/main/resources/mapper/TpUserMapper.xml
  37. 264
    27
      SpringCloudProject/.idea/workspace.xml
  38. 25
    0
      wxdemo/.gitignore
  39. BIN
      wxdemo/.mvn/wrapper/maven-wrapper.jar
  40. 1
    0
      wxdemo/.mvn/wrapper/maven-wrapper.properties
  41. 286
    0
      wxdemo/mvnw
  42. 161
    0
      wxdemo/mvnw.cmd
  43. 49
    0
      wxdemo/pom.xml
  44. 12
    0
      wxdemo/src/main/java/com/example/demo/DemoApplication.java
  45. 37
    0
      wxdemo/src/main/java/com/example/demo/controller/IndexController.java
  46. 62
    0
      wxdemo/src/main/java/com/example/demo/wxutil/WxUtils.java
  47. 5
    0
      wxdemo/src/main/resources/application.yml
  48. 14
    0
      wxdemo/src/main/resources/templates/index.html
  49. 11
    0
      wxdemo/src/main/resources/templates/test.html
  50. 16
    0
      wxdemo/src/test/java/com/example/demo/DemoApplicationTests.java

+ 1
- 0
SmartCommunity/SmartCommunityV1/community-common/src/main/java/com/community/commom/redis/RedisConfiguration.java Wyświetl plik

@@ -32,4 +32,5 @@ public class RedisConfiguration {
32 32
         config.setMaxIdle(maxIdle);
33 33
         return config;
34 34
     }
35
+    
35 36
 }

+ 17
- 0
SmartCommunity/mybatisGeneratorCode/src/main/java/com/example/demo/com/community/huiju/dao/TpMessageMapper.java Wyświetl plik

@@ -0,0 +1,17 @@
1
+package com.community.huiju.dao;
2
+
3
+import com.community.huiju.model.TpMessage;
4
+
5
+public interface TpMessageMapper {
6
+    int deleteByPrimaryKey(Integer id);
7
+
8
+    int insert(TpMessage record);
9
+
10
+    int insertSelective(TpMessage record);
11
+
12
+    TpMessage selectByPrimaryKey(Integer id);
13
+
14
+    int updateByPrimaryKeySelective(TpMessage record);
15
+
16
+    int updateByPrimaryKey(TpMessage record);
17
+}

+ 175
- 0
SmartCommunity/mybatisGeneratorCode/src/main/java/com/example/demo/com/community/huiju/model/TpMessage.java Wyświetl plik

@@ -0,0 +1,175 @@
1
+package com.community.huiju.model;
2
+
3
+import java.util.Date;
4
+
5
+public class TpMessage {
6
+    private Integer id;
7
+
8
+    private Integer communityId;
9
+
10
+    private String messageType;
11
+
12
+    private String adviceType;
13
+
14
+    private String modelType;
15
+
16
+    private Integer uuid;
17
+
18
+    private String uuidType;
19
+
20
+    private String source;
21
+
22
+    private String messageContent;
23
+
24
+    private String status;
25
+
26
+    private String result;
27
+
28
+    private String meaasgeTypeId;
29
+
30
+    private String readStatus;
31
+
32
+    private Integer createUser;
33
+
34
+    private Date createDate;
35
+
36
+    private Integer updateUser;
37
+
38
+    private Date updateDate;
39
+
40
+    public Integer getId() {
41
+        return id;
42
+    }
43
+
44
+    public void setId(Integer id) {
45
+        this.id = id;
46
+    }
47
+
48
+    public Integer getCommunityId() {
49
+        return communityId;
50
+    }
51
+
52
+    public void setCommunityId(Integer communityId) {
53
+        this.communityId = communityId;
54
+    }
55
+
56
+    public String getMessageType() {
57
+        return messageType;
58
+    }
59
+
60
+    public void setMessageType(String messageType) {
61
+        this.messageType = messageType == null ? null : messageType.trim();
62
+    }
63
+
64
+    public String getAdviceType() {
65
+        return adviceType;
66
+    }
67
+
68
+    public void setAdviceType(String adviceType) {
69
+        this.adviceType = adviceType == null ? null : adviceType.trim();
70
+    }
71
+
72
+    public String getModelType() {
73
+        return modelType;
74
+    }
75
+
76
+    public void setModelType(String modelType) {
77
+        this.modelType = modelType == null ? null : modelType.trim();
78
+    }
79
+
80
+    public Integer getUuid() {
81
+        return uuid;
82
+    }
83
+
84
+    public void setUuid(Integer uuid) {
85
+        this.uuid = uuid;
86
+    }
87
+
88
+    public String getUuidType() {
89
+        return uuidType;
90
+    }
91
+
92
+    public void setUuidType(String uuidType) {
93
+        this.uuidType = uuidType == null ? null : uuidType.trim();
94
+    }
95
+
96
+    public String getSource() {
97
+        return source;
98
+    }
99
+
100
+    public void setSource(String source) {
101
+        this.source = source == null ? null : source.trim();
102
+    }
103
+
104
+    public String getMessageContent() {
105
+        return messageContent;
106
+    }
107
+
108
+    public void setMessageContent(String messageContent) {
109
+        this.messageContent = messageContent == null ? null : messageContent.trim();
110
+    }
111
+
112
+    public String getStatus() {
113
+        return status;
114
+    }
115
+
116
+    public void setStatus(String status) {
117
+        this.status = status == null ? null : status.trim();
118
+    }
119
+
120
+    public String getResult() {
121
+        return result;
122
+    }
123
+
124
+    public void setResult(String result) {
125
+        this.result = result == null ? null : result.trim();
126
+    }
127
+
128
+    public String getMeaasgeTypeId() {
129
+        return meaasgeTypeId;
130
+    }
131
+
132
+    public void setMeaasgeTypeId(String meaasgeTypeId) {
133
+        this.meaasgeTypeId = meaasgeTypeId == null ? null : meaasgeTypeId.trim();
134
+    }
135
+
136
+    public String getReadStatus() {
137
+        return readStatus;
138
+    }
139
+
140
+    public void setReadStatus(String readStatus) {
141
+        this.readStatus = readStatus == null ? null : readStatus.trim();
142
+    }
143
+
144
+    public Integer getCreateUser() {
145
+        return createUser;
146
+    }
147
+
148
+    public void setCreateUser(Integer createUser) {
149
+        this.createUser = createUser;
150
+    }
151
+
152
+    public Date getCreateDate() {
153
+        return createDate;
154
+    }
155
+
156
+    public void setCreateDate(Date createDate) {
157
+        this.createDate = createDate;
158
+    }
159
+
160
+    public Integer getUpdateUser() {
161
+        return updateUser;
162
+    }
163
+
164
+    public void setUpdateUser(Integer updateUser) {
165
+        this.updateUser = updateUser;
166
+    }
167
+
168
+    public Date getUpdateDate() {
169
+        return updateDate;
170
+    }
171
+
172
+    public void setUpdateDate(Date updateDate) {
173
+        this.updateDate = updateDate;
174
+    }
175
+}

+ 175
- 0
SmartCommunity/mybatisGeneratorCode/src/main/java/com/example/demo/com/community/huiju/model/TpMessage.java.1 Wyświetl plik

@@ -0,0 +1,175 @@
1
+package com.community.huiju.model;
2
+
3
+import java.util.Date;
4
+
5
+public class TpMessage {
6
+    private Integer id;
7
+
8
+    private Integer communityId;
9
+
10
+    private String messageType;
11
+
12
+    private String adviceType;
13
+
14
+    private String modelType;
15
+
16
+    private Integer uuid;
17
+
18
+    private String uuidType;
19
+
20
+    private String source;
21
+
22
+    private String messageContent;
23
+
24
+    private String status;
25
+
26
+    private String result;
27
+
28
+    private String meaasgeTypeId;
29
+
30
+    private String readStatus;
31
+
32
+    private Integer createUser;
33
+
34
+    private Date createDate;
35
+
36
+    private Integer updateUser;
37
+
38
+    private Date updateDate;
39
+
40
+    public Integer getId() {
41
+        return id;
42
+    }
43
+
44
+    public void setId(Integer id) {
45
+        this.id = id;
46
+    }
47
+
48
+    public Integer getCommunityId() {
49
+        return communityId;
50
+    }
51
+
52
+    public void setCommunityId(Integer communityId) {
53
+        this.communityId = communityId;
54
+    }
55
+
56
+    public String getMessageType() {
57
+        return messageType;
58
+    }
59
+
60
+    public void setMessageType(String messageType) {
61
+        this.messageType = messageType == null ? null : messageType.trim();
62
+    }
63
+
64
+    public String getAdviceType() {
65
+        return adviceType;
66
+    }
67
+
68
+    public void setAdviceType(String adviceType) {
69
+        this.adviceType = adviceType == null ? null : adviceType.trim();
70
+    }
71
+
72
+    public String getModelType() {
73
+        return modelType;
74
+    }
75
+
76
+    public void setModelType(String modelType) {
77
+        this.modelType = modelType == null ? null : modelType.trim();
78
+    }
79
+
80
+    public Integer getUuid() {
81
+        return uuid;
82
+    }
83
+
84
+    public void setUuid(Integer uuid) {
85
+        this.uuid = uuid;
86
+    }
87
+
88
+    public String getUuidType() {
89
+        return uuidType;
90
+    }
91
+
92
+    public void setUuidType(String uuidType) {
93
+        this.uuidType = uuidType == null ? null : uuidType.trim();
94
+    }
95
+
96
+    public String getSource() {
97
+        return source;
98
+    }
99
+
100
+    public void setSource(String source) {
101
+        this.source = source == null ? null : source.trim();
102
+    }
103
+
104
+    public String getMessageContent() {
105
+        return messageContent;
106
+    }
107
+
108
+    public void setMessageContent(String messageContent) {
109
+        this.messageContent = messageContent == null ? null : messageContent.trim();
110
+    }
111
+
112
+    public String getStatus() {
113
+        return status;
114
+    }
115
+
116
+    public void setStatus(String status) {
117
+        this.status = status == null ? null : status.trim();
118
+    }
119
+
120
+    public String getResult() {
121
+        return result;
122
+    }
123
+
124
+    public void setResult(String result) {
125
+        this.result = result == null ? null : result.trim();
126
+    }
127
+
128
+    public String getMeaasgeTypeId() {
129
+        return meaasgeTypeId;
130
+    }
131
+
132
+    public void setMeaasgeTypeId(String meaasgeTypeId) {
133
+        this.meaasgeTypeId = meaasgeTypeId == null ? null : meaasgeTypeId.trim();
134
+    }
135
+
136
+    public String getReadStatus() {
137
+        return readStatus;
138
+    }
139
+
140
+    public void setReadStatus(String readStatus) {
141
+        this.readStatus = readStatus == null ? null : readStatus.trim();
142
+    }
143
+
144
+    public Integer getCreateUser() {
145
+        return createUser;
146
+    }
147
+
148
+    public void setCreateUser(Integer createUser) {
149
+        this.createUser = createUser;
150
+    }
151
+
152
+    public Date getCreateDate() {
153
+        return createDate;
154
+    }
155
+
156
+    public void setCreateDate(Date createDate) {
157
+        this.createDate = createDate;
158
+    }
159
+
160
+    public Integer getUpdateUser() {
161
+        return updateUser;
162
+    }
163
+
164
+    public void setUpdateUser(Integer updateUser) {
165
+        this.updateUser = updateUser;
166
+    }
167
+
168
+    public Date getUpdateDate() {
169
+        return updateDate;
170
+    }
171
+
172
+    public void setUpdateDate(Date updateDate) {
173
+        this.updateDate = updateDate;
174
+    }
175
+}

+ 19
- 0
SmartCommunity/mybatisGeneratorCode/src/main/java/com/example/demo/dao/MqMessageMapper.java Wyświetl plik

@@ -0,0 +1,19 @@
1
+package dao;
2
+
3
+import model.MqMessage;
4
+
5
+public interface MqMessageMapper {
6
+    int deleteByPrimaryKey(Integer id);
7
+
8
+    int insert(MqMessage record);
9
+
10
+    int insertSelective(MqMessage record);
11
+
12
+    MqMessage selectByPrimaryKey(Integer id);
13
+
14
+    int updateByPrimaryKeySelective(MqMessage record);
15
+
16
+    int updateByPrimaryKeyWithBLOBs(MqMessage record);
17
+
18
+    int updateByPrimaryKey(MqMessage record);
19
+}

+ 17
- 0
SmartCommunity/mybatisGeneratorCode/src/main/java/com/example/demo/dao/SysNationMapper.java Wyświetl plik

@@ -0,0 +1,17 @@
1
+package dao;
2
+
3
+import model.SysNation;
4
+
5
+public interface SysNationMapper {
6
+    int deleteByPrimaryKey(Integer id);
7
+
8
+    int insert(SysNation record);
9
+
10
+    int insertSelective(SysNation record);
11
+
12
+    SysNation selectByPrimaryKey(Integer id);
13
+
14
+    int updateByPrimaryKeySelective(SysNation record);
15
+
16
+    int updateByPrimaryKey(SysNation record);
17
+}

+ 17
- 0
SmartCommunity/mybatisGeneratorCode/src/main/java/com/example/demo/dao/TaSysMenuImgMapper.java Wyświetl plik

@@ -0,0 +1,17 @@
1
+package dao;
2
+
3
+import model.TaSysMenuImg;
4
+
5
+public interface TaSysMenuImgMapper {
6
+    int deleteByPrimaryKey(Integer id);
7
+
8
+    int insert(TaSysMenuImg record);
9
+
10
+    int insertSelective(TaSysMenuImg record);
11
+
12
+    TaSysMenuImg selectByPrimaryKey(Integer id);
13
+
14
+    int updateByPrimaryKeySelective(TaSysMenuImg record);
15
+
16
+    int updateByPrimaryKey(TaSysMenuImg record);
17
+}

+ 17
- 0
SmartCommunity/mybatisGeneratorCode/src/main/java/com/example/demo/dao/TaSysMenuMapper.java Wyświetl plik

@@ -0,0 +1,17 @@
1
+package dao;
2
+
3
+import model.TaSysMenu;
4
+
5
+public interface TaSysMenuMapper {
6
+    int deleteByPrimaryKey(Integer id);
7
+
8
+    int insert(TaSysMenu record);
9
+
10
+    int insertSelective(TaSysMenu record);
11
+
12
+    TaSysMenu selectByPrimaryKey(Integer id);
13
+
14
+    int updateByPrimaryKeySelective(TaSysMenu record);
15
+
16
+    int updateByPrimaryKey(TaSysMenu record);
17
+}

+ 17
- 0
SmartCommunity/mybatisGeneratorCode/src/main/java/com/example/demo/dao/TpBillInvoiceMapper.java Wyświetl plik

@@ -0,0 +1,17 @@
1
+package dao;
2
+
3
+import model.TpBillInvoice;
4
+
5
+public interface TpBillInvoiceMapper {
6
+    int deleteByPrimaryKey(Integer id);
7
+
8
+    int insert(TpBillInvoice record);
9
+
10
+    int insertSelective(TpBillInvoice record);
11
+
12
+    TpBillInvoice selectByPrimaryKey(Integer id);
13
+
14
+    int updateByPrimaryKeySelective(TpBillInvoice record);
15
+
16
+    int updateByPrimaryKey(TpBillInvoice record);
17
+}

+ 17
- 0
SmartCommunity/mybatisGeneratorCode/src/main/java/com/example/demo/dao/TpBillMapper.java Wyświetl plik

@@ -0,0 +1,17 @@
1
+package dao;
2
+
3
+import model.TpBill;
4
+
5
+public interface TpBillMapper {
6
+    int deleteByPrimaryKey(Integer id);
7
+
8
+    int insert(TpBill record);
9
+
10
+    int insertSelective(TpBill record);
11
+
12
+    TpBill selectByPrimaryKey(Integer id);
13
+
14
+    int updateByPrimaryKeySelective(TpBill record);
15
+
16
+    int updateByPrimaryKey(TpBill record);
17
+}

+ 17
- 0
SmartCommunity/mybatisGeneratorCode/src/main/java/com/example/demo/dao/TpBillStatementMapper.java Wyświetl plik

@@ -0,0 +1,17 @@
1
+package dao;
2
+
3
+import model.TpBillStatement;
4
+
5
+public interface TpBillStatementMapper {
6
+    int deleteByPrimaryKey(Integer id);
7
+
8
+    int insert(TpBillStatement record);
9
+
10
+    int insertSelective(TpBillStatement record);
11
+
12
+    TpBillStatement selectByPrimaryKey(Integer id);
13
+
14
+    int updateByPrimaryKeySelective(TpBillStatement record);
15
+
16
+    int updateByPrimaryKey(TpBillStatement record);
17
+}

+ 17
- 0
SmartCommunity/mybatisGeneratorCode/src/main/java/com/example/demo/dao/TpSysMenuMapper.java Wyświetl plik

@@ -0,0 +1,17 @@
1
+package dao;
2
+
3
+import model.TpSysMenu;
4
+
5
+public interface TpSysMenuMapper {
6
+    int deleteByPrimaryKey(Integer id);
7
+
8
+    int insert(TpSysMenu record);
9
+
10
+    int insertSelective(TpSysMenu record);
11
+
12
+    TpSysMenu selectByPrimaryKey(Integer id);
13
+
14
+    int updateByPrimaryKeySelective(TpSysMenu record);
15
+
16
+    int updateByPrimaryKey(TpSysMenu record);
17
+}

+ 17
- 0
SmartCommunity/mybatisGeneratorCode/src/main/java/com/example/demo/dao/TpUserCommunityMapper.java Wyświetl plik

@@ -0,0 +1,17 @@
1
+package dao;
2
+
3
+import model.TpUserCommunity;
4
+
5
+public interface TpUserCommunityMapper {
6
+    int deleteByPrimaryKey(Integer id);
7
+
8
+    int insert(TpUserCommunity record);
9
+
10
+    int insertSelective(TpUserCommunity record);
11
+
12
+    TpUserCommunity selectByPrimaryKey(Integer id);
13
+
14
+    int updateByPrimaryKeySelective(TpUserCommunity record);
15
+
16
+    int updateByPrimaryKey(TpUserCommunity record);
17
+}

+ 17
- 0
SmartCommunity/mybatisGeneratorCode/src/main/java/com/example/demo/dao/TpUserMapper.java Wyświetl plik

@@ -0,0 +1,17 @@
1
+package dao;
2
+
3
+import model.TpUser;
4
+
5
+public interface TpUserMapper {
6
+    int deleteByPrimaryKey(Integer id);
7
+
8
+    int insert(TpUser record);
9
+
10
+    int insertSelective(TpUser record);
11
+
12
+    TpUser selectByPrimaryKey(Integer id);
13
+
14
+    int updateByPrimaryKeySelective(TpUser record);
15
+
16
+    int updateByPrimaryKey(TpUser record);
17
+}

+ 285
- 0
SmartCommunity/mybatisGeneratorCode/src/main/java/com/example/demo/model/MqMessage.java Wyświetl plik

@@ -0,0 +1,285 @@
1
+package model;
2
+
3
+import java.util.Date;
4
+
5
+public class MqMessage {
6
+    private Integer id;
7
+
8
+    private Integer eventState;
9
+
10
+    private Integer eventLevel;
11
+
12
+    private String unitIdx;
13
+
14
+    private Integer eventType;
15
+
16
+    private String eventTypeName;
17
+
18
+    private Integer subSysType;
19
+
20
+    private String eventName;
21
+
22
+    private Date startTime;
23
+
24
+    private Date stopTime;
25
+
26
+    private String sourceIdx;
27
+
28
+    private String sourceType;
29
+
30
+    private String sourceName;
31
+
32
+    private String regionIdx;
33
+
34
+    private Integer eventCode;
35
+
36
+    private Integer deviceId;
37
+
38
+    private Integer deviceType;
39
+
40
+    private String deviceName;
41
+
42
+    private String eventCard;
43
+
44
+    private Integer personId;
45
+
46
+    private String personName;
47
+
48
+    private Integer deptId;
49
+
50
+    private String deptName;
51
+
52
+    private String deptCode;
53
+
54
+    private Integer inOut;
55
+
56
+    private Integer cardStatus;
57
+
58
+    private String picUrl;
59
+
60
+    private String extTxt;
61
+
62
+    public Integer getId() {
63
+        return id;
64
+    }
65
+
66
+    public void setId(Integer id) {
67
+        this.id = id;
68
+    }
69
+
70
+    public Integer getEventState() {
71
+        return eventState;
72
+    }
73
+
74
+    public void setEventState(Integer eventState) {
75
+        this.eventState = eventState;
76
+    }
77
+
78
+    public Integer getEventLevel() {
79
+        return eventLevel;
80
+    }
81
+
82
+    public void setEventLevel(Integer eventLevel) {
83
+        this.eventLevel = eventLevel;
84
+    }
85
+
86
+    public String getUnitIdx() {
87
+        return unitIdx;
88
+    }
89
+
90
+    public void setUnitIdx(String unitIdx) {
91
+        this.unitIdx = unitIdx == null ? null : unitIdx.trim();
92
+    }
93
+
94
+    public Integer getEventType() {
95
+        return eventType;
96
+    }
97
+
98
+    public void setEventType(Integer eventType) {
99
+        this.eventType = eventType;
100
+    }
101
+
102
+    public String getEventTypeName() {
103
+        return eventTypeName;
104
+    }
105
+
106
+    public void setEventTypeName(String eventTypeName) {
107
+        this.eventTypeName = eventTypeName == null ? null : eventTypeName.trim();
108
+    }
109
+
110
+    public Integer getSubSysType() {
111
+        return subSysType;
112
+    }
113
+
114
+    public void setSubSysType(Integer subSysType) {
115
+        this.subSysType = subSysType;
116
+    }
117
+
118
+    public String getEventName() {
119
+        return eventName;
120
+    }
121
+
122
+    public void setEventName(String eventName) {
123
+        this.eventName = eventName == null ? null : eventName.trim();
124
+    }
125
+
126
+    public Date getStartTime() {
127
+        return startTime;
128
+    }
129
+
130
+    public void setStartTime(Date startTime) {
131
+        this.startTime = startTime;
132
+    }
133
+
134
+    public Date getStopTime() {
135
+        return stopTime;
136
+    }
137
+
138
+    public void setStopTime(Date stopTime) {
139
+        this.stopTime = stopTime;
140
+    }
141
+
142
+    public String getSourceIdx() {
143
+        return sourceIdx;
144
+    }
145
+
146
+    public void setSourceIdx(String sourceIdx) {
147
+        this.sourceIdx = sourceIdx == null ? null : sourceIdx.trim();
148
+    }
149
+
150
+    public String getSourceType() {
151
+        return sourceType;
152
+    }
153
+
154
+    public void setSourceType(String sourceType) {
155
+        this.sourceType = sourceType == null ? null : sourceType.trim();
156
+    }
157
+
158
+    public String getSourceName() {
159
+        return sourceName;
160
+    }
161
+
162
+    public void setSourceName(String sourceName) {
163
+        this.sourceName = sourceName == null ? null : sourceName.trim();
164
+    }
165
+
166
+    public String getRegionIdx() {
167
+        return regionIdx;
168
+    }
169
+
170
+    public void setRegionIdx(String regionIdx) {
171
+        this.regionIdx = regionIdx == null ? null : regionIdx.trim();
172
+    }
173
+
174
+    public Integer getEventCode() {
175
+        return eventCode;
176
+    }
177
+
178
+    public void setEventCode(Integer eventCode) {
179
+        this.eventCode = eventCode;
180
+    }
181
+
182
+    public Integer getDeviceId() {
183
+        return deviceId;
184
+    }
185
+
186
+    public void setDeviceId(Integer deviceId) {
187
+        this.deviceId = deviceId;
188
+    }
189
+
190
+    public Integer getDeviceType() {
191
+        return deviceType;
192
+    }
193
+
194
+    public void setDeviceType(Integer deviceType) {
195
+        this.deviceType = deviceType;
196
+    }
197
+
198
+    public String getDeviceName() {
199
+        return deviceName;
200
+    }
201
+
202
+    public void setDeviceName(String deviceName) {
203
+        this.deviceName = deviceName == null ? null : deviceName.trim();
204
+    }
205
+
206
+    public String getEventCard() {
207
+        return eventCard;
208
+    }
209
+
210
+    public void setEventCard(String eventCard) {
211
+        this.eventCard = eventCard == null ? null : eventCard.trim();
212
+    }
213
+
214
+    public Integer getPersonId() {
215
+        return personId;
216
+    }
217
+
218
+    public void setPersonId(Integer personId) {
219
+        this.personId = personId;
220
+    }
221
+
222
+    public String getPersonName() {
223
+        return personName;
224
+    }
225
+
226
+    public void setPersonName(String personName) {
227
+        this.personName = personName == null ? null : personName.trim();
228
+    }
229
+
230
+    public Integer getDeptId() {
231
+        return deptId;
232
+    }
233
+
234
+    public void setDeptId(Integer deptId) {
235
+        this.deptId = deptId;
236
+    }
237
+
238
+    public String getDeptName() {
239
+        return deptName;
240
+    }
241
+
242
+    public void setDeptName(String deptName) {
243
+        this.deptName = deptName == null ? null : deptName.trim();
244
+    }
245
+
246
+    public String getDeptCode() {
247
+        return deptCode;
248
+    }
249
+
250
+    public void setDeptCode(String deptCode) {
251
+        this.deptCode = deptCode == null ? null : deptCode.trim();
252
+    }
253
+
254
+    public Integer getInOut() {
255
+        return inOut;
256
+    }
257
+
258
+    public void setInOut(Integer inOut) {
259
+        this.inOut = inOut;
260
+    }
261
+
262
+    public Integer getCardStatus() {
263
+        return cardStatus;
264
+    }
265
+
266
+    public void setCardStatus(Integer cardStatus) {
267
+        this.cardStatus = cardStatus;
268
+    }
269
+
270
+    public String getPicUrl() {
271
+        return picUrl;
272
+    }
273
+
274
+    public void setPicUrl(String picUrl) {
275
+        this.picUrl = picUrl == null ? null : picUrl.trim();
276
+    }
277
+
278
+    public String getExtTxt() {
279
+        return extTxt;
280
+    }
281
+
282
+    public void setExtTxt(String extTxt) {
283
+        this.extTxt = extTxt == null ? null : extTxt.trim();
284
+    }
285
+}

+ 105
- 0
SmartCommunity/mybatisGeneratorCode/src/main/java/com/example/demo/model/SysNation.java Wyświetl plik

@@ -0,0 +1,105 @@
1
+package model;
2
+
3
+import java.util.Date;
4
+
5
+public class SysNation {
6
+    private Integer id;
7
+
8
+    private String code;
9
+
10
+    private String province;
11
+
12
+    private String city;
13
+
14
+    private Integer parentId;
15
+
16
+    private Date createTime;
17
+
18
+    private String district;
19
+
20
+    private Date lastUpdateTime;
21
+
22
+    private Integer operator;
23
+
24
+    private String operatorIp;
25
+
26
+    public Integer getId() {
27
+        return id;
28
+    }
29
+
30
+    public void setId(Integer id) {
31
+        this.id = id;
32
+    }
33
+
34
+    public String getCode() {
35
+        return code;
36
+    }
37
+
38
+    public void setCode(String code) {
39
+        this.code = code == null ? null : code.trim();
40
+    }
41
+
42
+    public String getProvince() {
43
+        return province;
44
+    }
45
+
46
+    public void setProvince(String province) {
47
+        this.province = province == null ? null : province.trim();
48
+    }
49
+
50
+    public String getCity() {
51
+        return city;
52
+    }
53
+
54
+    public void setCity(String city) {
55
+        this.city = city == null ? null : city.trim();
56
+    }
57
+
58
+    public Integer getParentId() {
59
+        return parentId;
60
+    }
61
+
62
+    public void setParentId(Integer parentId) {
63
+        this.parentId = parentId;
64
+    }
65
+
66
+    public Date getCreateTime() {
67
+        return createTime;
68
+    }
69
+
70
+    public void setCreateTime(Date createTime) {
71
+        this.createTime = createTime;
72
+    }
73
+
74
+    public String getDistrict() {
75
+        return district;
76
+    }
77
+
78
+    public void setDistrict(String district) {
79
+        this.district = district == null ? null : district.trim();
80
+    }
81
+
82
+    public Date getLastUpdateTime() {
83
+        return lastUpdateTime;
84
+    }
85
+
86
+    public void setLastUpdateTime(Date lastUpdateTime) {
87
+        this.lastUpdateTime = lastUpdateTime;
88
+    }
89
+
90
+    public Integer getOperator() {
91
+        return operator;
92
+    }
93
+
94
+    public void setOperator(Integer operator) {
95
+        this.operator = operator;
96
+    }
97
+
98
+    public String getOperatorIp() {
99
+        return operatorIp;
100
+    }
101
+
102
+    public void setOperatorIp(String operatorIp) {
103
+        this.operatorIp = operatorIp == null ? null : operatorIp.trim();
104
+    }
105
+}

+ 83
- 0
SmartCommunity/mybatisGeneratorCode/src/main/java/com/example/demo/model/TaSysMenu.java Wyświetl plik

@@ -0,0 +1,83 @@
1
+package model;
2
+
3
+public class TaSysMenu {
4
+    private Integer id;
5
+
6
+    private Integer communityId;
7
+
8
+    private String menuName;
9
+
10
+    private String menuUrl;
11
+
12
+    private Integer parentId;
13
+
14
+    private Integer sort;
15
+
16
+    private String menuType;
17
+
18
+    private String status;
19
+
20
+    public Integer getId() {
21
+        return id;
22
+    }
23
+
24
+    public void setId(Integer id) {
25
+        this.id = id;
26
+    }
27
+
28
+    public Integer getCommunityId() {
29
+        return communityId;
30
+    }
31
+
32
+    public void setCommunityId(Integer communityId) {
33
+        this.communityId = communityId;
34
+    }
35
+
36
+    public String getMenuName() {
37
+        return menuName;
38
+    }
39
+
40
+    public void setMenuName(String menuName) {
41
+        this.menuName = menuName == null ? null : menuName.trim();
42
+    }
43
+
44
+    public String getMenuUrl() {
45
+        return menuUrl;
46
+    }
47
+
48
+    public void setMenuUrl(String menuUrl) {
49
+        this.menuUrl = menuUrl == null ? null : menuUrl.trim();
50
+    }
51
+
52
+    public Integer getParentId() {
53
+        return parentId;
54
+    }
55
+
56
+    public void setParentId(Integer parentId) {
57
+        this.parentId = parentId;
58
+    }
59
+
60
+    public Integer getSort() {
61
+        return sort;
62
+    }
63
+
64
+    public void setSort(Integer sort) {
65
+        this.sort = sort;
66
+    }
67
+
68
+    public String getMenuType() {
69
+        return menuType;
70
+    }
71
+
72
+    public void setMenuType(String menuType) {
73
+        this.menuType = menuType == null ? null : menuType.trim();
74
+    }
75
+
76
+    public String getStatus() {
77
+        return status;
78
+    }
79
+
80
+    public void setStatus(String status) {
81
+        this.status = status == null ? null : status.trim();
82
+    }
83
+}

+ 33
- 0
SmartCommunity/mybatisGeneratorCode/src/main/java/com/example/demo/model/TaSysMenuImg.java Wyświetl plik

@@ -0,0 +1,33 @@
1
+package model;
2
+
3
+public class TaSysMenuImg {
4
+    private Integer id;
5
+
6
+    private Integer taMenuId;
7
+
8
+    private String menuIconImg;
9
+
10
+    public Integer getId() {
11
+        return id;
12
+    }
13
+
14
+    public void setId(Integer id) {
15
+        this.id = id;
16
+    }
17
+
18
+    public Integer getTaMenuId() {
19
+        return taMenuId;
20
+    }
21
+
22
+    public void setTaMenuId(Integer taMenuId) {
23
+        this.taMenuId = taMenuId;
24
+    }
25
+
26
+    public String getMenuIconImg() {
27
+        return menuIconImg;
28
+    }
29
+
30
+    public void setMenuIconImg(String menuIconImg) {
31
+        this.menuIconImg = menuIconImg == null ? null : menuIconImg.trim();
32
+    }
33
+}

+ 145
- 0
SmartCommunity/mybatisGeneratorCode/src/main/java/com/example/demo/model/TpBill.java Wyświetl plik

@@ -0,0 +1,145 @@
1
+package model;
2
+
3
+import java.util.Date;
4
+
5
+public class TpBill {
6
+    private Integer id;
7
+
8
+    private Integer communityId;
9
+
10
+    private String billName;
11
+
12
+    private String billExplain;
13
+
14
+    private String payPrice;
15
+
16
+    private Integer payTotalNum;
17
+
18
+    private Integer payedNum;
19
+
20
+    private Integer unpayedNum;
21
+
22
+    private String billStatus;
23
+
24
+    private Date endDate;
25
+
26
+    private Integer createUser;
27
+
28
+    private Date createDate;
29
+
30
+    private Integer updateUser;
31
+
32
+    private Date updateDate;
33
+
34
+    public Integer getId() {
35
+        return id;
36
+    }
37
+
38
+    public void setId(Integer id) {
39
+        this.id = id;
40
+    }
41
+
42
+    public Integer getCommunityId() {
43
+        return communityId;
44
+    }
45
+
46
+    public void setCommunityId(Integer communityId) {
47
+        this.communityId = communityId;
48
+    }
49
+
50
+    public String getBillName() {
51
+        return billName;
52
+    }
53
+
54
+    public void setBillName(String billName) {
55
+        this.billName = billName == null ? null : billName.trim();
56
+    }
57
+
58
+    public String getBillExplain() {
59
+        return billExplain;
60
+    }
61
+
62
+    public void setBillExplain(String billExplain) {
63
+        this.billExplain = billExplain == null ? null : billExplain.trim();
64
+    }
65
+
66
+    public String getPayPrice() {
67
+        return payPrice;
68
+    }
69
+
70
+    public void setPayPrice(String payPrice) {
71
+        this.payPrice = payPrice == null ? null : payPrice.trim();
72
+    }
73
+
74
+    public Integer getPayTotalNum() {
75
+        return payTotalNum;
76
+    }
77
+
78
+    public void setPayTotalNum(Integer payTotalNum) {
79
+        this.payTotalNum = payTotalNum;
80
+    }
81
+
82
+    public Integer getPayedNum() {
83
+        return payedNum;
84
+    }
85
+
86
+    public void setPayedNum(Integer payedNum) {
87
+        this.payedNum = payedNum;
88
+    }
89
+
90
+    public Integer getUnpayedNum() {
91
+        return unpayedNum;
92
+    }
93
+
94
+    public void setUnpayedNum(Integer unpayedNum) {
95
+        this.unpayedNum = unpayedNum;
96
+    }
97
+
98
+    public String getBillStatus() {
99
+        return billStatus;
100
+    }
101
+
102
+    public void setBillStatus(String billStatus) {
103
+        this.billStatus = billStatus == null ? null : billStatus.trim();
104
+    }
105
+
106
+    public Date getEndDate() {
107
+        return endDate;
108
+    }
109
+
110
+    public void setEndDate(Date endDate) {
111
+        this.endDate = endDate;
112
+    }
113
+
114
+    public Integer getCreateUser() {
115
+        return createUser;
116
+    }
117
+
118
+    public void setCreateUser(Integer createUser) {
119
+        this.createUser = createUser;
120
+    }
121
+
122
+    public Date getCreateDate() {
123
+        return createDate;
124
+    }
125
+
126
+    public void setCreateDate(Date createDate) {
127
+        this.createDate = createDate;
128
+    }
129
+
130
+    public Integer getUpdateUser() {
131
+        return updateUser;
132
+    }
133
+
134
+    public void setUpdateUser(Integer updateUser) {
135
+        this.updateUser = updateUser;
136
+    }
137
+
138
+    public Date getUpdateDate() {
139
+        return updateDate;
140
+    }
141
+
142
+    public void setUpdateDate(Date updateDate) {
143
+        this.updateDate = updateDate;
144
+    }
145
+}

+ 155
- 0
SmartCommunity/mybatisGeneratorCode/src/main/java/com/example/demo/model/TpBillInvoice.java Wyświetl plik

@@ -0,0 +1,155 @@
1
+package model;
2
+
3
+import java.util.Date;
4
+
5
+public class TpBillInvoice {
6
+    private Integer id;
7
+
8
+    private Integer communityId;
9
+
10
+    private Integer billId;
11
+
12
+    private Integer buildingOwnerInfoId;
13
+
14
+    private Integer taUserId;
15
+
16
+    private String billInvoiceExplain;
17
+
18
+    private Integer payPrice;
19
+
20
+    private Integer billStatementId;
21
+
22
+    private String billStatus;
23
+
24
+    private String payName;
25
+
26
+    private Date payDate;
27
+
28
+    private Integer createUser;
29
+
30
+    private Date createDate;
31
+
32
+    private Integer updateUser;
33
+
34
+    private Date updateDate;
35
+
36
+    public Integer getId() {
37
+        return id;
38
+    }
39
+
40
+    public void setId(Integer id) {
41
+        this.id = id;
42
+    }
43
+
44
+    public Integer getCommunityId() {
45
+        return communityId;
46
+    }
47
+
48
+    public void setCommunityId(Integer communityId) {
49
+        this.communityId = communityId;
50
+    }
51
+
52
+    public Integer getBillId() {
53
+        return billId;
54
+    }
55
+
56
+    public void setBillId(Integer billId) {
57
+        this.billId = billId;
58
+    }
59
+
60
+    public Integer getBuildingOwnerInfoId() {
61
+        return buildingOwnerInfoId;
62
+    }
63
+
64
+    public void setBuildingOwnerInfoId(Integer buildingOwnerInfoId) {
65
+        this.buildingOwnerInfoId = buildingOwnerInfoId;
66
+    }
67
+
68
+    public Integer getTaUserId() {
69
+        return taUserId;
70
+    }
71
+
72
+    public void setTaUserId(Integer taUserId) {
73
+        this.taUserId = taUserId;
74
+    }
75
+
76
+    public String getBillInvoiceExplain() {
77
+        return billInvoiceExplain;
78
+    }
79
+
80
+    public void setBillInvoiceExplain(String billInvoiceExplain) {
81
+        this.billInvoiceExplain = billInvoiceExplain == null ? null : billInvoiceExplain.trim();
82
+    }
83
+
84
+    public Integer getPayPrice() {
85
+        return payPrice;
86
+    }
87
+
88
+    public void setPayPrice(Integer payPrice) {
89
+        this.payPrice = payPrice;
90
+    }
91
+
92
+    public Integer getBillStatementId() {
93
+        return billStatementId;
94
+    }
95
+
96
+    public void setBillStatementId(Integer billStatementId) {
97
+        this.billStatementId = billStatementId;
98
+    }
99
+
100
+    public String getBillStatus() {
101
+        return billStatus;
102
+    }
103
+
104
+    public void setBillStatus(String billStatus) {
105
+        this.billStatus = billStatus == null ? null : billStatus.trim();
106
+    }
107
+
108
+    public String getPayName() {
109
+        return payName;
110
+    }
111
+
112
+    public void setPayName(String payName) {
113
+        this.payName = payName == null ? null : payName.trim();
114
+    }
115
+
116
+    public Date getPayDate() {
117
+        return payDate;
118
+    }
119
+
120
+    public void setPayDate(Date payDate) {
121
+        this.payDate = payDate;
122
+    }
123
+
124
+    public Integer getCreateUser() {
125
+        return createUser;
126
+    }
127
+
128
+    public void setCreateUser(Integer createUser) {
129
+        this.createUser = createUser;
130
+    }
131
+
132
+    public Date getCreateDate() {
133
+        return createDate;
134
+    }
135
+
136
+    public void setCreateDate(Date createDate) {
137
+        this.createDate = createDate;
138
+    }
139
+
140
+    public Integer getUpdateUser() {
141
+        return updateUser;
142
+    }
143
+
144
+    public void setUpdateUser(Integer updateUser) {
145
+        this.updateUser = updateUser;
146
+    }
147
+
148
+    public Date getUpdateDate() {
149
+        return updateDate;
150
+    }
151
+
152
+    public void setUpdateDate(Date updateDate) {
153
+        this.updateDate = updateDate;
154
+    }
155
+}

+ 95
- 0
SmartCommunity/mybatisGeneratorCode/src/main/java/com/example/demo/model/TpBillStatement.java Wyświetl plik

@@ -0,0 +1,95 @@
1
+package model;
2
+
3
+import java.util.Date;
4
+
5
+public class TpBillStatement {
6
+    private Integer id;
7
+
8
+    private Integer communityId;
9
+
10
+    private Integer billInvoiceId;
11
+
12
+    private Integer taUserId;
13
+
14
+    private Integer payPrice;
15
+
16
+    private String payName;
17
+
18
+    private String payRemark;
19
+
20
+    private String payType;
21
+
22
+    private Date createTime;
23
+
24
+    public Integer getId() {
25
+        return id;
26
+    }
27
+
28
+    public void setId(Integer id) {
29
+        this.id = id;
30
+    }
31
+
32
+    public Integer getCommunityId() {
33
+        return communityId;
34
+    }
35
+
36
+    public void setCommunityId(Integer communityId) {
37
+        this.communityId = communityId;
38
+    }
39
+
40
+    public Integer getBillInvoiceId() {
41
+        return billInvoiceId;
42
+    }
43
+
44
+    public void setBillInvoiceId(Integer billInvoiceId) {
45
+        this.billInvoiceId = billInvoiceId;
46
+    }
47
+
48
+    public Integer getTaUserId() {
49
+        return taUserId;
50
+    }
51
+
52
+    public void setTaUserId(Integer taUserId) {
53
+        this.taUserId = taUserId;
54
+    }
55
+
56
+    public Integer getPayPrice() {
57
+        return payPrice;
58
+    }
59
+
60
+    public void setPayPrice(Integer payPrice) {
61
+        this.payPrice = payPrice;
62
+    }
63
+
64
+    public String getPayName() {
65
+        return payName;
66
+    }
67
+
68
+    public void setPayName(String payName) {
69
+        this.payName = payName == null ? null : payName.trim();
70
+    }
71
+
72
+    public String getPayRemark() {
73
+        return payRemark;
74
+    }
75
+
76
+    public void setPayRemark(String payRemark) {
77
+        this.payRemark = payRemark == null ? null : payRemark.trim();
78
+    }
79
+
80
+    public String getPayType() {
81
+        return payType;
82
+    }
83
+
84
+    public void setPayType(String payType) {
85
+        this.payType = payType == null ? null : payType.trim();
86
+    }
87
+
88
+    public Date getCreateTime() {
89
+        return createTime;
90
+    }
91
+
92
+    public void setCreateTime(Date createTime) {
93
+        this.createTime = createTime;
94
+    }
95
+}

+ 93
- 0
SmartCommunity/mybatisGeneratorCode/src/main/java/com/example/demo/model/TpSysMenu.java Wyświetl plik

@@ -0,0 +1,93 @@
1
+package model;
2
+
3
+public class TpSysMenu {
4
+    private Integer id;
5
+
6
+    private Integer communityId;
7
+
8
+    private String menuName;
9
+
10
+    private String menuUrl;
11
+
12
+    private String menuIcon;
13
+
14
+    private Integer parentId;
15
+
16
+    private Integer sort;
17
+
18
+    private String menuType;
19
+
20
+    private String status;
21
+
22
+    public Integer getId() {
23
+        return id;
24
+    }
25
+
26
+    public void setId(Integer id) {
27
+        this.id = id;
28
+    }
29
+
30
+    public Integer getCommunityId() {
31
+        return communityId;
32
+    }
33
+
34
+    public void setCommunityId(Integer communityId) {
35
+        this.communityId = communityId;
36
+    }
37
+
38
+    public String getMenuName() {
39
+        return menuName;
40
+    }
41
+
42
+    public void setMenuName(String menuName) {
43
+        this.menuName = menuName == null ? null : menuName.trim();
44
+    }
45
+
46
+    public String getMenuUrl() {
47
+        return menuUrl;
48
+    }
49
+
50
+    public void setMenuUrl(String menuUrl) {
51
+        this.menuUrl = menuUrl == null ? null : menuUrl.trim();
52
+    }
53
+
54
+    public String getMenuIcon() {
55
+        return menuIcon;
56
+    }
57
+
58
+    public void setMenuIcon(String menuIcon) {
59
+        this.menuIcon = menuIcon == null ? null : menuIcon.trim();
60
+    }
61
+
62
+    public Integer getParentId() {
63
+        return parentId;
64
+    }
65
+
66
+    public void setParentId(Integer parentId) {
67
+        this.parentId = parentId;
68
+    }
69
+
70
+    public Integer getSort() {
71
+        return sort;
72
+    }
73
+
74
+    public void setSort(Integer sort) {
75
+        this.sort = sort;
76
+    }
77
+
78
+    public String getMenuType() {
79
+        return menuType;
80
+    }
81
+
82
+    public void setMenuType(String menuType) {
83
+        this.menuType = menuType == null ? null : menuType.trim();
84
+    }
85
+
86
+    public String getStatus() {
87
+        return status;
88
+    }
89
+
90
+    public void setStatus(String status) {
91
+        this.status = status == null ? null : status.trim();
92
+    }
93
+}

+ 135
- 0
SmartCommunity/mybatisGeneratorCode/src/main/java/com/example/demo/model/TpUser.java Wyświetl plik

@@ -0,0 +1,135 @@
1
+package model;
2
+
3
+import java.util.Date;
4
+
5
+public class TpUser {
6
+    private Integer id;
7
+
8
+    private Integer communityId;
9
+
10
+    private String userName;
11
+
12
+    private String loginName;
13
+
14
+    private String loginPassword;
15
+
16
+    private String status;
17
+
18
+    private String remark;
19
+
20
+    private String email;
21
+
22
+    private String headPortrait;
23
+
24
+    private Integer createUser;
25
+
26
+    private Date createDate;
27
+
28
+    private Integer updateUser;
29
+
30
+    private Date updateDate;
31
+
32
+    public Integer getId() {
33
+        return id;
34
+    }
35
+
36
+    public void setId(Integer id) {
37
+        this.id = id;
38
+    }
39
+
40
+    public Integer getCommunityId() {
41
+        return communityId;
42
+    }
43
+
44
+    public void setCommunityId(Integer communityId) {
45
+        this.communityId = communityId;
46
+    }
47
+
48
+    public String getUserName() {
49
+        return userName;
50
+    }
51
+
52
+    public void setUserName(String userName) {
53
+        this.userName = userName == null ? null : userName.trim();
54
+    }
55
+
56
+    public String getLoginName() {
57
+        return loginName;
58
+    }
59
+
60
+    public void setLoginName(String loginName) {
61
+        this.loginName = loginName == null ? null : loginName.trim();
62
+    }
63
+
64
+    public String getLoginPassword() {
65
+        return loginPassword;
66
+    }
67
+
68
+    public void setLoginPassword(String loginPassword) {
69
+        this.loginPassword = loginPassword == null ? null : loginPassword.trim();
70
+    }
71
+
72
+    public String getStatus() {
73
+        return status;
74
+    }
75
+
76
+    public void setStatus(String status) {
77
+        this.status = status == null ? null : status.trim();
78
+    }
79
+
80
+    public String getRemark() {
81
+        return remark;
82
+    }
83
+
84
+    public void setRemark(String remark) {
85
+        this.remark = remark == null ? null : remark.trim();
86
+    }
87
+
88
+    public String getEmail() {
89
+        return email;
90
+    }
91
+
92
+    public void setEmail(String email) {
93
+        this.email = email == null ? null : email.trim();
94
+    }
95
+
96
+    public String getHeadPortrait() {
97
+        return headPortrait;
98
+    }
99
+
100
+    public void setHeadPortrait(String headPortrait) {
101
+        this.headPortrait = headPortrait == null ? null : headPortrait.trim();
102
+    }
103
+
104
+    public Integer getCreateUser() {
105
+        return createUser;
106
+    }
107
+
108
+    public void setCreateUser(Integer createUser) {
109
+        this.createUser = createUser;
110
+    }
111
+
112
+    public Date getCreateDate() {
113
+        return createDate;
114
+    }
115
+
116
+    public void setCreateDate(Date createDate) {
117
+        this.createDate = createDate;
118
+    }
119
+
120
+    public Integer getUpdateUser() {
121
+        return updateUser;
122
+    }
123
+
124
+    public void setUpdateUser(Integer updateUser) {
125
+        this.updateUser = updateUser;
126
+    }
127
+
128
+    public Date getUpdateDate() {
129
+        return updateDate;
130
+    }
131
+
132
+    public void setUpdateDate(Date updateDate) {
133
+        this.updateDate = updateDate;
134
+    }
135
+}

+ 33
- 0
SmartCommunity/mybatisGeneratorCode/src/main/java/com/example/demo/model/TpUserCommunity.java Wyświetl plik

@@ -0,0 +1,33 @@
1
+package model;
2
+
3
+public class TpUserCommunity {
4
+    private Integer id;
5
+
6
+    private Integer communityId;
7
+
8
+    private Integer tpUserId;
9
+
10
+    public Integer getId() {
11
+        return id;
12
+    }
13
+
14
+    public void setId(Integer id) {
15
+        this.id = id;
16
+    }
17
+
18
+    public Integer getCommunityId() {
19
+        return communityId;
20
+    }
21
+
22
+    public void setCommunityId(Integer communityId) {
23
+        this.communityId = communityId;
24
+    }
25
+
26
+    public Integer getTpUserId() {
27
+        return tpUserId;
28
+    }
29
+
30
+    public void setTpUserId(Integer tpUserId) {
31
+        this.tpUserId = tpUserId;
32
+    }
33
+}

+ 235
- 0
SmartCommunity/mybatisGeneratorCode/src/main/resources/com/community/huiju/dao/TpMessageMapper.xml Wyświetl plik

@@ -0,0 +1,235 @@
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="dao.TpMessageMapper" >
4
+  <resultMap id="BaseResultMap" type="com.community.huiju.model.TpMessage" >
5
+    <id column="id" property="id" jdbcType="INTEGER" />
6
+    <result column="community_id" property="communityId" jdbcType="INTEGER" />
7
+    <result column="message_type" property="messageType" jdbcType="CHAR" />
8
+    <result column="advice_type" property="adviceType" jdbcType="CHAR" />
9
+    <result column="model_type" property="modelType" jdbcType="CHAR" />
10
+    <result column="uuid" property="uuid" jdbcType="INTEGER" />
11
+    <result column="uuid_type" property="uuidType" jdbcType="CHAR" />
12
+    <result column="source" property="source" jdbcType="CHAR" />
13
+    <result column="message_content" property="messageContent" jdbcType="VARCHAR" />
14
+    <result column="status" property="status" jdbcType="CHAR" />
15
+    <result column="result" property="result" jdbcType="VARCHAR" />
16
+    <result column="meaasge_type_id" property="meaasgeTypeId" jdbcType="VARCHAR" />
17
+    <result column="read_status" property="readStatus" jdbcType="CHAR" />
18
+    <result column="create_user" property="createUser" jdbcType="INTEGER" />
19
+    <result column="create_date" property="createDate" jdbcType="TIMESTAMP" />
20
+    <result column="update_user" property="updateUser" jdbcType="INTEGER" />
21
+    <result column="update_date" property="updateDate" jdbcType="TIMESTAMP" />
22
+  </resultMap>
23
+  <sql id="Base_Column_List" >
24
+    id, community_id, message_type, advice_type, model_type, uuid, uuid_type, source, 
25
+    message_content, status, result, meaasge_type_id, read_status, create_user, create_date, 
26
+    update_user, update_date
27
+  </sql>
28
+  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
29
+    select 
30
+    <include refid="Base_Column_List" />
31
+    from tp_message
32
+    where id = #{id,jdbcType=INTEGER}
33
+  </select>
34
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
35
+    delete from tp_message
36
+    where id = #{id,jdbcType=INTEGER}
37
+  </delete>
38
+  <insert id="insert" parameterType="com.community.huiju.model.TpMessage" >
39
+    insert into tp_message (id, community_id, message_type, 
40
+      advice_type, model_type, uuid, 
41
+      uuid_type, source, message_content, 
42
+      status, result, meaasge_type_id, 
43
+      read_status, create_user, create_date, 
44
+      update_user, update_date)
45
+    values (#{id,jdbcType=INTEGER}, #{communityId,jdbcType=INTEGER}, #{messageType,jdbcType=CHAR}, 
46
+      #{adviceType,jdbcType=CHAR}, #{modelType,jdbcType=CHAR}, #{uuid,jdbcType=INTEGER}, 
47
+      #{uuidType,jdbcType=CHAR}, #{source,jdbcType=CHAR}, #{messageContent,jdbcType=VARCHAR}, 
48
+      #{status,jdbcType=CHAR}, #{result,jdbcType=VARCHAR}, #{meaasgeTypeId,jdbcType=VARCHAR}, 
49
+      #{readStatus,jdbcType=CHAR}, #{createUser,jdbcType=INTEGER}, #{createDate,jdbcType=TIMESTAMP}, 
50
+      #{updateUser,jdbcType=INTEGER}, #{updateDate,jdbcType=TIMESTAMP})
51
+  </insert>
52
+  <insert id="insertSelective" parameterType="com.community.huiju.model.TpMessage" >
53
+    insert into tp_message
54
+    <trim prefix="(" suffix=")" suffixOverrides="," >
55
+      <if test="id != null" >
56
+        id,
57
+      </if>
58
+      <if test="communityId != null" >
59
+        community_id,
60
+      </if>
61
+      <if test="messageType != null" >
62
+        message_type,
63
+      </if>
64
+      <if test="adviceType != null" >
65
+        advice_type,
66
+      </if>
67
+      <if test="modelType != null" >
68
+        model_type,
69
+      </if>
70
+      <if test="uuid != null" >
71
+        uuid,
72
+      </if>
73
+      <if test="uuidType != null" >
74
+        uuid_type,
75
+      </if>
76
+      <if test="source != null" >
77
+        source,
78
+      </if>
79
+      <if test="messageContent != null" >
80
+        message_content,
81
+      </if>
82
+      <if test="status != null" >
83
+        status,
84
+      </if>
85
+      <if test="result != null" >
86
+        result,
87
+      </if>
88
+      <if test="meaasgeTypeId != null" >
89
+        meaasge_type_id,
90
+      </if>
91
+      <if test="readStatus != null" >
92
+        read_status,
93
+      </if>
94
+      <if test="createUser != null" >
95
+        create_user,
96
+      </if>
97
+      <if test="createDate != null" >
98
+        create_date,
99
+      </if>
100
+      <if test="updateUser != null" >
101
+        update_user,
102
+      </if>
103
+      <if test="updateDate != null" >
104
+        update_date,
105
+      </if>
106
+    </trim>
107
+    <trim prefix="values (" suffix=")" suffixOverrides="," >
108
+      <if test="id != null" >
109
+        #{id,jdbcType=INTEGER},
110
+      </if>
111
+      <if test="communityId != null" >
112
+        #{communityId,jdbcType=INTEGER},
113
+      </if>
114
+      <if test="messageType != null" >
115
+        #{messageType,jdbcType=CHAR},
116
+      </if>
117
+      <if test="adviceType != null" >
118
+        #{adviceType,jdbcType=CHAR},
119
+      </if>
120
+      <if test="modelType != null" >
121
+        #{modelType,jdbcType=CHAR},
122
+      </if>
123
+      <if test="uuid != null" >
124
+        #{uuid,jdbcType=INTEGER},
125
+      </if>
126
+      <if test="uuidType != null" >
127
+        #{uuidType,jdbcType=CHAR},
128
+      </if>
129
+      <if test="source != null" >
130
+        #{source,jdbcType=CHAR},
131
+      </if>
132
+      <if test="messageContent != null" >
133
+        #{messageContent,jdbcType=VARCHAR},
134
+      </if>
135
+      <if test="status != null" >
136
+        #{status,jdbcType=CHAR},
137
+      </if>
138
+      <if test="result != null" >
139
+        #{result,jdbcType=VARCHAR},
140
+      </if>
141
+      <if test="meaasgeTypeId != null" >
142
+        #{meaasgeTypeId,jdbcType=VARCHAR},
143
+      </if>
144
+      <if test="readStatus != null" >
145
+        #{readStatus,jdbcType=CHAR},
146
+      </if>
147
+      <if test="createUser != null" >
148
+        #{createUser,jdbcType=INTEGER},
149
+      </if>
150
+      <if test="createDate != null" >
151
+        #{createDate,jdbcType=TIMESTAMP},
152
+      </if>
153
+      <if test="updateUser != null" >
154
+        #{updateUser,jdbcType=INTEGER},
155
+      </if>
156
+      <if test="updateDate != null" >
157
+        #{updateDate,jdbcType=TIMESTAMP},
158
+      </if>
159
+    </trim>
160
+  </insert>
161
+  <update id="updateByPrimaryKeySelective" parameterType="com.community.huiju.model.TpMessage" >
162
+    update tp_message
163
+    <set >
164
+      <if test="communityId != null" >
165
+        community_id = #{communityId,jdbcType=INTEGER},
166
+      </if>
167
+      <if test="messageType != null" >
168
+        message_type = #{messageType,jdbcType=CHAR},
169
+      </if>
170
+      <if test="adviceType != null" >
171
+        advice_type = #{adviceType,jdbcType=CHAR},
172
+      </if>
173
+      <if test="modelType != null" >
174
+        model_type = #{modelType,jdbcType=CHAR},
175
+      </if>
176
+      <if test="uuid != null" >
177
+        uuid = #{uuid,jdbcType=INTEGER},
178
+      </if>
179
+      <if test="uuidType != null" >
180
+        uuid_type = #{uuidType,jdbcType=CHAR},
181
+      </if>
182
+      <if test="source != null" >
183
+        source = #{source,jdbcType=CHAR},
184
+      </if>
185
+      <if test="messageContent != null" >
186
+        message_content = #{messageContent,jdbcType=VARCHAR},
187
+      </if>
188
+      <if test="status != null" >
189
+        status = #{status,jdbcType=CHAR},
190
+      </if>
191
+      <if test="result != null" >
192
+        result = #{result,jdbcType=VARCHAR},
193
+      </if>
194
+      <if test="meaasgeTypeId != null" >
195
+        meaasge_type_id = #{meaasgeTypeId,jdbcType=VARCHAR},
196
+      </if>
197
+      <if test="readStatus != null" >
198
+        read_status = #{readStatus,jdbcType=CHAR},
199
+      </if>
200
+      <if test="createUser != null" >
201
+        create_user = #{createUser,jdbcType=INTEGER},
202
+      </if>
203
+      <if test="createDate != null" >
204
+        create_date = #{createDate,jdbcType=TIMESTAMP},
205
+      </if>
206
+      <if test="updateUser != null" >
207
+        update_user = #{updateUser,jdbcType=INTEGER},
208
+      </if>
209
+      <if test="updateDate != null" >
210
+        update_date = #{updateDate,jdbcType=TIMESTAMP},
211
+      </if>
212
+    </set>
213
+    where id = #{id,jdbcType=INTEGER}
214
+  </update>
215
+  <update id="updateByPrimaryKey" parameterType="com.community.huiju.model.TpMessage" >
216
+    update tp_message
217
+    set community_id = #{communityId,jdbcType=INTEGER},
218
+      message_type = #{messageType,jdbcType=CHAR},
219
+      advice_type = #{adviceType,jdbcType=CHAR},
220
+      model_type = #{modelType,jdbcType=CHAR},
221
+      uuid = #{uuid,jdbcType=INTEGER},
222
+      uuid_type = #{uuidType,jdbcType=CHAR},
223
+      source = #{source,jdbcType=CHAR},
224
+      message_content = #{messageContent,jdbcType=VARCHAR},
225
+      status = #{status,jdbcType=CHAR},
226
+      result = #{result,jdbcType=VARCHAR},
227
+      meaasge_type_id = #{meaasgeTypeId,jdbcType=VARCHAR},
228
+      read_status = #{readStatus,jdbcType=CHAR},
229
+      create_user = #{createUser,jdbcType=INTEGER},
230
+      create_date = #{createDate,jdbcType=TIMESTAMP},
231
+      update_user = #{updateUser,jdbcType=INTEGER},
232
+      update_date = #{updateDate,jdbcType=TIMESTAMP}
233
+    where id = #{id,jdbcType=INTEGER}
234
+  </update>
235
+</mapper>

+ 3
- 11
SmartCommunity/mybatisGeneratorCode/src/main/resources/generatorConfig.xml Wyświetl plik

@@ -17,8 +17,8 @@
17 17
 
18 18
         <!--数据库连接 -->
19 19
         <jdbcConnection driverClass="com.mysql.jdbc.Driver"
20
-                        connectionURL="jdbc:mysql://192.168.0.122:3306/resold_admin_import" userId="root"
21
-                        password="root">
20
+                        connectionURL="jdbc:mysql://rm-uf6z3z6jq11x653d77o.mysql.rds.aliyuncs.com:3306/smart_community" userId="root"
21
+                        password="DQ@0lW##kBb2+-jPZC1s$Ma0h5$9W((q">
22 22
         </jdbcConnection>
23 23
         <!--默认false Java type resolver will always use java.math.BigDecimal if
24 24
             the database column is of type DECIMAL or NUMERIC. -->
@@ -45,15 +45,7 @@
45 45
         </javaClientGenerator>
46 46
 
47 47
         <!--对应数据库表 多个直接复制 -->
48
-        <table tableName="sys_msg" domainObjectName="SysMsg"
49
-               enableCountByExample="false" enableUpdateByExample="false"
50
-               enableDeleteByExample="false" enableSelectByExample="false"
51
-               selectByExampleQueryId="false" />
52
-        <table tableName="sys_menu" domainObjectName="SysMenu"
53
-               enableCountByExample="false" enableUpdateByExample="false"
54
-               enableDeleteByExample="false" enableSelectByExample="false"
55
-               selectByExampleQueryId="false" />
56
-        <table tableName="sys_org" domainObjectName="SysOrg"
48
+        <table tableName="mq_message" domainObjectName="MqMessage"
57 49
                enableCountByExample="false" enableUpdateByExample="false"
58 50
                enableDeleteByExample="false" enableSelectByExample="false"
59 51
                selectByExampleQueryId="false" />

+ 402
- 0
SmartCommunity/mybatisGeneratorCode/src/main/resources/mapper/MqMessageMapper.xml Wyświetl plik

@@ -0,0 +1,402 @@
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="dao.MqMessageMapper" >
4
+  <resultMap id="BaseResultMap" type="model.MqMessage" >
5
+    <id column="id" property="id" jdbcType="INTEGER" />
6
+    <result column="event_state" property="eventState" jdbcType="INTEGER" />
7
+    <result column="event_level" property="eventLevel" jdbcType="INTEGER" />
8
+    <result column="unit_idx" property="unitIdx" jdbcType="VARCHAR" />
9
+    <result column="event_type" property="eventType" jdbcType="INTEGER" />
10
+    <result column="event_type_name" property="eventTypeName" jdbcType="VARCHAR" />
11
+    <result column="sub_sys_type" property="subSysType" jdbcType="INTEGER" />
12
+    <result column="event_name" property="eventName" jdbcType="VARCHAR" />
13
+    <result column="start_time" property="startTime" jdbcType="TIMESTAMP" />
14
+    <result column="stop_time" property="stopTime" jdbcType="TIMESTAMP" />
15
+    <result column="source_idx" property="sourceIdx" jdbcType="CHAR" />
16
+    <result column="source_type" property="sourceType" jdbcType="VARCHAR" />
17
+    <result column="source_name" property="sourceName" jdbcType="VARCHAR" />
18
+    <result column="region_idx" property="regionIdx" jdbcType="VARCHAR" />
19
+    <result column="event_code" property="eventCode" jdbcType="INTEGER" />
20
+    <result column="device_id" property="deviceId" jdbcType="INTEGER" />
21
+    <result column="device_type" property="deviceType" jdbcType="INTEGER" />
22
+    <result column="device_name" property="deviceName" jdbcType="VARCHAR" />
23
+    <result column="event_card" property="eventCard" jdbcType="VARCHAR" />
24
+    <result column="person_id" property="personId" jdbcType="INTEGER" />
25
+    <result column="person_name" property="personName" jdbcType="VARCHAR" />
26
+    <result column="dept_id" property="deptId" jdbcType="INTEGER" />
27
+    <result column="dept_name" property="deptName" jdbcType="VARCHAR" />
28
+    <result column="dept_code" property="deptCode" jdbcType="VARCHAR" />
29
+    <result column="in_out" property="inOut" jdbcType="INTEGER" />
30
+    <result column="card_status" property="cardStatus" jdbcType="INTEGER" />
31
+    <result column="pic_url" property="picUrl" jdbcType="VARCHAR" />
32
+  </resultMap>
33
+  <resultMap id="ResultMapWithBLOBs" type="model.MqMessage" extends="BaseResultMap" >
34
+    <result column="ext_txt" property="extTxt" jdbcType="LONGVARCHAR" />
35
+  </resultMap>
36
+  <sql id="Base_Column_List" >
37
+    id, event_state, event_level, unit_idx, event_type, event_type_name, sub_sys_type, 
38
+    event_name, start_time, stop_time, source_idx, source_type, source_name, region_idx, 
39
+    event_code, device_id, device_type, device_name, event_card, person_id, person_name, 
40
+    dept_id, dept_name, dept_code, in_out, card_status, pic_url
41
+  </sql>
42
+  <sql id="Blob_Column_List" >
43
+    ext_txt
44
+  </sql>
45
+  <select id="selectByPrimaryKey" resultMap="ResultMapWithBLOBs" parameterType="java.lang.Integer" >
46
+    select 
47
+    <include refid="Base_Column_List" />
48
+    ,
49
+    <include refid="Blob_Column_List" />
50
+    from mq_message
51
+    where id = #{id,jdbcType=INTEGER}
52
+  </select>
53
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
54
+    delete from mq_message
55
+    where id = #{id,jdbcType=INTEGER}
56
+  </delete>
57
+  <insert id="insert" parameterType="model.MqMessage" >
58
+    insert into mq_message (id, event_state, event_level, 
59
+      unit_idx, event_type, event_type_name, 
60
+      sub_sys_type, event_name, start_time, 
61
+      stop_time, source_idx, source_type, 
62
+      source_name, region_idx, event_code, 
63
+      device_id, device_type, device_name, 
64
+      event_card, person_id, person_name, 
65
+      dept_id, dept_name, dept_code, 
66
+      in_out, card_status, pic_url, 
67
+      ext_txt)
68
+    values (#{id,jdbcType=INTEGER}, #{eventState,jdbcType=INTEGER}, #{eventLevel,jdbcType=INTEGER}, 
69
+      #{unitIdx,jdbcType=VARCHAR}, #{eventType,jdbcType=INTEGER}, #{eventTypeName,jdbcType=VARCHAR}, 
70
+      #{subSysType,jdbcType=INTEGER}, #{eventName,jdbcType=VARCHAR}, #{startTime,jdbcType=TIMESTAMP}, 
71
+      #{stopTime,jdbcType=TIMESTAMP}, #{sourceIdx,jdbcType=CHAR}, #{sourceType,jdbcType=VARCHAR}, 
72
+      #{sourceName,jdbcType=VARCHAR}, #{regionIdx,jdbcType=VARCHAR}, #{eventCode,jdbcType=INTEGER}, 
73
+      #{deviceId,jdbcType=INTEGER}, #{deviceType,jdbcType=INTEGER}, #{deviceName,jdbcType=VARCHAR}, 
74
+      #{eventCard,jdbcType=VARCHAR}, #{personId,jdbcType=INTEGER}, #{personName,jdbcType=VARCHAR}, 
75
+      #{deptId,jdbcType=INTEGER}, #{deptName,jdbcType=VARCHAR}, #{deptCode,jdbcType=VARCHAR}, 
76
+      #{inOut,jdbcType=INTEGER}, #{cardStatus,jdbcType=INTEGER}, #{picUrl,jdbcType=VARCHAR}, 
77
+      #{extTxt,jdbcType=LONGVARCHAR})
78
+  </insert>
79
+  <insert id="insertSelective" parameterType="model.MqMessage" >
80
+    insert into mq_message
81
+    <trim prefix="(" suffix=")" suffixOverrides="," >
82
+      <if test="id != null" >
83
+        id,
84
+      </if>
85
+      <if test="eventState != null" >
86
+        event_state,
87
+      </if>
88
+      <if test="eventLevel != null" >
89
+        event_level,
90
+      </if>
91
+      <if test="unitIdx != null" >
92
+        unit_idx,
93
+      </if>
94
+      <if test="eventType != null" >
95
+        event_type,
96
+      </if>
97
+      <if test="eventTypeName != null" >
98
+        event_type_name,
99
+      </if>
100
+      <if test="subSysType != null" >
101
+        sub_sys_type,
102
+      </if>
103
+      <if test="eventName != null" >
104
+        event_name,
105
+      </if>
106
+      <if test="startTime != null" >
107
+        start_time,
108
+      </if>
109
+      <if test="stopTime != null" >
110
+        stop_time,
111
+      </if>
112
+      <if test="sourceIdx != null" >
113
+        source_idx,
114
+      </if>
115
+      <if test="sourceType != null" >
116
+        source_type,
117
+      </if>
118
+      <if test="sourceName != null" >
119
+        source_name,
120
+      </if>
121
+      <if test="regionIdx != null" >
122
+        region_idx,
123
+      </if>
124
+      <if test="eventCode != null" >
125
+        event_code,
126
+      </if>
127
+      <if test="deviceId != null" >
128
+        device_id,
129
+      </if>
130
+      <if test="deviceType != null" >
131
+        device_type,
132
+      </if>
133
+      <if test="deviceName != null" >
134
+        device_name,
135
+      </if>
136
+      <if test="eventCard != null" >
137
+        event_card,
138
+      </if>
139
+      <if test="personId != null" >
140
+        person_id,
141
+      </if>
142
+      <if test="personName != null" >
143
+        person_name,
144
+      </if>
145
+      <if test="deptId != null" >
146
+        dept_id,
147
+      </if>
148
+      <if test="deptName != null" >
149
+        dept_name,
150
+      </if>
151
+      <if test="deptCode != null" >
152
+        dept_code,
153
+      </if>
154
+      <if test="inOut != null" >
155
+        in_out,
156
+      </if>
157
+      <if test="cardStatus != null" >
158
+        card_status,
159
+      </if>
160
+      <if test="picUrl != null" >
161
+        pic_url,
162
+      </if>
163
+      <if test="extTxt != null" >
164
+        ext_txt,
165
+      </if>
166
+    </trim>
167
+    <trim prefix="values (" suffix=")" suffixOverrides="," >
168
+      <if test="id != null" >
169
+        #{id,jdbcType=INTEGER},
170
+      </if>
171
+      <if test="eventState != null" >
172
+        #{eventState,jdbcType=INTEGER},
173
+      </if>
174
+      <if test="eventLevel != null" >
175
+        #{eventLevel,jdbcType=INTEGER},
176
+      </if>
177
+      <if test="unitIdx != null" >
178
+        #{unitIdx,jdbcType=VARCHAR},
179
+      </if>
180
+      <if test="eventType != null" >
181
+        #{eventType,jdbcType=INTEGER},
182
+      </if>
183
+      <if test="eventTypeName != null" >
184
+        #{eventTypeName,jdbcType=VARCHAR},
185
+      </if>
186
+      <if test="subSysType != null" >
187
+        #{subSysType,jdbcType=INTEGER},
188
+      </if>
189
+      <if test="eventName != null" >
190
+        #{eventName,jdbcType=VARCHAR},
191
+      </if>
192
+      <if test="startTime != null" >
193
+        #{startTime,jdbcType=TIMESTAMP},
194
+      </if>
195
+      <if test="stopTime != null" >
196
+        #{stopTime,jdbcType=TIMESTAMP},
197
+      </if>
198
+      <if test="sourceIdx != null" >
199
+        #{sourceIdx,jdbcType=CHAR},
200
+      </if>
201
+      <if test="sourceType != null" >
202
+        #{sourceType,jdbcType=VARCHAR},
203
+      </if>
204
+      <if test="sourceName != null" >
205
+        #{sourceName,jdbcType=VARCHAR},
206
+      </if>
207
+      <if test="regionIdx != null" >
208
+        #{regionIdx,jdbcType=VARCHAR},
209
+      </if>
210
+      <if test="eventCode != null" >
211
+        #{eventCode,jdbcType=INTEGER},
212
+      </if>
213
+      <if test="deviceId != null" >
214
+        #{deviceId,jdbcType=INTEGER},
215
+      </if>
216
+      <if test="deviceType != null" >
217
+        #{deviceType,jdbcType=INTEGER},
218
+      </if>
219
+      <if test="deviceName != null" >
220
+        #{deviceName,jdbcType=VARCHAR},
221
+      </if>
222
+      <if test="eventCard != null" >
223
+        #{eventCard,jdbcType=VARCHAR},
224
+      </if>
225
+      <if test="personId != null" >
226
+        #{personId,jdbcType=INTEGER},
227
+      </if>
228
+      <if test="personName != null" >
229
+        #{personName,jdbcType=VARCHAR},
230
+      </if>
231
+      <if test="deptId != null" >
232
+        #{deptId,jdbcType=INTEGER},
233
+      </if>
234
+      <if test="deptName != null" >
235
+        #{deptName,jdbcType=VARCHAR},
236
+      </if>
237
+      <if test="deptCode != null" >
238
+        #{deptCode,jdbcType=VARCHAR},
239
+      </if>
240
+      <if test="inOut != null" >
241
+        #{inOut,jdbcType=INTEGER},
242
+      </if>
243
+      <if test="cardStatus != null" >
244
+        #{cardStatus,jdbcType=INTEGER},
245
+      </if>
246
+      <if test="picUrl != null" >
247
+        #{picUrl,jdbcType=VARCHAR},
248
+      </if>
249
+      <if test="extTxt != null" >
250
+        #{extTxt,jdbcType=LONGVARCHAR},
251
+      </if>
252
+    </trim>
253
+  </insert>
254
+  <update id="updateByPrimaryKeySelective" parameterType="model.MqMessage" >
255
+    update mq_message
256
+    <set >
257
+      <if test="eventState != null" >
258
+        event_state = #{eventState,jdbcType=INTEGER},
259
+      </if>
260
+      <if test="eventLevel != null" >
261
+        event_level = #{eventLevel,jdbcType=INTEGER},
262
+      </if>
263
+      <if test="unitIdx != null" >
264
+        unit_idx = #{unitIdx,jdbcType=VARCHAR},
265
+      </if>
266
+      <if test="eventType != null" >
267
+        event_type = #{eventType,jdbcType=INTEGER},
268
+      </if>
269
+      <if test="eventTypeName != null" >
270
+        event_type_name = #{eventTypeName,jdbcType=VARCHAR},
271
+      </if>
272
+      <if test="subSysType != null" >
273
+        sub_sys_type = #{subSysType,jdbcType=INTEGER},
274
+      </if>
275
+      <if test="eventName != null" >
276
+        event_name = #{eventName,jdbcType=VARCHAR},
277
+      </if>
278
+      <if test="startTime != null" >
279
+        start_time = #{startTime,jdbcType=TIMESTAMP},
280
+      </if>
281
+      <if test="stopTime != null" >
282
+        stop_time = #{stopTime,jdbcType=TIMESTAMP},
283
+      </if>
284
+      <if test="sourceIdx != null" >
285
+        source_idx = #{sourceIdx,jdbcType=CHAR},
286
+      </if>
287
+      <if test="sourceType != null" >
288
+        source_type = #{sourceType,jdbcType=VARCHAR},
289
+      </if>
290
+      <if test="sourceName != null" >
291
+        source_name = #{sourceName,jdbcType=VARCHAR},
292
+      </if>
293
+      <if test="regionIdx != null" >
294
+        region_idx = #{regionIdx,jdbcType=VARCHAR},
295
+      </if>
296
+      <if test="eventCode != null" >
297
+        event_code = #{eventCode,jdbcType=INTEGER},
298
+      </if>
299
+      <if test="deviceId != null" >
300
+        device_id = #{deviceId,jdbcType=INTEGER},
301
+      </if>
302
+      <if test="deviceType != null" >
303
+        device_type = #{deviceType,jdbcType=INTEGER},
304
+      </if>
305
+      <if test="deviceName != null" >
306
+        device_name = #{deviceName,jdbcType=VARCHAR},
307
+      </if>
308
+      <if test="eventCard != null" >
309
+        event_card = #{eventCard,jdbcType=VARCHAR},
310
+      </if>
311
+      <if test="personId != null" >
312
+        person_id = #{personId,jdbcType=INTEGER},
313
+      </if>
314
+      <if test="personName != null" >
315
+        person_name = #{personName,jdbcType=VARCHAR},
316
+      </if>
317
+      <if test="deptId != null" >
318
+        dept_id = #{deptId,jdbcType=INTEGER},
319
+      </if>
320
+      <if test="deptName != null" >
321
+        dept_name = #{deptName,jdbcType=VARCHAR},
322
+      </if>
323
+      <if test="deptCode != null" >
324
+        dept_code = #{deptCode,jdbcType=VARCHAR},
325
+      </if>
326
+      <if test="inOut != null" >
327
+        in_out = #{inOut,jdbcType=INTEGER},
328
+      </if>
329
+      <if test="cardStatus != null" >
330
+        card_status = #{cardStatus,jdbcType=INTEGER},
331
+      </if>
332
+      <if test="picUrl != null" >
333
+        pic_url = #{picUrl,jdbcType=VARCHAR},
334
+      </if>
335
+      <if test="extTxt != null" >
336
+        ext_txt = #{extTxt,jdbcType=LONGVARCHAR},
337
+      </if>
338
+    </set>
339
+    where id = #{id,jdbcType=INTEGER}
340
+  </update>
341
+  <update id="updateByPrimaryKeyWithBLOBs" parameterType="model.MqMessage" >
342
+    update mq_message
343
+    set event_state = #{eventState,jdbcType=INTEGER},
344
+      event_level = #{eventLevel,jdbcType=INTEGER},
345
+      unit_idx = #{unitIdx,jdbcType=VARCHAR},
346
+      event_type = #{eventType,jdbcType=INTEGER},
347
+      event_type_name = #{eventTypeName,jdbcType=VARCHAR},
348
+      sub_sys_type = #{subSysType,jdbcType=INTEGER},
349
+      event_name = #{eventName,jdbcType=VARCHAR},
350
+      start_time = #{startTime,jdbcType=TIMESTAMP},
351
+      stop_time = #{stopTime,jdbcType=TIMESTAMP},
352
+      source_idx = #{sourceIdx,jdbcType=CHAR},
353
+      source_type = #{sourceType,jdbcType=VARCHAR},
354
+      source_name = #{sourceName,jdbcType=VARCHAR},
355
+      region_idx = #{regionIdx,jdbcType=VARCHAR},
356
+      event_code = #{eventCode,jdbcType=INTEGER},
357
+      device_id = #{deviceId,jdbcType=INTEGER},
358
+      device_type = #{deviceType,jdbcType=INTEGER},
359
+      device_name = #{deviceName,jdbcType=VARCHAR},
360
+      event_card = #{eventCard,jdbcType=VARCHAR},
361
+      person_id = #{personId,jdbcType=INTEGER},
362
+      person_name = #{personName,jdbcType=VARCHAR},
363
+      dept_id = #{deptId,jdbcType=INTEGER},
364
+      dept_name = #{deptName,jdbcType=VARCHAR},
365
+      dept_code = #{deptCode,jdbcType=VARCHAR},
366
+      in_out = #{inOut,jdbcType=INTEGER},
367
+      card_status = #{cardStatus,jdbcType=INTEGER},
368
+      pic_url = #{picUrl,jdbcType=VARCHAR},
369
+      ext_txt = #{extTxt,jdbcType=LONGVARCHAR}
370
+    where id = #{id,jdbcType=INTEGER}
371
+  </update>
372
+  <update id="updateByPrimaryKey" parameterType="model.MqMessage" >
373
+    update mq_message
374
+    set event_state = #{eventState,jdbcType=INTEGER},
375
+      event_level = #{eventLevel,jdbcType=INTEGER},
376
+      unit_idx = #{unitIdx,jdbcType=VARCHAR},
377
+      event_type = #{eventType,jdbcType=INTEGER},
378
+      event_type_name = #{eventTypeName,jdbcType=VARCHAR},
379
+      sub_sys_type = #{subSysType,jdbcType=INTEGER},
380
+      event_name = #{eventName,jdbcType=VARCHAR},
381
+      start_time = #{startTime,jdbcType=TIMESTAMP},
382
+      stop_time = #{stopTime,jdbcType=TIMESTAMP},
383
+      source_idx = #{sourceIdx,jdbcType=CHAR},
384
+      source_type = #{sourceType,jdbcType=VARCHAR},
385
+      source_name = #{sourceName,jdbcType=VARCHAR},
386
+      region_idx = #{regionIdx,jdbcType=VARCHAR},
387
+      event_code = #{eventCode,jdbcType=INTEGER},
388
+      device_id = #{deviceId,jdbcType=INTEGER},
389
+      device_type = #{deviceType,jdbcType=INTEGER},
390
+      device_name = #{deviceName,jdbcType=VARCHAR},
391
+      event_card = #{eventCard,jdbcType=VARCHAR},
392
+      person_id = #{personId,jdbcType=INTEGER},
393
+      person_name = #{personName,jdbcType=VARCHAR},
394
+      dept_id = #{deptId,jdbcType=INTEGER},
395
+      dept_name = #{deptName,jdbcType=VARCHAR},
396
+      dept_code = #{deptCode,jdbcType=VARCHAR},
397
+      in_out = #{inOut,jdbcType=INTEGER},
398
+      card_status = #{cardStatus,jdbcType=INTEGER},
399
+      pic_url = #{picUrl,jdbcType=VARCHAR}
400
+    where id = #{id,jdbcType=INTEGER}
401
+  </update>
402
+</mapper>

+ 153
- 0
SmartCommunity/mybatisGeneratorCode/src/main/resources/mapper/SysNationMapper.xml Wyświetl plik

@@ -0,0 +1,153 @@
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="dao.SysNationMapper" >
4
+  <resultMap id="BaseResultMap" type="model.SysNation" >
5
+    <id column="id" property="id" jdbcType="INTEGER" />
6
+    <result column="code" property="code" jdbcType="VARCHAR" />
7
+    <result column="province" property="province" jdbcType="VARCHAR" />
8
+    <result column="city" property="city" jdbcType="VARCHAR" />
9
+    <result column="parent_id" property="parentId" jdbcType="INTEGER" />
10
+    <result column="create_time" property="createTime" jdbcType="TIMESTAMP" />
11
+    <result column="district" property="district" jdbcType="VARCHAR" />
12
+    <result column="last_update_time" property="lastUpdateTime" jdbcType="TIMESTAMP" />
13
+    <result column="operator" property="operator" jdbcType="INTEGER" />
14
+    <result column="operator_ip" property="operatorIp" jdbcType="VARCHAR" />
15
+  </resultMap>
16
+  <sql id="Base_Column_List" >
17
+    id, code, province, city, parent_id, create_time, district, last_update_time, operator, 
18
+    operator_ip
19
+  </sql>
20
+  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
21
+    select 
22
+    <include refid="Base_Column_List" />
23
+    from sys_nation
24
+    where id = #{id,jdbcType=INTEGER}
25
+  </select>
26
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
27
+    delete from sys_nation
28
+    where id = #{id,jdbcType=INTEGER}
29
+  </delete>
30
+  <insert id="insert" parameterType="model.SysNation" >
31
+    insert into sys_nation (id, code, province, 
32
+      city, parent_id, create_time, 
33
+      district, last_update_time, operator, 
34
+      operator_ip)
35
+    values (#{id,jdbcType=INTEGER}, #{code,jdbcType=VARCHAR}, #{province,jdbcType=VARCHAR}, 
36
+      #{city,jdbcType=VARCHAR}, #{parentId,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, 
37
+      #{district,jdbcType=VARCHAR}, #{lastUpdateTime,jdbcType=TIMESTAMP}, #{operator,jdbcType=INTEGER}, 
38
+      #{operatorIp,jdbcType=VARCHAR})
39
+  </insert>
40
+  <insert id="insertSelective" parameterType="model.SysNation" >
41
+    insert into sys_nation
42
+    <trim prefix="(" suffix=")" suffixOverrides="," >
43
+      <if test="id != null" >
44
+        id,
45
+      </if>
46
+      <if test="code != null" >
47
+        code,
48
+      </if>
49
+      <if test="province != null" >
50
+        province,
51
+      </if>
52
+      <if test="city != null" >
53
+        city,
54
+      </if>
55
+      <if test="parentId != null" >
56
+        parent_id,
57
+      </if>
58
+      <if test="createTime != null" >
59
+        create_time,
60
+      </if>
61
+      <if test="district != null" >
62
+        district,
63
+      </if>
64
+      <if test="lastUpdateTime != null" >
65
+        last_update_time,
66
+      </if>
67
+      <if test="operator != null" >
68
+        operator,
69
+      </if>
70
+      <if test="operatorIp != null" >
71
+        operator_ip,
72
+      </if>
73
+    </trim>
74
+    <trim prefix="values (" suffix=")" suffixOverrides="," >
75
+      <if test="id != null" >
76
+        #{id,jdbcType=INTEGER},
77
+      </if>
78
+      <if test="code != null" >
79
+        #{code,jdbcType=VARCHAR},
80
+      </if>
81
+      <if test="province != null" >
82
+        #{province,jdbcType=VARCHAR},
83
+      </if>
84
+      <if test="city != null" >
85
+        #{city,jdbcType=VARCHAR},
86
+      </if>
87
+      <if test="parentId != null" >
88
+        #{parentId,jdbcType=INTEGER},
89
+      </if>
90
+      <if test="createTime != null" >
91
+        #{createTime,jdbcType=TIMESTAMP},
92
+      </if>
93
+      <if test="district != null" >
94
+        #{district,jdbcType=VARCHAR},
95
+      </if>
96
+      <if test="lastUpdateTime != null" >
97
+        #{lastUpdateTime,jdbcType=TIMESTAMP},
98
+      </if>
99
+      <if test="operator != null" >
100
+        #{operator,jdbcType=INTEGER},
101
+      </if>
102
+      <if test="operatorIp != null" >
103
+        #{operatorIp,jdbcType=VARCHAR},
104
+      </if>
105
+    </trim>
106
+  </insert>
107
+  <update id="updateByPrimaryKeySelective" parameterType="model.SysNation" >
108
+    update sys_nation
109
+    <set >
110
+      <if test="code != null" >
111
+        code = #{code,jdbcType=VARCHAR},
112
+      </if>
113
+      <if test="province != null" >
114
+        province = #{province,jdbcType=VARCHAR},
115
+      </if>
116
+      <if test="city != null" >
117
+        city = #{city,jdbcType=VARCHAR},
118
+      </if>
119
+      <if test="parentId != null" >
120
+        parent_id = #{parentId,jdbcType=INTEGER},
121
+      </if>
122
+      <if test="createTime != null" >
123
+        create_time = #{createTime,jdbcType=TIMESTAMP},
124
+      </if>
125
+      <if test="district != null" >
126
+        district = #{district,jdbcType=VARCHAR},
127
+      </if>
128
+      <if test="lastUpdateTime != null" >
129
+        last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
130
+      </if>
131
+      <if test="operator != null" >
132
+        operator = #{operator,jdbcType=INTEGER},
133
+      </if>
134
+      <if test="operatorIp != null" >
135
+        operator_ip = #{operatorIp,jdbcType=VARCHAR},
136
+      </if>
137
+    </set>
138
+    where id = #{id,jdbcType=INTEGER}
139
+  </update>
140
+  <update id="updateByPrimaryKey" parameterType="model.SysNation" >
141
+    update sys_nation
142
+    set code = #{code,jdbcType=VARCHAR},
143
+      province = #{province,jdbcType=VARCHAR},
144
+      city = #{city,jdbcType=VARCHAR},
145
+      parent_id = #{parentId,jdbcType=INTEGER},
146
+      create_time = #{createTime,jdbcType=TIMESTAMP},
147
+      district = #{district,jdbcType=VARCHAR},
148
+      last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
149
+      operator = #{operator,jdbcType=INTEGER},
150
+      operator_ip = #{operatorIp,jdbcType=VARCHAR}
151
+    where id = #{id,jdbcType=INTEGER}
152
+  </update>
153
+</mapper>

+ 71
- 0
SmartCommunity/mybatisGeneratorCode/src/main/resources/mapper/TaSysMenuImgMapper.xml Wyświetl plik

@@ -0,0 +1,71 @@
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="dao.TaSysMenuImgMapper" >
4
+  <resultMap id="BaseResultMap" type="model.TaSysMenuImg" >
5
+    <id column="id" property="id" jdbcType="INTEGER" />
6
+    <result column="ta_menu_id" property="taMenuId" jdbcType="INTEGER" />
7
+    <result column="menu_icon_img" property="menuIconImg" jdbcType="VARCHAR" />
8
+  </resultMap>
9
+  <sql id="Base_Column_List" >
10
+    id, ta_menu_id, menu_icon_img
11
+  </sql>
12
+  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
13
+    select 
14
+    <include refid="Base_Column_List" />
15
+    from ta_sys_menu_img
16
+    where id = #{id,jdbcType=INTEGER}
17
+  </select>
18
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
19
+    delete from ta_sys_menu_img
20
+    where id = #{id,jdbcType=INTEGER}
21
+  </delete>
22
+  <insert id="insert" parameterType="model.TaSysMenuImg" >
23
+    insert into ta_sys_menu_img (id, ta_menu_id, menu_icon_img
24
+      )
25
+    values (#{id,jdbcType=INTEGER}, #{taMenuId,jdbcType=INTEGER}, #{menuIconImg,jdbcType=VARCHAR}
26
+      )
27
+  </insert>
28
+  <insert id="insertSelective" parameterType="model.TaSysMenuImg" >
29
+    insert into ta_sys_menu_img
30
+    <trim prefix="(" suffix=")" suffixOverrides="," >
31
+      <if test="id != null" >
32
+        id,
33
+      </if>
34
+      <if test="taMenuId != null" >
35
+        ta_menu_id,
36
+      </if>
37
+      <if test="menuIconImg != null" >
38
+        menu_icon_img,
39
+      </if>
40
+    </trim>
41
+    <trim prefix="values (" suffix=")" suffixOverrides="," >
42
+      <if test="id != null" >
43
+        #{id,jdbcType=INTEGER},
44
+      </if>
45
+      <if test="taMenuId != null" >
46
+        #{taMenuId,jdbcType=INTEGER},
47
+      </if>
48
+      <if test="menuIconImg != null" >
49
+        #{menuIconImg,jdbcType=VARCHAR},
50
+      </if>
51
+    </trim>
52
+  </insert>
53
+  <update id="updateByPrimaryKeySelective" parameterType="model.TaSysMenuImg" >
54
+    update ta_sys_menu_img
55
+    <set >
56
+      <if test="taMenuId != null" >
57
+        ta_menu_id = #{taMenuId,jdbcType=INTEGER},
58
+      </if>
59
+      <if test="menuIconImg != null" >
60
+        menu_icon_img = #{menuIconImg,jdbcType=VARCHAR},
61
+      </if>
62
+    </set>
63
+    where id = #{id,jdbcType=INTEGER}
64
+  </update>
65
+  <update id="updateByPrimaryKey" parameterType="model.TaSysMenuImg" >
66
+    update ta_sys_menu_img
67
+    set ta_menu_id = #{taMenuId,jdbcType=INTEGER},
68
+      menu_icon_img = #{menuIconImg,jdbcType=VARCHAR}
69
+    where id = #{id,jdbcType=INTEGER}
70
+  </update>
71
+</mapper>

+ 128
- 0
SmartCommunity/mybatisGeneratorCode/src/main/resources/mapper/TaSysMenuMapper.xml Wyświetl plik

@@ -0,0 +1,128 @@
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="dao.TaSysMenuMapper" >
4
+  <resultMap id="BaseResultMap" type="model.TaSysMenu" >
5
+    <id column="id" property="id" jdbcType="INTEGER" />
6
+    <result column="community_id" property="communityId" jdbcType="INTEGER" />
7
+    <result column="menu_name" property="menuName" jdbcType="VARCHAR" />
8
+    <result column="menu_url" property="menuUrl" jdbcType="VARCHAR" />
9
+    <result column="parent_id" property="parentId" jdbcType="INTEGER" />
10
+    <result column="sort" property="sort" jdbcType="INTEGER" />
11
+    <result column="menu_type" property="menuType" jdbcType="CHAR" />
12
+    <result column="status" property="status" jdbcType="CHAR" />
13
+  </resultMap>
14
+  <sql id="Base_Column_List" >
15
+    id, community_id, menu_name, menu_url, parent_id, sort, menu_type, status
16
+  </sql>
17
+  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
18
+    select 
19
+    <include refid="Base_Column_List" />
20
+    from ta_sys_menu
21
+    where id = #{id,jdbcType=INTEGER}
22
+  </select>
23
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
24
+    delete from ta_sys_menu
25
+    where id = #{id,jdbcType=INTEGER}
26
+  </delete>
27
+  <insert id="insert" parameterType="model.TaSysMenu" >
28
+    insert into ta_sys_menu (id, community_id, menu_name, 
29
+      menu_url, parent_id, sort, 
30
+      menu_type, status)
31
+    values (#{id,jdbcType=INTEGER}, #{communityId,jdbcType=INTEGER}, #{menuName,jdbcType=VARCHAR}, 
32
+      #{menuUrl,jdbcType=VARCHAR}, #{parentId,jdbcType=INTEGER}, #{sort,jdbcType=INTEGER}, 
33
+      #{menuType,jdbcType=CHAR}, #{status,jdbcType=CHAR})
34
+  </insert>
35
+  <insert id="insertSelective" parameterType="model.TaSysMenu" >
36
+    insert into ta_sys_menu
37
+    <trim prefix="(" suffix=")" suffixOverrides="," >
38
+      <if test="id != null" >
39
+        id,
40
+      </if>
41
+      <if test="communityId != null" >
42
+        community_id,
43
+      </if>
44
+      <if test="menuName != null" >
45
+        menu_name,
46
+      </if>
47
+      <if test="menuUrl != null" >
48
+        menu_url,
49
+      </if>
50
+      <if test="parentId != null" >
51
+        parent_id,
52
+      </if>
53
+      <if test="sort != null" >
54
+        sort,
55
+      </if>
56
+      <if test="menuType != null" >
57
+        menu_type,
58
+      </if>
59
+      <if test="status != null" >
60
+        status,
61
+      </if>
62
+    </trim>
63
+    <trim prefix="values (" suffix=")" suffixOverrides="," >
64
+      <if test="id != null" >
65
+        #{id,jdbcType=INTEGER},
66
+      </if>
67
+      <if test="communityId != null" >
68
+        #{communityId,jdbcType=INTEGER},
69
+      </if>
70
+      <if test="menuName != null" >
71
+        #{menuName,jdbcType=VARCHAR},
72
+      </if>
73
+      <if test="menuUrl != null" >
74
+        #{menuUrl,jdbcType=VARCHAR},
75
+      </if>
76
+      <if test="parentId != null" >
77
+        #{parentId,jdbcType=INTEGER},
78
+      </if>
79
+      <if test="sort != null" >
80
+        #{sort,jdbcType=INTEGER},
81
+      </if>
82
+      <if test="menuType != null" >
83
+        #{menuType,jdbcType=CHAR},
84
+      </if>
85
+      <if test="status != null" >
86
+        #{status,jdbcType=CHAR},
87
+      </if>
88
+    </trim>
89
+  </insert>
90
+  <update id="updateByPrimaryKeySelective" parameterType="model.TaSysMenu" >
91
+    update ta_sys_menu
92
+    <set >
93
+      <if test="communityId != null" >
94
+        community_id = #{communityId,jdbcType=INTEGER},
95
+      </if>
96
+      <if test="menuName != null" >
97
+        menu_name = #{menuName,jdbcType=VARCHAR},
98
+      </if>
99
+      <if test="menuUrl != null" >
100
+        menu_url = #{menuUrl,jdbcType=VARCHAR},
101
+      </if>
102
+      <if test="parentId != null" >
103
+        parent_id = #{parentId,jdbcType=INTEGER},
104
+      </if>
105
+      <if test="sort != null" >
106
+        sort = #{sort,jdbcType=INTEGER},
107
+      </if>
108
+      <if test="menuType != null" >
109
+        menu_type = #{menuType,jdbcType=CHAR},
110
+      </if>
111
+      <if test="status != null" >
112
+        status = #{status,jdbcType=CHAR},
113
+      </if>
114
+    </set>
115
+    where id = #{id,jdbcType=INTEGER}
116
+  </update>
117
+  <update id="updateByPrimaryKey" parameterType="model.TaSysMenu" >
118
+    update ta_sys_menu
119
+    set community_id = #{communityId,jdbcType=INTEGER},
120
+      menu_name = #{menuName,jdbcType=VARCHAR},
121
+      menu_url = #{menuUrl,jdbcType=VARCHAR},
122
+      parent_id = #{parentId,jdbcType=INTEGER},
123
+      sort = #{sort,jdbcType=INTEGER},
124
+      menu_type = #{menuType,jdbcType=CHAR},
125
+      status = #{status,jdbcType=CHAR}
126
+    where id = #{id,jdbcType=INTEGER}
127
+  </update>
128
+</mapper>

+ 213
- 0
SmartCommunity/mybatisGeneratorCode/src/main/resources/mapper/TpBillInvoiceMapper.xml Wyświetl plik

@@ -0,0 +1,213 @@
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="dao.TpBillInvoiceMapper" >
4
+  <resultMap id="BaseResultMap" type="model.TpBillInvoice" >
5
+    <id column="id" property="id" jdbcType="INTEGER" />
6
+    <result column="community_id" property="communityId" jdbcType="INTEGER" />
7
+    <result column="bill_id" property="billId" jdbcType="INTEGER" />
8
+    <result column="building_owner_info_id" property="buildingOwnerInfoId" jdbcType="INTEGER" />
9
+    <result column="ta_user_id" property="taUserId" jdbcType="INTEGER" />
10
+    <result column="bill_invoice_explain" property="billInvoiceExplain" jdbcType="VARCHAR" />
11
+    <result column="pay_price" property="payPrice" jdbcType="INTEGER" />
12
+    <result column="bill_statement_id" property="billStatementId" jdbcType="INTEGER" />
13
+    <result column="bill_status" property="billStatus" jdbcType="CHAR" />
14
+    <result column="pay_name" property="payName" jdbcType="VARCHAR" />
15
+    <result column="pay_date" property="payDate" jdbcType="TIMESTAMP" />
16
+    <result column="create_user" property="createUser" jdbcType="INTEGER" />
17
+    <result column="create_date" property="createDate" jdbcType="TIMESTAMP" />
18
+    <result column="update_user" property="updateUser" jdbcType="INTEGER" />
19
+    <result column="update_date" property="updateDate" jdbcType="TIMESTAMP" />
20
+  </resultMap>
21
+  <sql id="Base_Column_List" >
22
+    id, community_id, bill_id, building_owner_info_id, ta_user_id, bill_invoice_explain, 
23
+    pay_price, bill_statement_id, bill_status, pay_name, pay_date, create_user, create_date, 
24
+    update_user, update_date
25
+  </sql>
26
+  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
27
+    select 
28
+    <include refid="Base_Column_List" />
29
+    from tp_bill_invoice
30
+    where id = #{id,jdbcType=INTEGER}
31
+  </select>
32
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
33
+    delete from tp_bill_invoice
34
+    where id = #{id,jdbcType=INTEGER}
35
+  </delete>
36
+  <insert id="insert" parameterType="model.TpBillInvoice" >
37
+    insert into tp_bill_invoice (id, community_id, bill_id, 
38
+      building_owner_info_id, ta_user_id, bill_invoice_explain, 
39
+      pay_price, bill_statement_id, bill_status, 
40
+      pay_name, pay_date, create_user, 
41
+      create_date, update_user, update_date
42
+      )
43
+    values (#{id,jdbcType=INTEGER}, #{communityId,jdbcType=INTEGER}, #{billId,jdbcType=INTEGER}, 
44
+      #{buildingOwnerInfoId,jdbcType=INTEGER}, #{taUserId,jdbcType=INTEGER}, #{billInvoiceExplain,jdbcType=VARCHAR}, 
45
+      #{payPrice,jdbcType=INTEGER}, #{billStatementId,jdbcType=INTEGER}, #{billStatus,jdbcType=CHAR}, 
46
+      #{payName,jdbcType=VARCHAR}, #{payDate,jdbcType=TIMESTAMP}, #{createUser,jdbcType=INTEGER}, 
47
+      #{createDate,jdbcType=TIMESTAMP}, #{updateUser,jdbcType=INTEGER}, #{updateDate,jdbcType=TIMESTAMP}
48
+      )
49
+  </insert>
50
+  <insert id="insertSelective" parameterType="model.TpBillInvoice" >
51
+    insert into tp_bill_invoice
52
+    <trim prefix="(" suffix=")" suffixOverrides="," >
53
+      <if test="id != null" >
54
+        id,
55
+      </if>
56
+      <if test="communityId != null" >
57
+        community_id,
58
+      </if>
59
+      <if test="billId != null" >
60
+        bill_id,
61
+      </if>
62
+      <if test="buildingOwnerInfoId != null" >
63
+        building_owner_info_id,
64
+      </if>
65
+      <if test="taUserId != null" >
66
+        ta_user_id,
67
+      </if>
68
+      <if test="billInvoiceExplain != null" >
69
+        bill_invoice_explain,
70
+      </if>
71
+      <if test="payPrice != null" >
72
+        pay_price,
73
+      </if>
74
+      <if test="billStatementId != null" >
75
+        bill_statement_id,
76
+      </if>
77
+      <if test="billStatus != null" >
78
+        bill_status,
79
+      </if>
80
+      <if test="payName != null" >
81
+        pay_name,
82
+      </if>
83
+      <if test="payDate != null" >
84
+        pay_date,
85
+      </if>
86
+      <if test="createUser != null" >
87
+        create_user,
88
+      </if>
89
+      <if test="createDate != null" >
90
+        create_date,
91
+      </if>
92
+      <if test="updateUser != null" >
93
+        update_user,
94
+      </if>
95
+      <if test="updateDate != null" >
96
+        update_date,
97
+      </if>
98
+    </trim>
99
+    <trim prefix="values (" suffix=")" suffixOverrides="," >
100
+      <if test="id != null" >
101
+        #{id,jdbcType=INTEGER},
102
+      </if>
103
+      <if test="communityId != null" >
104
+        #{communityId,jdbcType=INTEGER},
105
+      </if>
106
+      <if test="billId != null" >
107
+        #{billId,jdbcType=INTEGER},
108
+      </if>
109
+      <if test="buildingOwnerInfoId != null" >
110
+        #{buildingOwnerInfoId,jdbcType=INTEGER},
111
+      </if>
112
+      <if test="taUserId != null" >
113
+        #{taUserId,jdbcType=INTEGER},
114
+      </if>
115
+      <if test="billInvoiceExplain != null" >
116
+        #{billInvoiceExplain,jdbcType=VARCHAR},
117
+      </if>
118
+      <if test="payPrice != null" >
119
+        #{payPrice,jdbcType=INTEGER},
120
+      </if>
121
+      <if test="billStatementId != null" >
122
+        #{billStatementId,jdbcType=INTEGER},
123
+      </if>
124
+      <if test="billStatus != null" >
125
+        #{billStatus,jdbcType=CHAR},
126
+      </if>
127
+      <if test="payName != null" >
128
+        #{payName,jdbcType=VARCHAR},
129
+      </if>
130
+      <if test="payDate != null" >
131
+        #{payDate,jdbcType=TIMESTAMP},
132
+      </if>
133
+      <if test="createUser != null" >
134
+        #{createUser,jdbcType=INTEGER},
135
+      </if>
136
+      <if test="createDate != null" >
137
+        #{createDate,jdbcType=TIMESTAMP},
138
+      </if>
139
+      <if test="updateUser != null" >
140
+        #{updateUser,jdbcType=INTEGER},
141
+      </if>
142
+      <if test="updateDate != null" >
143
+        #{updateDate,jdbcType=TIMESTAMP},
144
+      </if>
145
+    </trim>
146
+  </insert>
147
+  <update id="updateByPrimaryKeySelective" parameterType="model.TpBillInvoice" >
148
+    update tp_bill_invoice
149
+    <set >
150
+      <if test="communityId != null" >
151
+        community_id = #{communityId,jdbcType=INTEGER},
152
+      </if>
153
+      <if test="billId != null" >
154
+        bill_id = #{billId,jdbcType=INTEGER},
155
+      </if>
156
+      <if test="buildingOwnerInfoId != null" >
157
+        building_owner_info_id = #{buildingOwnerInfoId,jdbcType=INTEGER},
158
+      </if>
159
+      <if test="taUserId != null" >
160
+        ta_user_id = #{taUserId,jdbcType=INTEGER},
161
+      </if>
162
+      <if test="billInvoiceExplain != null" >
163
+        bill_invoice_explain = #{billInvoiceExplain,jdbcType=VARCHAR},
164
+      </if>
165
+      <if test="payPrice != null" >
166
+        pay_price = #{payPrice,jdbcType=INTEGER},
167
+      </if>
168
+      <if test="billStatementId != null" >
169
+        bill_statement_id = #{billStatementId,jdbcType=INTEGER},
170
+      </if>
171
+      <if test="billStatus != null" >
172
+        bill_status = #{billStatus,jdbcType=CHAR},
173
+      </if>
174
+      <if test="payName != null" >
175
+        pay_name = #{payName,jdbcType=VARCHAR},
176
+      </if>
177
+      <if test="payDate != null" >
178
+        pay_date = #{payDate,jdbcType=TIMESTAMP},
179
+      </if>
180
+      <if test="createUser != null" >
181
+        create_user = #{createUser,jdbcType=INTEGER},
182
+      </if>
183
+      <if test="createDate != null" >
184
+        create_date = #{createDate,jdbcType=TIMESTAMP},
185
+      </if>
186
+      <if test="updateUser != null" >
187
+        update_user = #{updateUser,jdbcType=INTEGER},
188
+      </if>
189
+      <if test="updateDate != null" >
190
+        update_date = #{updateDate,jdbcType=TIMESTAMP},
191
+      </if>
192
+    </set>
193
+    where id = #{id,jdbcType=INTEGER}
194
+  </update>
195
+  <update id="updateByPrimaryKey" parameterType="model.TpBillInvoice" >
196
+    update tp_bill_invoice
197
+    set community_id = #{communityId,jdbcType=INTEGER},
198
+      bill_id = #{billId,jdbcType=INTEGER},
199
+      building_owner_info_id = #{buildingOwnerInfoId,jdbcType=INTEGER},
200
+      ta_user_id = #{taUserId,jdbcType=INTEGER},
201
+      bill_invoice_explain = #{billInvoiceExplain,jdbcType=VARCHAR},
202
+      pay_price = #{payPrice,jdbcType=INTEGER},
203
+      bill_statement_id = #{billStatementId,jdbcType=INTEGER},
204
+      bill_status = #{billStatus,jdbcType=CHAR},
205
+      pay_name = #{payName,jdbcType=VARCHAR},
206
+      pay_date = #{payDate,jdbcType=TIMESTAMP},
207
+      create_user = #{createUser,jdbcType=INTEGER},
208
+      create_date = #{createDate,jdbcType=TIMESTAMP},
209
+      update_user = #{updateUser,jdbcType=INTEGER},
210
+      update_date = #{updateDate,jdbcType=TIMESTAMP}
211
+    where id = #{id,jdbcType=INTEGER}
212
+  </update>
213
+</mapper>

+ 199
- 0
SmartCommunity/mybatisGeneratorCode/src/main/resources/mapper/TpBillMapper.xml Wyświetl plik

@@ -0,0 +1,199 @@
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="dao.TpBillMapper" >
4
+  <resultMap id="BaseResultMap" type="model.TpBill" >
5
+    <id column="id" property="id" jdbcType="INTEGER" />
6
+    <result column="community_id" property="communityId" jdbcType="INTEGER" />
7
+    <result column="bill_name" property="billName" jdbcType="VARCHAR" />
8
+    <result column="bill_explain" property="billExplain" jdbcType="VARCHAR" />
9
+    <result column="pay_price" property="payPrice" jdbcType="CHAR" />
10
+    <result column="pay_total_num" property="payTotalNum" jdbcType="INTEGER" />
11
+    <result column="payed_num" property="payedNum" jdbcType="INTEGER" />
12
+    <result column="unpayed_num" property="unpayedNum" jdbcType="INTEGER" />
13
+    <result column="bill_status" property="billStatus" jdbcType="CHAR" />
14
+    <result column="end_date" property="endDate" jdbcType="TIMESTAMP" />
15
+    <result column="create_user" property="createUser" jdbcType="INTEGER" />
16
+    <result column="create_date" property="createDate" jdbcType="TIMESTAMP" />
17
+    <result column="update_user" property="updateUser" jdbcType="INTEGER" />
18
+    <result column="update_date" property="updateDate" jdbcType="TIMESTAMP" />
19
+  </resultMap>
20
+  <sql id="Base_Column_List" >
21
+    id, community_id, bill_name, bill_explain, pay_price, pay_total_num, payed_num, unpayed_num, 
22
+    bill_status, end_date, create_user, create_date, update_user, update_date
23
+  </sql>
24
+  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
25
+    select 
26
+    <include refid="Base_Column_List" />
27
+    from tp_bill
28
+    where id = #{id,jdbcType=INTEGER}
29
+  </select>
30
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
31
+    delete from tp_bill
32
+    where id = #{id,jdbcType=INTEGER}
33
+  </delete>
34
+  <insert id="insert" parameterType="model.TpBill" >
35
+    insert into tp_bill (id, community_id, bill_name, 
36
+      bill_explain, pay_price, pay_total_num, 
37
+      payed_num, unpayed_num, bill_status, 
38
+      end_date, create_user, create_date, 
39
+      update_user, update_date)
40
+    values (#{id,jdbcType=INTEGER}, #{communityId,jdbcType=INTEGER}, #{billName,jdbcType=VARCHAR}, 
41
+      #{billExplain,jdbcType=VARCHAR}, #{payPrice,jdbcType=CHAR}, #{payTotalNum,jdbcType=INTEGER}, 
42
+      #{payedNum,jdbcType=INTEGER}, #{unpayedNum,jdbcType=INTEGER}, #{billStatus,jdbcType=CHAR}, 
43
+      #{endDate,jdbcType=TIMESTAMP}, #{createUser,jdbcType=INTEGER}, #{createDate,jdbcType=TIMESTAMP}, 
44
+      #{updateUser,jdbcType=INTEGER}, #{updateDate,jdbcType=TIMESTAMP})
45
+  </insert>
46
+  <insert id="insertSelective" parameterType="model.TpBill" >
47
+    insert into tp_bill
48
+    <trim prefix="(" suffix=")" suffixOverrides="," >
49
+      <if test="id != null" >
50
+        id,
51
+      </if>
52
+      <if test="communityId != null" >
53
+        community_id,
54
+      </if>
55
+      <if test="billName != null" >
56
+        bill_name,
57
+      </if>
58
+      <if test="billExplain != null" >
59
+        bill_explain,
60
+      </if>
61
+      <if test="payPrice != null" >
62
+        pay_price,
63
+      </if>
64
+      <if test="payTotalNum != null" >
65
+        pay_total_num,
66
+      </if>
67
+      <if test="payedNum != null" >
68
+        payed_num,
69
+      </if>
70
+      <if test="unpayedNum != null" >
71
+        unpayed_num,
72
+      </if>
73
+      <if test="billStatus != null" >
74
+        bill_status,
75
+      </if>
76
+      <if test="endDate != null" >
77
+        end_date,
78
+      </if>
79
+      <if test="createUser != null" >
80
+        create_user,
81
+      </if>
82
+      <if test="createDate != null" >
83
+        create_date,
84
+      </if>
85
+      <if test="updateUser != null" >
86
+        update_user,
87
+      </if>
88
+      <if test="updateDate != null" >
89
+        update_date,
90
+      </if>
91
+    </trim>
92
+    <trim prefix="values (" suffix=")" suffixOverrides="," >
93
+      <if test="id != null" >
94
+        #{id,jdbcType=INTEGER},
95
+      </if>
96
+      <if test="communityId != null" >
97
+        #{communityId,jdbcType=INTEGER},
98
+      </if>
99
+      <if test="billName != null" >
100
+        #{billName,jdbcType=VARCHAR},
101
+      </if>
102
+      <if test="billExplain != null" >
103
+        #{billExplain,jdbcType=VARCHAR},
104
+      </if>
105
+      <if test="payPrice != null" >
106
+        #{payPrice,jdbcType=CHAR},
107
+      </if>
108
+      <if test="payTotalNum != null" >
109
+        #{payTotalNum,jdbcType=INTEGER},
110
+      </if>
111
+      <if test="payedNum != null" >
112
+        #{payedNum,jdbcType=INTEGER},
113
+      </if>
114
+      <if test="unpayedNum != null" >
115
+        #{unpayedNum,jdbcType=INTEGER},
116
+      </if>
117
+      <if test="billStatus != null" >
118
+        #{billStatus,jdbcType=CHAR},
119
+      </if>
120
+      <if test="endDate != null" >
121
+        #{endDate,jdbcType=TIMESTAMP},
122
+      </if>
123
+      <if test="createUser != null" >
124
+        #{createUser,jdbcType=INTEGER},
125
+      </if>
126
+      <if test="createDate != null" >
127
+        #{createDate,jdbcType=TIMESTAMP},
128
+      </if>
129
+      <if test="updateUser != null" >
130
+        #{updateUser,jdbcType=INTEGER},
131
+      </if>
132
+      <if test="updateDate != null" >
133
+        #{updateDate,jdbcType=TIMESTAMP},
134
+      </if>
135
+    </trim>
136
+  </insert>
137
+  <update id="updateByPrimaryKeySelective" parameterType="model.TpBill" >
138
+    update tp_bill
139
+    <set >
140
+      <if test="communityId != null" >
141
+        community_id = #{communityId,jdbcType=INTEGER},
142
+      </if>
143
+      <if test="billName != null" >
144
+        bill_name = #{billName,jdbcType=VARCHAR},
145
+      </if>
146
+      <if test="billExplain != null" >
147
+        bill_explain = #{billExplain,jdbcType=VARCHAR},
148
+      </if>
149
+      <if test="payPrice != null" >
150
+        pay_price = #{payPrice,jdbcType=CHAR},
151
+      </if>
152
+      <if test="payTotalNum != null" >
153
+        pay_total_num = #{payTotalNum,jdbcType=INTEGER},
154
+      </if>
155
+      <if test="payedNum != null" >
156
+        payed_num = #{payedNum,jdbcType=INTEGER},
157
+      </if>
158
+      <if test="unpayedNum != null" >
159
+        unpayed_num = #{unpayedNum,jdbcType=INTEGER},
160
+      </if>
161
+      <if test="billStatus != null" >
162
+        bill_status = #{billStatus,jdbcType=CHAR},
163
+      </if>
164
+      <if test="endDate != null" >
165
+        end_date = #{endDate,jdbcType=TIMESTAMP},
166
+      </if>
167
+      <if test="createUser != null" >
168
+        create_user = #{createUser,jdbcType=INTEGER},
169
+      </if>
170
+      <if test="createDate != null" >
171
+        create_date = #{createDate,jdbcType=TIMESTAMP},
172
+      </if>
173
+      <if test="updateUser != null" >
174
+        update_user = #{updateUser,jdbcType=INTEGER},
175
+      </if>
176
+      <if test="updateDate != null" >
177
+        update_date = #{updateDate,jdbcType=TIMESTAMP},
178
+      </if>
179
+    </set>
180
+    where id = #{id,jdbcType=INTEGER}
181
+  </update>
182
+  <update id="updateByPrimaryKey" parameterType="model.TpBill" >
183
+    update tp_bill
184
+    set community_id = #{communityId,jdbcType=INTEGER},
185
+      bill_name = #{billName,jdbcType=VARCHAR},
186
+      bill_explain = #{billExplain,jdbcType=VARCHAR},
187
+      pay_price = #{payPrice,jdbcType=CHAR},
188
+      pay_total_num = #{payTotalNum,jdbcType=INTEGER},
189
+      payed_num = #{payedNum,jdbcType=INTEGER},
190
+      unpayed_num = #{unpayedNum,jdbcType=INTEGER},
191
+      bill_status = #{billStatus,jdbcType=CHAR},
192
+      end_date = #{endDate,jdbcType=TIMESTAMP},
193
+      create_user = #{createUser,jdbcType=INTEGER},
194
+      create_date = #{createDate,jdbcType=TIMESTAMP},
195
+      update_user = #{updateUser,jdbcType=INTEGER},
196
+      update_date = #{updateDate,jdbcType=TIMESTAMP}
197
+    where id = #{id,jdbcType=INTEGER}
198
+  </update>
199
+</mapper>

+ 142
- 0
SmartCommunity/mybatisGeneratorCode/src/main/resources/mapper/TpBillStatementMapper.xml Wyświetl plik

@@ -0,0 +1,142 @@
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="dao.TpBillStatementMapper" >
4
+  <resultMap id="BaseResultMap" type="model.TpBillStatement" >
5
+    <id column="id" property="id" jdbcType="INTEGER" />
6
+    <result column="community_id" property="communityId" jdbcType="INTEGER" />
7
+    <result column="bill_invoice_id" property="billInvoiceId" jdbcType="INTEGER" />
8
+    <result column="ta_user_id" property="taUserId" jdbcType="INTEGER" />
9
+    <result column="pay_price" property="payPrice" jdbcType="INTEGER" />
10
+    <result column="pay_name" property="payName" jdbcType="VARCHAR" />
11
+    <result column="pay_remark" property="payRemark" jdbcType="VARCHAR" />
12
+    <result column="pay_type" property="payType" jdbcType="CHAR" />
13
+    <result column="create_time" property="createTime" jdbcType="TIMESTAMP" />
14
+  </resultMap>
15
+  <sql id="Base_Column_List" >
16
+    id, community_id, bill_invoice_id, ta_user_id, pay_price, pay_name, pay_remark, pay_type, 
17
+    create_time
18
+  </sql>
19
+  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
20
+    select 
21
+    <include refid="Base_Column_List" />
22
+    from tp_bill_statement
23
+    where id = #{id,jdbcType=INTEGER}
24
+  </select>
25
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
26
+    delete from tp_bill_statement
27
+    where id = #{id,jdbcType=INTEGER}
28
+  </delete>
29
+  <insert id="insert" parameterType="model.TpBillStatement" >
30
+    insert into tp_bill_statement (id, community_id, bill_invoice_id, 
31
+      ta_user_id, pay_price, pay_name, 
32
+      pay_remark, pay_type, create_time
33
+      )
34
+    values (#{id,jdbcType=INTEGER}, #{communityId,jdbcType=INTEGER}, #{billInvoiceId,jdbcType=INTEGER}, 
35
+      #{taUserId,jdbcType=INTEGER}, #{payPrice,jdbcType=INTEGER}, #{payName,jdbcType=VARCHAR}, 
36
+      #{payRemark,jdbcType=VARCHAR}, #{payType,jdbcType=CHAR}, #{createTime,jdbcType=TIMESTAMP}
37
+      )
38
+  </insert>
39
+  <insert id="insertSelective" parameterType="model.TpBillStatement" >
40
+    insert into tp_bill_statement
41
+    <trim prefix="(" suffix=")" suffixOverrides="," >
42
+      <if test="id != null" >
43
+        id,
44
+      </if>
45
+      <if test="communityId != null" >
46
+        community_id,
47
+      </if>
48
+      <if test="billInvoiceId != null" >
49
+        bill_invoice_id,
50
+      </if>
51
+      <if test="taUserId != null" >
52
+        ta_user_id,
53
+      </if>
54
+      <if test="payPrice != null" >
55
+        pay_price,
56
+      </if>
57
+      <if test="payName != null" >
58
+        pay_name,
59
+      </if>
60
+      <if test="payRemark != null" >
61
+        pay_remark,
62
+      </if>
63
+      <if test="payType != null" >
64
+        pay_type,
65
+      </if>
66
+      <if test="createTime != null" >
67
+        create_time,
68
+      </if>
69
+    </trim>
70
+    <trim prefix="values (" suffix=")" suffixOverrides="," >
71
+      <if test="id != null" >
72
+        #{id,jdbcType=INTEGER},
73
+      </if>
74
+      <if test="communityId != null" >
75
+        #{communityId,jdbcType=INTEGER},
76
+      </if>
77
+      <if test="billInvoiceId != null" >
78
+        #{billInvoiceId,jdbcType=INTEGER},
79
+      </if>
80
+      <if test="taUserId != null" >
81
+        #{taUserId,jdbcType=INTEGER},
82
+      </if>
83
+      <if test="payPrice != null" >
84
+        #{payPrice,jdbcType=INTEGER},
85
+      </if>
86
+      <if test="payName != null" >
87
+        #{payName,jdbcType=VARCHAR},
88
+      </if>
89
+      <if test="payRemark != null" >
90
+        #{payRemark,jdbcType=VARCHAR},
91
+      </if>
92
+      <if test="payType != null" >
93
+        #{payType,jdbcType=CHAR},
94
+      </if>
95
+      <if test="createTime != null" >
96
+        #{createTime,jdbcType=TIMESTAMP},
97
+      </if>
98
+    </trim>
99
+  </insert>
100
+  <update id="updateByPrimaryKeySelective" parameterType="model.TpBillStatement" >
101
+    update tp_bill_statement
102
+    <set >
103
+      <if test="communityId != null" >
104
+        community_id = #{communityId,jdbcType=INTEGER},
105
+      </if>
106
+      <if test="billInvoiceId != null" >
107
+        bill_invoice_id = #{billInvoiceId,jdbcType=INTEGER},
108
+      </if>
109
+      <if test="taUserId != null" >
110
+        ta_user_id = #{taUserId,jdbcType=INTEGER},
111
+      </if>
112
+      <if test="payPrice != null" >
113
+        pay_price = #{payPrice,jdbcType=INTEGER},
114
+      </if>
115
+      <if test="payName != null" >
116
+        pay_name = #{payName,jdbcType=VARCHAR},
117
+      </if>
118
+      <if test="payRemark != null" >
119
+        pay_remark = #{payRemark,jdbcType=VARCHAR},
120
+      </if>
121
+      <if test="payType != null" >
122
+        pay_type = #{payType,jdbcType=CHAR},
123
+      </if>
124
+      <if test="createTime != null" >
125
+        create_time = #{createTime,jdbcType=TIMESTAMP},
126
+      </if>
127
+    </set>
128
+    where id = #{id,jdbcType=INTEGER}
129
+  </update>
130
+  <update id="updateByPrimaryKey" parameterType="model.TpBillStatement" >
131
+    update tp_bill_statement
132
+    set community_id = #{communityId,jdbcType=INTEGER},
133
+      bill_invoice_id = #{billInvoiceId,jdbcType=INTEGER},
134
+      ta_user_id = #{taUserId,jdbcType=INTEGER},
135
+      pay_price = #{payPrice,jdbcType=INTEGER},
136
+      pay_name = #{payName,jdbcType=VARCHAR},
137
+      pay_remark = #{payRemark,jdbcType=VARCHAR},
138
+      pay_type = #{payType,jdbcType=CHAR},
139
+      create_time = #{createTime,jdbcType=TIMESTAMP}
140
+    where id = #{id,jdbcType=INTEGER}
141
+  </update>
142
+</mapper>

+ 139
- 0
SmartCommunity/mybatisGeneratorCode/src/main/resources/mapper/TpSysMenuMapper.xml Wyświetl plik

@@ -0,0 +1,139 @@
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="dao.TpSysMenuMapper" >
4
+  <resultMap id="BaseResultMap" type="model.TpSysMenu" >
5
+    <id column="id" property="id" jdbcType="INTEGER" />
6
+    <result column="community_id" property="communityId" jdbcType="INTEGER" />
7
+    <result column="menu_name" property="menuName" jdbcType="VARCHAR" />
8
+    <result column="menu_url" property="menuUrl" jdbcType="VARCHAR" />
9
+    <result column="menu_icon" property="menuIcon" jdbcType="VARCHAR" />
10
+    <result column="parent_id" property="parentId" jdbcType="INTEGER" />
11
+    <result column="sort" property="sort" jdbcType="INTEGER" />
12
+    <result column="menu_type" property="menuType" jdbcType="CHAR" />
13
+    <result column="status" property="status" jdbcType="CHAR" />
14
+  </resultMap>
15
+  <sql id="Base_Column_List" >
16
+    id, community_id, menu_name, menu_url, menu_icon, parent_id, sort, menu_type, status
17
+  </sql>
18
+  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
19
+    select 
20
+    <include refid="Base_Column_List" />
21
+    from tp_sys_menu
22
+    where id = #{id,jdbcType=INTEGER}
23
+  </select>
24
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
25
+    delete from tp_sys_menu
26
+    where id = #{id,jdbcType=INTEGER}
27
+  </delete>
28
+  <insert id="insert" parameterType="model.TpSysMenu" >
29
+    insert into tp_sys_menu (id, community_id, menu_name, 
30
+      menu_url, menu_icon, parent_id, 
31
+      sort, menu_type, status)
32
+    values (#{id,jdbcType=INTEGER}, #{communityId,jdbcType=INTEGER}, #{menuName,jdbcType=VARCHAR}, 
33
+      #{menuUrl,jdbcType=VARCHAR}, #{menuIcon,jdbcType=VARCHAR}, #{parentId,jdbcType=INTEGER}, 
34
+      #{sort,jdbcType=INTEGER}, #{menuType,jdbcType=CHAR}, #{status,jdbcType=CHAR})
35
+  </insert>
36
+  <insert id="insertSelective" parameterType="model.TpSysMenu" >
37
+    insert into tp_sys_menu
38
+    <trim prefix="(" suffix=")" suffixOverrides="," >
39
+      <if test="id != null" >
40
+        id,
41
+      </if>
42
+      <if test="communityId != null" >
43
+        community_id,
44
+      </if>
45
+      <if test="menuName != null" >
46
+        menu_name,
47
+      </if>
48
+      <if test="menuUrl != null" >
49
+        menu_url,
50
+      </if>
51
+      <if test="menuIcon != null" >
52
+        menu_icon,
53
+      </if>
54
+      <if test="parentId != null" >
55
+        parent_id,
56
+      </if>
57
+      <if test="sort != null" >
58
+        sort,
59
+      </if>
60
+      <if test="menuType != null" >
61
+        menu_type,
62
+      </if>
63
+      <if test="status != null" >
64
+        status,
65
+      </if>
66
+    </trim>
67
+    <trim prefix="values (" suffix=")" suffixOverrides="," >
68
+      <if test="id != null" >
69
+        #{id,jdbcType=INTEGER},
70
+      </if>
71
+      <if test="communityId != null" >
72
+        #{communityId,jdbcType=INTEGER},
73
+      </if>
74
+      <if test="menuName != null" >
75
+        #{menuName,jdbcType=VARCHAR},
76
+      </if>
77
+      <if test="menuUrl != null" >
78
+        #{menuUrl,jdbcType=VARCHAR},
79
+      </if>
80
+      <if test="menuIcon != null" >
81
+        #{menuIcon,jdbcType=VARCHAR},
82
+      </if>
83
+      <if test="parentId != null" >
84
+        #{parentId,jdbcType=INTEGER},
85
+      </if>
86
+      <if test="sort != null" >
87
+        #{sort,jdbcType=INTEGER},
88
+      </if>
89
+      <if test="menuType != null" >
90
+        #{menuType,jdbcType=CHAR},
91
+      </if>
92
+      <if test="status != null" >
93
+        #{status,jdbcType=CHAR},
94
+      </if>
95
+    </trim>
96
+  </insert>
97
+  <update id="updateByPrimaryKeySelective" parameterType="model.TpSysMenu" >
98
+    update tp_sys_menu
99
+    <set >
100
+      <if test="communityId != null" >
101
+        community_id = #{communityId,jdbcType=INTEGER},
102
+      </if>
103
+      <if test="menuName != null" >
104
+        menu_name = #{menuName,jdbcType=VARCHAR},
105
+      </if>
106
+      <if test="menuUrl != null" >
107
+        menu_url = #{menuUrl,jdbcType=VARCHAR},
108
+      </if>
109
+      <if test="menuIcon != null" >
110
+        menu_icon = #{menuIcon,jdbcType=VARCHAR},
111
+      </if>
112
+      <if test="parentId != null" >
113
+        parent_id = #{parentId,jdbcType=INTEGER},
114
+      </if>
115
+      <if test="sort != null" >
116
+        sort = #{sort,jdbcType=INTEGER},
117
+      </if>
118
+      <if test="menuType != null" >
119
+        menu_type = #{menuType,jdbcType=CHAR},
120
+      </if>
121
+      <if test="status != null" >
122
+        status = #{status,jdbcType=CHAR},
123
+      </if>
124
+    </set>
125
+    where id = #{id,jdbcType=INTEGER}
126
+  </update>
127
+  <update id="updateByPrimaryKey" parameterType="model.TpSysMenu" >
128
+    update tp_sys_menu
129
+    set community_id = #{communityId,jdbcType=INTEGER},
130
+      menu_name = #{menuName,jdbcType=VARCHAR},
131
+      menu_url = #{menuUrl,jdbcType=VARCHAR},
132
+      menu_icon = #{menuIcon,jdbcType=VARCHAR},
133
+      parent_id = #{parentId,jdbcType=INTEGER},
134
+      sort = #{sort,jdbcType=INTEGER},
135
+      menu_type = #{menuType,jdbcType=CHAR},
136
+      status = #{status,jdbcType=CHAR}
137
+    where id = #{id,jdbcType=INTEGER}
138
+  </update>
139
+</mapper>

+ 71
- 0
SmartCommunity/mybatisGeneratorCode/src/main/resources/mapper/TpUserCommunityMapper.xml Wyświetl plik

@@ -0,0 +1,71 @@
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="dao.TpUserCommunityMapper" >
4
+  <resultMap id="BaseResultMap" type="model.TpUserCommunity" >
5
+    <id column="id" property="id" jdbcType="INTEGER" />
6
+    <result column="community_id" property="communityId" jdbcType="INTEGER" />
7
+    <result column="tp_user_id" property="tpUserId" jdbcType="INTEGER" />
8
+  </resultMap>
9
+  <sql id="Base_Column_List" >
10
+    id, community_id, tp_user_id
11
+  </sql>
12
+  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
13
+    select 
14
+    <include refid="Base_Column_List" />
15
+    from tp_user_community
16
+    where id = #{id,jdbcType=INTEGER}
17
+  </select>
18
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
19
+    delete from tp_user_community
20
+    where id = #{id,jdbcType=INTEGER}
21
+  </delete>
22
+  <insert id="insert" parameterType="model.TpUserCommunity" >
23
+    insert into tp_user_community (id, community_id, tp_user_id
24
+      )
25
+    values (#{id,jdbcType=INTEGER}, #{communityId,jdbcType=INTEGER}, #{tpUserId,jdbcType=INTEGER}
26
+      )
27
+  </insert>
28
+  <insert id="insertSelective" parameterType="model.TpUserCommunity" >
29
+    insert into tp_user_community
30
+    <trim prefix="(" suffix=")" suffixOverrides="," >
31
+      <if test="id != null" >
32
+        id,
33
+      </if>
34
+      <if test="communityId != null" >
35
+        community_id,
36
+      </if>
37
+      <if test="tpUserId != null" >
38
+        tp_user_id,
39
+      </if>
40
+    </trim>
41
+    <trim prefix="values (" suffix=")" suffixOverrides="," >
42
+      <if test="id != null" >
43
+        #{id,jdbcType=INTEGER},
44
+      </if>
45
+      <if test="communityId != null" >
46
+        #{communityId,jdbcType=INTEGER},
47
+      </if>
48
+      <if test="tpUserId != null" >
49
+        #{tpUserId,jdbcType=INTEGER},
50
+      </if>
51
+    </trim>
52
+  </insert>
53
+  <update id="updateByPrimaryKeySelective" parameterType="model.TpUserCommunity" >
54
+    update tp_user_community
55
+    <set >
56
+      <if test="communityId != null" >
57
+        community_id = #{communityId,jdbcType=INTEGER},
58
+      </if>
59
+      <if test="tpUserId != null" >
60
+        tp_user_id = #{tpUserId,jdbcType=INTEGER},
61
+      </if>
62
+    </set>
63
+    where id = #{id,jdbcType=INTEGER}
64
+  </update>
65
+  <update id="updateByPrimaryKey" parameterType="model.TpUserCommunity" >
66
+    update tp_user_community
67
+    set community_id = #{communityId,jdbcType=INTEGER},
68
+      tp_user_id = #{tpUserId,jdbcType=INTEGER}
69
+    where id = #{id,jdbcType=INTEGER}
70
+  </update>
71
+</mapper>

+ 188
- 0
SmartCommunity/mybatisGeneratorCode/src/main/resources/mapper/TpUserMapper.xml Wyświetl plik

@@ -0,0 +1,188 @@
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="dao.TpUserMapper" >
4
+  <resultMap id="BaseResultMap" type="model.TpUser" >
5
+    <id column="id" property="id" jdbcType="INTEGER" />
6
+    <result column="community_id" property="communityId" jdbcType="INTEGER" />
7
+    <result column="user_name" property="userName" jdbcType="VARCHAR" />
8
+    <result column="login_name" property="loginName" jdbcType="VARCHAR" />
9
+    <result column="login_password" property="loginPassword" jdbcType="VARCHAR" />
10
+    <result column="status" property="status" jdbcType="CHAR" />
11
+    <result column="remark" property="remark" jdbcType="VARCHAR" />
12
+    <result column="email" property="email" jdbcType="VARCHAR" />
13
+    <result column="head_portrait" property="headPortrait" jdbcType="VARCHAR" />
14
+    <result column="create_user" property="createUser" jdbcType="INTEGER" />
15
+    <result column="create_date" property="createDate" jdbcType="TIMESTAMP" />
16
+    <result column="update_user" property="updateUser" jdbcType="INTEGER" />
17
+    <result column="update_date" property="updateDate" jdbcType="TIMESTAMP" />
18
+  </resultMap>
19
+  <sql id="Base_Column_List" >
20
+    id, community_id, user_name, login_name, login_password, status, remark, email, head_portrait, 
21
+    create_user, create_date, update_user, update_date
22
+  </sql>
23
+  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
24
+    select 
25
+    <include refid="Base_Column_List" />
26
+    from tp_user
27
+    where id = #{id,jdbcType=INTEGER}
28
+  </select>
29
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
30
+    delete from tp_user
31
+    where id = #{id,jdbcType=INTEGER}
32
+  </delete>
33
+  <insert id="insert" parameterType="model.TpUser" >
34
+    insert into tp_user (id, community_id, user_name, 
35
+      login_name, login_password, status, 
36
+      remark, email, head_portrait, 
37
+      create_user, create_date, update_user, 
38
+      update_date)
39
+    values (#{id,jdbcType=INTEGER}, #{communityId,jdbcType=INTEGER}, #{userName,jdbcType=VARCHAR}, 
40
+      #{loginName,jdbcType=VARCHAR}, #{loginPassword,jdbcType=VARCHAR}, #{status,jdbcType=CHAR}, 
41
+      #{remark,jdbcType=VARCHAR}, #{email,jdbcType=VARCHAR}, #{headPortrait,jdbcType=VARCHAR}, 
42
+      #{createUser,jdbcType=INTEGER}, #{createDate,jdbcType=TIMESTAMP}, #{updateUser,jdbcType=INTEGER}, 
43
+      #{updateDate,jdbcType=TIMESTAMP})
44
+  </insert>
45
+  <insert id="insertSelective" parameterType="model.TpUser" >
46
+    insert into tp_user
47
+    <trim prefix="(" suffix=")" suffixOverrides="," >
48
+      <if test="id != null" >
49
+        id,
50
+      </if>
51
+      <if test="communityId != null" >
52
+        community_id,
53
+      </if>
54
+      <if test="userName != null" >
55
+        user_name,
56
+      </if>
57
+      <if test="loginName != null" >
58
+        login_name,
59
+      </if>
60
+      <if test="loginPassword != null" >
61
+        login_password,
62
+      </if>
63
+      <if test="status != null" >
64
+        status,
65
+      </if>
66
+      <if test="remark != null" >
67
+        remark,
68
+      </if>
69
+      <if test="email != null" >
70
+        email,
71
+      </if>
72
+      <if test="headPortrait != null" >
73
+        head_portrait,
74
+      </if>
75
+      <if test="createUser != null" >
76
+        create_user,
77
+      </if>
78
+      <if test="createDate != null" >
79
+        create_date,
80
+      </if>
81
+      <if test="updateUser != null" >
82
+        update_user,
83
+      </if>
84
+      <if test="updateDate != null" >
85
+        update_date,
86
+      </if>
87
+    </trim>
88
+    <trim prefix="values (" suffix=")" suffixOverrides="," >
89
+      <if test="id != null" >
90
+        #{id,jdbcType=INTEGER},
91
+      </if>
92
+      <if test="communityId != null" >
93
+        #{communityId,jdbcType=INTEGER},
94
+      </if>
95
+      <if test="userName != null" >
96
+        #{userName,jdbcType=VARCHAR},
97
+      </if>
98
+      <if test="loginName != null" >
99
+        #{loginName,jdbcType=VARCHAR},
100
+      </if>
101
+      <if test="loginPassword != null" >
102
+        #{loginPassword,jdbcType=VARCHAR},
103
+      </if>
104
+      <if test="status != null" >
105
+        #{status,jdbcType=CHAR},
106
+      </if>
107
+      <if test="remark != null" >
108
+        #{remark,jdbcType=VARCHAR},
109
+      </if>
110
+      <if test="email != null" >
111
+        #{email,jdbcType=VARCHAR},
112
+      </if>
113
+      <if test="headPortrait != null" >
114
+        #{headPortrait,jdbcType=VARCHAR},
115
+      </if>
116
+      <if test="createUser != null" >
117
+        #{createUser,jdbcType=INTEGER},
118
+      </if>
119
+      <if test="createDate != null" >
120
+        #{createDate,jdbcType=TIMESTAMP},
121
+      </if>
122
+      <if test="updateUser != null" >
123
+        #{updateUser,jdbcType=INTEGER},
124
+      </if>
125
+      <if test="updateDate != null" >
126
+        #{updateDate,jdbcType=TIMESTAMP},
127
+      </if>
128
+    </trim>
129
+  </insert>
130
+  <update id="updateByPrimaryKeySelective" parameterType="model.TpUser" >
131
+    update tp_user
132
+    <set >
133
+      <if test="communityId != null" >
134
+        community_id = #{communityId,jdbcType=INTEGER},
135
+      </if>
136
+      <if test="userName != null" >
137
+        user_name = #{userName,jdbcType=VARCHAR},
138
+      </if>
139
+      <if test="loginName != null" >
140
+        login_name = #{loginName,jdbcType=VARCHAR},
141
+      </if>
142
+      <if test="loginPassword != null" >
143
+        login_password = #{loginPassword,jdbcType=VARCHAR},
144
+      </if>
145
+      <if test="status != null" >
146
+        status = #{status,jdbcType=CHAR},
147
+      </if>
148
+      <if test="remark != null" >
149
+        remark = #{remark,jdbcType=VARCHAR},
150
+      </if>
151
+      <if test="email != null" >
152
+        email = #{email,jdbcType=VARCHAR},
153
+      </if>
154
+      <if test="headPortrait != null" >
155
+        head_portrait = #{headPortrait,jdbcType=VARCHAR},
156
+      </if>
157
+      <if test="createUser != null" >
158
+        create_user = #{createUser,jdbcType=INTEGER},
159
+      </if>
160
+      <if test="createDate != null" >
161
+        create_date = #{createDate,jdbcType=TIMESTAMP},
162
+      </if>
163
+      <if test="updateUser != null" >
164
+        update_user = #{updateUser,jdbcType=INTEGER},
165
+      </if>
166
+      <if test="updateDate != null" >
167
+        update_date = #{updateDate,jdbcType=TIMESTAMP},
168
+      </if>
169
+    </set>
170
+    where id = #{id,jdbcType=INTEGER}
171
+  </update>
172
+  <update id="updateByPrimaryKey" parameterType="model.TpUser" >
173
+    update tp_user
174
+    set community_id = #{communityId,jdbcType=INTEGER},
175
+      user_name = #{userName,jdbcType=VARCHAR},
176
+      login_name = #{loginName,jdbcType=VARCHAR},
177
+      login_password = #{loginPassword,jdbcType=VARCHAR},
178
+      status = #{status,jdbcType=CHAR},
179
+      remark = #{remark,jdbcType=VARCHAR},
180
+      email = #{email,jdbcType=VARCHAR},
181
+      head_portrait = #{headPortrait,jdbcType=VARCHAR},
182
+      create_user = #{createUser,jdbcType=INTEGER},
183
+      create_date = #{createDate,jdbcType=TIMESTAMP},
184
+      update_user = #{updateUser,jdbcType=INTEGER},
185
+      update_date = #{updateDate,jdbcType=TIMESTAMP}
186
+    where id = #{id,jdbcType=INTEGER}
187
+  </update>
188
+</mapper>

+ 264
- 27
SpringCloudProject/.idea/workspace.xml Wyświetl plik

@@ -2,6 +2,11 @@
2 2
 <project version="4">
3 3
   <component name="ChangeListManager">
4 4
     <list default="true" id="a47c8833-686c-4635-a41f-b85cb4fe0462" name="Default Changelist" comment="">
5
+      <change beforePath="$PROJECT_DIR$/../SmartCommunity/SmartCommunityV1/eureka-client1/pom.xml" beforeDir="false" afterPath="$PROJECT_DIR$/../SmartCommunity/SmartCommunityV1/eureka-client1/pom.xml" afterDir="false" />
6
+      <change beforePath="$PROJECT_DIR$/../SmartCommunity/SmartCommunityV1/eureka-client1/src/main/java/com/example/demo/controller/TestController.java" beforeDir="false" afterPath="$PROJECT_DIR$/../SmartCommunity/SmartCommunityV1/eureka-client1/src/main/java/com/example/demo/controller/TestController.java" afterDir="false" />
7
+      <change beforePath="$PROJECT_DIR$/../SmartCommunity/SmartCommunityV1/eureka-client2/pom.xml" beforeDir="false" afterPath="$PROJECT_DIR$/../SmartCommunity/SmartCommunityV1/eureka-client2/pom.xml" afterDir="false" />
8
+      <change beforePath="$PROJECT_DIR$/../SmartCommunity/SmartCommunityV1/eureka-client2/src/main/java/com/example/demo/controller/TestController.java" beforeDir="false" afterPath="$PROJECT_DIR$/../SmartCommunity/SmartCommunityV1/eureka-client2/src/main/java/com/example/demo/controller/TestController.java" afterDir="false" />
9
+      <change beforePath="$PROJECT_DIR$/../SmartCommunity/SmartCommunityV1/eureka-client2/src/main/resources/bootstrap.yml" beforeDir="false" afterPath="$PROJECT_DIR$/../SmartCommunity/SmartCommunityV1/eureka-client2/src/main/resources/bootstrap.yml" afterDir="false" />
5 10
       <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
6 11
     </list>
7 12
     <ignored path="$PROJECT_DIR$/target/" />
@@ -21,27 +26,28 @@
21 26
     <session id="-1636201268">
22 27
       <usages-collector id="statistics.lifecycle.project">
23 28
         <counts>
24
-          <entry key="project.closed" value="5" />
29
+          <entry key="project.closed" value="7" />
25 30
           <entry key="project.open.time.0" value="2" />
31
+          <entry key="project.open.time.1" value="2" />
26 32
           <entry key="project.open.time.2" value="2" />
27 33
           <entry key="project.open.time.26" value="1" />
28
-          <entry key="project.opened" value="5" />
34
+          <entry key="project.opened" value="7" />
29 35
         </counts>
30 36
       </usages-collector>
31 37
       <usages-collector id="statistics.file.extensions.open">
32 38
         <counts>
33 39
           <entry key="iml" value="2" />
34
-          <entry key="java" value="6" />
35
-          <entry key="properties" value="5" />
36
-          <entry key="xml" value="10" />
40
+          <entry key="java" value="10" />
41
+          <entry key="properties" value="7" />
42
+          <entry key="xml" value="12" />
37 43
         </counts>
38 44
       </usages-collector>
39 45
       <usages-collector id="statistics.file.types.open">
40 46
         <counts>
41 47
           <entry key="IDEA_MODULE" value="2" />
42
-          <entry key="JAVA" value="6" />
43
-          <entry key="Properties" value="5" />
44
-          <entry key="XML" value="10" />
48
+          <entry key="JAVA" value="10" />
49
+          <entry key="Properties" value="7" />
50
+          <entry key="XML" value="12" />
45 51
         </counts>
46 52
       </usages-collector>
47 53
       <usages-collector id="statistics.file.extensions.edit">
@@ -62,15 +68,70 @@
62 68
   </component>
63 69
   <component name="FileEditorManager">
64 70
     <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
71
+      <file pinned="false" current-in-tab="false">
72
+        <entry file="file://$PROJECT_DIR$/eureka-client1/src/main/java/com/example/demo/controller/TestController.java">
73
+          <provider selected="true" editor-type-id="text-editor">
74
+            <state relative-caret-position="144">
75
+              <caret line="12" column="15" selection-start-line="12" selection-start-column="15" selection-end-line="12" selection-end-column="15" />
76
+            </state>
77
+          </provider>
78
+        </entry>
79
+      </file>
80
+      <file pinned="false" current-in-tab="false">
81
+        <entry file="file://$PROJECT_DIR$/eureka-client2/src/main/java/com/example/demo/controller/TestController.java">
82
+          <provider selected="true" editor-type-id="text-editor">
83
+            <state relative-caret-position="144">
84
+              <caret line="12" column="15" selection-start-line="12" selection-start-column="15" selection-end-line="12" selection-end-column="15" />
85
+            </state>
86
+          </provider>
87
+        </entry>
88
+      </file>
89
+      <file pinned="false" current-in-tab="false">
90
+        <entry file="file://$PROJECT_DIR$/eureka-client2/pom.xml">
91
+          <provider selected="true" editor-type-id="text-editor">
92
+            <state>
93
+              <caret column="10" selection-start-column="10" selection-end-column="10" />
94
+            </state>
95
+          </provider>
96
+        </entry>
97
+      </file>
98
+      <file pinned="false" current-in-tab="false">
99
+        <entry file="file://$PROJECT_DIR$/config-client/pom.xml">
100
+          <provider selected="true" editor-type-id="text-editor">
101
+            <state relative-caret-position="529">
102
+              <caret line="45" column="21" lean-forward="true" selection-start-line="36" selection-start-column="8" selection-end-line="45" selection-end-column="21" />
103
+            </state>
104
+          </provider>
105
+        </entry>
106
+      </file>
65 107
       <file pinned="false" current-in-tab="true">
66
-        <entry file="file://$PROJECT_DIR$/pom.xml">
108
+        <entry file="file://$PROJECT_DIR$/config-client/src/main/java/com/example/demo/controller/TestController.java">
109
+          <provider selected="true" editor-type-id="text-editor">
110
+            <state relative-caret-position="324">
111
+              <caret line="27" column="56" lean-forward="true" selection-start-line="27" selection-start-column="4" selection-end-line="27" selection-end-column="56" />
112
+            </state>
113
+          </provider>
114
+        </entry>
115
+      </file>
116
+      <file pinned="false" current-in-tab="false">
117
+        <entry file="file://$PROJECT_DIR$/config-client/src/main/java/com/example/demo/Swagger.java">
67 118
           <provider selected="true" editor-type-id="text-editor">
68
-            <state relative-caret-position="486">
69
-              <caret line="27" column="13" lean-forward="true" selection-start-line="27" selection-start-column="13" selection-end-line="27" selection-end-column="13" />
119
+            <state relative-caret-position="180">
120
+              <caret line="19" column="13" selection-start-line="19" selection-start-column="13" selection-end-line="19" selection-end-column="13" />
70 121
             </state>
71 122
           </provider>
72 123
         </entry>
73 124
       </file>
125
+      <file pinned="false" current-in-tab="false">
126
+        <entry file="file://$PROJECT_DIR$/config-client/src/main/resources/application.properties">
127
+          <provider selected="true" editor-type-id="text-editor" />
128
+        </entry>
129
+      </file>
130
+      <file pinned="false" current-in-tab="false">
131
+        <entry file="file://$PROJECT_DIR$/config-client/src/main/resources/bootstrap.properties">
132
+          <provider selected="true" editor-type-id="text-editor" />
133
+        </entry>
134
+      </file>
74 135
       <file pinned="false" current-in-tab="false">
75 136
         <entry file="file://$PROJECT_DIR$/eureka-sever/eureka-sever.iml">
76 137
           <provider selected="true" editor-type-id="text-editor">
@@ -147,8 +208,6 @@
147 208
     </navigator>
148 209
     <panes>
149 210
       <pane id="PackagesPane" />
150
-      <pane id="Scope" />
151
-      <pane id="AndroidView" />
152 211
       <pane id="ProjectPane">
153 212
         <subPane>
154 213
           <expand>
@@ -156,10 +215,155 @@
156 215
               <item name="spring-cloud" type="b2602c69:ProjectViewProjectNode" />
157 216
               <item name="SpringCloudProject" type="462c0819:PsiDirectoryNode" />
158 217
             </path>
218
+            <path>
219
+              <item name="spring-cloud" type="b2602c69:ProjectViewProjectNode" />
220
+              <item name="SpringCloudProject" type="462c0819:PsiDirectoryNode" />
221
+              <item name="config-client" type="462c0819:PsiDirectoryNode" />
222
+            </path>
223
+            <path>
224
+              <item name="spring-cloud" type="b2602c69:ProjectViewProjectNode" />
225
+              <item name="SpringCloudProject" type="462c0819:PsiDirectoryNode" />
226
+              <item name="config-client" type="462c0819:PsiDirectoryNode" />
227
+              <item name="src" type="462c0819:PsiDirectoryNode" />
228
+            </path>
229
+            <path>
230
+              <item name="spring-cloud" type="b2602c69:ProjectViewProjectNode" />
231
+              <item name="SpringCloudProject" type="462c0819:PsiDirectoryNode" />
232
+              <item name="config-client" type="462c0819:PsiDirectoryNode" />
233
+              <item name="src" type="462c0819:PsiDirectoryNode" />
234
+              <item name="main" type="462c0819:PsiDirectoryNode" />
235
+            </path>
236
+            <path>
237
+              <item name="spring-cloud" type="b2602c69:ProjectViewProjectNode" />
238
+              <item name="SpringCloudProject" type="462c0819:PsiDirectoryNode" />
239
+              <item name="config-client" type="462c0819:PsiDirectoryNode" />
240
+              <item name="src" type="462c0819:PsiDirectoryNode" />
241
+              <item name="main" type="462c0819:PsiDirectoryNode" />
242
+              <item name="java" type="462c0819:PsiDirectoryNode" />
243
+            </path>
244
+            <path>
245
+              <item name="spring-cloud" type="b2602c69:ProjectViewProjectNode" />
246
+              <item name="SpringCloudProject" type="462c0819:PsiDirectoryNode" />
247
+              <item name="config-client" type="462c0819:PsiDirectoryNode" />
248
+              <item name="src" type="462c0819:PsiDirectoryNode" />
249
+              <item name="main" type="462c0819:PsiDirectoryNode" />
250
+              <item name="java" type="462c0819:PsiDirectoryNode" />
251
+              <item name="demo" type="462c0819:PsiDirectoryNode" />
252
+            </path>
253
+            <path>
254
+              <item name="spring-cloud" type="b2602c69:ProjectViewProjectNode" />
255
+              <item name="SpringCloudProject" type="462c0819:PsiDirectoryNode" />
256
+              <item name="config-client" type="462c0819:PsiDirectoryNode" />
257
+              <item name="src" type="462c0819:PsiDirectoryNode" />
258
+              <item name="main" type="462c0819:PsiDirectoryNode" />
259
+              <item name="java" type="462c0819:PsiDirectoryNode" />
260
+              <item name="demo" type="462c0819:PsiDirectoryNode" />
261
+              <item name="controller" type="462c0819:PsiDirectoryNode" />
262
+            </path>
263
+            <path>
264
+              <item name="spring-cloud" type="b2602c69:ProjectViewProjectNode" />
265
+              <item name="SpringCloudProject" type="462c0819:PsiDirectoryNode" />
266
+              <item name="config-client" type="462c0819:PsiDirectoryNode" />
267
+              <item name="src" type="462c0819:PsiDirectoryNode" />
268
+              <item name="main" type="462c0819:PsiDirectoryNode" />
269
+              <item name="resources" type="462c0819:PsiDirectoryNode" />
270
+            </path>
271
+            <path>
272
+              <item name="spring-cloud" type="b2602c69:ProjectViewProjectNode" />
273
+              <item name="SpringCloudProject" type="462c0819:PsiDirectoryNode" />
274
+              <item name="eureka-client1" type="462c0819:PsiDirectoryNode" />
275
+            </path>
276
+            <path>
277
+              <item name="spring-cloud" type="b2602c69:ProjectViewProjectNode" />
278
+              <item name="SpringCloudProject" type="462c0819:PsiDirectoryNode" />
279
+              <item name="eureka-client1" type="462c0819:PsiDirectoryNode" />
280
+              <item name="src" type="462c0819:PsiDirectoryNode" />
281
+            </path>
282
+            <path>
283
+              <item name="spring-cloud" type="b2602c69:ProjectViewProjectNode" />
284
+              <item name="SpringCloudProject" type="462c0819:PsiDirectoryNode" />
285
+              <item name="eureka-client1" type="462c0819:PsiDirectoryNode" />
286
+              <item name="src" type="462c0819:PsiDirectoryNode" />
287
+              <item name="main" type="462c0819:PsiDirectoryNode" />
288
+            </path>
289
+            <path>
290
+              <item name="spring-cloud" type="b2602c69:ProjectViewProjectNode" />
291
+              <item name="SpringCloudProject" type="462c0819:PsiDirectoryNode" />
292
+              <item name="eureka-client1" type="462c0819:PsiDirectoryNode" />
293
+              <item name="src" type="462c0819:PsiDirectoryNode" />
294
+              <item name="main" type="462c0819:PsiDirectoryNode" />
295
+              <item name="java" type="462c0819:PsiDirectoryNode" />
296
+            </path>
297
+            <path>
298
+              <item name="spring-cloud" type="b2602c69:ProjectViewProjectNode" />
299
+              <item name="SpringCloudProject" type="462c0819:PsiDirectoryNode" />
300
+              <item name="eureka-client1" type="462c0819:PsiDirectoryNode" />
301
+              <item name="src" type="462c0819:PsiDirectoryNode" />
302
+              <item name="main" type="462c0819:PsiDirectoryNode" />
303
+              <item name="java" type="462c0819:PsiDirectoryNode" />
304
+              <item name="demo" type="462c0819:PsiDirectoryNode" />
305
+            </path>
306
+            <path>
307
+              <item name="spring-cloud" type="b2602c69:ProjectViewProjectNode" />
308
+              <item name="SpringCloudProject" type="462c0819:PsiDirectoryNode" />
309
+              <item name="eureka-client1" type="462c0819:PsiDirectoryNode" />
310
+              <item name="src" type="462c0819:PsiDirectoryNode" />
311
+              <item name="main" type="462c0819:PsiDirectoryNode" />
312
+              <item name="java" type="462c0819:PsiDirectoryNode" />
313
+              <item name="demo" type="462c0819:PsiDirectoryNode" />
314
+              <item name="controller" type="462c0819:PsiDirectoryNode" />
315
+            </path>
316
+            <path>
317
+              <item name="spring-cloud" type="b2602c69:ProjectViewProjectNode" />
318
+              <item name="SpringCloudProject" type="462c0819:PsiDirectoryNode" />
319
+              <item name="eureka-client2" type="462c0819:PsiDirectoryNode" />
320
+            </path>
321
+            <path>
322
+              <item name="spring-cloud" type="b2602c69:ProjectViewProjectNode" />
323
+              <item name="SpringCloudProject" type="462c0819:PsiDirectoryNode" />
324
+              <item name="eureka-client2" type="462c0819:PsiDirectoryNode" />
325
+              <item name="src" type="462c0819:PsiDirectoryNode" />
326
+            </path>
327
+            <path>
328
+              <item name="spring-cloud" type="b2602c69:ProjectViewProjectNode" />
329
+              <item name="SpringCloudProject" type="462c0819:PsiDirectoryNode" />
330
+              <item name="eureka-client2" type="462c0819:PsiDirectoryNode" />
331
+              <item name="src" type="462c0819:PsiDirectoryNode" />
332
+              <item name="main" type="462c0819:PsiDirectoryNode" />
333
+            </path>
334
+            <path>
335
+              <item name="spring-cloud" type="b2602c69:ProjectViewProjectNode" />
336
+              <item name="SpringCloudProject" type="462c0819:PsiDirectoryNode" />
337
+              <item name="eureka-client2" type="462c0819:PsiDirectoryNode" />
338
+              <item name="src" type="462c0819:PsiDirectoryNode" />
339
+              <item name="main" type="462c0819:PsiDirectoryNode" />
340
+              <item name="java" type="462c0819:PsiDirectoryNode" />
341
+            </path>
342
+            <path>
343
+              <item name="spring-cloud" type="b2602c69:ProjectViewProjectNode" />
344
+              <item name="SpringCloudProject" type="462c0819:PsiDirectoryNode" />
345
+              <item name="eureka-client2" type="462c0819:PsiDirectoryNode" />
346
+              <item name="src" type="462c0819:PsiDirectoryNode" />
347
+              <item name="main" type="462c0819:PsiDirectoryNode" />
348
+              <item name="java" type="462c0819:PsiDirectoryNode" />
349
+              <item name="demo" type="462c0819:PsiDirectoryNode" />
350
+            </path>
351
+            <path>
352
+              <item name="spring-cloud" type="b2602c69:ProjectViewProjectNode" />
353
+              <item name="SpringCloudProject" type="462c0819:PsiDirectoryNode" />
354
+              <item name="eureka-client2" type="462c0819:PsiDirectoryNode" />
355
+              <item name="src" type="462c0819:PsiDirectoryNode" />
356
+              <item name="main" type="462c0819:PsiDirectoryNode" />
357
+              <item name="java" type="462c0819:PsiDirectoryNode" />
358
+              <item name="demo" type="462c0819:PsiDirectoryNode" />
359
+              <item name="controller" type="462c0819:PsiDirectoryNode" />
360
+            </path>
159 361
           </expand>
160 362
           <select />
161 363
         </subPane>
162 364
       </pane>
365
+      <pane id="AndroidView" />
366
+      <pane id="Scope" />
163 367
     </panes>
164 368
   </component>
165 369
   <component name="PropertiesComponent">
@@ -171,7 +375,7 @@
171 375
     <property name="aspect.path.notification.shown" value="true" />
172 376
     <property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1536660067639" />
173 377
     <property name="go.gopath.indexing.explicitly.defined" value="true" />
174
-    <property name="last_opened_file_path" value="$PROJECT_DIR$/../SmartCommunity/SmartCommunityV1" />
378
+    <property name="last_opened_file_path" value="$PROJECT_DIR$" />
175 379
     <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
176 380
     <property name="nodejs_npm_path_reset_for_default_project" value="true" />
177 381
     <property name="project.structure.last.edited" value="Modules" />
@@ -291,11 +495,13 @@
291 495
       <workItem from="1536714149906" duration="3391000" />
292 496
       <workItem from="1536805051414" duration="6077000" />
293 497
       <workItem from="1537237678590" duration="1963000" />
498
+      <workItem from="1538027950276" duration="27000" />
499
+      <workItem from="1538029305016" duration="357000" />
294 500
     </task>
295 501
     <servers />
296 502
   </component>
297 503
   <component name="TimeTrackingManager">
298
-    <option name="totallyTimeSpent" value="18443000" />
504
+    <option name="totallyTimeSpent" value="18827000" />
299 505
   </component>
300 506
   <component name="TodoView">
301 507
     <todo-panel id="selected-file">
@@ -310,7 +516,7 @@
310 516
     <frame x="-7" y="-7" width="2062" height="1126" extended-state="6" />
311 517
     <editor active="true" />
312 518
     <layout>
313
-      <window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.14171657" />
519
+      <window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.14321357" />
314 520
       <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
315 521
       <window_info id="Designer" order="2" />
316 522
       <window_info id="Image Layers" order="3" />
@@ -351,9 +557,6 @@
351 557
     <option name="myLimit" value="2678400000" />
352 558
   </component>
353 559
   <component name="editorHistoryManager">
354
-    <entry file="file://$PROJECT_DIR$/eureka-client2/pom.xml">
355
-      <provider selected="true" editor-type-id="text-editor" />
356
-    </entry>
357 560
     <entry file="file://$PROJECT_DIR$/eureka-sever/src/main/resources/application.properties">
358 561
       <provider selected="true" editor-type-id="text-editor" />
359 562
     </entry>
@@ -412,24 +615,24 @@
412 615
         </state>
413 616
       </provider>
414 617
     </entry>
415
-    <entry file="file://$PROJECT_DIR$/eureka-client2/src/main/java/com/example/demo/controller/TestController.java">
618
+    <entry file="file://$PROJECT_DIR$/pom.xml">
416 619
       <provider selected="true" editor-type-id="text-editor">
417
-        <state relative-caret-position="184">
418
-          <caret line="12" column="15" lean-forward="true" selection-start-line="12" selection-start-column="15" selection-end-line="12" selection-end-column="15" />
620
+        <state relative-caret-position="486">
621
+          <caret line="27" column="13" selection-start-line="27" selection-start-column="13" selection-end-line="27" selection-end-column="13" />
419 622
         </state>
420 623
       </provider>
421 624
     </entry>
422 625
     <entry file="file://$PROJECT_DIR$/eureka-client1/src/main/java/com/example/demo/controller/TestController.java">
423 626
       <provider selected="true" editor-type-id="text-editor">
424
-        <state relative-caret-position="184">
425
-          <caret line="12" column="15" lean-forward="true" selection-start-line="12" selection-start-column="15" selection-end-line="12" selection-end-column="15" />
627
+        <state relative-caret-position="144">
628
+          <caret line="12" column="15" selection-start-line="12" selection-start-column="15" selection-end-line="12" selection-end-column="15" />
426 629
         </state>
427 630
       </provider>
428 631
     </entry>
429
-    <entry file="file://$PROJECT_DIR$/pom.xml">
632
+    <entry file="file://$PROJECT_DIR$/eureka-client2/src/main/java/com/example/demo/controller/TestController.java">
430 633
       <provider selected="true" editor-type-id="text-editor">
431
-        <state relative-caret-position="486">
432
-          <caret line="27" column="13" lean-forward="true" selection-start-line="27" selection-start-column="13" selection-end-line="27" selection-end-column="13" />
634
+        <state relative-caret-position="144">
635
+          <caret line="12" column="15" selection-start-line="12" selection-start-column="15" selection-end-line="12" selection-end-column="15" />
433 636
         </state>
434 637
       </provider>
435 638
     </entry>
@@ -447,6 +650,40 @@
447 650
         </state>
448 651
       </provider>
449 652
     </entry>
653
+    <entry file="file://$PROJECT_DIR$/eureka-client2/pom.xml">
654
+      <provider selected="true" editor-type-id="text-editor">
655
+        <state>
656
+          <caret column="10" selection-start-column="10" selection-end-column="10" />
657
+        </state>
658
+      </provider>
659
+    </entry>
660
+    <entry file="file://$PROJECT_DIR$/config-client/src/main/java/com/example/demo/Swagger.java">
661
+      <provider selected="true" editor-type-id="text-editor">
662
+        <state relative-caret-position="180">
663
+          <caret line="19" column="13" selection-start-line="19" selection-start-column="13" selection-end-line="19" selection-end-column="13" />
664
+        </state>
665
+      </provider>
666
+    </entry>
667
+    <entry file="file://$PROJECT_DIR$/config-client/src/main/resources/application.properties">
668
+      <provider selected="true" editor-type-id="text-editor" />
669
+    </entry>
670
+    <entry file="file://$PROJECT_DIR$/config-client/src/main/resources/bootstrap.properties">
671
+      <provider selected="true" editor-type-id="text-editor" />
672
+    </entry>
673
+    <entry file="file://$PROJECT_DIR$/config-client/pom.xml">
674
+      <provider selected="true" editor-type-id="text-editor">
675
+        <state relative-caret-position="529">
676
+          <caret line="45" column="21" lean-forward="true" selection-start-line="36" selection-start-column="8" selection-end-line="45" selection-end-column="21" />
677
+        </state>
678
+      </provider>
679
+    </entry>
680
+    <entry file="file://$PROJECT_DIR$/config-client/src/main/java/com/example/demo/controller/TestController.java">
681
+      <provider selected="true" editor-type-id="text-editor">
682
+        <state relative-caret-position="324">
683
+          <caret line="27" column="56" lean-forward="true" selection-start-line="27" selection-start-column="4" selection-end-line="27" selection-end-column="56" />
684
+        </state>
685
+      </provider>
686
+    </entry>
450 687
   </component>
451 688
   <component name="masterDetails">
452 689
     <states>

+ 25
- 0
wxdemo/.gitignore Wyświetl plik

@@ -0,0 +1,25 @@
1
+/target/
2
+!.mvn/wrapper/maven-wrapper.jar
3
+
4
+### STS ###
5
+.apt_generated
6
+.classpath
7
+.factorypath
8
+.project
9
+.settings
10
+.springBeans
11
+.sts4-cache
12
+
13
+### IntelliJ IDEA ###
14
+.idea
15
+*.iws
16
+*.iml
17
+*.ipr
18
+
19
+### NetBeans ###
20
+/nbproject/private/
21
+/build/
22
+/nbbuild/
23
+/dist/
24
+/nbdist/
25
+/.nb-gradle/

BIN
wxdemo/.mvn/wrapper/maven-wrapper.jar Wyświetl plik


+ 1
- 0
wxdemo/.mvn/wrapper/maven-wrapper.properties Wyświetl plik

@@ -0,0 +1 @@
1
+distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.5.4/apache-maven-3.5.4-bin.zip

+ 286
- 0
wxdemo/mvnw Wyświetl plik

@@ -0,0 +1,286 @@
1
+#!/bin/sh
2
+# ----------------------------------------------------------------------------
3
+# Licensed to the Apache Software Foundation (ASF) under one
4
+# or more contributor license agreements.  See the NOTICE file
5
+# distributed with this work for additional information
6
+# regarding copyright ownership.  The ASF licenses this file
7
+# to you under the Apache License, Version 2.0 (the
8
+# "License"); you may not use this file except in compliance
9
+# with the License.  You may obtain a copy of the License at
10
+#
11
+#    http://www.apache.org/licenses/LICENSE-2.0
12
+#
13
+# Unless required by applicable law or agreed to in writing,
14
+# software distributed under the License is distributed on an
15
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16
+# KIND, either express or implied.  See the License for the
17
+# specific language governing permissions and limitations
18
+# under the License.
19
+# ----------------------------------------------------------------------------
20
+
21
+# ----------------------------------------------------------------------------
22
+# Maven2 Start Up Batch script
23
+#
24
+# Required ENV vars:
25
+# ------------------
26
+#   JAVA_HOME - location of a JDK home dir
27
+#
28
+# Optional ENV vars
29
+# -----------------
30
+#   M2_HOME - location of maven2's installed home dir
31
+#   MAVEN_OPTS - parameters passed to the Java VM when running Maven
32
+#     e.g. to debug Maven itself, use
33
+#       set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
34
+#   MAVEN_SKIP_RC - flag to disable loading of mavenrc files
35
+# ----------------------------------------------------------------------------
36
+
37
+if [ -z "$MAVEN_SKIP_RC" ] ; then
38
+
39
+  if [ -f /etc/mavenrc ] ; then
40
+    . /etc/mavenrc
41
+  fi
42
+
43
+  if [ -f "$HOME/.mavenrc" ] ; then
44
+    . "$HOME/.mavenrc"
45
+  fi
46
+
47
+fi
48
+
49
+# OS specific support.  $var _must_ be set to either true or false.
50
+cygwin=false;
51
+darwin=false;
52
+mingw=false
53
+case "`uname`" in
54
+  CYGWIN*) cygwin=true ;;
55
+  MINGW*) mingw=true;;
56
+  Darwin*) darwin=true
57
+    # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home
58
+    # See https://developer.apple.com/library/mac/qa/qa1170/_index.html
59
+    if [ -z "$JAVA_HOME" ]; then
60
+      if [ -x "/usr/libexec/java_home" ]; then
61
+        export JAVA_HOME="`/usr/libexec/java_home`"
62
+      else
63
+        export JAVA_HOME="/Library/Java/Home"
64
+      fi
65
+    fi
66
+    ;;
67
+esac
68
+
69
+if [ -z "$JAVA_HOME" ] ; then
70
+  if [ -r /etc/gentoo-release ] ; then
71
+    JAVA_HOME=`java-config --jre-home`
72
+  fi
73
+fi
74
+
75
+if [ -z "$M2_HOME" ] ; then
76
+  ## resolve links - $0 may be a link to maven's home
77
+  PRG="$0"
78
+
79
+  # need this for relative symlinks
80
+  while [ -h "$PRG" ] ; do
81
+    ls=`ls -ld "$PRG"`
82
+    link=`expr "$ls" : '.*-> \(.*\)$'`
83
+    if expr "$link" : '/.*' > /dev/null; then
84
+      PRG="$link"
85
+    else
86
+      PRG="`dirname "$PRG"`/$link"
87
+    fi
88
+  done
89
+
90
+  saveddir=`pwd`
91
+
92
+  M2_HOME=`dirname "$PRG"`/..
93
+
94
+  # make it fully qualified
95
+  M2_HOME=`cd "$M2_HOME" && pwd`
96
+
97
+  cd "$saveddir"
98
+  # echo Using m2 at $M2_HOME
99
+fi
100
+
101
+# For Cygwin, ensure paths are in UNIX format before anything is touched
102
+if $cygwin ; then
103
+  [ -n "$M2_HOME" ] &&
104
+    M2_HOME=`cygpath --unix "$M2_HOME"`
105
+  [ -n "$JAVA_HOME" ] &&
106
+    JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
107
+  [ -n "$CLASSPATH" ] &&
108
+    CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
109
+fi
110
+
111
+# For Mingw, ensure paths are in UNIX format before anything is touched
112
+if $mingw ; then
113
+  [ -n "$M2_HOME" ] &&
114
+    M2_HOME="`(cd "$M2_HOME"; pwd)`"
115
+  [ -n "$JAVA_HOME" ] &&
116
+    JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`"
117
+  # TODO classpath?
118
+fi
119
+
120
+if [ -z "$JAVA_HOME" ]; then
121
+  javaExecutable="`which javac`"
122
+  if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then
123
+    # readlink(1) is not available as standard on Solaris 10.
124
+    readLink=`which readlink`
125
+    if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then
126
+      if $darwin ; then
127
+        javaHome="`dirname \"$javaExecutable\"`"
128
+        javaExecutable="`cd \"$javaHome\" && pwd -P`/javac"
129
+      else
130
+        javaExecutable="`readlink -f \"$javaExecutable\"`"
131
+      fi
132
+      javaHome="`dirname \"$javaExecutable\"`"
133
+      javaHome=`expr "$javaHome" : '\(.*\)/bin'`
134
+      JAVA_HOME="$javaHome"
135
+      export JAVA_HOME
136
+    fi
137
+  fi
138
+fi
139
+
140
+if [ -z "$JAVACMD" ] ; then
141
+  if [ -n "$JAVA_HOME"  ] ; then
142
+    if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
143
+      # IBM's JDK on AIX uses strange locations for the executables
144
+      JAVACMD="$JAVA_HOME/jre/sh/java"
145
+    else
146
+      JAVACMD="$JAVA_HOME/bin/java"
147
+    fi
148
+  else
149
+    JAVACMD="`which java`"
150
+  fi
151
+fi
152
+
153
+if [ ! -x "$JAVACMD" ] ; then
154
+  echo "Error: JAVA_HOME is not defined correctly." >&2
155
+  echo "  We cannot execute $JAVACMD" >&2
156
+  exit 1
157
+fi
158
+
159
+if [ -z "$JAVA_HOME" ] ; then
160
+  echo "Warning: JAVA_HOME environment variable is not set."
161
+fi
162
+
163
+CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher
164
+
165
+# traverses directory structure from process work directory to filesystem root
166
+# first directory with .mvn subdirectory is considered project base directory
167
+find_maven_basedir() {
168
+
169
+  if [ -z "$1" ]
170
+  then
171
+    echo "Path not specified to find_maven_basedir"
172
+    return 1
173
+  fi
174
+
175
+  basedir="$1"
176
+  wdir="$1"
177
+  while [ "$wdir" != '/' ] ; do
178
+    if [ -d "$wdir"/.mvn ] ; then
179
+      basedir=$wdir
180
+      break
181
+    fi
182
+    # workaround for JBEAP-8937 (on Solaris 10/Sparc)
183
+    if [ -d "${wdir}" ]; then
184
+      wdir=`cd "$wdir/.."; pwd`
185
+    fi
186
+    # end of workaround
187
+  done
188
+  echo "${basedir}"
189
+}
190
+
191
+# concatenates all lines of a file
192
+concat_lines() {
193
+  if [ -f "$1" ]; then
194
+    echo "$(tr -s '\n' ' ' < "$1")"
195
+  fi
196
+}
197
+
198
+BASE_DIR=`find_maven_basedir "$(pwd)"`
199
+if [ -z "$BASE_DIR" ]; then
200
+  exit 1;
201
+fi
202
+
203
+##########################################################################################
204
+# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
205
+# This allows using the maven wrapper in projects that prohibit checking in binary data.
206
+##########################################################################################
207
+if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then
208
+    if [ "$MVNW_VERBOSE" = true ]; then
209
+      echo "Found .mvn/wrapper/maven-wrapper.jar"
210
+    fi
211
+else
212
+    if [ "$MVNW_VERBOSE" = true ]; then
213
+      echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..."
214
+    fi
215
+    jarUrl="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.2/maven-wrapper-0.4.2.jar"
216
+    while IFS="=" read key value; do
217
+      case "$key" in (wrapperUrl) jarUrl="$value"; break ;;
218
+      esac
219
+    done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties"
220
+    if [ "$MVNW_VERBOSE" = true ]; then
221
+      echo "Downloading from: $jarUrl"
222
+    fi
223
+    wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar"
224
+
225
+    if command -v wget > /dev/null; then
226
+        if [ "$MVNW_VERBOSE" = true ]; then
227
+          echo "Found wget ... using wget"
228
+        fi
229
+        wget "$jarUrl" -O "$wrapperJarPath"
230
+    elif command -v curl > /dev/null; then
231
+        if [ "$MVNW_VERBOSE" = true ]; then
232
+          echo "Found curl ... using curl"
233
+        fi
234
+        curl -o "$wrapperJarPath" "$jarUrl"
235
+    else
236
+        if [ "$MVNW_VERBOSE" = true ]; then
237
+          echo "Falling back to using Java to download"
238
+        fi
239
+        javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java"
240
+        if [ -e "$javaClass" ]; then
241
+            if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
242
+                if [ "$MVNW_VERBOSE" = true ]; then
243
+                  echo " - Compiling MavenWrapperDownloader.java ..."
244
+                fi
245
+                # Compiling the Java class
246
+                ("$JAVA_HOME/bin/javac" "$javaClass")
247
+            fi
248
+            if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
249
+                # Running the downloader
250
+                if [ "$MVNW_VERBOSE" = true ]; then
251
+                  echo " - Running MavenWrapperDownloader.java ..."
252
+                fi
253
+                ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR")
254
+            fi
255
+        fi
256
+    fi
257
+fi
258
+##########################################################################################
259
+# End of extension
260
+##########################################################################################
261
+
262
+export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"}
263
+if [ "$MVNW_VERBOSE" = true ]; then
264
+  echo $MAVEN_PROJECTBASEDIR
265
+fi
266
+MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS"
267
+
268
+# For Cygwin, switch paths to Windows format before running java
269
+if $cygwin; then
270
+  [ -n "$M2_HOME" ] &&
271
+    M2_HOME=`cygpath --path --windows "$M2_HOME"`
272
+  [ -n "$JAVA_HOME" ] &&
273
+    JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
274
+  [ -n "$CLASSPATH" ] &&
275
+    CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
276
+  [ -n "$MAVEN_PROJECTBASEDIR" ] &&
277
+    MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"`
278
+fi
279
+
280
+WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
281
+
282
+exec "$JAVACMD" \
283
+  $MAVEN_OPTS \
284
+  -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \
285
+  "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \
286
+  ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@"

+ 161
- 0
wxdemo/mvnw.cmd Wyświetl plik

@@ -0,0 +1,161 @@
1
+@REM ----------------------------------------------------------------------------
2
+@REM Licensed to the Apache Software Foundation (ASF) under one
3
+@REM or more contributor license agreements.  See the NOTICE file
4
+@REM distributed with this work for additional information
5
+@REM regarding copyright ownership.  The ASF licenses this file
6
+@REM to you under the Apache License, Version 2.0 (the
7
+@REM "License"); you may not use this file except in compliance
8
+@REM with the License.  You may obtain a copy of the License at
9
+@REM
10
+@REM    http://www.apache.org/licenses/LICENSE-2.0
11
+@REM
12
+@REM Unless required by applicable law or agreed to in writing,
13
+@REM software distributed under the License is distributed on an
14
+@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
+@REM KIND, either express or implied.  See the License for the
16
+@REM specific language governing permissions and limitations
17
+@REM under the License.
18
+@REM ----------------------------------------------------------------------------
19
+
20
+@REM ----------------------------------------------------------------------------
21
+@REM Maven2 Start Up Batch script
22
+@REM
23
+@REM Required ENV vars:
24
+@REM JAVA_HOME - location of a JDK home dir
25
+@REM
26
+@REM Optional ENV vars
27
+@REM M2_HOME - location of maven2's installed home dir
28
+@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands
29
+@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending
30
+@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven
31
+@REM     e.g. to debug Maven itself, use
32
+@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
33
+@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files
34
+@REM ----------------------------------------------------------------------------
35
+
36
+@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on'
37
+@echo off
38
+@REM set title of command window
39
+title %0
40
+@REM enable echoing my setting MAVEN_BATCH_ECHO to 'on'
41
+@if "%MAVEN_BATCH_ECHO%" == "on"  echo %MAVEN_BATCH_ECHO%
42
+
43
+@REM set %HOME% to equivalent of $HOME
44
+if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%")
45
+
46
+@REM Execute a user defined script before this one
47
+if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre
48
+@REM check for pre script, once with legacy .bat ending and once with .cmd ending
49
+if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat"
50
+if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd"
51
+:skipRcPre
52
+
53
+@setlocal
54
+
55
+set ERROR_CODE=0
56
+
57
+@REM To isolate internal variables from possible post scripts, we use another setlocal
58
+@setlocal
59
+
60
+@REM ==== START VALIDATION ====
61
+if not "%JAVA_HOME%" == "" goto OkJHome
62
+
63
+echo.
64
+echo Error: JAVA_HOME not found in your environment. >&2
65
+echo Please set the JAVA_HOME variable in your environment to match the >&2
66
+echo location of your Java installation. >&2
67
+echo.
68
+goto error
69
+
70
+:OkJHome
71
+if exist "%JAVA_HOME%\bin\java.exe" goto init
72
+
73
+echo.
74
+echo Error: JAVA_HOME is set to an invalid directory. >&2
75
+echo JAVA_HOME = "%JAVA_HOME%" >&2
76
+echo Please set the JAVA_HOME variable in your environment to match the >&2
77
+echo location of your Java installation. >&2
78
+echo.
79
+goto error
80
+
81
+@REM ==== END VALIDATION ====
82
+
83
+:init
84
+
85
+@REM Find the project base dir, i.e. the directory that contains the folder ".mvn".
86
+@REM Fallback to current working directory if not found.
87
+
88
+set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR%
89
+IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir
90
+
91
+set EXEC_DIR=%CD%
92
+set WDIR=%EXEC_DIR%
93
+:findBaseDir
94
+IF EXIST "%WDIR%"\.mvn goto baseDirFound
95
+cd ..
96
+IF "%WDIR%"=="%CD%" goto baseDirNotFound
97
+set WDIR=%CD%
98
+goto findBaseDir
99
+
100
+:baseDirFound
101
+set MAVEN_PROJECTBASEDIR=%WDIR%
102
+cd "%EXEC_DIR%"
103
+goto endDetectBaseDir
104
+
105
+:baseDirNotFound
106
+set MAVEN_PROJECTBASEDIR=%EXEC_DIR%
107
+cd "%EXEC_DIR%"
108
+
109
+:endDetectBaseDir
110
+
111
+IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig
112
+
113
+@setlocal EnableExtensions EnableDelayedExpansion
114
+for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a
115
+@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS%
116
+
117
+:endReadAdditionalConfig
118
+
119
+SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe"
120
+set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar"
121
+set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
122
+
123
+set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.2/maven-wrapper-0.4.2.jar"
124
+FOR /F "tokens=1,2 delims==" %%A IN (%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties) DO (
125
+	IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B 
126
+)
127
+
128
+@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
129
+@REM This allows using the maven wrapper in projects that prohibit checking in binary data.
130
+if exist %WRAPPER_JAR% (
131
+    echo Found %WRAPPER_JAR%
132
+) else (
133
+    echo Couldn't find %WRAPPER_JAR%, downloading it ...
134
+	echo Downloading from: %DOWNLOAD_URL%
135
+    powershell -Command "(New-Object Net.WebClient).DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"
136
+    echo Finished downloading %WRAPPER_JAR%
137
+)
138
+@REM End of extension
139
+
140
+%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %*
141
+if ERRORLEVEL 1 goto error
142
+goto end
143
+
144
+:error
145
+set ERROR_CODE=1
146
+
147
+:end
148
+@endlocal & set ERROR_CODE=%ERROR_CODE%
149
+
150
+if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost
151
+@REM check for post script, once with legacy .bat ending and once with .cmd ending
152
+if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat"
153
+if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd"
154
+:skipRcPost
155
+
156
+@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on'
157
+if "%MAVEN_BATCH_PAUSE%" == "on" pause
158
+
159
+if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE%
160
+
161
+exit /B %ERROR_CODE%

+ 49
- 0
wxdemo/pom.xml Wyświetl plik

@@ -0,0 +1,49 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3
+	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4
+	<modelVersion>4.0.0</modelVersion>
5
+	<parent>
6
+		<groupId>org.springframework.boot</groupId>
7
+		<artifactId>spring-boot-starter-parent</artifactId>
8
+		<version>2.1.1.RELEASE</version>
9
+		<relativePath/> <!-- lookup parent from repository -->
10
+	</parent>
11
+	<groupId>com.example</groupId>
12
+	<artifactId>demo</artifactId>
13
+	<version>0.0.1-SNAPSHOT</version>
14
+	<packaging>jar</packaging>
15
+	<name>demo</name>
16
+	<description>Demo project for Spring Boot</description>
17
+
18
+	<properties>
19
+		<java.version>1.8</java.version>
20
+	</properties>
21
+
22
+	<dependencies>
23
+		<dependency>
24
+			<groupId>org.springframework.boot</groupId>
25
+			<artifactId>spring-boot-starter-thymeleaf</artifactId>
26
+		</dependency>
27
+		<dependency>
28
+			<groupId>org.springframework.boot</groupId>
29
+			<artifactId>spring-boot-starter-web</artifactId>
30
+		</dependency>
31
+
32
+		<dependency>
33
+			<groupId>org.springframework.boot</groupId>
34
+			<artifactId>spring-boot-starter-test</artifactId>
35
+			<scope>test</scope>
36
+		</dependency>
37
+	</dependencies>
38
+
39
+	<build>
40
+		<plugins>
41
+			<plugin>
42
+				<groupId>org.springframework.boot</groupId>
43
+				<artifactId>spring-boot-maven-plugin</artifactId>
44
+			</plugin>
45
+		</plugins>
46
+	</build>
47
+
48
+
49
+</project>

+ 12
- 0
wxdemo/src/main/java/com/example/demo/DemoApplication.java Wyświetl plik

@@ -0,0 +1,12 @@
1
+package com.example.demo;
2
+
3
+import org.springframework.boot.SpringApplication;
4
+import org.springframework.boot.autoconfigure.SpringBootApplication;
5
+
6
+@SpringBootApplication
7
+public class DemoApplication {
8
+
9
+	public static void main(String[] args) {
10
+		SpringApplication.run(DemoApplication.class, args);
11
+	}
12
+}

+ 37
- 0
wxdemo/src/main/java/com/example/demo/controller/IndexController.java Wyświetl plik

@@ -0,0 +1,37 @@
1
+package com.example.demo.controller;
2
+
3
+import com.example.demo.wxutil.WxUtils;
4
+import org.springframework.stereotype.Controller;
5
+import org.springframework.web.bind.annotation.RequestMapping;
6
+import org.springframework.web.bind.annotation.RequestParam;
7
+
8
+import java.util.HashMap;
9
+import java.util.Map;
10
+
11
+/**
12
+ * @author FXF
13
+ * @date 2018-12-07
14
+ */
15
+@Controller
16
+public class IndexController {
17
+	
18
+	@RequestMapping("/hello")
19
+	public String helloHtml(HashMap<String, Object> map) {
20
+		//String result = WxUtils.getAccessToken("wx00a5778cb013ded9","34c67b5e0797547f5c1391e7050a9296");
21
+		//System.out.println(result);
22
+		map.put("hello", "欢迎进入HTML页面");
23
+		return "/index";
24
+	}
25
+	
26
+	@RequestMapping("/test")
27
+	public String testHtml(@RequestParam String code) {
28
+		HashMap<String, Object> map = new HashMap<>();
29
+		System.out.println(code);
30
+		map.put("code",code);
31
+		//获取openid
32
+		String result = WxUtils.getOpenidByCode("wx00a5778cb013ded9","34c67b5e0797547f5c1391e7050a9296",code);
33
+		System.out.println(result);
34
+		//刷新accessToken
35
+		return "/test";
36
+	}
37
+}

+ 62
- 0
wxdemo/src/main/java/com/example/demo/wxutil/WxUtils.java Wyświetl plik

@@ -0,0 +1,62 @@
1
+package com.example.demo.wxutil;
2
+
3
+import org.springframework.web.client.RestTemplate;
4
+
5
+import java.util.HashMap;
6
+import java.util.Map;
7
+
8
+/**
9
+ * @author FXF
10
+ * @date 2018-12-06
11
+ */
12
+public class WxUtils {
13
+	
14
+	/**
15
+	 * 获取微信的access_token
16
+	 * @param appid
17
+	 * @param secret
18
+	 * @return
19
+	 */
20
+	public static String getAccessToken(String appid,String secret) {
21
+		RestTemplate restTemplate = new RestTemplate();
22
+		Map<String,Object> params = new HashMap<>();
23
+		params.put("appid",appid);
24
+		params.put("secret",secret);
25
+		return restTemplate.getForObject("https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid={appid}&secret={secret}",String.class,params);
26
+	}
27
+	
28
+	/**
29
+	 * 网页授权根据code获取openid
30
+	 * @param appid
31
+	 * @param secret
32
+	 * @param code
33
+	 * @return
34
+	 */
35
+	public static String getOpenidByCode(String appid, String secret, String code) {
36
+		RestTemplate restTemplate = new RestTemplate();
37
+		Map<String,Object> params = new HashMap<>();
38
+		params.put("appid",appid);
39
+		params.put("secret",secret);
40
+		params.put("code",code);
41
+		return restTemplate.getForObject("https://api.weixin.qq.com/sns/oauth2/access_token?appid={appid}&secret={secret}&code={code}&grant_type=authorization_code",String.class,params);
42
+	}
43
+	
44
+	/**
45
+	 * 网页授权根据openid和access_token获取用户信息
46
+	 * @param accessToken
47
+	 * @param openid
48
+	 * @return
49
+	 */
50
+	public static String getUserInfo(String accessToken, String openid) {
51
+		RestTemplate restTemplate = new RestTemplate();
52
+		Map<String,Object> params = new HashMap<>();
53
+		params.put("accessToken",accessToken);
54
+		params.put("openid",openid);
55
+		return restTemplate.getForObject("https://api.weixin.qq.com/sns/userinfo?access_token={accessToken}&openid={openid}&lang=zh_CN",String.class,params);
56
+	}
57
+	
58
+	public static void main(String[] args) {
59
+		String result = WxUtils.getUserInfo("16_1WMxSvI3adScflB58Hhd2Uxk2QBGsTKGWeF6jLuWZdxylSfFL69kO_ISggOizI3XN2ORT66smyM6l2LSHeWbvzUGLa48dGu2SXfpNe9-woU","o-V1h1mUfllsP7F3wziroLF9Yjyk");
60
+		System.out.println(result);
61
+	}
62
+}

+ 5
- 0
wxdemo/src/main/resources/application.yml Wyświetl plik

@@ -0,0 +1,5 @@
1
+server:
2
+  port: 9999
3
+spring:
4
+  thymeleaf:
5
+    prefix: classpath:/templates/

+ 14
- 0
wxdemo/src/main/resources/templates/index.html Wyświetl plik

@@ -0,0 +1,14 @@
1
+<!DOCTYPE html>
2
+<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
3
+<head>
4
+    <meta charset="UTF-8"/>
5
+    <title>第一个HTML页面</title>
6
+</head>
7
+<body>
8
+<h1>Hello Spring Boot!!!</h1>
9
+<p th:text="${hello}"></p>
10
+</body>
11
+<script language="javascript" type="text/javascript">
12
+    window.location.href='https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx00a5778cb013ded9&redirect_uri=https://6179f61d.ngrok.io/test&response_type=code&scope=snsapi_userinfo&state=STATE';
13
+</script>
14
+</html>

+ 11
- 0
wxdemo/src/main/resources/templates/test.html Wyświetl plik

@@ -0,0 +1,11 @@
1
+<!DOCTYPE html>
2
+<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
3
+<head>
4
+    <meta charset="UTF-8"/>
5
+    <title>这个是获取code页面</title>
6
+</head>
7
+<body>
8
+<h1>Hello Spring Boot!!!</h1>
9
+<p th:text="${code}"></p>
10
+</body>
11
+</html>

+ 16
- 0
wxdemo/src/test/java/com/example/demo/DemoApplicationTests.java Wyświetl plik

@@ -0,0 +1,16 @@
1
+package com.example.demo;
2
+
3
+import org.junit.Test;
4
+import org.junit.runner.RunWith;
5
+import org.springframework.boot.test.context.SpringBootTest;
6
+import org.springframework.test.context.junit4.SpringRunner;
7
+
8
+@RunWith(SpringRunner.class)
9
+@SpringBootTest
10
+public class DemoApplicationTests {
11
+
12
+	@Test
13
+	public void contextLoads() {
14
+	}
15
+
16
+}