张庆宇 il y a 3 mois
Parent
révision
b410875c6a
93 fichiers modifiés avec 0 ajouts et 6716 suppressions
  1. 0
    59
      cst-api/pom.xml
  2. 0
    7
      cst-api/src/main/java/com/shinsoft/cstapi/service/CstService.java
  3. 0
    513
      cst/pom.xml
  4. 0
    23
      cst/src/main/java/com/shinsoft/cst/CstApplication.java
  5. 0
    5
      cst/src/main/resources/develop/Dockerfile
  6. 0
    24
      cst/src/main/resources/develop/bootstrap.properties
  7. 0
    76
      cst/src/main/resources/develop/log4j2.xml
  8. 0
    5
      cst/src/main/resources/litai/Dockerfile
  9. 0
    28
      cst/src/main/resources/litai/bootstrap.properties
  10. 0
    76
      cst/src/main/resources/litai/log4j2.xml
  11. 0
    5
      cst/src/main/resources/localhost/Dockerfile
  12. 0
    24
      cst/src/main/resources/localhost/bootstrap.properties
  13. 0
    76
      cst/src/main/resources/localhost/log4j2.xml
  14. 0
    5
      cst/src/main/resources/production/Dockerfile
  15. 0
    21
      cst/src/main/resources/production/bootstrap.properties
  16. 0
    76
      cst/src/main/resources/production/log4j2.xml
  17. 0
    125
      cst/src/main/resources/templates/controller.java.ftl
  18. 0
    25
      cst/src/main/resources/templates/createTable_dameng.sql.ftl
  19. 0
    19
      cst/src/main/resources/templates/createTable_mysql.sql.ftl
  20. 0
    45
      cst/src/main/resources/templates/createTable_oracle.sql.ftl
  21. 0
    167
      cst/src/main/resources/templates/entity.java.ftl
  22. 0
    1
      cst/src/main/resources/templates/h5.vue.ftl
  23. 0
    30
      cst/src/main/resources/templates/mapper.java.ftl
  24. 0
    39
      cst/src/main/resources/templates/mapper.xml.ftl
  25. 0
    33
      cst/src/main/resources/templates/service.java.ftl
  26. 0
    162
      cst/src/main/resources/templates/serviceImpl.java.ftl
  27. 0
    1
      cst/src/main/resources/templates/uniapp3.vue.ftl
  28. 0
    462
      cst/src/main/resources/templates/vue3.vue.ftl
  29. 0
    5
      cst/src/main/resources/test/Dockerfile
  30. 0
    24
      cst/src/main/resources/test/bootstrap.properties
  31. 0
    76
      cst/src/main/resources/test/log4j2.xml
  32. 0
    59
      ctc-api/pom.xml
  33. 0
    7
      ctc-api/src/main/java/com/shinsoft/ctcapi/service/CtcService.java
  34. 0
    516
      ctc/pom.xml
  35. 0
    23
      ctc/src/main/java/com/shinsoft/ctc/CtcApplication.java
  36. 0
    5
      ctc/src/main/resources/develop/Dockerfile
  37. 0
    24
      ctc/src/main/resources/develop/bootstrap.properties
  38. 0
    76
      ctc/src/main/resources/develop/log4j2.xml
  39. 0
    5
      ctc/src/main/resources/litai/Dockerfile
  40. 0
    28
      ctc/src/main/resources/litai/bootstrap.properties
  41. 0
    76
      ctc/src/main/resources/litai/log4j2.xml
  42. 0
    5
      ctc/src/main/resources/localhost/Dockerfile
  43. 0
    24
      ctc/src/main/resources/localhost/bootstrap.properties
  44. 0
    76
      ctc/src/main/resources/localhost/log4j2.xml
  45. 0
    5
      ctc/src/main/resources/production/Dockerfile
  46. 0
    21
      ctc/src/main/resources/production/bootstrap.properties
  47. 0
    76
      ctc/src/main/resources/production/log4j2.xml
  48. 0
    125
      ctc/src/main/resources/templates/controller.java.ftl
  49. 0
    25
      ctc/src/main/resources/templates/createTable_dameng.sql.ftl
  50. 0
    19
      ctc/src/main/resources/templates/createTable_mysql.sql.ftl
  51. 0
    45
      ctc/src/main/resources/templates/createTable_oracle.sql.ftl
  52. 0
    167
      ctc/src/main/resources/templates/entity.java.ftl
  53. 0
    1
      ctc/src/main/resources/templates/h5.vue.ftl
  54. 0
    30
      ctc/src/main/resources/templates/mapper.java.ftl
  55. 0
    39
      ctc/src/main/resources/templates/mapper.xml.ftl
  56. 0
    33
      ctc/src/main/resources/templates/service.java.ftl
  57. 0
    162
      ctc/src/main/resources/templates/serviceImpl.java.ftl
  58. 0
    1
      ctc/src/main/resources/templates/uniapp3.vue.ftl
  59. 0
    462
      ctc/src/main/resources/templates/vue3.vue.ftl
  60. 0
    5
      ctc/src/main/resources/test/Dockerfile
  61. 0
    24
      ctc/src/main/resources/test/bootstrap.properties
  62. 0
    76
      ctc/src/main/resources/test/log4j2.xml
  63. 0
    59
      lim-api/pom.xml
  64. 0
    7
      lim-api/src/main/java/com/shinsoft/limapi/service/LimService.java
  65. 0
    516
      lim/pom.xml
  66. 0
    22
      lim/src/main/java/com/shinsoft/lim/LimApplication.java
  67. 0
    5
      lim/src/main/resources/develop/Dockerfile
  68. 0
    24
      lim/src/main/resources/develop/bootstrap.properties
  69. 0
    76
      lim/src/main/resources/develop/log4j2.xml
  70. 0
    5
      lim/src/main/resources/litai/Dockerfile
  71. 0
    28
      lim/src/main/resources/litai/bootstrap.properties
  72. 0
    76
      lim/src/main/resources/litai/log4j2.xml
  73. 0
    5
      lim/src/main/resources/localhost/Dockerfile
  74. 0
    24
      lim/src/main/resources/localhost/bootstrap.properties
  75. 0
    76
      lim/src/main/resources/localhost/log4j2.xml
  76. 0
    5
      lim/src/main/resources/production/Dockerfile
  77. 0
    21
      lim/src/main/resources/production/bootstrap.properties
  78. 0
    76
      lim/src/main/resources/production/log4j2.xml
  79. 0
    125
      lim/src/main/resources/templates/controller.java.ftl
  80. 0
    25
      lim/src/main/resources/templates/createTable_dameng.sql.ftl
  81. 0
    19
      lim/src/main/resources/templates/createTable_mysql.sql.ftl
  82. 0
    45
      lim/src/main/resources/templates/createTable_oracle.sql.ftl
  83. 0
    167
      lim/src/main/resources/templates/entity.java.ftl
  84. 0
    1
      lim/src/main/resources/templates/h5.vue.ftl
  85. 0
    30
      lim/src/main/resources/templates/mapper.java.ftl
  86. 0
    39
      lim/src/main/resources/templates/mapper.xml.ftl
  87. 0
    33
      lim/src/main/resources/templates/service.java.ftl
  88. 0
    162
      lim/src/main/resources/templates/serviceImpl.java.ftl
  89. 0
    1
      lim/src/main/resources/templates/uniapp3.vue.ftl
  90. 0
    462
      lim/src/main/resources/templates/vue3.vue.ftl
  91. 0
    5
      lim/src/main/resources/test/Dockerfile
  92. 0
    24
      lim/src/main/resources/test/bootstrap.properties
  93. 0
    76
      lim/src/main/resources/test/log4j2.xml

+ 0
- 59
cst-api/pom.xml Voir le fichier

@@ -1,59 +0,0 @@
1
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2
-         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
3
-    <modelVersion>4.0.0</modelVersion>
4
-    <parent>
5
-        <groupId>com.shinsoft</groupId>
6
-        <artifactId>service</artifactId>
7
-        <version>1.0-SNAPSHOT</version>
8
-    </parent>
9
-    <groupId>com.shinsoft.cstapi</groupId>
10
-    <artifactId>cst-api</artifactId>
11
-    <version>1.0.0</version>
12
-
13
-
14
-    <dependencies>
15
-        <dependency>
16
-            <groupId>junit</groupId>
17
-            <artifactId>junit</artifactId>
18
-            <version>4.11</version>
19
-            <scope>test</scope>
20
-        </dependency>
21
-
22
-        <dependency>
23
-            <groupId>org.springframework.cloud</groupId>
24
-            <artifactId>spring-cloud-openfeign-core</artifactId>
25
-            <version>2.1.3.RELEASE</version>
26
-            <scope>compile</scope>
27
-        </dependency>
28
-
29
-        <dependency>
30
-            <groupId>org.projectlombok</groupId>
31
-            <artifactId>lombok</artifactId>
32
-        </dependency>
33
-        <!-- 公共方法和接口-->
34
-        <dependency>
35
-            <groupId>com.shinsoft</groupId>
36
-            <artifactId>tools</artifactId>
37
-            <version>1.0.1</version>
38
-            <scope>system</scope>
39
-            <systemPath>${project.basedir}/../lib/tools-1.0.1.jar</systemPath>
40
-        </dependency>
41
-        <!-- 公共方法和接口-->
42
-
43
-
44
-    </dependencies>
45
-
46
-    <build>
47
-        <plugins>
48
-            <plugin>
49
-                <groupId>org.apache.maven.plugins</groupId>
50
-                <artifactId>maven-jar-plugin</artifactId>
51
-                <configuration>
52
-                    <outputDirectory>
53
-                        ${project.basedir}/../lib
54
-                    </outputDirectory>
55
-                </configuration>
56
-            </plugin>
57
-        </plugins>
58
-    </build>
59
-</project>

+ 0
- 7
cst-api/src/main/java/com/shinsoft/cstapi/service/CstService.java Voir le fichier

@@ -1,7 +0,0 @@
1
-package com.shinsoft.cstapi.service;
2
-
3
-import org.springframework.cloud.openfeign.FeignClient;
4
-
5
-@FeignClient(name = "cst", contextId = "cst-api")
6
-public interface CstService {
7
-}

+ 0
- 513
cst/pom.xml Voir le fichier

@@ -1,513 +0,0 @@
1
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2
-         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
3
-    <modelVersion>4.0.0</modelVersion>
4
-    <parent>
5
-        <groupId>com.shinsoft</groupId>
6
-        <artifactId>service</artifactId>
7
-        <version>1.0-SNAPSHOT</version>
8
-    </parent>
9
-
10
-    <groupId>com.shinsoft</groupId>
11
-    <artifactId>cst</artifactId>
12
-    <version>1.0.0</version>
13
-    <name>cst</name>
14
-    <description>Demo project for Spring Boot</description>
15
-
16
-    <properties>
17
-        <maven.compiler.source>8</maven.compiler.source>
18
-        <maven.compiler.target>8</maven.compiler.target>
19
-        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
20
-    </properties>
21
-
22
-    <dependencies>
23
-        <!--spring-->
24
-        <dependency>
25
-            <groupId>org.springframework.boot</groupId>
26
-            <artifactId>spring-boot-starter-web</artifactId>
27
-            <exclusions>
28
-                <exclusion>
29
-                    <groupId>org.springframework.boot</groupId>
30
-                    <artifactId>spring-boot-starter-logging</artifactId>
31
-                </exclusion>
32
-                <exclusion>
33
-                    <groupId>org.hibernate</groupId>
34
-                    <artifactId>hibernate-validator</artifactId>
35
-                </exclusion>
36
-            </exclusions>
37
-        </dependency>
38
-
39
-        <!--log4j2-->
40
-        <dependency>
41
-            <groupId>org.springframework.boot</groupId>
42
-            <artifactId>spring-boot-starter-log4j2</artifactId>
43
-        </dependency>
44
-        <dependency>
45
-            <groupId>org.apache.logging.log4j</groupId>
46
-            <artifactId>log4j-api</artifactId>
47
-        </dependency>
48
-        <dependency>
49
-            <groupId>org.apache.logging.log4j</groupId>
50
-            <artifactId>log4j-core</artifactId>
51
-        </dependency>
52
-        <dependency>
53
-            <groupId>org.apache.logging.log4j</groupId>
54
-            <artifactId>log4j-jul</artifactId>
55
-        </dependency>
56
-        <dependency>
57
-            <groupId>org.apache.logging.log4j</groupId>
58
-            <artifactId>log4j-slf4j-impl</artifactId>
59
-        </dependency>
60
-        <!--log4j2-->
61
-
62
-        <dependency>
63
-            <groupId>org.springframework.boot</groupId>
64
-            <artifactId>spring-boot-starter-test</artifactId>
65
-            <scope>test</scope>
66
-        </dependency>
67
-
68
-        <dependency>
69
-            <groupId>com.alibaba.cloud</groupId>
70
-            <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
71
-        </dependency>
72
-        <dependency>
73
-            <groupId>com.alibaba.cloud</groupId>
74
-            <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
75
-        </dependency>
76
-
77
-        <dependency>
78
-            <groupId>org.springframework.cloud</groupId>
79
-            <artifactId>spring-cloud-starter-netflix-ribbon</artifactId>
80
-        </dependency>
81
-
82
-        <dependency>
83
-            <groupId>org.springframework.cloud</groupId>
84
-            <artifactId>spring-cloud-starter-netflix-hystrix</artifactId>
85
-        </dependency>
86
-
87
-        <dependency>
88
-            <groupId>org.springframework.cloud</groupId>
89
-            <artifactId>spring-cloud-starter-openfeign</artifactId>
90
-        </dependency>
91
-
92
-        <dependency>
93
-            <groupId>org.springframework.boot</groupId>
94
-            <artifactId>spring-boot-starter-aop</artifactId>
95
-        </dependency>
96
-
97
-        <dependency>
98
-            <groupId>org.springframework.boot</groupId>
99
-            <artifactId>spring-boot-starter-data-redis</artifactId>
100
-        </dependency>
101
-
102
-        <dependency>
103
-            <groupId>org.springframework.boot</groupId>
104
-            <artifactId>spring-boot-starter-amqp</artifactId>
105
-        </dependency>
106
-        <!--spring-->
107
-
108
-        <!--common-->
109
-        <dependency>
110
-            <groupId>org.apache.commons</groupId>
111
-            <artifactId>commons-pool2</artifactId>
112
-        </dependency>
113
-
114
-        <dependency>
115
-            <groupId>org.apache.commons</groupId>
116
-            <artifactId>commons-lang3</artifactId>
117
-        </dependency>
118
-
119
-        <dependency>
120
-            <groupId>commons-io</groupId>
121
-            <artifactId>commons-io</artifactId>
122
-        </dependency>
123
-
124
-        <dependency>
125
-            <groupId>commons-fileupload</groupId>
126
-            <artifactId>commons-fileupload</artifactId>
127
-        </dependency>
128
-
129
-        <dependency>
130
-            <groupId>commons-dbutils</groupId>
131
-            <artifactId>commons-dbutils</artifactId>
132
-        </dependency>
133
-        <!--common-->
134
-
135
-
136
-        <!--数据库相关-->
137
-        <dependency>
138
-            <groupId>mysql</groupId>
139
-            <artifactId>mysql-connector-java</artifactId>
140
-        </dependency>
141
-
142
-        <dependency>
143
-            <groupId>com.oracle.database.jdbc</groupId>
144
-            <artifactId>ojdbc8</artifactId>
145
-        </dependency>
146
-
147
-        <dependency>
148
-            <groupId>com.oracle.database.nls</groupId>
149
-            <artifactId>orai18n</artifactId>
150
-        </dependency>
151
-
152
-        <dependency>
153
-            <groupId>com.dameng</groupId>
154
-            <artifactId>DmJdbcDriver18</artifactId>
155
-        </dependency>
156
-
157
-        <dependency>
158
-            <groupId>com.alibaba</groupId>
159
-            <artifactId>druid</artifactId>
160
-        </dependency>
161
-
162
-        <!--数据库相关-->
163
-
164
-
165
-
166
-        <!--代码生成-->
167
-        <dependency>
168
-            <groupId>org.freemarker</groupId>
169
-            <artifactId>freemarker</artifactId>
170
-        </dependency>
171
-
172
-        <dependency>
173
-            <groupId>com.baomidou</groupId>
174
-            <artifactId>mybatis-plus-boot-starter</artifactId>
175
-        </dependency>
176
-
177
-        <dependency>
178
-            <groupId>com.baomidou</groupId>
179
-            <artifactId>mybatis-plus-generator</artifactId>
180
-        </dependency>
181
-
182
-        <!--        <dependency>-->
183
-        <!--            <groupId>com.baomidou</groupId>-->
184
-        <!--            <artifactId>mybatis-plus-extension</artifactId>-->
185
-        <!--        </dependency>-->
186
-
187
-        <dependency>
188
-            <groupId>org.projectlombok</groupId>
189
-            <artifactId>lombok</artifactId>
190
-        </dependency>
191
-
192
-        <dependency>
193
-            <groupId>io.swagger</groupId>
194
-            <artifactId>swagger-annotations</artifactId>
195
-        </dependency>
196
-        <!--代码生成-->
197
-
198
-
199
-        <!--JSON相关-->
200
-        <dependency>
201
-            <groupId>com.alibaba</groupId>
202
-            <artifactId>fastjson</artifactId>
203
-        </dependency>
204
-
205
-        <!--JSON相关-->
206
-
207
-        <!--加密-->
208
-        <dependency>
209
-            <groupId>com.auth0</groupId>
210
-            <artifactId>java-jwt</artifactId>
211
-        </dependency>
212
-        <!--加密-->
213
-
214
-        <!--二维码-->
215
-        <dependency>
216
-            <groupId>com.google.zxing</groupId>
217
-            <artifactId>core</artifactId>
218
-        </dependency>
219
-        <dependency>
220
-            <groupId>com.google.zxing</groupId>
221
-            <artifactId>javase</artifactId>
222
-        </dependency>
223
-        <!--二维码-->
224
-
225
-
226
-        <!--POI office文档控制jar-->
227
-        <!--        <dependency>-->
228
-        <!--            <groupId>org.apache.poi</groupId>-->
229
-        <!--            <artifactId>poi</artifactId>-->
230
-        <!--        </dependency>-->
231
-        <!--        <dependency>-->
232
-        <!--            <groupId>org.apache.poi</groupId>-->
233
-        <!--            <artifactId>poi-scratchpad</artifactId>-->
234
-        <!--        </dependency>-->
235
-        <!--        <dependency>-->
236
-        <!--            <groupId>org.apache.poi</groupId>-->
237
-        <!--            <artifactId>poi-ooxml</artifactId>-->
238
-        <!--        </dependency>-->
239
-        <!--        <dependency>-->
240
-        <!--            <groupId>fr.opensagres.xdocreport</groupId>-->
241
-        <!--            <artifactId>xdocreport</artifactId>-->
242
-        <!--        </dependency>-->
243
-
244
-        <!--        <dependency>-->
245
-        <!--            <groupId>fr.opensagres.xdocreport</groupId>-->
246
-        <!--            <artifactId>fr.opensagres.poi.xwpf.converter.core</artifactId>-->
247
-        <!--        </dependency>-->
248
-
249
-        <!--        <dependency>-->
250
-        <!--            <groupId>fr.opensagres.xdocreport</groupId>-->
251
-        <!--            <artifactId>fr.opensagres.poi.xwpf.converter.xhtml</artifactId>-->
252
-        <!--        </dependency>-->
253
-
254
-        <!--        <dependency>-->
255
-        <!--            <groupId>org.apache.poi</groupId>-->
256
-        <!--            <artifactId>poi-ooxml-schemas</artifactId>-->
257
-        <!--        </dependency>-->
258
-
259
-        <!--        <dependency>-->
260
-        <!--            <groupId>org.apache.poi</groupId>-->
261
-        <!--            <artifactId>ooxml-schemas</artifactId>-->
262
-        <!--        </dependency>-->
263
-
264
-
265
-        <!--POI office文档控制jar-->
266
-
267
-
268
-        <!--Excel导入导出-->
269
-        <dependency>
270
-            <groupId>com.alibaba</groupId>
271
-            <artifactId>easyexcel</artifactId>
272
-        </dependency>
273
-        <!--Excel导入导出-->
274
-
275
-
276
-        <!--  itext-->
277
-        <dependency>
278
-            <groupId>com.lowagie</groupId>
279
-            <artifactId>itext</artifactId>
280
-        </dependency>
281
-        <!--itext-->
282
-
283
-        <dependency>
284
-            <groupId>cn.hutool</groupId>
285
-            <artifactId>hutool-all</artifactId>
286
-        </dependency>
287
-
288
-        <dependency>
289
-            <groupId>io.swagger</groupId>
290
-            <artifactId>swagger-annotations</artifactId>
291
-        </dependency>
292
-
293
-        <dependency>
294
-            <groupId>com.squareup.okhttp3</groupId>
295
-            <artifactId>okhttp</artifactId>
296
-        </dependency>
297
-
298
-        <!--对象存储-->
299
-        <dependency>
300
-            <groupId>io.minio</groupId>
301
-            <artifactId>minio</artifactId>
302
-        </dependency>
303
-        <dependency>
304
-            <groupId>com.qiniu</groupId>
305
-            <artifactId>qiniu-java-sdk</artifactId>
306
-        </dependency>
307
-        <dependency>
308
-            <groupId>software.amazon.awssdk</groupId>
309
-            <artifactId>s3</artifactId>
310
-        </dependency>
311
-
312
-        <!-- 公共方法和接口-->
313
-        <dependency>
314
-            <groupId>com.shinsoft</groupId>
315
-            <artifactId>tools</artifactId>
316
-            <version>1.0.1</version>
317
-            <scope>system</scope>
318
-            <systemPath>${project.basedir}/../lib/tools-1.0.1.jar</systemPath>
319
-        </dependency>
320
-
321
-        <dependency>
322
-            <groupId>com.shinsoft</groupId>
323
-            <artifactId>generator</artifactId>
324
-            <version>1.0.0</version>
325
-            <scope>system</scope>
326
-            <systemPath>${project.basedir}/../lib/generator-1.0.0.jar</systemPath>
327
-        </dependency>
328
-
329
-        <dependency>
330
-            <groupId>com.shinsoft</groupId>
331
-            <artifactId>framework-api</artifactId>
332
-            <version>1.0.1</version>
333
-            <scope>system</scope>
334
-            <systemPath>${project.basedir}/../lib/framework-api-1.0.1.jar</systemPath>
335
-        </dependency>
336
-
337
-        <dependency>
338
-            <groupId>com.shinsoft</groupId>
339
-            <artifactId>workflow-api</artifactId>
340
-            <version>1.0.1</version>
341
-            <scope>system</scope>
342
-            <systemPath>${project.basedir}/../lib/workflow-api-1.0.1.jar</systemPath>
343
-        </dependency>
344
-
345
-        <!-- 公共方法和接口-->
346
-    </dependencies>
347
-
348
-
349
-
350
-    <profiles>
351
-
352
-        <profile> <!-- 本地开发环境 -->
353
-            <id>localhost</id>
354
-            <properties>
355
-                <profiles.active>localhost</profiles.active>
356
-            </properties>
357
-        </profile>
358
-        <profile> <!-- 服务器开发环境 -->
359
-            <id>develop</id>
360
-            <properties>
361
-                <profiles.active>develop</profiles.active>
362
-            </properties>
363
-            <activation>
364
-                <activeByDefault>true</activeByDefault>
365
-            </activation>
366
-        </profile>
367
-        <profile> <!-- 测试环境 -->
368
-            <id>test</id>
369
-            <properties>
370
-                <profiles.active>test</profiles.active>
371
-            </properties>
372
-        </profile>
373
-        <profile> <!-- 生产环境 -->
374
-            <id>production</id>
375
-            <properties>
376
-                <profiles.active>production</profiles.active>
377
-            </properties>
378
-        </profile>
379
-
380
-        <profile> <!-- 个人 -->
381
-            <id>litai</id>
382
-            <properties>
383
-                <profiles.active>litai</profiles.active>
384
-            </properties>
385
-        </profile>
386
-
387
-    </profiles>
388
-
389
-
390
-    <build>
391
-
392
-        <finalName>${project.artifactId}</finalName>
393
-        <resources>
394
-            <resource>
395
-                <directory>src/main/resources</directory>
396
-                <!--                <excludes>-->
397
-                <!--                    <exclude>localhost/**</exclude>-->
398
-                <!--                    <exclude>develop/**</exclude>-->
399
-                <!--                    <exclude>production/**</exclude>-->
400
-                <!--                    <exclude>classes/**</exclude>-->
401
-                <!--                    <exclude>lib/**</exclude>-->
402
-                <!--                </excludes>-->
403
-            </resource>
404
-            <resource>
405
-                <directory>src/main/resources/${profiles.active}</directory>
406
-            </resource>
407
-            <resource>
408
-                <directory>src/main/resources</directory>
409
-                <includes>
410
-                    <include>**/*.yml</include>
411
-                    <include>**/*.properties</include>
412
-                    <include>**/*.xml</include>
413
-                </includes>
414
-                <filtering>false</filtering>
415
-            </resource>
416
-            <resource>
417
-                <directory>src/main/java</directory>
418
-                <targetPath>${project.build.directory}/classes/mapper</targetPath>
419
-                <includes>
420
-                    <include>**/*.xml</include>
421
-                </includes>
422
-                <filtering>false</filtering>
423
-            </resource>
424
-        </resources>
425
-
426
-        <plugins>
427
-            <plugin>
428
-                <groupId>org.apache.maven.plugins</groupId>
429
-                <artifactId>maven-jar-plugin</artifactId>
430
-                <configuration>
431
-                    <archive>
432
-                        <manifest>
433
-                            <addClasspath>true</addClasspath>
434
-                            <classpathPrefix>lib/</classpathPrefix>
435
-                            <mainClass>com.shinsoft.cst.CstApplication</mainClass>
436
-                        </manifest>
437
-                        <manifestEntries>
438
-                            <Class-Path>lib/tools-1.0.1.jar lib/generator-1.0.0.jar  lib/framework-api-1.0.1.jar lib/workflow-api-1.0.1.jar
439
-                            </Class-Path>
440
-                        </manifestEntries>
441
-                    </archive>
442
-                    <outputDirectory>
443
-                        ${project.build.directory}
444
-                    </outputDirectory>
445
-                </configuration>
446
-            </plugin>
447
-
448
-
449
-            <plugin>
450
-                <groupId>org.apache.maven.plugins</groupId>
451
-                <artifactId>maven-dependency-plugin</artifactId>
452
-                <executions>
453
-                    <execution>
454
-                        <id>copy</id>
455
-                        <phase>compile</phase>
456
-                        <goals>
457
-                            <goal>copy-dependencies</goal>
458
-                        </goals>
459
-                        <configuration>
460
-                            <outputDirectory>
461
-                                ${project.build.directory}/lib
462
-                            </outputDirectory>
463
-                        </configuration>
464
-                    </execution>
465
-                    <execution>
466
-                        <id>sys</id>
467
-                        <phase>compile</phase>
468
-                        <goals>
469
-                            <goal>copy-dependencies</goal>
470
-                        </goals>
471
-                        <configuration>
472
-                            <includeScope>system</includeScope>
473
-                        </configuration>
474
-                    </execution>
475
-                </executions>
476
-            </plugin>
477
-
478
-            <plugin>
479
-                <groupId>org.apache.maven.plugins</groupId>
480
-                <artifactId>maven-resources-plugin</artifactId>
481
-                <executions>
482
-                    <execution>
483
-                        <id>copy-resource</id>
484
-                        <phase>package</phase>
485
-                        <goals>
486
-                            <goal>copy-resources</goal>
487
-                        </goals>
488
-                        <configuration>
489
-                            <outputDirectory>
490
-                                ${project.build.directory}
491
-                            </outputDirectory>
492
-                            <resources>
493
-                                <resource>
494
-                                    <directory>${project.basedir}/src/main/resources/${profiles.active}</directory>
495
-                                    <includes>
496
-                                        <include>Dockerfile</include>
497
-                                        <include>bootstrap.properties</include>
498
-                                    </includes>
499
-                                </resource>
500
-                            </resources>
501
-                        </configuration>
502
-                    </execution>
503
-                </executions>
504
-            </plugin>
505
-
506
-
507
-        </plugins>
508
-
509
-    </build>
510
-
511
-</project>
512
-
513
-

+ 0
- 23
cst/src/main/java/com/shinsoft/cst/CstApplication.java Voir le fichier

@@ -1,23 +0,0 @@
1
-package com.shinsoft.cst;
2
-
3
-
4
-import org.mybatis.spring.annotation.MapperScan;
5
-import org.springframework.boot.SpringApplication;
6
-import org.springframework.boot.autoconfigure.SpringBootApplication;
7
-import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
8
-import org.springframework.cloud.openfeign.EnableFeignClients;
9
-import org.springframework.context.annotation.ComponentScan;
10
-
11
-
12
-@SpringBootApplication
13
-@EnableFeignClients(basePackages = {"com.shinsoft"})
14
-@EnableDiscoveryClient
15
-@ComponentScan(basePackages = {"com.shinsoft"})
16
-@MapperScan("com.shinsoft.**.mapper")
17
-public class CstApplication {
18
-
19
-    public static void main(String[] args) {
20
-        SpringApplication.run(CstApplication.class, args);
21
-    }
22
-
23
-}

+ 0
- 5
cst/src/main/resources/develop/Dockerfile Voir le fichier

@@ -1,5 +0,0 @@
1
-FROM alpine-java8:1.0.0
2
-ADD lib /lib
3
-ADD bootstrap.properties /bootstrap.properties
4
-ADD framework.jar /framework.jar
5
-CMD ["java","-jar","-Duser.timezone=GMT+08","/framework.jar","--spring.config.location=file:/bootstrap.properties"]

+ 0
- 24
cst/src/main/resources/develop/bootstrap.properties Voir le fichier

@@ -1,24 +0,0 @@
1
-nacosServer=192.168.31.191:8848
2
-nacosNamespace=sgiip
3
-nacosGroup=develop
4
-
5
-server.port=8011
6
-spring.application.name=framework
7
-
8
-spring.cloud.nacos.config.namespace=${nacosNamespace}
9
-spring.cloud.nacos.config.group=${nacosGroup}
10
-spring.cloud.nacos.config.server-addr=${nacosServer}
11
-spring.cloud.nacos.config.file-extension=yaml
12
-spring.cloud.nacos.config.ext-config[0].data-id=common.yaml
13
-spring.cloud.nacos.config.ext-config[0].group=${nacosGroup}
14
-spring.cloud.nacos.config.ext-config[0].refresh=true
15
-spring.cloud.nacos.config.ext-config[1].data-id=db-framework-oracle.yaml
16
-spring.cloud.nacos.config.ext-config[1].group=${nacosGroup}
17
-spring.cloud.nacos.config.ext-config[1].refresh=true
18
-
19
-spring.cloud.nacos.discovery.namespace=${nacosNamespace}
20
-spring.cloud.nacos.discovery.group=${nacosGroup}
21
-spring.cloud.nacos.discovery.server-addr=${nacosServer}
22
-spring.cloud.nacos.discovery.retry.enabled=true
23
-
24
-spring.cloud.inetutils.preferred-networks=192.168.31.

+ 0
- 76
cst/src/main/resources/develop/log4j2.xml Voir le fichier

@@ -1,76 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8"?>
2
-<Configuration status="DEBUG" monitorInterval="60">
3
-
4
-
5
-    <Properties>
6
-        <!--自定义一些常量,之后使用${变量名}引用-->
7
-        <Property name="logFilePath">logs</Property>
8
-    </Properties>
9
-
10
-
11
-    <!--定义所有的appender-->
12
-    <Appenders>
13
-        <!--输出控制台的配置-->
14
-        <Console name="Console" target="SYSTEM_OUT">
15
-            <!--日志信息的格式-->
16
-            <PatternLayout pattern="%d{HH:mm:ss:SSS} [%p] %c  %m%n"/>
17
-        </Console>
18
-
19
-        <!--输出文件的配置-->
20
-        <File name="log" fileName="${logFilePath}/log.log" append="false">
21
-            <PatternLayout pattern="%d{HH:mm:ss.SSS} %-5level %c{36} %L %c %M %msg%n"/>
22
-        </File>
23
-
24
-        <RollingFile name="RollingFileInfo" fileName="${logFilePath}/info.log"
25
-                     filePattern="${logFilePath}/$${date:yyyy-MM}/info-%d{yyyy-MM-dd}-%i.log">
26
-            <!--只输出level级别以上的信息(onMatch),其他级别的拒绝(onMismatch)-->
27
-            <ThresholdFilter level="info" onMatch="ACCEPT" onMismatch="DENY"/>
28
-            <PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss:SSS} [%p] %l %c %m%n"/>
29
-            <Policies>
30
-                <TimeBasedTriggeringPolicy/>
31
-                <SizeBasedTriggeringPolicy size="20MB"/>
32
-            </Policies>
33
-            <!--文件数量的设置-->
34
-            <DefaultRolloverStrategy max="50"/>
35
-        </RollingFile>
36
-
37
-        <RollingFile name="RollingFileWarn" fileName="${logFilePath}/warn.log"
38
-                     filePattern="${logFilePath}/$${date:yyyy-MM}/warn-%d{yyyy-MM-dd}-%i.log">
39
-            <ThresholdFilter level="warn" onMatch="ACCEPT" onMismatch="DENY"/>
40
-            <PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss:SSS} [%p] %l %c %m%n"/>
41
-            <Policies>
42
-                <TimeBasedTriggeringPolicy/>
43
-                <SizeBasedTriggeringPolicy size="20MB"/>
44
-            </Policies>
45
-            <!--文件数量的设置-->
46
-            <DefaultRolloverStrategy max="50"/>
47
-        </RollingFile>
48
-
49
-        <RollingFile name="RollingFileError" fileName="${logFilePath}/error.log"
50
-                     filePattern="${logFilePath}/$${date:yyyy-MM}/warn-%d{yyyy-MM-dd}-%i.log">
51
-            <ThresholdFilter level="error" onMatch="ACCEPT" onMismatch="DENY"/>
52
-            <PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss:SSS} [%p] %l %c %m%n"/>
53
-            <Policies>
54
-                <TimeBasedTriggeringPolicy/>
55
-                <SizeBasedTriggeringPolicy size="20MB"/>
56
-            </Policies>
57
-            <!--文件数量的设置-->
58
-            <DefaultRolloverStrategy max="50"/>
59
-        </RollingFile>
60
-    </Appenders>
61
-
62
-    <Loggers>
63
-        <logger name="org.springframework" level="INFO"></logger>
64
-        <logger name="com.netflix" level="INFO"></logger>
65
-        <logger name="org.apache" level="INFO"></logger>
66
-        <logger name="org.mybatis" level="INFO"></logger>
67
-        <logger name="com.alibaba.nacos" level="WARN"></logger>
68
-        <Root level="DEBUG">
69
-            <AppenderRef ref="Console"/>
70
-            <AppenderRef ref="RollingFileInfo"/>
71
-            <AppenderRef ref="RollingFileWarn"/>
72
-            <AppenderRef ref="RollingFileError"/>
73
-        </Root>
74
-
75
-    </Loggers>
76
-</Configuration>

+ 0
- 5
cst/src/main/resources/litai/Dockerfile Voir le fichier

@@ -1,5 +0,0 @@
1
-FROM alpine-java8:1.0.0
2
-ADD lib /lib
3
-ADD bootstrap.properties /bootstrap.properties
4
-ADD framework.jar /framework.jar
5
-CMD ["java","-jar","-Duser.timezone=GMT+08","/framework.jar","--spring.config.location=file:/bootstrap.properties"]

+ 0
- 28
cst/src/main/resources/litai/bootstrap.properties Voir le fichier

@@ -1,28 +0,0 @@
1
-server.port=8035
2
-spring.application.name=cst
3
-
4
-nacosServer=47.115.211.214:8848
5
-nacosNamespace=litai
6
-nacosGroup=GMIMP
7
-
8
-spring.cloud.nacos.discovery.ip=172.16.108.158
9
-
10
-spring.cloud.nacos.config.namespace=${nacosNamespace}
11
-spring.cloud.nacos.config.group=${nacosGroup}
12
-spring.cloud.nacos.config.server-addr=${nacosServer}
13
-spring.cloud.nacos.config.file-extension=yaml
14
-spring.cloud.nacos.config.ext-config[0].data-id=common.yaml
15
-spring.cloud.nacos.config.ext-config[0].group=${nacosGroup}
16
-spring.cloud.nacos.config.ext-config[0].refresh=true
17
-spring.cloud.nacos.config.ext-config[1].data-id=db-gmimp-dameng.yaml
18
-spring.cloud.nacos.config.ext-config[1].group=${nacosGroup}
19
-spring.cloud.nacos.config.ext-config[1].refresh=true
20
-spring.cloud.nacos.config.ext-config[2].data-id=updownload.yaml
21
-spring.cloud.nacos.config.ext-config[2].group=${nacosGroup}
22
-spring.cloud.nacos.config.ext-config[2].refresh=true
23
-
24
-spring.cloud.nacos.discovery.namespace=${nacosNamespace}
25
-spring.cloud.nacos.discovery.group=${nacosGroup}
26
-spring.cloud.nacos.discovery.server-addr=${nacosServer}
27
-spring.cloud.nacos.discovery.retry.enabled=true
28
-

+ 0
- 76
cst/src/main/resources/litai/log4j2.xml Voir le fichier

@@ -1,76 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8"?>
2
-<Configuration status="DEBUG" monitorInterval="60">
3
-
4
-
5
-    <Properties>
6
-        <!--自定义一些常量,之后使用${变量名}引用-->
7
-        <Property name="logFilePath">logs</Property>
8
-    </Properties>
9
-
10
-
11
-    <!--定义所有的appender-->
12
-    <Appenders>
13
-        <!--输出控制台的配置-->
14
-        <Console name="Console" target="SYSTEM_OUT">
15
-            <!--日志信息的格式-->
16
-            <PatternLayout pattern="%d{HH:mm:ss:SSS} [%p] %c  %m%n"/>
17
-        </Console>
18
-
19
-        <!--输出文件的配置-->
20
-        <File name="log" fileName="${logFilePath}/log.log" append="false">
21
-            <PatternLayout pattern="%d{HH:mm:ss.SSS} %-5level %c{36} %L %c %M %msg%n"/>
22
-        </File>
23
-
24
-        <RollingFile name="RollingFileInfo" fileName="${logFilePath}/info.log"
25
-                     filePattern="${logFilePath}/$${date:yyyy-MM}/info-%d{yyyy-MM-dd}-%i.log">
26
-            <!--只输出level级别以上的信息(onMatch),其他级别的拒绝(onMismatch)-->
27
-            <ThresholdFilter level="info" onMatch="ACCEPT" onMismatch="DENY"/>
28
-            <PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss:SSS} [%p] %l %c %m%n"/>
29
-            <Policies>
30
-                <TimeBasedTriggeringPolicy/>
31
-                <SizeBasedTriggeringPolicy size="20MB"/>
32
-            </Policies>
33
-            <!--文件数量的设置-->
34
-            <DefaultRolloverStrategy max="50"/>
35
-        </RollingFile>
36
-
37
-        <RollingFile name="RollingFileWarn" fileName="${logFilePath}/warn.log"
38
-                     filePattern="${logFilePath}/$${date:yyyy-MM}/warn-%d{yyyy-MM-dd}-%i.log">
39
-            <ThresholdFilter level="warn" onMatch="ACCEPT" onMismatch="DENY"/>
40
-            <PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss:SSS} [%p] %l %c %m%n"/>
41
-            <Policies>
42
-                <TimeBasedTriggeringPolicy/>
43
-                <SizeBasedTriggeringPolicy size="20MB"/>
44
-            </Policies>
45
-            <!--文件数量的设置-->
46
-            <DefaultRolloverStrategy max="50"/>
47
-        </RollingFile>
48
-
49
-        <RollingFile name="RollingFileError" fileName="${logFilePath}/error.log"
50
-                     filePattern="${logFilePath}/$${date:yyyy-MM}/warn-%d{yyyy-MM-dd}-%i.log">
51
-            <ThresholdFilter level="error" onMatch="ACCEPT" onMismatch="DENY"/>
52
-            <PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss:SSS} [%p] %l %c %m%n"/>
53
-            <Policies>
54
-                <TimeBasedTriggeringPolicy/>
55
-                <SizeBasedTriggeringPolicy size="20MB"/>
56
-            </Policies>
57
-            <!--文件数量的设置-->
58
-            <DefaultRolloverStrategy max="50"/>
59
-        </RollingFile>
60
-    </Appenders>
61
-
62
-    <Loggers>
63
-        <logger name="org.springframework" level="INFO"></logger>
64
-        <logger name="com.netflix" level="INFO"></logger>
65
-        <logger name="org.apache" level="INFO"></logger>
66
-        <logger name="org.mybatis" level="INFO"></logger>
67
-        <logger name="com.alibaba.nacos" level="WARN"></logger>
68
-        <Root level="DEBUG">
69
-            <AppenderRef ref="Console"/>
70
-            <AppenderRef ref="RollingFileInfo"/>
71
-            <AppenderRef ref="RollingFileWarn"/>
72
-            <AppenderRef ref="RollingFileError"/>
73
-        </Root>
74
-
75
-    </Loggers>
76
-</Configuration>

+ 0
- 5
cst/src/main/resources/localhost/Dockerfile Voir le fichier

@@ -1,5 +0,0 @@
1
-FROM alpine-java8:1.0.0
2
-ADD lib /lib
3
-ADD bootstrap.properties /bootstrap.properties
4
-ADD framework.jar /framework.jar
5
-CMD ["java","-jar","-Duser.timezone=GMT+08","/framework.jar","--spring.config.location=file:/bootstrap.properties"]

+ 0
- 24
cst/src/main/resources/localhost/bootstrap.properties Voir le fichier

@@ -1,24 +0,0 @@
1
-nacosServer=192.168.31.191:8848
2
-nacosNamespace=sgiip
3
-nacosGroup=localhost
4
-
5
-server.port=8020
6
-spring.application.name=exp
7
-
8
-spring.cloud.nacos.config.namespace=${nacosNamespace}
9
-spring.cloud.nacos.config.group=${nacosGroup}
10
-spring.cloud.nacos.config.server-addr=${nacosServer}
11
-spring.cloud.nacos.config.file-extension=yaml
12
-spring.cloud.nacos.config.ext-config[0].data-id=common.yaml
13
-spring.cloud.nacos.config.ext-config[0].group=${nacosGroup}
14
-spring.cloud.nacos.config.ext-config[0].refresh=true
15
-spring.cloud.nacos.config.ext-config[1].data-id=db-framework-oracle.yaml
16
-spring.cloud.nacos.config.ext-config[1].group=${nacosGroup}
17
-spring.cloud.nacos.config.ext-config[1].refresh=true
18
-
19
-spring.cloud.nacos.discovery.namespace=${nacosNamespace}
20
-spring.cloud.nacos.discovery.group=${nacosGroup}
21
-spring.cloud.nacos.discovery.server-addr=${nacosServer}
22
-spring.cloud.nacos.discovery.retry.enabled=true
23
-
24
-spring.cloud.inetutils.preferred-networks=192.168.31.

+ 0
- 76
cst/src/main/resources/localhost/log4j2.xml Voir le fichier

@@ -1,76 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8"?>
2
-<Configuration status="DEBUG" monitorInterval="60">
3
-
4
-
5
-    <Properties>
6
-        <!--自定义一些常量,之后使用${变量名}引用-->
7
-        <Property name="logFilePath">logs</Property>
8
-    </Properties>
9
-
10
-
11
-    <!--定义所有的appender-->
12
-    <Appenders>
13
-        <!--输出控制台的配置-->
14
-        <Console name="Console" target="SYSTEM_OUT">
15
-            <!--日志信息的格式-->
16
-            <PatternLayout pattern="%d{HH:mm:ss:SSS} [%p] %c  %m%n"/>
17
-        </Console>
18
-
19
-        <!--输出文件的配置-->
20
-        <File name="log" fileName="${logFilePath}/log.log" append="false">
21
-            <PatternLayout pattern="%d{HH:mm:ss.SSS} %-5level %c{36} %L %c %M %msg%n"/>
22
-        </File>
23
-
24
-        <RollingFile name="RollingFileInfo" fileName="${logFilePath}/info.log"
25
-                     filePattern="${logFilePath}/$${date:yyyy-MM}/info-%d{yyyy-MM-dd}-%i.log">
26
-            <!--只输出level级别以上的信息(onMatch),其他级别的拒绝(onMismatch)-->
27
-            <ThresholdFilter level="info" onMatch="ACCEPT" onMismatch="DENY"/>
28
-            <PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss:SSS} [%p] %l %c %m%n"/>
29
-            <Policies>
30
-                <TimeBasedTriggeringPolicy/>
31
-                <SizeBasedTriggeringPolicy size="20MB"/>
32
-            </Policies>
33
-            <!--文件数量的设置-->
34
-            <DefaultRolloverStrategy max="50"/>
35
-        </RollingFile>
36
-
37
-        <RollingFile name="RollingFileWarn" fileName="${logFilePath}/warn.log"
38
-                     filePattern="${logFilePath}/$${date:yyyy-MM}/warn-%d{yyyy-MM-dd}-%i.log">
39
-            <ThresholdFilter level="warn" onMatch="ACCEPT" onMismatch="DENY"/>
40
-            <PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss:SSS} [%p] %l %c %m%n"/>
41
-            <Policies>
42
-                <TimeBasedTriggeringPolicy/>
43
-                <SizeBasedTriggeringPolicy size="20MB"/>
44
-            </Policies>
45
-            <!--文件数量的设置-->
46
-            <DefaultRolloverStrategy max="50"/>
47
-        </RollingFile>
48
-
49
-        <RollingFile name="RollingFileError" fileName="${logFilePath}/error.log"
50
-                     filePattern="${logFilePath}/$${date:yyyy-MM}/warn-%d{yyyy-MM-dd}-%i.log">
51
-            <ThresholdFilter level="error" onMatch="ACCEPT" onMismatch="DENY"/>
52
-            <PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss:SSS} [%p] %l %c %m%n"/>
53
-            <Policies>
54
-                <TimeBasedTriggeringPolicy/>
55
-                <SizeBasedTriggeringPolicy size="20MB"/>
56
-            </Policies>
57
-            <!--文件数量的设置-->
58
-            <DefaultRolloverStrategy max="50"/>
59
-        </RollingFile>
60
-    </Appenders>
61
-
62
-    <Loggers>
63
-        <logger name="org.springframework" level="INFO"></logger>
64
-        <logger name="com.netflix" level="INFO"></logger>
65
-        <logger name="org.apache" level="INFO"></logger>
66
-        <logger name="org.mybatis" level="INFO"></logger>
67
-        <logger name="com.alibaba.nacos" level="WARN"></logger>
68
-        <Root level="DEBUG">
69
-            <AppenderRef ref="Console"/>
70
-            <AppenderRef ref="RollingFileInfo"/>
71
-            <AppenderRef ref="RollingFileWarn"/>
72
-            <AppenderRef ref="RollingFileError"/>
73
-        </Root>
74
-
75
-    </Loggers>
76
-</Configuration>

+ 0
- 5
cst/src/main/resources/production/Dockerfile Voir le fichier

@@ -1,5 +0,0 @@
1
-FROM alpine-java8:1.0.0
2
-ADD lib /lib
3
-ADD bootstrap.properties /bootstrap.properties
4
-ADD framework.jar /framework.jar
5
-CMD ["java","-jar","-Duser.timezone=GMT+08","/framework.jar","--spring.config.location=file:/bootstrap.properties"]

+ 0
- 21
cst/src/main/resources/production/bootstrap.properties Voir le fichier

@@ -1,21 +0,0 @@
1
-server.port=8011
2
-spring.application.name=framework
3
-spring.cloud.nacos.config.namespace=production
4
-spring.cloud.nacos.config.server-addr=10.209.100.121:8848
5
-spring.cloud.nacos.config.file-extension=yaml
6
-
7
-spring.cloud.nacos.config.ext-config[0].data-id=common.yaml
8
-spring.cloud.nacos.config.ext-config[0].group=DEFAULT_GROUP
9
-spring.cloud.nacos.config.ext-config[0].refresh=true
10
-spring.cloud.nacos.config.ext-config[1].data-id=db-framework-oracle.yaml
11
-spring.cloud.nacos.config.ext-config[1].group=DEFAULT_GROUP
12
-spring.cloud.nacos.config.ext-config[1].refresh=true
13
-#spring.cloud.nacos.config.ext-config[1].data-id=db-framework-mysql.yaml
14
-#spring.cloud.nacos.config.ext-config[1].group=DEFAULT_GROUP
15
-#spring.cloud.nacos.config.ext-config[1].refresh=true
16
-spring.cloud.nacos.discovery.ip=10.209.100.121
17
-spring.cloud.nacos.discovery.namespace=production
18
-spring.cloud.nacos.discovery.server-addr=10.209.100.121:8848
19
-
20
-uploadPath: /upload
21
-downloadPath: /download

+ 0
- 76
cst/src/main/resources/production/log4j2.xml Voir le fichier

@@ -1,76 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8"?>
2
-<Configuration status="DEBUG" monitorInterval="60">
3
-
4
-
5
-    <Properties>
6
-        <!--自定义一些常量,之后使用${变量名}引用-->
7
-        <Property name="logFilePath">logs</Property>
8
-    </Properties>
9
-
10
-
11
-    <!--定义所有的appender-->
12
-    <Appenders>
13
-        <!--输出控制台的配置-->
14
-        <Console name="Console" target="SYSTEM_OUT">
15
-            <!--日志信息的格式-->
16
-            <PatternLayout pattern="%d{HH:mm:ss:SSS} [%p] %c  %m%n"/>
17
-        </Console>
18
-
19
-        <!--输出文件的配置-->
20
-        <File name="log" fileName="${logFilePath}/log.log" append="false">
21
-            <PatternLayout pattern="%d{HH:mm:ss.SSS} %-5level %c{36} %L %c %M %msg%n"/>
22
-        </File>
23
-
24
-        <RollingFile name="RollingFileInfo" fileName="${logFilePath}/info.log"
25
-                     filePattern="${logFilePath}/$${date:yyyy-MM}/info-%d{yyyy-MM-dd}-%i.log">
26
-            <!--只输出level级别以上的信息(onMatch),其他级别的拒绝(onMismatch)-->
27
-            <ThresholdFilter level="info" onMatch="ACCEPT" onMismatch="DENY"/>
28
-            <PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss:SSS} [%p] %l %c %m%n"/>
29
-            <Policies>
30
-                <TimeBasedTriggeringPolicy/>
31
-                <SizeBasedTriggeringPolicy size="20MB"/>
32
-            </Policies>
33
-            <!--文件数量的设置-->
34
-            <DefaultRolloverStrategy max="50"/>
35
-        </RollingFile>
36
-
37
-        <RollingFile name="RollingFileWarn" fileName="${logFilePath}/warn.log"
38
-                     filePattern="${logFilePath}/$${date:yyyy-MM}/warn-%d{yyyy-MM-dd}-%i.log">
39
-            <ThresholdFilter level="warn" onMatch="ACCEPT" onMismatch="DENY"/>
40
-            <PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss:SSS} [%p] %l %c %m%n"/>
41
-            <Policies>
42
-                <TimeBasedTriggeringPolicy/>
43
-                <SizeBasedTriggeringPolicy size="20MB"/>
44
-            </Policies>
45
-            <!--文件数量的设置-->
46
-            <DefaultRolloverStrategy max="50"/>
47
-        </RollingFile>
48
-
49
-        <RollingFile name="RollingFileError" fileName="${logFilePath}/error.log"
50
-                     filePattern="${logFilePath}/$${date:yyyy-MM}/warn-%d{yyyy-MM-dd}-%i.log">
51
-            <ThresholdFilter level="error" onMatch="ACCEPT" onMismatch="DENY"/>
52
-            <PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss:SSS} [%p] %l %c %m%n"/>
53
-            <Policies>
54
-                <TimeBasedTriggeringPolicy/>
55
-                <SizeBasedTriggeringPolicy size="20MB"/>
56
-            </Policies>
57
-            <!--文件数量的设置-->
58
-            <DefaultRolloverStrategy max="50"/>
59
-        </RollingFile>
60
-    </Appenders>
61
-
62
-    <Loggers>
63
-        <logger name="org.springframework" level="INFO"></logger>
64
-        <logger name="com.netflix" level="INFO"></logger>
65
-        <logger name="org.apache" level="INFO"></logger>
66
-        <logger name="org.mybatis" level="INFO"></logger>
67
-        <logger name="com.alibaba.nacos" level="WARN"></logger>
68
-        <Root level="DEBUG">
69
-            <AppenderRef ref="Console"/>
70
-            <AppenderRef ref="RollingFileInfo"/>
71
-            <AppenderRef ref="RollingFileWarn"/>
72
-            <AppenderRef ref="RollingFileError"/>
73
-        </Root>
74
-
75
-    </Loggers>
76
-</Configuration>

+ 0
- 125
cst/src/main/resources/templates/controller.java.ftl Voir le fichier

@@ -1,125 +0,0 @@
1
-package ${package.Controller};
2
-
3
-import org.springframework.web.bind.annotation.RequestMapping;
4
-<#if restControllerStyle>
5
-import org.springframework.web.bind.annotation.RestController;
6
-<#else>
7
-import org.springframework.stereotype.Controller;
8
-</#if>
9
-<#if superControllerClassPackage??>
10
-import ${superControllerClassPackage};
11
-</#if>
12
-
13
-
14
-import org.springframework.beans.factory.annotation.Autowired;
15
-import org.springframework.web.bind.annotation.RequestMapping;
16
-import org.springframework.web.bind.annotation.RestController;
17
-import org.springframework.web.bind.annotation.RequestMethod;
18
-import javax.servlet.http.HttpServletRequest;
19
-
20
-import com.shinsoft.tools.JSONTools;
21
-import com.shinsoft.tools.ExceptionTools;
22
-import com.shinsoft.tools.model.common.ResultJSON;
23
-import com.shinsoft.tools.model.common.ResponseCodeMsg;
24
-
25
-import ${package.Service}.${table.serviceName};
26
-
27
-/**
28
- * <p>
29
- * ${table.comment!} 前端控制器
30
- * </p>
31
- *
32
- * @author ${author}
33
- * @since ${date}
34
- */
35
-<#if restControllerStyle>
36
-@RestController
37
-<#else>
38
-@Controller
39
-</#if>
40
-//@RequestMapping("<#if package.ModuleName?? && package.ModuleName != "">/${package.ModuleName}</#if>/<#if controllerMappingHyphenStyle>${controllerMappingHyphen}<#else>${table.entityPath}</#if>")
41
-@RequestMapping("/${entity}")
42
-<#if kotlin>
43
-class ${table.controllerName}<#if superControllerClass??> : ${superControllerClass}()</#if>
44
-<#else>
45
-<#if superControllerClass??>
46
-public class ${table.controllerName} extends ${superControllerClass} {
47
-<#else>
48
-public class ${table.controllerName} {
49
-</#if>
50
-
51
-
52
-
53
-       @Autowired
54
-       private ${table.serviceName} ${table.entityPath}Service;
55
-
56
-       ResultJSON resultJSON;
57
-
58
-
59
-       @RequestMapping(value = "/query")
60
-       public ResultJSON query(int page, int rows, String params,  HttpServletRequest request) {
61
-           try {
62
-               String userId = (String) request.getHeader("userId");
63
-               resultJSON = ${table.entityPath}Service.query(page, rows, params);
64
-           } catch (Exception ex) {
65
-               ex.printStackTrace();
66
-               resultJSON = JSONTools.toResultJSON(ResponseCodeMsg.CODE_EX, ExceptionTools.getExceptionAllinformation(ex));
67
-           } finally {
68
-               return resultJSON;
69
-           }
70
-       }
71
-
72
-        @RequestMapping(value = "/queryByPK")
73
-        public ResultJSON queryByPK(  String id,  HttpServletRequest request) {
74
-            try {
75
-                String userId = (String) request.getHeader("userId");
76
-                resultJSON = ${table.entityPath}Service.queryByPK(id);
77
-            } catch (Exception ex) {
78
-                 ex.printStackTrace();
79
-                 resultJSON = JSONTools.toResultJSON(ResponseCodeMsg.CODE_EX, ExceptionTools.getExceptionAllinformation(ex));
80
-            } finally {
81
-                return resultJSON;
82
-            }
83
-        }
84
-
85
-       @RequestMapping(value = "/save", method = RequestMethod.POST)
86
-       public ResultJSON save(String json,  HttpServletRequest request) {
87
-           try {
88
-               String userId = (String) request.getHeader("userId");
89
-               resultJSON = ${table.entityPath}Service.save(userId, json);
90
-           } catch (Exception ex) {
91
-               resultJSON = JSONTools.toResultJSON(ResponseCodeMsg.CODE_EX, ExceptionTools.getExceptionAllinformation(ex));
92
-               ex.printStackTrace();
93
-           } finally {
94
-               return resultJSON;
95
-           }
96
-       }
97
-
98
-       @RequestMapping(value = "/remove", method = RequestMethod.POST)
99
-       public ResultJSON remove(String id,   HttpServletRequest request) {
100
-           try {
101
-               String userId = (String) request.getHeader("userId");
102
-               resultJSON = ${table.entityPath}Service.remove(userId, id);
103
-           } catch (Exception ex) {
104
-               ex.printStackTrace();
105
-               resultJSON = JSONTools.toResultJSON(ResponseCodeMsg.CODE_EX, ExceptionTools.getExceptionAllinformation(ex));
106
-           } finally {
107
-               return resultJSON;
108
-           }
109
-       }
110
-
111
-        @RequestMapping(value = "/removeBatch", method = RequestMethod.POST)
112
-        public ResultJSON removeBatch(String ids, HttpServletRequest request) {
113
-            try {
114
-                String userId = (String) request.getHeader("userId");
115
-                resultJSON = ${table.entityPath}Service.removeBatch(userId, ids);
116
-            } catch (Exception ex) {
117
-                ex.printStackTrace();
118
-                resultJSON = JSONTools.toResultJSON(ResponseCodeMsg.CODE_EX, ExceptionTools.getExceptionAllinformation(ex));
119
-            } finally {
120
-                return resultJSON;
121
-            }
122
-        }
123
-
124
- }
125
-</#if>

+ 0
- 25
cst/src/main/resources/templates/createTable_dameng.sql.ftl Voir le fichier

@@ -1,26 +0,0 @@
1
-create table "${schema}"."${tableName}"
2
-(
3
-<#list fields as field>
4
-    <#if field.fieldType =="VARCHAR" || field.fieldType =="CHAR">
5
-        "${field.fieldName}" ${field.fieldType}(${field.dataLength?c}) <#if field.nullFlag  =="1">NOT NULL</#if>  ,
6
-    <#elseif field.fieldType =="NUMBER">
7
-        "${field.fieldName}" ${field.fieldType}(${field.dataLength?c},${field.dataPrecision?c})<#if field.nullFlag  =="1">NOT NULL</#if> ,
8
-    <#elseif field.fieldType =="INT">
9
-        "${field.fieldName}" ${field.fieldType}<#if field.nullFlag  =="1">NOT NULL</#if> ,
10
-    <#elseif field.fieldType =="FLOAT">
11
-        "${field.fieldName}" ${field.fieldType}<#if field.nullFlag  =="1">NOT NULL</#if> ,
12
-    <#elseif field.fieldType =="DOUBLE">
13
-        "${field.fieldName}" ${field.fieldType}<#if field.nullFlag  =="1">NOT NULL</#if> ,
14
-    <#elseif field.fieldType =="DATETIME">
15
-        "${field.fieldName}" ${field.fieldType}<#if field.nullFlag  =="1">NOT NULL</#if> ,
16
-    <#elseif field.fieldType =="TIMESTAMP">
17
-        "${field.fieldName}" ${field.fieldType}<#if field.nullFlag  =="1">NOT NULL</#if> ,
18
-    </#if>
19
-</#list>
20
-UNIQUE("ID"),
21
-NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "${tablespace}", CLUSTERBTR) ;
22
-
23
-<#list fields as field>
24
-    COMMENT ON COLUMN "${schema}"."${tableName}"."${field.fieldName}"  is '${field.fieldComment}';
25
-</#list>

+ 0
- 19
cst/src/main/resources/templates/createTable_mysql.sql.ftl Voir le fichier

@@ -1,19 +0,0 @@
1
-create table ${tableName}
2
-(
3
-<#list fields as field>
4
-    <#if field.fieldType =="varchar">
5
-        ${field.fieldName}      ${field.fieldType}(${field.dataLength?c}) <#if field.nullFlag  =="1">NOT NULL<#else>DEFAULT NULL</#if> COMMENT '${field.fieldComment}',
6
-    <#elseif field.fieldType =="int">
7
-        ${field.fieldName}      ${field.fieldType}(${field.dataLength?c}) <#if field.nullFlag  =="1">NOT NULL<#else>DEFAULT NULL</#if> COMMENT '${field.fieldComment}',
8
-    <#elseif field.fieldType =="float">
9
-        ${field.fieldName}      ${field.fieldType}(${field.dataLength?c},${field.dataPrecision?c}) <#if field.nullFlag  =="1">NOT NULL<#else>DEFAULT NULL</#if> COMMENT '${field.fieldComment}',
10
-    <#elseif field.fieldType =="double">
11
-        ${field.fieldName}      ${field.fieldType}(${field.dataLength?c},${field.dataPrecision?c}) <#if field.nullFlag  =="1">NOT NULL<#else>DEFAULT NULL</#if> COMMENT '${field.fieldComment}',
12
-    <#elseif field.fieldType =="date">
13
-        ${field.fieldName}      ${field.fieldType} <#if field.nullFlag  =="1">NOT NULL<#else>DEFAULT NULL</#if> COMMENT '${field.fieldComment}',
14
-    <#elseif field.fieldType =="datetime">
15
-        ${field.fieldName}      ${field.fieldType} <#if field.nullFlag  =="1">NOT NULL<#else>DEFAULT NULL</#if> COMMENT '${field.fieldComment}',
16
-    </#if>
17
-</#list>
18
-PRIMARY KEY (ID)
19
-)  ROW_FORMAT = DYNAMIC CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;

+ 0
- 45
cst/src/main/resources/templates/createTable_oracle.sql.ftl Voir le fichier

@@ -1,48 +0,0 @@
1
-create table ${tableName}
2
-(
3
-<#list fields as field>
4
-    <#if field.fieldType =="VARCHAR2">
5
-        ${field.fieldName}      ${field.fieldType}(${field.dataLength?c}) <#if field.nullFlag  =="1">not null</#if> <#sep>,</#sep>
6
-    <#elseif field.fieldType =="NUMBER">
7
-        ${field.fieldName}      ${field.fieldType}(${field.dataLength?c},${field.dataPrecision?c})<#sep>,</#sep>
8
-    <#elseif field.fieldType =="DATE">
9
-        ${field.fieldName}      ${field.fieldType}<#sep>,</#sep>
10
-    <#elseif field.fieldType =="TIMESTAMP">
11
-        ${field.fieldName}      ${field.fieldType}(6)<#sep>,</#sep>
12
-    </#if>
13
-</#list>
14
-)
15
-tablespace ${tablespace}
16
-pctfree 10
17
-initrans 1
18
-maxtrans 255
19
-storage
20
-(
21
-initial 64
22
-next 1
23
-minextents 1
24
-maxextents unlimited
25
-);
26
-
27
-<#list fields as field>
28
-    comment on column ${tableName}.${field.fieldName}
29
-    is '${field.fieldComment}';
30
-</#list>
31
-
32
-alter table ${tableName}
33
-add constraint ${tableName}_PK primary key (ID)
34
-using index
35
-tablespace ${tablespace}
36
-pctfree 10
37
-initrans 2
38
-maxtrans 255
39
-storage
40
-(
41
-initial 64K
42
-next 1M
43
-minextents 1
44
-maxextents unlimited
45
-);

+ 0
- 167
cst/src/main/resources/templates/entity.java.ftl Voir le fichier

@@ -1,167 +0,0 @@
1
-package ${package.Entity};
2
-
3
-<#list table.importPackages as pkg>
4
-import ${pkg};
5
-</#list>
6
-<#if springdoc>
7
-import io.swagger.v3.oas.annotations.media.Schema;
8
-<#elseif swagger>
9
-import io.swagger.annotations.ApiModel;
10
-import io.swagger.annotations.ApiModelProperty;
11
-</#if>
12
-<#if entityLombokModel>
13
-import lombok.Getter;
14
-import lombok.Setter;
15
-    <#if chainModel>
16
-import lombok.experimental.Accessors;
17
-    </#if>
18
-</#if>
19
-import com.alibaba.fastjson.annotation.JSONField;
20
-
21
-/**
22
- * <p>
23
- * ${table.comment!}
24
- * </p>
25
- *
26
- * @author ${author}
27
- * @since ${date}
28
- */
29
-<#if entityLombokModel>
30
-@Getter
31
-@Setter
32
-    <#if chainModel>
33
-@Accessors(chain = true)
34
-    </#if>
35
-</#if>
36
-<#if table.convert>
37
-@TableName("${schemaName}${table.name}")
38
-</#if>
39
-<#if springdoc>
40
-@Schema(name = "${entity}", description = "${table.comment!}")
41
-<#elseif swagger>
42
-@ApiModel(value = "${entity}对象", description = "${table.comment!}")
43
-</#if>
44
-<#if superEntityClass??>
45
-public class ${entity} extends ${superEntityClass}<#if activeRecord><${entity}></#if> {
46
-<#elseif activeRecord>
47
-public class ${entity} extends Model<${entity}> {
48
-<#elseif entitySerialVersionUID>
49
-public class ${entity} implements Serializable {
50
-<#else>
51
-public class ${entity} {
52
-</#if>
53
-<#if entitySerialVersionUID>
54
-
55
-    private static final long serialVersionUID = 1L;
56
-</#if>
57
-<#-- ----------  BEGIN 字段循环遍历  ---------->
58
-<#list table.fields as field>
59
-    <#if field.keyFlag>
60
-        <#assign keyPropertyName="${field.propertyName}"/>
61
-    </#if>
62
-
63
-    <#if field.comment!?length gt 0>
64
-        <#if springdoc>
65
-    @Schema(description = "${field.comment}")
66
-        <#elseif swagger>
67
-    @ApiModelProperty("${field.comment}")
68
-        <#else>
69
-    /**
70
-     * ${field.comment}
71
-     */
72
-        </#if>
73
-    </#if>
74
-    <#if field.keyFlag>
75
-        <#-- 主键 -->
76
-        <#if field.keyIdentityFlag>
77
-    @TableId(value = "${field.annotationColumnName}", type = IdType.AUTO)
78
-        <#elseif idType??>
79
-    @TableId(value = "${field.annotationColumnName}", type = IdType.${idType})
80
-        <#elseif field.convert>
81
-    @TableId("${field.annotationColumnName}")
82
-        </#if>
83
-        <#-- 普通字段 -->
84
-    <#elseif field.fill??>
85
-    <#-- -----   存在字段填充设置   ----->
86
-        <#if field.convert>
87
-    @TableField(value = "${field.annotationColumnName}", fill = FieldFill.${field.fill})
88
-        <#else>
89
-    @TableField(fill = FieldFill.${field.fill})
90
-        </#if>
91
-    <#elseif field.convert>
92
-    @TableField("${field.annotationColumnName}")
93
-    </#if>
94
-    <#-- 乐观锁注解 -->
95
-    <#if field.versionField>
96
-    @Version
97
-    </#if>
98
-    <#-- 逻辑删除注解 -->
99
-    <#if field.logicDeleteField>
100
-    @TableLogic
101
-    </#if>
102
-    <#if field.name?contains("_TIME")||field.name?contains("_time")>
103
-    @JSONField(format="yyyy-MM-dd HH:mm:ss")
104
-    </#if>
105
-    <#if field.name?contains("_DATE")||field.name?contains("_date")>
106
-    @JSONField(format="yyyy-MM-dd")
107
-    </#if>
108
-    private ${field.propertyType} ${field.propertyName};
109
-</#list>
110
-<#------------  END 字段循环遍历  ---------->
111
-<#if !entityLombokModel>
112
-    <#list table.fields as field>
113
-        <#if field.propertyType == "boolean">
114
-            <#assign getprefix="is"/>
115
-        <#else>
116
-            <#assign getprefix="get"/>
117
-        </#if>
118
-
119
-    public ${field.propertyType} ${getprefix}${field.capitalName}() {
120
-        return ${field.propertyName};
121
-    }
122
-
123
-    <#if chainModel>
124
-    public ${entity} set${field.capitalName}(${field.propertyType} ${field.propertyName}) {
125
-    <#else>
126
-    public void set${field.capitalName}(${field.propertyType} ${field.propertyName}) {
127
-    </#if>
128
-        this.${field.propertyName} = ${field.propertyName};
129
-        <#if chainModel>
130
-        return this;
131
-        </#if>
132
-    }
133
-    </#list>
134
-</#if>
135
-<#if entityColumnConstant>
136
-    <#list table.fields as field>
137
-
138
-    public static final String ${field.name?upper_case} = "${field.name}";
139
-    </#list>
140
-</#if>
141
-<#if activeRecord>
142
-
143
-    @Override
144
-    public Serializable pkVal() {
145
-    <#if keyPropertyName??>
146
-        return this.${keyPropertyName};
147
-    <#else>
148
-        return null;
149
-    </#if>
150
-    }
151
-</#if>
152
-<#if !entityLombokModel>
153
-
154
-    @Override
155
-    public String toString() {
156
-        return "${entity}{" +
157
-    <#list table.fields as field>
158
-        <#if field_index==0>
159
-            "${field.propertyName} = " + ${field.propertyName} +
160
-        <#else>
161
-            ", ${field.propertyName} = " + ${field.propertyName} +
162
-        </#if>
163
-    </#list>
164
-        "}";
165
-    }
166
-</#if>
167
-}

+ 0
- 1
cst/src/main/resources/templates/h5.vue.ftl Voir le fichier

@@ -1 +0,0 @@
1
-H5:::

+ 0
- 30
cst/src/main/resources/templates/mapper.java.ftl Voir le fichier

@@ -1,30 +0,0 @@
1
-package ${package.Mapper};
2
-
3
-import ${package.Entity}.${entity};
4
-import ${superMapperClassPackage};
5
-import org.apache.ibatis.annotations.Select;
6
-<#if mapperAnnotationClass??>
7
-import ${mapperAnnotationClass.name};
8
-</#if>
9
-
10
-/**
11
- * <p>
12
- * ${table.comment!} Mapper 接口
13
- * </p>
14
- *
15
- * @author ${author}
16
- * @since ${date}
17
- */
18
-<#if mapperAnnotationClass??>
19
-@${mapperAnnotationClass.simpleName}
20
-</#if>
21
-<#if kotlin>
22
-interface ${table.mapperName} : ${superMapperClass}<${entity}>
23
-<#else>
24
-public interface ${table.mapperName} extends ${superMapperClass}<${entity}> {
25
-
26
- @Select("SELECT * FROM ${table.name} WHERE ID = ${r'#{id}'}" )
27
- ${entity} selectByPK(String id);
28
-
29
-}
30
-</#if>

+ 0
- 39
cst/src/main/resources/templates/mapper.xml.ftl Voir le fichier

@@ -1,39 +0,0 @@
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="${package.Mapper}.${table.mapperName}">
4
-
5
-<#if enableCache>
6
-    <!-- 开启二级缓存 -->
7
-    <cache type="${cacheClassName}"/>
8
-
9
-</#if>
10
-<#if baseResultMap>
11
-    <!-- 通用查询映射结果 -->
12
-    <resultMap id="BaseResultMap" type="${package.Entity}.${entity}">
13
-<#list table.fields as field>
14
-<#if field.keyFlag><#--生成主键排在第一位-->
15
-        <id column="${field.name}" property="${field.propertyName}" />
16
-</#if>
17
-</#list>
18
-<#list table.commonFields as field><#--生成公共字段 -->
19
-        <result column="${field.name}" property="${field.propertyName}" />
20
-</#list>
21
-<#list table.fields as field>
22
-<#if !field.keyFlag><#--生成普通字段 -->
23
-        <result column="${field.name}" property="${field.propertyName}" />
24
-</#if>
25
-</#list>
26
-    </resultMap>
27
-
28
-</#if>
29
-<#if baseColumnList>
30
-    <!-- 通用查询结果列 -->
31
-    <sql id="Base_Column_List">
32
-<#list table.commonFields as field>
33
-        ${field.columnName},
34
-</#list>
35
-        ${table.fieldNames}
36
-    </sql>
37
-
38
-</#if>
39
-</mapper>

+ 0
- 33
cst/src/main/resources/templates/service.java.ftl Voir le fichier

@@ -1,33 +0,0 @@
1
-package ${package.Service};
2
-
3
-import ${package.Entity}.${entity};
4
-import ${superServiceClassPackage};
5
-
6
-import com.shinsoft.tools.model.common.ResultJSON;
7
-
8
-
9
-/**
10
- * <p>
11
- * ${table.comment!} 服务类
12
- * </p>
13
- *
14
- * @author ${author}
15
- * @since ${date}
16
- */
17
-<#if kotlin>
18
-interface ${table.serviceName} : ${superServiceClass}<${entity}>
19
-<#else>
20
-public interface ${table.serviceName} extends ${superServiceClass}<${entity}> {
21
-
22
-   ResultJSON query(int page, int rows,String params);
23
-
24
-   ResultJSON queryByPK(String id);
25
-
26
-   ResultJSON save(String userId, String json);
27
-
28
-   ResultJSON remove(String userId, String id);
29
-
30
-   ResultJSON removeBatch(String userId, String ids);
31
-
32
- }
33
-</#if>

+ 0
- 162
cst/src/main/resources/templates/serviceImpl.java.ftl Voir le fichier

@@ -1,162 +0,0 @@
1
-package ${package.ServiceImpl};
2
-
3
-import ${package.Entity}.${entity};
4
-import ${package.Mapper}.${table.mapperName};
5
-<#if table.serviceInterface>
6
-    import ${package.Service}.${table.serviceName};
7
-</#if>
8
-import ${superServiceImplClassPackage};
9
-import org.springframework.stereotype.Service;
10
-
11
-
12
-import org.springframework.beans.factory.annotation.Autowired;
13
-import java.util.Date;
14
-import java.util.List;
15
-import com.alibaba.fastjson.JSON;
16
-import com.alibaba.fastjson.JSONObject;
17
-import com.alibaba.fastjson.JSONArray;
18
-import com.alibaba.fastjson.TypeReference;
19
-import com.shinsoft.tools.JSONTools;
20
-import com.shinsoft.tools.model.common.ResultJSON;
21
-import org.apache.commons.lang3.StringUtils;
22
-import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
23
-import com.baomidou.mybatisplus.core.metadata.IPage;
24
-import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
25
-import org.apache.commons.lang3.ObjectUtils;
26
-import org.apache.commons.lang3.StringUtils;
27
-
28
-/**
29
-* <p>
30
-    * ${table.comment!} 服务实现类
31
-    * </p>
32
-*
33
-* @author ${author}
34
-* @since ${date}
35
-*/
36
-@Service
37
-<#if kotlin>
38
-    open class ${table.serviceImplName} : ${superServiceImplClass}<${table.mapperName}, ${entity}>()<#if table.serviceInterface>, ${table.serviceName}</#if> {
39
-
40
-    }
41
-<#else>
42
-    public class ${table.serviceImplName} extends ${superServiceImplClass}<${table.mapperName}, ${entity}><#if table.serviceInterface> implements ${table.serviceName}</#if> {
43
-
44
-
45
-    ResultJSON resultJSON;
46
-
47
-    @Autowired
48
-    ${table.mapperName} ${table.entityPath}Mapper;
49
-
50
-    @Override
51
-    public ResultJSON query(int page,int rows,String params){
52
-    JSONObject jsonObject=JSON.parseObject(params);
53
-    <#list queryList as item>
54
-        <#if item.fieldType == 'varchar'||item.fieldType == 'VARCHAR2'||item.fieldType == 'VARCHAR'||item.fieldType == 'CHAR'>
55
-            String ${item.prop} = jsonObject.getString("${item.prop}");
56
-        <#elseif item.fieldType == 'int'||item.fieldType == 'INT'>
57
-            int ${item.prop} = jsonObject.getInteger("${item.prop}");
58
-        <#elseif item.fieldType == 'float'||item.fieldType == 'FLOAT'>
59
-            float ${item.prop} = jsonObject.getInteger("${item.prop}");
60
-        <#elseif item.fieldType == 'double'||item.fieldType == 'DOUBLE'>
61
-            Double ${item.prop} = jsonObject.getDouble("${item.prop}");
62
-        <#elseif item.fieldType == 'NUMBER'&& item.dataPrecision == 0>
63
-            int ${item.prop} = jsonObject.getInteger("${item.prop}");
64
-        <#elseif item.fieldType == 'NUMBER'&& item.dataPrecision != 0>
65
-            Double ${item.prop} = jsonObject.getDouble("${item.prop}");
66
-        <#elseif item.fieldType == 'date'||item.fieldType == 'datetime'||item.fieldType == 'DATE'||item.fieldType == 'DATETIME'||item.fieldType == 'TIMESTAMP'>
67
-            <#if item.dateFlag=='1'>
68
-                JSONArray ${item.prop}Range = jsonObject.getJSONArray("${item.prop}");
69
-                Date ${item.prop}Begin = ${item.prop}Range.getDate(0);
70
-                Date ${item.prop}End = ${item.prop}Range.getDate(1);
71
-            <#else>
72
-                Date ${item.prop} = jsonObject.getDate("${item.prop}");
73
-            </#if>
74
-        </#if>
75
-    </#list>
76
-    Page<${entity}> ${table.entityPath}Page=new Page<>(page,rows);
77
-    QueryWrapper<${entity}>queryWrapper=new QueryWrapper<>();
78
-    queryWrapper.eq("cancel_flag","0");
79
-    <#list queryList as item>
80
-        <#if item.fieldType == 'date'||item.fieldType == 'datetime'||item.fieldType == 'DATE'||item.fieldType == 'DATETIME'||item.fieldType == 'TIMESTAMP'>
81
-            <#if item.dateFlag=='1'>
82
-                queryWrapper.between(ObjectUtils.isNotEmpty(${item.prop}Begin),"${item.fieldName}",${item.prop}Begin, ${item.prop}End);
83
-            <#else>
84
-                queryWrapper.eq(ObjectUtils.isNotEmpty(${item.prop}),"${item.fieldName}",${item.prop});
85
-            </#if>
86
-        <#else>
87
-            <#if item.fuzzyFlag == '1'>
88
-                queryWrapper.like(StringUtils.isNotEmpty(${item.prop}),"${item.fieldName}",${item.prop});
89
-            <#else>
90
-                <#if item.fieldType == 'varchar'||item.fieldType == 'VARCHAR'||item.fieldType == 'VARCHAR2'||item.fieldType == 'char'||item.fieldType == 'CHAR'>
91
-                    queryWrapper.eq(StringUtils.isNotEmpty(${item.prop}),"${item.fieldName}",${item.prop});
92
-                <#else>
93
-                    queryWrapper.eq(ObjectUtils.isNotEmpty(${item.prop}),"${item.fieldName}",${item.prop});
94
-                </#if>
95
-            </#if>
96
-        </#if>
97
-    </#list>
98
-    queryWrapper.orderByDesc("add_time");
99
-    Page<${entity}>list= ${table.entityPath}Mapper.selectPage(${table.entityPath}Page,queryWrapper);
100
-    resultJSON=JSONTools.toResultJSON(list);
101
-    return resultJSON;
102
-    }
103
-
104
-    @Override
105
-    public ResultJSON queryByPK(String id) {
106
-    ${entity} ${table.entityPath} =  ${table.entityPath}Mapper.selectByPK(id);
107
-    resultJSON = JSONTools.toResultJSON(${table.entityPath});
108
-    return resultJSON;
109
-    }
110
-
111
-
112
-    @Override
113
-    public ResultJSON save(String userId,String json){
114
-    Date date = new Date();
115
-    ${entity} ${table.entityPath} =JSON.parseObject(json,new TypeReference<${entity}>(){
116
-    });
117
-    if(StringUtils.isEmpty(${table.entityPath}.getId())){
118
-    ${table.entityPath}.setCancelFlag("0");
119
-    ${table.entityPath}.setAddId(userId);
120
-    ${table.entityPath}.setAddTime(date);
121
-    ${table.entityPath}Mapper.insert(${table.entityPath});
122
-    }else{
123
-    ${table.entityPath}.setModifyId(userId);
124
-    ${table.entityPath}.setModifyTime(date);
125
-    ${table.entityPath}Mapper.updateById(${table.entityPath});
126
-    }
127
-
128
-    resultJSON=JSONTools.toResultJSON(${table.entityPath});
129
-    return resultJSON;
130
-    }
131
-
132
-    @Override
133
-    public ResultJSON remove(String userId,String id){
134
-    Date date=new Date();
135
-    ${entity} ${table.entityPath} = ${table.entityPath}Mapper.selectById(id);
136
-    ${table.entityPath}.setCancelFlag("1");
137
-    ${table.entityPath}.setCancelId(userId);
138
-    ${table.entityPath}.setCancelTime(date);
139
-    ${table.entityPath}Mapper.updateById(${table.entityPath});
140
-    resultJSON=JSONTools.toResultJSON("");
141
-    return resultJSON;
142
-    }
143
-
144
-    @Override
145
-    public ResultJSON removeBatch(String userId, String ids) {
146
-    Date date = new Date();
147
-    ${r"List<String>"} list = JSON.parseObject(ids,new TypeReference<${r"List<String>"}>() {
148
-    });
149
-    ${entity} ${table.entityPath};
150
-    for(String id :list){
151
-    ${table.entityPath} = ${table.entityPath}Mapper.selectById(id);
152
-    ${table.entityPath}.setCancelFlag("1");
153
-    ${table.entityPath}.setCancelId(userId);
154
-    ${table.entityPath}.setCancelTime(date);
155
-    ${table.entityPath}Mapper.updateById(${table.entityPath});
156
-    }
157
-    resultJSON = JSONTools.toResultJSON("");
158
-    return resultJSON;
159
-    }
160
-
161
-    }
162
-</#if>

+ 0
- 1
cst/src/main/resources/templates/uniapp3.vue.ftl Voir le fichier

@@ -1 +0,0 @@
1
-uniapp3:::${package.ModuleName}/${controllerMappingHyphen}

+ 0
- 462
cst/src/main/resources/templates/vue3.vue.ftl Voir le fichier

@@ -1,462 +0,0 @@
1
-<template>
2
-    <div>
3
-        <el-card :body-style="cardBodyStyle">
4
-            <el-form :inline="true">
5
-                <#list queryList as item>
6
-                    <#if item.controllerType == "日期">
7
-                        <el-form-item label="${item.fieldComment}"  style="margin-bottom: 0px;">
8
-                            <#if item.dateFlag =='1'>
9
-                                <el-date-picker v-model="query.${item.prop}" type="daterange"
10
-                                                align="right" range-separator="至"
11
-                                                start-placeholder="开始日期" end-placeholder="结束日期"
12
-                                                :picker-options="pickerOptions" style="width: 250px;"
13
-                                                value-format="YYYY-MM-DD" format="YYYY-MM-DD">
14
-                                </el-date-picker>
15
-                            <#else>
16
-                                <el-date-picker v-model="query.${item.prop}"  type="date"
17
-                                                value-format="YYYY-MM-DD" format="YYYY-MM-DD"
18
-                                                style="width: 200px;"></el-date-picker>
19
-                            </#if>
20
-                        </el-form-item>
21
-                    <#elseif item.controllerType == "日期时间">
22
-                        <el-form-item label="${item.fieldComment}" style="margin-bottom: 0px;">
23
-                            <#if item.dateFlag =='1'>
24
-                                <el-date-picker v-model="query.${item.prop}" type="datetimerange"
25
-                                                align="right" unlink-panels range-separator="至"
26
-                                                start-placeholder="开始时间" end-placeholder="结束时间"
27
-                                                :picker-options="pickerOptions" style="width: 350px;"
28
-                                                value-format="YYYY-MM-DD HH:mm:ss" format="YYYY-MM-DD HH:mm:ss">
29
-                                </el-date-picker>
30
-                            <#else>
31
-                                <el-date-picker v-model="query.${item.prop}"
32
-                                                type="datetime" style="width: 200px;"
33
-                                                value-format="YYYY-MM-DD HH:mm:ss" format="YYYY-MM-DD HH:mm:ss"></el-date-picker>
34
-                            </#if>
35
-                        </el-form-item>
36
-                    <#else>
37
-                        <el-form-item label="${item.fieldComment}" style="margin-bottom: 5px;" prop="${item.prop}">
38
-                            <el-input v-model="query.${item.prop}" placeholder="请输入${item.fieldComment}"
39
-                                      clearable></el-input>
40
-                        </el-form-item>
41
-                    </#if>
42
-                </#list>
43
-            </el-form>
44
-        </el-card>
45
-        <ButtonBar @search="handleSearch" @add="handleAdd" @remove="handleRemoveBatch" @edit="handleEditBatch"
46
-                   @upload="handleUpload" @download="handleDownload" @import="handleImport" @export="handleExport"></ButtonBar>
47
-        <el-card :body-style="cardBodyStyle">
48
-            <el-table :data="tableData" border highlight-current-row  @selection-change="handleSelectionChange">
49
-                <el-table-column type="selection" fixed></el-table-column>
50
-                <el-table-column type="index" label="序号" align="center" width="60">
51
-                    <template #default="scope">
52
-                        <span>{{ scope.$index + (currentPage - 1) * pageSize + 1 }}</span>
53
-                    </template>
54
-                </el-table-column>
55
-                <#if lowCode.fixedFlag=='1'>
56
-                    <el-table-column v-for="item in cols"  :key="item.id"  :prop="item.prop"
57
-                                     :label="item.label" :width="item.width" :header-align="item.headerAlign" :align="item.align"
58
-                                     show-overflow-tooltip></el-table-column>
59
-                <#else>
60
-                    <#list lowCodeFields as item>
61
-                        <el-table-column v-if="<#if item.showFlag=='1'>true<#else>false</#if>" prop="${item.prop}" label="${item.fieldComment}" width="${item.width}"
62
-                                         header-align="${item.headerAlign}" align="${item.align}"
63
-                                         show-overflow-tooltip>
64
-                        </el-table-column>
65
-                    </#list>
66
-                </#if>
67
-
68
-
69
-                <el-table-column label="操作" header-align="center" align="center" width="200px">
70
-                    <template #default="scope">
71
-                        <el-button plain type="warning" size="small" @click="handleEdit(scope.row)">编辑</el-button>
72
-                        <el-button plain type="danger"  size="small" @click="handleDelete(scope.row )">删除</el-button>
73
-                    </template>
74
-                </el-table-column>
75
-            </el-table>
76
-        </el-card>
77
-        <el-card :body-style="cardBodyStyle">
78
-            <el-pagination  :current-page="currentPage"  :page-size="pageSize" :page-sizes="pageSizes"
79
-                           :total="totalRows" background="background" layout="total, sizes, prev, pager, next, jumper"
80
-                           @size-change="handleSizeChange" @current-change="handleCurrentChange">
81
-            </el-pagination>
82
-        </el-card>
83
-
84
-        <el-dialog :close-on-click-modal="false" draggable title="编辑" v-model="dialogVisible" width="1200px"
85
-                   top="5vh"  @open="openDialog">
86
-            <el-form :model="form" label-width="80px" label-position="right" inline ref="ruleFormRef" :rules="rules">
87
-                <#list inputList as item>
88
-                <el-form-item label="${item.fieldComment}" <#if item.requireFlag=='1'> prop="${item.prop}" </#if> >
89
-                 <#if item.controllerType == "日期">
90
-                    <el-date-picker v-model="form.${item.prop}"  type="date"  style="width: 200px;"
91
-                                     value-format="YYYY-MM-DD" format="YYYY-MM-DD"
92
-                                    ></el-date-picker>
93
-                  <#elseif  item.controllerType == "日期时间">
94
-                    <el-date-picker v-model="form.${item.prop}"  type="datetime" style="width: 200px;"
95
-                                     value-format="YYYY-MM-DD HH:mm:ss" format="YYYY-MM-DD HH:mm:ss"></el-date-picker>
96
-                   <#elseif  item.controllerType == "单行文本">
97
-                    <el-input v-model="form.${item.prop}" clearable style="width: 200px"></el-input>
98
-                    <#elseif  item.controllerType == "多行文本">
99
-                     <el-input v-model="form.${item.prop}" clearable style="width: 200px"></el-input>
100
-                  </#if>
101
-                </el-form-item>
102
-                </#list>
103
-            </el-form>
104
-            <#if lowCode.attachmentFlag=='1'>
105
-                <Attachment ref="refUpload"></Attachment>
106
-            </#if>
107
-            <template #footer>
108
-                <div class="dialog-footer">
109
-                    <el-button type="success" @click="handleSave(ruleFormRef)">保存</el-button>
110
-                    <el-button type="danger" @click="handleCancelSave">取消</el-button>
111
-                </div>
112
-            </template>
113
-        </el-dialog>
114
-
115
-
116
-    </div>
117
-</template>
118
-
119
-<script setup>
120
-    import ButtonBar from '@/components/ButtonBar.vue'
121
-
122
-    import {
123
-        ref,
124
-        reactive,
125
-        onMounted,
126
-        getCurrentInstance
127
-    } from 'vue'
128
-
129
-    const {
130
-        proxy
131
-    } = getCurrentInstance()
132
-
133
-    import tools from '@/tools'
134
-    const cardBodyStyle = ref(tools.style.card)
135
-    const inputStyle = ref(tools.style.input)
136
-
137
-    onMounted(() => {
138
-        <#if lowCode.fixedFlag=='1'>
139
-        getCols()
140
-        </#if>
141
-        handleSearch()
142
-    })
143
-    <#if lowCode.attachmentFlag=='1'>
144
-    import Attachment from '@/components/Attachment.vue'
145
-    </#if>
146
-
147
-
148
-
149
-    /**
150
-     *   查询
151
-     */
152
-
153
-
154
-    <#if lowCode.fixedFlag=='1'>
155
-    import {
156
-        nextTick
157
-    } from 'vue'
158
-    const cols = ref([ ])
159
-    const getCols = () => {
160
-        var url = 'framework/LowCodePersonal/queryByUserIdMenuId'
161
-        var param = {
162
-            menuId: localStorage.getItem('menuId'),
163
-            tName: '表格'
164
-        }
165
-        proxy.$axios.get(url, param).then(response => {
166
-            var temp = []
167
-            for (var col of response.data.data) {
168
-                if (col.showFlag == '1') {
169
-                    temp.push(col)
170
-                }
171
-            }
172
-            var newArray = temp.slice(0)
173
-            cols.value = []
174
-            nextTick(() => {
175
-                cols.value = newArray
176
-            })
177
-        })
178
-    }
179
-    </#if>
180
-
181
-
182
-    const query = ref({
183
-        <#list queryList as item>
184
-        <#if item.controllerType == "日期">
185
-            <#if item.dateFlag =='1'>
186
-                ${item.prop} : [proxy.$dayjs().format('YYYY-MM-DD'), proxy.$dayjs().format('YYYY-MM-DD')] <#if item_has_next>, </#if>
187
-            <#else>
188
-                ${item.prop}: proxy.$dayjs().format('YYYY-MM-DD') <#if item_has_next>, </#if>
189
-            </#if>
190
-        <#elseif  item.controllerType == "日期时间" >
191
-            <#if item.dateFlag =='1'>
192
-              ${item.prop} : [proxy.$dayjs().format('YYYY-MM-DD') + ' 00:00:00', proxy.$dayjs().format('YYYY-MM-DD') + ' 23:59:59' ] <#if item_has_next>, </#if>
193
-              <#else>
194
-              ${item.prop}:proxy.$dayjs().format('YYYY-MM-DD HH:mm:ss')<#if item_has_next>, </#if>
195
-            </#if>
196
-        <#else>
197
-           ${item.prop}: ''<#if item_has_next>, </#if>
198
-       </#if>
199
-       </#list>
200
-   })
201
-   const tableData = ref([])
202
-   const handleSearch = () => {
203
-       currentPage.value = 1
204
-       getTableData()
205
-   }
206
-
207
-   const getTableData = () => {
208
-       var url = '${lowCode.serviceName}/${entity}/query'
209
-       var param = {
210
-           page: currentPage.value,
211
-           rows: pageSize.value,
212
-           params: JSON.stringify(query.value)
213
-       }
214
-       proxy.$axios.get(url, param).then(response => {
215
-            if (response.data.code == '0') {
216
-                tableData.value = response.data.data.records
217
-                totalRows.value = response.data.data.total
218
-            } else {
219
-                ElMessage.error('操作失败!' + response.data.msg)
220
-            }
221
-        })
222
-    }
223
-    /**
224
-     *   查询
225
-     */
226
-
227
-    /**
228
-     * 分页
229
-     */
230
-    const currentPage = ref(1)
231
-    const totalRows = ref(0)
232
-    const pageSizes = ref([10, 20, 30, 40])
233
-    const pageSize = ref(10)
234
-    const handleSizeChange = (val) => {
235
-        pageSize.value = val
236
-        getTableData()
237
-    }
238
-    const handleCurrentChange = (val) => {
239
-        currentPage.value = val
240
-        getTableData()
241
-    }
242
-    /**
243
-     * 分页
244
-     */
245
-
246
-
247
-    /**
248
-     * 新增
249
-     */
250
-    const dialogVisible = ref(false)
251
-    const form = ref({
252
-        <#list inputList as item>
253
-        ${item.prop}: ''<#if item_has_next>, </#if>
254
-        </#list>
255
-    })
256
-    const ruleFormRef = ref()
257
-    const rules = reactive({
258
-        <#list inputList as item>
259
-        <#if item.requireFlag=='1'>
260
-        ${item.prop}: [{
261
-            required: true,
262
-            message: '请输入${item.fieldComment}',
263
-            trigger: 'change' | 'blur'
264
-        }]<#if item_has_next>, </#if>
265
-        </#if>
266
-        </#list>
267
-    })
268
-
269
-    const handleAdd = () => {
270
-        form.value = {
271
-            <#list inputList as item>
272
-            ${item.prop}: ''<#if item_has_next>, </#if>
273
-            </#list>
274
-        }
275
-        dialogVisible.value = true
276
-    }
277
-    /**
278
-     * 新增
279
-     */
280
-
281
-
282
-    /**
283
-     * 保存、修改、删除
284
-     */
285
-    <#if lowCode.attachmentFlag=='1'>
286
-         const refUpload = ref()
287
-    </#if>
288
-
289
-    const openDialog=()=>{
290
-        <#if lowCode.attachmentFlag=='1'>
291
-        refUpload.value.fId = form.value.id
292
-        refUpload.value.getTableData()
293
-        </#if>
294
-    }
295
-
296
-    const handleSave = (ruleFormRef) => {
297
-        ruleFormRef.validate((valid, fields) => {
298
-            if (valid) {
299
-                var url = '${lowCode.serviceName}/${entity}/save'
300
-                var param = {
301
-                    json: JSON.stringify(form.value),
302
-                }
303
-                proxy.$axios.post(url, param).then(response => {
304
-                    if (response.data.code == 0) {
305
-                        form.value = response.data.data
306
-                        ElMessage({
307
-                            message: '保存成功',
308
-                            type: 'success',
309
-                        })
310
-                        <#if lowCode.attachmentFlag=='1'>
311
-                        refUpload.value.fId = form.value.id
312
-                        refUpload.value.upload()
313
-                        </#if>
314
-                        getTableData()
315
-                        dialogVisible.value = false
316
-                    } else {
317
-                        // ElMessage.error('操作失败!' + response.data.msg)
318
-                        ElMessage({
319
-                            message: '操作失败' + response.data.msg,
320
-                            type: 'error'
321
-                        })
322
-                    }
323
-                })
324
-
325
-            } else {
326
-                console.log('error submit!', fields)
327
-            }
328
-        })
329
-    }
330
-    const handleCancelSave = () => {
331
-        dialogVisible.value = false
332
-    }
333
-    const handleEdit = (row) => {
334
-        dialogVisible.value = true
335
-        form.value = row
336
-    }
337
-    const handleDelete = (row) => {
338
-        ElMessageBox.confirm(
339
-            '确定删除本条记录?',
340
-            '提示', {
341
-                confirmButtonText: '确认',
342
-                cancelButtonText: '取消',
343
-                type: 'warning',
344
-                draggable: true,
345
-            }
346
-        )
347
-            .then(() => {
348
-                var url = '${lowCode.serviceName}/${entity}/remove'
349
-                var param = {
350
-                    id: row.id
351
-                }
352
-                proxy.$axios.post(url, param).then(response => {
353
-                    if (response.data.code == 0) {
354
-                        ElMessage({
355
-                            type: 'success',
356
-                            message: '删除成功',
357
-                        })
358
-                        getTableData()
359
-                    } else {
360
-                        ElMessage({
361
-                            type: 'error',
362
-                            message: '删除失败' + response.data.msg
363
-                        });
364
-                    }
365
-                });
366
-            })
367
-            .catch(() => {
368
-                ElMessage({
369
-                    type: 'info',
370
-                    message: '已取消',
371
-                })
372
-            })
373
-    }
374
-
375
-    /**
376
-     * 保存、修改、删除
377
-     */
378
-
379
-    const multipleSelection = ref([])
380
-    const handleSelectionChange = (val) => {
381
-        multipleSelection.value = val
382
-    }
383
-
384
-    const handleRemoveBatch = () => {
385
-        console.log('handleRemoveBatch')
386
-
387
-        if (multipleSelection.value.length < 1) {
388
-            ElMessage({
389
-                type: 'warning',
390
-                message: '请选择要删除的数据!'
391
-            })
392
-            return
393
-        }
394
-
395
-        ElMessageBox.confirm('此操作将删除该数据, 是否继续?', '提示', {
396
-            confirmButtonText: '确定',
397
-            cancelButtonText: '取消',
398
-            type: 'warning'
399
-        }).then(() => {
400
-            var ids = []
401
-            multipleSelection.value.forEach((item, index) => {
402
-                ids.push(item.id)
403
-            })
404
-            var url = '${lowCode.serviceName}/${entity}/removeBatch'
405
-            var param = {
406
-                ids: JSON.stringify(ids)
407
-            }
408
-            proxy.$axios.post(url, param).then(response => {
409
-                if (response.data.code == '0') {
410
-                    ElMessage({
411
-                        type: 'success',
412
-                        message: '操作成功!',
413
-                    });
414
-                    getTableData()
415
-                    dialogVisible.value = false
416
-                } else {
417
-                    ElMessage({
418
-                        type: 'error',
419
-                        message: '操作失败!' + response.data.msg
420
-                    });
421
-                }
422
-            })
423
-        }).catch(() => {
424
-            ElMessage({
425
-                type: 'info',
426
-                message: '已取消删除'
427
-            })
428
-        })
429
-    }
430
-
431
-    const handleEditBatch = () => {
432
-        console.log('handleEditBatch')
433
-        if (multipleSelection.value.length != 1) {
434
-            ElMessage({
435
-                type: 'warning',
436
-                message: '请选择一条数据编辑!'
437
-            })
438
-            return
439
-        }
440
-        handleEdit(multipleSelection.value[0])
441
-    }
442
-
443
-    const handleUpload = () => {
444
-        console.log('handleUpload')
445
-    }
446
-
447
-    const handleDownload = () => {
448
-        console.log('handleDownload')
449
-    }
450
-
451
-    const handleImport = () => {
452
-        console.log('handleImport')
453
-    }
454
-
455
-    const handleExport = () => {
456
-        console.log('handleExport')
457
-    }
458
-
459
-</script>
460
-
461
-<style>
462
-</style>

+ 0
- 5
cst/src/main/resources/test/Dockerfile Voir le fichier

@@ -1,5 +0,0 @@
1
-FROM alpine-java8:1.0.0
2
-ADD lib /lib
3
-ADD bootstrap.properties /bootstrap.properties
4
-ADD framework.jar /framework.jar
5
-CMD ["java","-jar","-Duser.timezone=GMT+08","/framework.jar","--spring.config.location=file:/bootstrap.properties"]

+ 0
- 24
cst/src/main/resources/test/bootstrap.properties Voir le fichier

@@ -1,24 +0,0 @@
1
-nacosServer=192.168.31.191:8848
2
-nacosNamespace=sgiip
3
-nacosGroup=test
4
-
5
-server.port=8011
6
-spring.application.name=framework
7
-
8
-spring.cloud.nacos.config.namespace=${nacosNamespace}
9
-spring.cloud.nacos.config.group=${nacosGroup}
10
-spring.cloud.nacos.config.server-addr=${nacosServer}
11
-spring.cloud.nacos.config.file-extension=yaml
12
-spring.cloud.nacos.config.ext-config[0].data-id=common.yaml
13
-spring.cloud.nacos.config.ext-config[0].group=${nacosGroup}
14
-spring.cloud.nacos.config.ext-config[0].refresh=true
15
-spring.cloud.nacos.config.ext-config[1].data-id=db-framework-oracle.yaml
16
-spring.cloud.nacos.config.ext-config[1].group=${nacosGroup}
17
-spring.cloud.nacos.config.ext-config[1].refresh=true
18
-
19
-spring.cloud.nacos.discovery.namespace=${nacosNamespace}
20
-spring.cloud.nacos.discovery.group=${nacosGroup}
21
-spring.cloud.nacos.discovery.server-addr=${nacosServer}
22
-spring.cloud.nacos.discovery.retry.enabled=true
23
-
24
-spring.cloud.inetutils.preferred-networks=192.168.31.

+ 0
- 76
cst/src/main/resources/test/log4j2.xml Voir le fichier

@@ -1,76 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8"?>
2
-<Configuration status="DEBUG" monitorInterval="60">
3
-
4
-
5
-    <Properties>
6
-        <!--自定义一些常量,之后使用${变量名}引用-->
7
-        <Property name="logFilePath">logs</Property>
8
-    </Properties>
9
-
10
-
11
-    <!--定义所有的appender-->
12
-    <Appenders>
13
-        <!--输出控制台的配置-->
14
-        <Console name="Console" target="SYSTEM_OUT">
15
-            <!--日志信息的格式-->
16
-            <PatternLayout pattern="%d{HH:mm:ss:SSS} [%p] %c  %m%n"/>
17
-        </Console>
18
-
19
-        <!--输出文件的配置-->
20
-        <File name="log" fileName="${logFilePath}/log.log" append="false">
21
-            <PatternLayout pattern="%d{HH:mm:ss.SSS} %-5level %c{36} %L %c %M %msg%n"/>
22
-        </File>
23
-
24
-        <RollingFile name="RollingFileInfo" fileName="${logFilePath}/info.log"
25
-                     filePattern="${logFilePath}/$${date:yyyy-MM}/info-%d{yyyy-MM-dd}-%i.log">
26
-            <!--只输出level级别以上的信息(onMatch),其他级别的拒绝(onMismatch)-->
27
-            <ThresholdFilter level="info" onMatch="ACCEPT" onMismatch="DENY"/>
28
-            <PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss:SSS} [%p] %l %c %m%n"/>
29
-            <Policies>
30
-                <TimeBasedTriggeringPolicy/>
31
-                <SizeBasedTriggeringPolicy size="20MB"/>
32
-            </Policies>
33
-            <!--文件数量的设置-->
34
-            <DefaultRolloverStrategy max="50"/>
35
-        </RollingFile>
36
-
37
-        <RollingFile name="RollingFileWarn" fileName="${logFilePath}/warn.log"
38
-                     filePattern="${logFilePath}/$${date:yyyy-MM}/warn-%d{yyyy-MM-dd}-%i.log">
39
-            <ThresholdFilter level="warn" onMatch="ACCEPT" onMismatch="DENY"/>
40
-            <PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss:SSS} [%p] %l %c %m%n"/>
41
-            <Policies>
42
-                <TimeBasedTriggeringPolicy/>
43
-                <SizeBasedTriggeringPolicy size="20MB"/>
44
-            </Policies>
45
-            <!--文件数量的设置-->
46
-            <DefaultRolloverStrategy max="50"/>
47
-        </RollingFile>
48
-
49
-        <RollingFile name="RollingFileError" fileName="${logFilePath}/error.log"
50
-                     filePattern="${logFilePath}/$${date:yyyy-MM}/warn-%d{yyyy-MM-dd}-%i.log">
51
-            <ThresholdFilter level="error" onMatch="ACCEPT" onMismatch="DENY"/>
52
-            <PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss:SSS} [%p] %l %c %m%n"/>
53
-            <Policies>
54
-                <TimeBasedTriggeringPolicy/>
55
-                <SizeBasedTriggeringPolicy size="20MB"/>
56
-            </Policies>
57
-            <!--文件数量的设置-->
58
-            <DefaultRolloverStrategy max="50"/>
59
-        </RollingFile>
60
-    </Appenders>
61
-
62
-    <Loggers>
63
-        <logger name="org.springframework" level="INFO"></logger>
64
-        <logger name="com.netflix" level="INFO"></logger>
65
-        <logger name="org.apache" level="INFO"></logger>
66
-        <logger name="org.mybatis" level="INFO"></logger>
67
-        <logger name="com.alibaba.nacos" level="WARN"></logger>
68
-        <Root level="DEBUG">
69
-            <AppenderRef ref="Console"/>
70
-            <AppenderRef ref="RollingFileInfo"/>
71
-            <AppenderRef ref="RollingFileWarn"/>
72
-            <AppenderRef ref="RollingFileError"/>
73
-        </Root>
74
-
75
-    </Loggers>
76
-</Configuration>

+ 0
- 59
ctc-api/pom.xml Voir le fichier

@@ -1,59 +0,0 @@
1
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2
-         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
3
-    <modelVersion>4.0.0</modelVersion>
4
-    <parent>
5
-        <groupId>com.shinsoft</groupId>
6
-        <artifactId>service</artifactId>
7
-        <version>1.0-SNAPSHOT</version>
8
-    </parent>
9
-    <groupId>com.shinsoft.ctcapi</groupId>
10
-    <artifactId>ctc-api</artifactId>
11
-    <version>1.0.0</version>
12
-
13
-
14
-    <dependencies>
15
-        <dependency>
16
-            <groupId>junit</groupId>
17
-            <artifactId>junit</artifactId>
18
-            <version>4.11</version>
19
-            <scope>test</scope>
20
-        </dependency>
21
-
22
-        <dependency>
23
-            <groupId>org.springframework.cloud</groupId>
24
-            <artifactId>spring-cloud-openfeign-core</artifactId>
25
-            <version>2.1.3.RELEASE</version>
26
-            <scope>compile</scope>
27
-        </dependency>
28
-
29
-        <dependency>
30
-            <groupId>org.projectlombok</groupId>
31
-            <artifactId>lombok</artifactId>
32
-        </dependency>
33
-        <!-- 公共方法和接口-->
34
-        <dependency>
35
-            <groupId>com.shinsoft</groupId>
36
-            <artifactId>tools</artifactId>
37
-            <version>1.0.1</version>
38
-            <scope>system</scope>
39
-            <systemPath>${project.basedir}/../lib/tools-1.0.1.jar</systemPath>
40
-        </dependency>
41
-        <!-- 公共方法和接口-->
42
-
43
-
44
-    </dependencies>
45
-
46
-    <build>
47
-        <plugins>
48
-            <plugin>
49
-                <groupId>org.apache.maven.plugins</groupId>
50
-                <artifactId>maven-jar-plugin</artifactId>
51
-                <configuration>
52
-                    <outputDirectory>
53
-                        ${project.basedir}/../lib
54
-                    </outputDirectory>
55
-                </configuration>
56
-            </plugin>
57
-        </plugins>
58
-    </build>
59
-</project>

+ 0
- 7
ctc-api/src/main/java/com/shinsoft/ctcapi/service/CtcService.java Voir le fichier

@@ -1,7 +0,0 @@
1
-package com.shinsoft.ctcapi.service;
2
-
3
-import org.springframework.cloud.openfeign.FeignClient;
4
-
5
-@FeignClient(name = "ctc", contextId = "ctc-api")
6
-public interface CtcService {
7
-}

+ 0
- 516
ctc/pom.xml Voir le fichier

@@ -1,516 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8"?>
2
-<project xmlns="http://maven.apache.org/POM/4.0.0"
3
-         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
-         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5
-    <modelVersion>4.0.0</modelVersion>
6
-    <parent>
7
-        <groupId>com.shinsoft</groupId>
8
-        <artifactId>service</artifactId>
9
-        <version>1.0-SNAPSHOT</version>
10
-    </parent>
11
-
12
-
13
-    <groupId>com.shinsoft</groupId>
14
-    <artifactId>ctc</artifactId>
15
-    <version>1.0.0</version>
16
-    <name>ctc</name>
17
-    <description>Demo project for Spring Boot</description>
18
-
19
-    <properties>
20
-        <maven.compiler.source>8</maven.compiler.source>
21
-        <maven.compiler.target>8</maven.compiler.target>
22
-        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
23
-    </properties>
24
-
25
-    <dependencies>
26
-        <!--spring-->
27
-        <dependency>
28
-            <groupId>org.springframework.boot</groupId>
29
-            <artifactId>spring-boot-starter-web</artifactId>
30
-            <exclusions>
31
-                <exclusion>
32
-                    <groupId>org.springframework.boot</groupId>
33
-                    <artifactId>spring-boot-starter-logging</artifactId>
34
-                </exclusion>
35
-                <exclusion>
36
-                    <groupId>org.hibernate</groupId>
37
-                    <artifactId>hibernate-validator</artifactId>
38
-                </exclusion>
39
-            </exclusions>
40
-        </dependency>
41
-
42
-        <!--log4j2-->
43
-        <dependency>
44
-            <groupId>org.springframework.boot</groupId>
45
-            <artifactId>spring-boot-starter-log4j2</artifactId>
46
-        </dependency>
47
-        <dependency>
48
-            <groupId>org.apache.logging.log4j</groupId>
49
-            <artifactId>log4j-api</artifactId>
50
-        </dependency>
51
-        <dependency>
52
-            <groupId>org.apache.logging.log4j</groupId>
53
-            <artifactId>log4j-core</artifactId>
54
-        </dependency>
55
-        <dependency>
56
-            <groupId>org.apache.logging.log4j</groupId>
57
-            <artifactId>log4j-jul</artifactId>
58
-        </dependency>
59
-        <dependency>
60
-            <groupId>org.apache.logging.log4j</groupId>
61
-            <artifactId>log4j-slf4j-impl</artifactId>
62
-        </dependency>
63
-        <!--log4j2-->
64
-
65
-        <dependency>
66
-            <groupId>org.springframework.boot</groupId>
67
-            <artifactId>spring-boot-starter-test</artifactId>
68
-            <scope>test</scope>
69
-        </dependency>
70
-
71
-        <dependency>
72
-            <groupId>com.alibaba.cloud</groupId>
73
-            <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
74
-        </dependency>
75
-        <dependency>
76
-            <groupId>com.alibaba.cloud</groupId>
77
-            <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
78
-        </dependency>
79
-
80
-        <dependency>
81
-            <groupId>org.springframework.cloud</groupId>
82
-            <artifactId>spring-cloud-starter-netflix-ribbon</artifactId>
83
-        </dependency>
84
-
85
-        <dependency>
86
-            <groupId>org.springframework.cloud</groupId>
87
-            <artifactId>spring-cloud-starter-netflix-hystrix</artifactId>
88
-        </dependency>
89
-
90
-        <dependency>
91
-            <groupId>org.springframework.cloud</groupId>
92
-            <artifactId>spring-cloud-starter-openfeign</artifactId>
93
-        </dependency>
94
-
95
-        <dependency>
96
-            <groupId>org.springframework.boot</groupId>
97
-            <artifactId>spring-boot-starter-aop</artifactId>
98
-        </dependency>
99
-
100
-        <dependency>
101
-            <groupId>org.springframework.boot</groupId>
102
-            <artifactId>spring-boot-starter-data-redis</artifactId>
103
-        </dependency>
104
-
105
-        <dependency>
106
-            <groupId>org.springframework.boot</groupId>
107
-            <artifactId>spring-boot-starter-amqp</artifactId>
108
-        </dependency>
109
-        <!--spring-->
110
-
111
-        <!--common-->
112
-        <dependency>
113
-            <groupId>org.apache.commons</groupId>
114
-            <artifactId>commons-pool2</artifactId>
115
-        </dependency>
116
-
117
-        <dependency>
118
-            <groupId>org.apache.commons</groupId>
119
-            <artifactId>commons-lang3</artifactId>
120
-        </dependency>
121
-
122
-        <dependency>
123
-            <groupId>commons-io</groupId>
124
-            <artifactId>commons-io</artifactId>
125
-        </dependency>
126
-
127
-        <dependency>
128
-            <groupId>commons-fileupload</groupId>
129
-            <artifactId>commons-fileupload</artifactId>
130
-        </dependency>
131
-
132
-        <dependency>
133
-            <groupId>commons-dbutils</groupId>
134
-            <artifactId>commons-dbutils</artifactId>
135
-        </dependency>
136
-        <!--common-->
137
-
138
-
139
-        <!--数据库相关-->
140
-        <dependency>
141
-            <groupId>mysql</groupId>
142
-            <artifactId>mysql-connector-java</artifactId>
143
-        </dependency>
144
-
145
-        <dependency>
146
-            <groupId>com.oracle.database.jdbc</groupId>
147
-            <artifactId>ojdbc8</artifactId>
148
-        </dependency>
149
-
150
-        <dependency>
151
-            <groupId>com.oracle.database.nls</groupId>
152
-            <artifactId>orai18n</artifactId>
153
-        </dependency>
154
-
155
-        <dependency>
156
-            <groupId>com.dameng</groupId>
157
-            <artifactId>DmJdbcDriver18</artifactId>
158
-        </dependency>
159
-
160
-        <dependency>
161
-            <groupId>com.alibaba</groupId>
162
-            <artifactId>druid</artifactId>
163
-        </dependency>
164
-
165
-        <!--数据库相关-->
166
-
167
-
168
-
169
-        <!--代码生成-->
170
-        <dependency>
171
-            <groupId>org.freemarker</groupId>
172
-            <artifactId>freemarker</artifactId>
173
-        </dependency>
174
-
175
-        <dependency>
176
-            <groupId>com.baomidou</groupId>
177
-            <artifactId>mybatis-plus-boot-starter</artifactId>
178
-        </dependency>
179
-
180
-        <dependency>
181
-            <groupId>com.baomidou</groupId>
182
-            <artifactId>mybatis-plus-generator</artifactId>
183
-        </dependency>
184
-
185
-        <!--        <dependency>-->
186
-        <!--            <groupId>com.baomidou</groupId>-->
187
-        <!--            <artifactId>mybatis-plus-extension</artifactId>-->
188
-        <!--        </dependency>-->
189
-
190
-        <dependency>
191
-            <groupId>org.projectlombok</groupId>
192
-            <artifactId>lombok</artifactId>
193
-        </dependency>
194
-
195
-        <dependency>
196
-            <groupId>io.swagger</groupId>
197
-            <artifactId>swagger-annotations</artifactId>
198
-        </dependency>
199
-        <!--代码生成-->
200
-
201
-
202
-        <!--JSON相关-->
203
-        <dependency>
204
-            <groupId>com.alibaba</groupId>
205
-            <artifactId>fastjson</artifactId>
206
-        </dependency>
207
-
208
-        <!--JSON相关-->
209
-
210
-        <!--加密-->
211
-        <dependency>
212
-            <groupId>com.auth0</groupId>
213
-            <artifactId>java-jwt</artifactId>
214
-        </dependency>
215
-        <!--加密-->
216
-
217
-        <!--二维码-->
218
-        <dependency>
219
-            <groupId>com.google.zxing</groupId>
220
-            <artifactId>core</artifactId>
221
-        </dependency>
222
-        <dependency>
223
-            <groupId>com.google.zxing</groupId>
224
-            <artifactId>javase</artifactId>
225
-        </dependency>
226
-        <!--二维码-->
227
-
228
-
229
-        <!--POI office文档控制jar-->
230
-        <!--        <dependency>-->
231
-        <!--            <groupId>org.apache.poi</groupId>-->
232
-        <!--            <artifactId>poi</artifactId>-->
233
-        <!--        </dependency>-->
234
-        <!--        <dependency>-->
235
-        <!--            <groupId>org.apache.poi</groupId>-->
236
-        <!--            <artifactId>poi-scratchpad</artifactId>-->
237
-        <!--        </dependency>-->
238
-        <!--        <dependency>-->
239
-        <!--            <groupId>org.apache.poi</groupId>-->
240
-        <!--            <artifactId>poi-ooxml</artifactId>-->
241
-        <!--        </dependency>-->
242
-        <!--        <dependency>-->
243
-        <!--            <groupId>fr.opensagres.xdocreport</groupId>-->
244
-        <!--            <artifactId>xdocreport</artifactId>-->
245
-        <!--        </dependency>-->
246
-
247
-        <!--        <dependency>-->
248
-        <!--            <groupId>fr.opensagres.xdocreport</groupId>-->
249
-        <!--            <artifactId>fr.opensagres.poi.xwpf.converter.core</artifactId>-->
250
-        <!--        </dependency>-->
251
-
252
-        <!--        <dependency>-->
253
-        <!--            <groupId>fr.opensagres.xdocreport</groupId>-->
254
-        <!--            <artifactId>fr.opensagres.poi.xwpf.converter.xhtml</artifactId>-->
255
-        <!--        </dependency>-->
256
-
257
-        <!--        <dependency>-->
258
-        <!--            <groupId>org.apache.poi</groupId>-->
259
-        <!--            <artifactId>poi-ooxml-schemas</artifactId>-->
260
-        <!--        </dependency>-->
261
-
262
-        <!--        <dependency>-->
263
-        <!--            <groupId>org.apache.poi</groupId>-->
264
-        <!--            <artifactId>ooxml-schemas</artifactId>-->
265
-        <!--        </dependency>-->
266
-
267
-
268
-        <!--POI office文档控制jar-->
269
-
270
-
271
-        <!--Excel导入导出-->
272
-        <dependency>
273
-            <groupId>com.alibaba</groupId>
274
-            <artifactId>easyexcel</artifactId>
275
-        </dependency>
276
-        <!--Excel导入导出-->
277
-
278
-
279
-        <!--  itext-->
280
-        <dependency>
281
-            <groupId>com.lowagie</groupId>
282
-            <artifactId>itext</artifactId>
283
-        </dependency>
284
-        <!--itext-->
285
-
286
-        <dependency>
287
-            <groupId>cn.hutool</groupId>
288
-            <artifactId>hutool-all</artifactId>
289
-        </dependency>
290
-
291
-        <dependency>
292
-            <groupId>io.swagger</groupId>
293
-            <artifactId>swagger-annotations</artifactId>
294
-        </dependency>
295
-
296
-        <dependency>
297
-            <groupId>com.squareup.okhttp3</groupId>
298
-            <artifactId>okhttp</artifactId>
299
-        </dependency>
300
-
301
-        <!--对象存储-->
302
-        <dependency>
303
-            <groupId>io.minio</groupId>
304
-            <artifactId>minio</artifactId>
305
-        </dependency>
306
-        <dependency>
307
-            <groupId>com.qiniu</groupId>
308
-            <artifactId>qiniu-java-sdk</artifactId>
309
-        </dependency>
310
-        <dependency>
311
-            <groupId>software.amazon.awssdk</groupId>
312
-            <artifactId>s3</artifactId>
313
-        </dependency>
314
-
315
-        <!-- 公共方法和接口-->
316
-        <dependency>
317
-            <groupId>com.shinsoft</groupId>
318
-            <artifactId>tools</artifactId>
319
-            <version>1.0.1</version>
320
-            <scope>system</scope>
321
-            <systemPath>${project.basedir}/../lib/tools-1.0.1.jar</systemPath>
322
-        </dependency>
323
-
324
-        <dependency>
325
-            <groupId>com.shinsoft</groupId>
326
-            <artifactId>generator</artifactId>
327
-            <version>1.0.0</version>
328
-            <scope>system</scope>
329
-            <systemPath>${project.basedir}/../lib/generator-1.0.0.jar</systemPath>
330
-        </dependency>
331
-
332
-        <dependency>
333
-            <groupId>com.shinsoft</groupId>
334
-            <artifactId>framework-api</artifactId>
335
-            <version>1.0.1</version>
336
-            <scope>system</scope>
337
-            <systemPath>${project.basedir}/../lib/framework-api-1.0.1.jar</systemPath>
338
-        </dependency>
339
-
340
-        <dependency>
341
-            <groupId>com.shinsoft</groupId>
342
-            <artifactId>workflow-api</artifactId>
343
-            <version>1.0.1</version>
344
-            <scope>system</scope>
345
-            <systemPath>${project.basedir}/../lib/workflow-api-1.0.1.jar</systemPath>
346
-        </dependency>
347
-
348
-        <!-- 公共方法和接口-->
349
-    </dependencies>
350
-
351
-
352
-
353
-    <profiles>
354
-
355
-        <profile> <!-- 本地开发环境 -->
356
-            <id>localhost</id>
357
-            <properties>
358
-                <profiles.active>localhost</profiles.active>
359
-            </properties>
360
-        </profile>
361
-        <profile> <!-- 服务器开发环境 -->
362
-            <id>develop</id>
363
-            <properties>
364
-                <profiles.active>develop</profiles.active>
365
-            </properties>
366
-            <activation>
367
-                <activeByDefault>true</activeByDefault>
368
-            </activation>
369
-        </profile>
370
-        <profile> <!-- 测试环境 -->
371
-            <id>test</id>
372
-            <properties>
373
-                <profiles.active>test</profiles.active>
374
-            </properties>
375
-        </profile>
376
-        <profile> <!-- 生产环境 -->
377
-            <id>production</id>
378
-            <properties>
379
-                <profiles.active>production</profiles.active>
380
-            </properties>
381
-        </profile>
382
-
383
-        <profile> <!-- 个人 -->
384
-            <id>litai</id>
385
-            <properties>
386
-                <profiles.active>litai</profiles.active>
387
-            </properties>
388
-        </profile>
389
-
390
-    </profiles>
391
-
392
-
393
-    <build>
394
-
395
-        <finalName>${project.artifactId}</finalName>
396
-        <resources>
397
-            <resource>
398
-                <directory>src/main/resources</directory>
399
-                <!--                <excludes>-->
400
-                <!--                    <exclude>localhost/**</exclude>-->
401
-                <!--                    <exclude>develop/**</exclude>-->
402
-                <!--                    <exclude>production/**</exclude>-->
403
-                <!--                    <exclude>classes/**</exclude>-->
404
-                <!--                    <exclude>lib/**</exclude>-->
405
-                <!--                </excludes>-->
406
-            </resource>
407
-            <resource>
408
-                <directory>src/main/resources/${profiles.active}</directory>
409
-            </resource>
410
-            <resource>
411
-                <directory>src/main/resources</directory>
412
-                <includes>
413
-                    <include>**/*.yml</include>
414
-                    <include>**/*.properties</include>
415
-                    <include>**/*.xml</include>
416
-                </includes>
417
-                <filtering>false</filtering>
418
-            </resource>
419
-            <resource>
420
-                <directory>src/main/java</directory>
421
-                <targetPath>${project.build.directory}/classes/mapper</targetPath>
422
-                <includes>
423
-                    <include>**/*.xml</include>
424
-                </includes>
425
-                <filtering>false</filtering>
426
-            </resource>
427
-        </resources>
428
-
429
-        <plugins>
430
-            <plugin>
431
-                <groupId>org.apache.maven.plugins</groupId>
432
-                <artifactId>maven-jar-plugin</artifactId>
433
-                <configuration>
434
-                    <archive>
435
-                        <manifest>
436
-                            <addClasspath>true</addClasspath>
437
-                            <classpathPrefix>lib/</classpathPrefix>
438
-                            <mainClass>com.shinsoft.ctc.CtcApplication</mainClass>
439
-                        </manifest>
440
-                        <manifestEntries>
441
-                            <Class-Path>lib/tools-1.0.1.jar lib/generator-1.0.0.jar  lib/framework-api-1.0.1.jar lib/workflow-api-1.0.1.jar
442
-                            </Class-Path>
443
-                        </manifestEntries>
444
-                    </archive>
445
-                    <outputDirectory>
446
-                        ${project.build.directory}
447
-                    </outputDirectory>
448
-                </configuration>
449
-            </plugin>
450
-
451
-
452
-            <plugin>
453
-                <groupId>org.apache.maven.plugins</groupId>
454
-                <artifactId>maven-dependency-plugin</artifactId>
455
-                <executions>
456
-                    <execution>
457
-                        <id>copy</id>
458
-                        <phase>compile</phase>
459
-                        <goals>
460
-                            <goal>copy-dependencies</goal>
461
-                        </goals>
462
-                        <configuration>
463
-                            <outputDirectory>
464
-                                ${project.build.directory}/lib
465
-                            </outputDirectory>
466
-                        </configuration>
467
-                    </execution>
468
-                    <execution>
469
-                        <id>sys</id>
470
-                        <phase>compile</phase>
471
-                        <goals>
472
-                            <goal>copy-dependencies</goal>
473
-                        </goals>
474
-                        <configuration>
475
-                            <includeScope>system</includeScope>
476
-                        </configuration>
477
-                    </execution>
478
-                </executions>
479
-            </plugin>
480
-
481
-            <plugin>
482
-                <groupId>org.apache.maven.plugins</groupId>
483
-                <artifactId>maven-resources-plugin</artifactId>
484
-                <executions>
485
-                    <execution>
486
-                        <id>copy-resource</id>
487
-                        <phase>package</phase>
488
-                        <goals>
489
-                            <goal>copy-resources</goal>
490
-                        </goals>
491
-                        <configuration>
492
-                            <outputDirectory>
493
-                                ${project.build.directory}
494
-                            </outputDirectory>
495
-                            <resources>
496
-                                <resource>
497
-                                    <directory>${project.basedir}/src/main/resources/${profiles.active}</directory>
498
-                                    <includes>
499
-                                        <include>Dockerfile</include>
500
-                                        <include>bootstrap.properties</include>
501
-                                    </includes>
502
-                                </resource>
503
-                            </resources>
504
-                        </configuration>
505
-                    </execution>
506
-                </executions>
507
-            </plugin>
508
-
509
-
510
-        </plugins>
511
-
512
-    </build>
513
-
514
-</project>
515
-
516
-

+ 0
- 23
ctc/src/main/java/com/shinsoft/ctc/CtcApplication.java Voir le fichier

@@ -1,23 +0,0 @@
1
-package com.shinsoft.ctc;
2
-
3
-
4
-import org.mybatis.spring.annotation.MapperScan;
5
-import org.springframework.boot.SpringApplication;
6
-import org.springframework.boot.autoconfigure.SpringBootApplication;
7
-import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
8
-import org.springframework.cloud.openfeign.EnableFeignClients;
9
-import org.springframework.context.annotation.ComponentScan;
10
-
11
-
12
-@SpringBootApplication
13
-@EnableFeignClients(basePackages = {"com.shinsoft"})
14
-@EnableDiscoveryClient
15
-@ComponentScan(basePackages = {"com.shinsoft"})
16
-@MapperScan("com.shinsoft.**.mapper")
17
-public class CtcApplication {
18
-
19
-    public static void main(String[] args) {
20
-        SpringApplication.run(CtcApplication.class, args);
21
-    }
22
-
23
-}

+ 0
- 5
ctc/src/main/resources/develop/Dockerfile Voir le fichier

@@ -1,5 +0,0 @@
1
-FROM alpine-java8:1.0.0
2
-ADD lib /lib
3
-ADD bootstrap.properties /bootstrap.properties
4
-ADD framework.jar /framework.jar
5
-CMD ["java","-jar","-Duser.timezone=GMT+08","/framework.jar","--spring.config.location=file:/bootstrap.properties"]

+ 0
- 24
ctc/src/main/resources/develop/bootstrap.properties Voir le fichier

@@ -1,24 +0,0 @@
1
-nacosServer=192.168.31.191:8848
2
-nacosNamespace=sgiip
3
-nacosGroup=develop
4
-
5
-server.port=8011
6
-spring.application.name=framework
7
-
8
-spring.cloud.nacos.config.namespace=${nacosNamespace}
9
-spring.cloud.nacos.config.group=${nacosGroup}
10
-spring.cloud.nacos.config.server-addr=${nacosServer}
11
-spring.cloud.nacos.config.file-extension=yaml
12
-spring.cloud.nacos.config.ext-config[0].data-id=common.yaml
13
-spring.cloud.nacos.config.ext-config[0].group=${nacosGroup}
14
-spring.cloud.nacos.config.ext-config[0].refresh=true
15
-spring.cloud.nacos.config.ext-config[1].data-id=db-framework-oracle.yaml
16
-spring.cloud.nacos.config.ext-config[1].group=${nacosGroup}
17
-spring.cloud.nacos.config.ext-config[1].refresh=true
18
-
19
-spring.cloud.nacos.discovery.namespace=${nacosNamespace}
20
-spring.cloud.nacos.discovery.group=${nacosGroup}
21
-spring.cloud.nacos.discovery.server-addr=${nacosServer}
22
-spring.cloud.nacos.discovery.retry.enabled=true
23
-
24
-spring.cloud.inetutils.preferred-networks=192.168.31.

+ 0
- 76
ctc/src/main/resources/develop/log4j2.xml Voir le fichier

@@ -1,76 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8"?>
2
-<Configuration status="DEBUG" monitorInterval="60">
3
-
4
-
5
-    <Properties>
6
-        <!--自定义一些常量,之后使用${变量名}引用-->
7
-        <Property name="logFilePath">logs</Property>
8
-    </Properties>
9
-
10
-
11
-    <!--定义所有的appender-->
12
-    <Appenders>
13
-        <!--输出控制台的配置-->
14
-        <Console name="Console" target="SYSTEM_OUT">
15
-            <!--日志信息的格式-->
16
-            <PatternLayout pattern="%d{HH:mm:ss:SSS} [%p] %c  %m%n"/>
17
-        </Console>
18
-
19
-        <!--输出文件的配置-->
20
-        <File name="log" fileName="${logFilePath}/log.log" append="false">
21
-            <PatternLayout pattern="%d{HH:mm:ss.SSS} %-5level %c{36} %L %c %M %msg%n"/>
22
-        </File>
23
-
24
-        <RollingFile name="RollingFileInfo" fileName="${logFilePath}/info.log"
25
-                     filePattern="${logFilePath}/$${date:yyyy-MM}/info-%d{yyyy-MM-dd}-%i.log">
26
-            <!--只输出level级别以上的信息(onMatch),其他级别的拒绝(onMismatch)-->
27
-            <ThresholdFilter level="info" onMatch="ACCEPT" onMismatch="DENY"/>
28
-            <PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss:SSS} [%p] %l %c %m%n"/>
29
-            <Policies>
30
-                <TimeBasedTriggeringPolicy/>
31
-                <SizeBasedTriggeringPolicy size="20MB"/>
32
-            </Policies>
33
-            <!--文件数量的设置-->
34
-            <DefaultRolloverStrategy max="50"/>
35
-        </RollingFile>
36
-
37
-        <RollingFile name="RollingFileWarn" fileName="${logFilePath}/warn.log"
38
-                     filePattern="${logFilePath}/$${date:yyyy-MM}/warn-%d{yyyy-MM-dd}-%i.log">
39
-            <ThresholdFilter level="warn" onMatch="ACCEPT" onMismatch="DENY"/>
40
-            <PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss:SSS} [%p] %l %c %m%n"/>
41
-            <Policies>
42
-                <TimeBasedTriggeringPolicy/>
43
-                <SizeBasedTriggeringPolicy size="20MB"/>
44
-            </Policies>
45
-            <!--文件数量的设置-->
46
-            <DefaultRolloverStrategy max="50"/>
47
-        </RollingFile>
48
-
49
-        <RollingFile name="RollingFileError" fileName="${logFilePath}/error.log"
50
-                     filePattern="${logFilePath}/$${date:yyyy-MM}/warn-%d{yyyy-MM-dd}-%i.log">
51
-            <ThresholdFilter level="error" onMatch="ACCEPT" onMismatch="DENY"/>
52
-            <PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss:SSS} [%p] %l %c %m%n"/>
53
-            <Policies>
54
-                <TimeBasedTriggeringPolicy/>
55
-                <SizeBasedTriggeringPolicy size="20MB"/>
56
-            </Policies>
57
-            <!--文件数量的设置-->
58
-            <DefaultRolloverStrategy max="50"/>
59
-        </RollingFile>
60
-    </Appenders>
61
-
62
-    <Loggers>
63
-        <logger name="org.springframework" level="INFO"></logger>
64
-        <logger name="com.netflix" level="INFO"></logger>
65
-        <logger name="org.apache" level="INFO"></logger>
66
-        <logger name="org.mybatis" level="INFO"></logger>
67
-        <logger name="com.alibaba.nacos" level="WARN"></logger>
68
-        <Root level="DEBUG">
69
-            <AppenderRef ref="Console"/>
70
-            <AppenderRef ref="RollingFileInfo"/>
71
-            <AppenderRef ref="RollingFileWarn"/>
72
-            <AppenderRef ref="RollingFileError"/>
73
-        </Root>
74
-
75
-    </Loggers>
76
-</Configuration>

+ 0
- 5
ctc/src/main/resources/litai/Dockerfile Voir le fichier

@@ -1,5 +0,0 @@
1
-FROM alpine-java8:1.0.0
2
-ADD lib /lib
3
-ADD bootstrap.properties /bootstrap.properties
4
-ADD framework.jar /framework.jar
5
-CMD ["java","-jar","-Duser.timezone=GMT+08","/framework.jar","--spring.config.location=file:/bootstrap.properties"]

+ 0
- 28
ctc/src/main/resources/litai/bootstrap.properties Voir le fichier

@@ -1,28 +0,0 @@
1
-server.port=8040
2
-spring.application.name=ctc
3
-
4
-nacosServer=47.115.211.214:8848
5
-nacosNamespace=litai
6
-nacosGroup=GMIMP
7
-
8
-spring.cloud.nacos.discovery.ip=172.16.108.158
9
-
10
-spring.cloud.nacos.config.namespace=${nacosNamespace}
11
-spring.cloud.nacos.config.group=${nacosGroup}
12
-spring.cloud.nacos.config.server-addr=${nacosServer}
13
-spring.cloud.nacos.config.file-extension=yaml
14
-spring.cloud.nacos.config.ext-config[0].data-id=common.yaml
15
-spring.cloud.nacos.config.ext-config[0].group=${nacosGroup}
16
-spring.cloud.nacos.config.ext-config[0].refresh=true
17
-spring.cloud.nacos.config.ext-config[1].data-id=db-gmimp-dameng.yaml
18
-spring.cloud.nacos.config.ext-config[1].group=${nacosGroup}
19
-spring.cloud.nacos.config.ext-config[1].refresh=true
20
-spring.cloud.nacos.config.ext-config[2].data-id=updownload.yaml
21
-spring.cloud.nacos.config.ext-config[2].group=${nacosGroup}
22
-spring.cloud.nacos.config.ext-config[2].refresh=true
23
-
24
-spring.cloud.nacos.discovery.namespace=${nacosNamespace}
25
-spring.cloud.nacos.discovery.group=${nacosGroup}
26
-spring.cloud.nacos.discovery.server-addr=${nacosServer}
27
-spring.cloud.nacos.discovery.retry.enabled=true
28
-

+ 0
- 76
ctc/src/main/resources/litai/log4j2.xml Voir le fichier

@@ -1,76 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8"?>
2
-<Configuration status="DEBUG" monitorInterval="60">
3
-
4
-
5
-    <Properties>
6
-        <!--自定义一些常量,之后使用${变量名}引用-->
7
-        <Property name="logFilePath">logs</Property>
8
-    </Properties>
9
-
10
-
11
-    <!--定义所有的appender-->
12
-    <Appenders>
13
-        <!--输出控制台的配置-->
14
-        <Console name="Console" target="SYSTEM_OUT">
15
-            <!--日志信息的格式-->
16
-            <PatternLayout pattern="%d{HH:mm:ss:SSS} [%p] %c  %m%n"/>
17
-        </Console>
18
-
19
-        <!--输出文件的配置-->
20
-        <File name="log" fileName="${logFilePath}/log.log" append="false">
21
-            <PatternLayout pattern="%d{HH:mm:ss.SSS} %-5level %c{36} %L %c %M %msg%n"/>
22
-        </File>
23
-
24
-        <RollingFile name="RollingFileInfo" fileName="${logFilePath}/info.log"
25
-                     filePattern="${logFilePath}/$${date:yyyy-MM}/info-%d{yyyy-MM-dd}-%i.log">
26
-            <!--只输出level级别以上的信息(onMatch),其他级别的拒绝(onMismatch)-->
27
-            <ThresholdFilter level="info" onMatch="ACCEPT" onMismatch="DENY"/>
28
-            <PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss:SSS} [%p] %l %c %m%n"/>
29
-            <Policies>
30
-                <TimeBasedTriggeringPolicy/>
31
-                <SizeBasedTriggeringPolicy size="20MB"/>
32
-            </Policies>
33
-            <!--文件数量的设置-->
34
-            <DefaultRolloverStrategy max="50"/>
35
-        </RollingFile>
36
-
37
-        <RollingFile name="RollingFileWarn" fileName="${logFilePath}/warn.log"
38
-                     filePattern="${logFilePath}/$${date:yyyy-MM}/warn-%d{yyyy-MM-dd}-%i.log">
39
-            <ThresholdFilter level="warn" onMatch="ACCEPT" onMismatch="DENY"/>
40
-            <PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss:SSS} [%p] %l %c %m%n"/>
41
-            <Policies>
42
-                <TimeBasedTriggeringPolicy/>
43
-                <SizeBasedTriggeringPolicy size="20MB"/>
44
-            </Policies>
45
-            <!--文件数量的设置-->
46
-            <DefaultRolloverStrategy max="50"/>
47
-        </RollingFile>
48
-
49
-        <RollingFile name="RollingFileError" fileName="${logFilePath}/error.log"
50
-                     filePattern="${logFilePath}/$${date:yyyy-MM}/warn-%d{yyyy-MM-dd}-%i.log">
51
-            <ThresholdFilter level="error" onMatch="ACCEPT" onMismatch="DENY"/>
52
-            <PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss:SSS} [%p] %l %c %m%n"/>
53
-            <Policies>
54
-                <TimeBasedTriggeringPolicy/>
55
-                <SizeBasedTriggeringPolicy size="20MB"/>
56
-            </Policies>
57
-            <!--文件数量的设置-->
58
-            <DefaultRolloverStrategy max="50"/>
59
-        </RollingFile>
60
-    </Appenders>
61
-
62
-    <Loggers>
63
-        <logger name="org.springframework" level="INFO"></logger>
64
-        <logger name="com.netflix" level="INFO"></logger>
65
-        <logger name="org.apache" level="INFO"></logger>
66
-        <logger name="org.mybatis" level="INFO"></logger>
67
-        <logger name="com.alibaba.nacos" level="WARN"></logger>
68
-        <Root level="DEBUG">
69
-            <AppenderRef ref="Console"/>
70
-            <AppenderRef ref="RollingFileInfo"/>
71
-            <AppenderRef ref="RollingFileWarn"/>
72
-            <AppenderRef ref="RollingFileError"/>
73
-        </Root>
74
-
75
-    </Loggers>
76
-</Configuration>

+ 0
- 5
ctc/src/main/resources/localhost/Dockerfile Voir le fichier

@@ -1,5 +0,0 @@
1
-FROM alpine-java8:1.0.0
2
-ADD lib /lib
3
-ADD bootstrap.properties /bootstrap.properties
4
-ADD framework.jar /framework.jar
5
-CMD ["java","-jar","-Duser.timezone=GMT+08","/framework.jar","--spring.config.location=file:/bootstrap.properties"]

+ 0
- 24
ctc/src/main/resources/localhost/bootstrap.properties Voir le fichier

@@ -1,24 +0,0 @@
1
-nacosServer=192.168.31.191:8848
2
-nacosNamespace=sgiip
3
-nacosGroup=localhost
4
-
5
-server.port=8020
6
-spring.application.name=exp
7
-
8
-spring.cloud.nacos.config.namespace=${nacosNamespace}
9
-spring.cloud.nacos.config.group=${nacosGroup}
10
-spring.cloud.nacos.config.server-addr=${nacosServer}
11
-spring.cloud.nacos.config.file-extension=yaml
12
-spring.cloud.nacos.config.ext-config[0].data-id=common.yaml
13
-spring.cloud.nacos.config.ext-config[0].group=${nacosGroup}
14
-spring.cloud.nacos.config.ext-config[0].refresh=true
15
-spring.cloud.nacos.config.ext-config[1].data-id=db-framework-oracle.yaml
16
-spring.cloud.nacos.config.ext-config[1].group=${nacosGroup}
17
-spring.cloud.nacos.config.ext-config[1].refresh=true
18
-
19
-spring.cloud.nacos.discovery.namespace=${nacosNamespace}
20
-spring.cloud.nacos.discovery.group=${nacosGroup}
21
-spring.cloud.nacos.discovery.server-addr=${nacosServer}
22
-spring.cloud.nacos.discovery.retry.enabled=true
23
-
24
-spring.cloud.inetutils.preferred-networks=192.168.31.

+ 0
- 76
ctc/src/main/resources/localhost/log4j2.xml Voir le fichier

@@ -1,76 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8"?>
2
-<Configuration status="DEBUG" monitorInterval="60">
3
-
4
-
5
-    <Properties>
6
-        <!--自定义一些常量,之后使用${变量名}引用-->
7
-        <Property name="logFilePath">logs</Property>
8
-    </Properties>
9
-
10
-
11
-    <!--定义所有的appender-->
12
-    <Appenders>
13
-        <!--输出控制台的配置-->
14
-        <Console name="Console" target="SYSTEM_OUT">
15
-            <!--日志信息的格式-->
16
-            <PatternLayout pattern="%d{HH:mm:ss:SSS} [%p] %c  %m%n"/>
17
-        </Console>
18
-
19
-        <!--输出文件的配置-->
20
-        <File name="log" fileName="${logFilePath}/log.log" append="false">
21
-            <PatternLayout pattern="%d{HH:mm:ss.SSS} %-5level %c{36} %L %c %M %msg%n"/>
22
-        </File>
23
-
24
-        <RollingFile name="RollingFileInfo" fileName="${logFilePath}/info.log"
25
-                     filePattern="${logFilePath}/$${date:yyyy-MM}/info-%d{yyyy-MM-dd}-%i.log">
26
-            <!--只输出level级别以上的信息(onMatch),其他级别的拒绝(onMismatch)-->
27
-            <ThresholdFilter level="info" onMatch="ACCEPT" onMismatch="DENY"/>
28
-            <PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss:SSS} [%p] %l %c %m%n"/>
29
-            <Policies>
30
-                <TimeBasedTriggeringPolicy/>
31
-                <SizeBasedTriggeringPolicy size="20MB"/>
32
-            </Policies>
33
-            <!--文件数量的设置-->
34
-            <DefaultRolloverStrategy max="50"/>
35
-        </RollingFile>
36
-
37
-        <RollingFile name="RollingFileWarn" fileName="${logFilePath}/warn.log"
38
-                     filePattern="${logFilePath}/$${date:yyyy-MM}/warn-%d{yyyy-MM-dd}-%i.log">
39
-            <ThresholdFilter level="warn" onMatch="ACCEPT" onMismatch="DENY"/>
40
-            <PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss:SSS} [%p] %l %c %m%n"/>
41
-            <Policies>
42
-                <TimeBasedTriggeringPolicy/>
43
-                <SizeBasedTriggeringPolicy size="20MB"/>
44
-            </Policies>
45
-            <!--文件数量的设置-->
46
-            <DefaultRolloverStrategy max="50"/>
47
-        </RollingFile>
48
-
49
-        <RollingFile name="RollingFileError" fileName="${logFilePath}/error.log"
50
-                     filePattern="${logFilePath}/$${date:yyyy-MM}/warn-%d{yyyy-MM-dd}-%i.log">
51
-            <ThresholdFilter level="error" onMatch="ACCEPT" onMismatch="DENY"/>
52
-            <PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss:SSS} [%p] %l %c %m%n"/>
53
-            <Policies>
54
-                <TimeBasedTriggeringPolicy/>
55
-                <SizeBasedTriggeringPolicy size="20MB"/>
56
-            </Policies>
57
-            <!--文件数量的设置-->
58
-            <DefaultRolloverStrategy max="50"/>
59
-        </RollingFile>
60
-    </Appenders>
61
-
62
-    <Loggers>
63
-        <logger name="org.springframework" level="INFO"></logger>
64
-        <logger name="com.netflix" level="INFO"></logger>
65
-        <logger name="org.apache" level="INFO"></logger>
66
-        <logger name="org.mybatis" level="INFO"></logger>
67
-        <logger name="com.alibaba.nacos" level="WARN"></logger>
68
-        <Root level="DEBUG">
69
-            <AppenderRef ref="Console"/>
70
-            <AppenderRef ref="RollingFileInfo"/>
71
-            <AppenderRef ref="RollingFileWarn"/>
72
-            <AppenderRef ref="RollingFileError"/>
73
-        </Root>
74
-
75
-    </Loggers>
76
-</Configuration>

+ 0
- 5
ctc/src/main/resources/production/Dockerfile Voir le fichier

@@ -1,5 +0,0 @@
1
-FROM alpine-java8:1.0.0
2
-ADD lib /lib
3
-ADD bootstrap.properties /bootstrap.properties
4
-ADD framework.jar /framework.jar
5
-CMD ["java","-jar","-Duser.timezone=GMT+08","/framework.jar","--spring.config.location=file:/bootstrap.properties"]

+ 0
- 21
ctc/src/main/resources/production/bootstrap.properties Voir le fichier

@@ -1,21 +0,0 @@
1
-server.port=8011
2
-spring.application.name=framework
3
-spring.cloud.nacos.config.namespace=production
4
-spring.cloud.nacos.config.server-addr=10.209.100.121:8848
5
-spring.cloud.nacos.config.file-extension=yaml
6
-
7
-spring.cloud.nacos.config.ext-config[0].data-id=common.yaml
8
-spring.cloud.nacos.config.ext-config[0].group=DEFAULT_GROUP
9
-spring.cloud.nacos.config.ext-config[0].refresh=true
10
-spring.cloud.nacos.config.ext-config[1].data-id=db-framework-oracle.yaml
11
-spring.cloud.nacos.config.ext-config[1].group=DEFAULT_GROUP
12
-spring.cloud.nacos.config.ext-config[1].refresh=true
13
-#spring.cloud.nacos.config.ext-config[1].data-id=db-framework-mysql.yaml
14
-#spring.cloud.nacos.config.ext-config[1].group=DEFAULT_GROUP
15
-#spring.cloud.nacos.config.ext-config[1].refresh=true
16
-spring.cloud.nacos.discovery.ip=10.209.100.121
17
-spring.cloud.nacos.discovery.namespace=production
18
-spring.cloud.nacos.discovery.server-addr=10.209.100.121:8848
19
-
20
-uploadPath: /upload
21
-downloadPath: /download

+ 0
- 76
ctc/src/main/resources/production/log4j2.xml Voir le fichier

@@ -1,76 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8"?>
2
-<Configuration status="DEBUG" monitorInterval="60">
3
-
4
-
5
-    <Properties>
6
-        <!--自定义一些常量,之后使用${变量名}引用-->
7
-        <Property name="logFilePath">logs</Property>
8
-    </Properties>
9
-
10
-
11
-    <!--定义所有的appender-->
12
-    <Appenders>
13
-        <!--输出控制台的配置-->
14
-        <Console name="Console" target="SYSTEM_OUT">
15
-            <!--日志信息的格式-->
16
-            <PatternLayout pattern="%d{HH:mm:ss:SSS} [%p] %c  %m%n"/>
17
-        </Console>
18
-
19
-        <!--输出文件的配置-->
20
-        <File name="log" fileName="${logFilePath}/log.log" append="false">
21
-            <PatternLayout pattern="%d{HH:mm:ss.SSS} %-5level %c{36} %L %c %M %msg%n"/>
22
-        </File>
23
-
24
-        <RollingFile name="RollingFileInfo" fileName="${logFilePath}/info.log"
25
-                     filePattern="${logFilePath}/$${date:yyyy-MM}/info-%d{yyyy-MM-dd}-%i.log">
26
-            <!--只输出level级别以上的信息(onMatch),其他级别的拒绝(onMismatch)-->
27
-            <ThresholdFilter level="info" onMatch="ACCEPT" onMismatch="DENY"/>
28
-            <PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss:SSS} [%p] %l %c %m%n"/>
29
-            <Policies>
30
-                <TimeBasedTriggeringPolicy/>
31
-                <SizeBasedTriggeringPolicy size="20MB"/>
32
-            </Policies>
33
-            <!--文件数量的设置-->
34
-            <DefaultRolloverStrategy max="50"/>
35
-        </RollingFile>
36
-
37
-        <RollingFile name="RollingFileWarn" fileName="${logFilePath}/warn.log"
38
-                     filePattern="${logFilePath}/$${date:yyyy-MM}/warn-%d{yyyy-MM-dd}-%i.log">
39
-            <ThresholdFilter level="warn" onMatch="ACCEPT" onMismatch="DENY"/>
40
-            <PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss:SSS} [%p] %l %c %m%n"/>
41
-            <Policies>
42
-                <TimeBasedTriggeringPolicy/>
43
-                <SizeBasedTriggeringPolicy size="20MB"/>
44
-            </Policies>
45
-            <!--文件数量的设置-->
46
-            <DefaultRolloverStrategy max="50"/>
47
-        </RollingFile>
48
-
49
-        <RollingFile name="RollingFileError" fileName="${logFilePath}/error.log"
50
-                     filePattern="${logFilePath}/$${date:yyyy-MM}/warn-%d{yyyy-MM-dd}-%i.log">
51
-            <ThresholdFilter level="error" onMatch="ACCEPT" onMismatch="DENY"/>
52
-            <PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss:SSS} [%p] %l %c %m%n"/>
53
-            <Policies>
54
-                <TimeBasedTriggeringPolicy/>
55
-                <SizeBasedTriggeringPolicy size="20MB"/>
56
-            </Policies>
57
-            <!--文件数量的设置-->
58
-            <DefaultRolloverStrategy max="50"/>
59
-        </RollingFile>
60
-    </Appenders>
61
-
62
-    <Loggers>
63
-        <logger name="org.springframework" level="INFO"></logger>
64
-        <logger name="com.netflix" level="INFO"></logger>
65
-        <logger name="org.apache" level="INFO"></logger>
66
-        <logger name="org.mybatis" level="INFO"></logger>
67
-        <logger name="com.alibaba.nacos" level="WARN"></logger>
68
-        <Root level="DEBUG">
69
-            <AppenderRef ref="Console"/>
70
-            <AppenderRef ref="RollingFileInfo"/>
71
-            <AppenderRef ref="RollingFileWarn"/>
72
-            <AppenderRef ref="RollingFileError"/>
73
-        </Root>
74
-
75
-    </Loggers>
76
-</Configuration>

+ 0
- 125
ctc/src/main/resources/templates/controller.java.ftl Voir le fichier

@@ -1,125 +0,0 @@
1
-package ${package.Controller};
2
-
3
-import org.springframework.web.bind.annotation.RequestMapping;
4
-<#if restControllerStyle>
5
-import org.springframework.web.bind.annotation.RestController;
6
-<#else>
7
-import org.springframework.stereotype.Controller;
8
-</#if>
9
-<#if superControllerClassPackage??>
10
-import ${superControllerClassPackage};
11
-</#if>
12
-
13
-
14
-import org.springframework.beans.factory.annotation.Autowired;
15
-import org.springframework.web.bind.annotation.RequestMapping;
16
-import org.springframework.web.bind.annotation.RestController;
17
-import org.springframework.web.bind.annotation.RequestMethod;
18
-import javax.servlet.http.HttpServletRequest;
19
-
20
-import com.shinsoft.tools.JSONTools;
21
-import com.shinsoft.tools.ExceptionTools;
22
-import com.shinsoft.tools.model.common.ResultJSON;
23
-import com.shinsoft.tools.model.common.ResponseCodeMsg;
24
-
25
-import ${package.Service}.${table.serviceName};
26
-
27
-/**
28
- * <p>
29
- * ${table.comment!} 前端控制器
30
- * </p>
31
- *
32
- * @author ${author}
33
- * @since ${date}
34
- */
35
-<#if restControllerStyle>
36
-@RestController
37
-<#else>
38
-@Controller
39
-</#if>
40
-//@RequestMapping("<#if package.ModuleName?? && package.ModuleName != "">/${package.ModuleName}</#if>/<#if controllerMappingHyphenStyle>${controllerMappingHyphen}<#else>${table.entityPath}</#if>")
41
-@RequestMapping("/${entity}")
42
-<#if kotlin>
43
-class ${table.controllerName}<#if superControllerClass??> : ${superControllerClass}()</#if>
44
-<#else>
45
-<#if superControllerClass??>
46
-public class ${table.controllerName} extends ${superControllerClass} {
47
-<#else>
48
-public class ${table.controllerName} {
49
-</#if>
50
-
51
-
52
-
53
-       @Autowired
54
-       private ${table.serviceName} ${table.entityPath}Service;
55
-
56
-       ResultJSON resultJSON;
57
-
58
-
59
-       @RequestMapping(value = "/query")
60
-       public ResultJSON query(int page, int rows, String params,  HttpServletRequest request) {
61
-           try {
62
-               String userId = (String) request.getHeader("userId");
63
-               resultJSON = ${table.entityPath}Service.query(page, rows, params);
64
-           } catch (Exception ex) {
65
-               ex.printStackTrace();
66
-               resultJSON = JSONTools.toResultJSON(ResponseCodeMsg.CODE_EX, ExceptionTools.getExceptionAllinformation(ex));
67
-           } finally {
68
-               return resultJSON;
69
-           }
70
-       }
71
-
72
-        @RequestMapping(value = "/queryByPK")
73
-        public ResultJSON queryByPK(  String id,  HttpServletRequest request) {
74
-            try {
75
-                String userId = (String) request.getHeader("userId");
76
-                resultJSON = ${table.entityPath}Service.queryByPK(id);
77
-            } catch (Exception ex) {
78
-                 ex.printStackTrace();
79
-                 resultJSON = JSONTools.toResultJSON(ResponseCodeMsg.CODE_EX, ExceptionTools.getExceptionAllinformation(ex));
80
-            } finally {
81
-                return resultJSON;
82
-            }
83
-        }
84
-
85
-       @RequestMapping(value = "/save", method = RequestMethod.POST)
86
-       public ResultJSON save(String json,  HttpServletRequest request) {
87
-           try {
88
-               String userId = (String) request.getHeader("userId");
89
-               resultJSON = ${table.entityPath}Service.save(userId, json);
90
-           } catch (Exception ex) {
91
-               resultJSON = JSONTools.toResultJSON(ResponseCodeMsg.CODE_EX, ExceptionTools.getExceptionAllinformation(ex));
92
-               ex.printStackTrace();
93
-           } finally {
94
-               return resultJSON;
95
-           }
96
-       }
97
-
98
-       @RequestMapping(value = "/remove", method = RequestMethod.POST)
99
-       public ResultJSON remove(String id,   HttpServletRequest request) {
100
-           try {
101
-               String userId = (String) request.getHeader("userId");
102
-               resultJSON = ${table.entityPath}Service.remove(userId, id);
103
-           } catch (Exception ex) {
104
-               ex.printStackTrace();
105
-               resultJSON = JSONTools.toResultJSON(ResponseCodeMsg.CODE_EX, ExceptionTools.getExceptionAllinformation(ex));
106
-           } finally {
107
-               return resultJSON;
108
-           }
109
-       }
110
-
111
-        @RequestMapping(value = "/removeBatch", method = RequestMethod.POST)
112
-        public ResultJSON removeBatch(String ids, HttpServletRequest request) {
113
-            try {
114
-                String userId = (String) request.getHeader("userId");
115
-                resultJSON = ${table.entityPath}Service.removeBatch(userId, ids);
116
-            } catch (Exception ex) {
117
-                ex.printStackTrace();
118
-                resultJSON = JSONTools.toResultJSON(ResponseCodeMsg.CODE_EX, ExceptionTools.getExceptionAllinformation(ex));
119
-            } finally {
120
-                return resultJSON;
121
-            }
122
-        }
123
-
124
- }
125
-</#if>

+ 0
- 25
ctc/src/main/resources/templates/createTable_dameng.sql.ftl Voir le fichier

@@ -1,26 +0,0 @@
1
-create table "${schema}"."${tableName}"
2
-(
3
-<#list fields as field>
4
-    <#if field.fieldType =="VARCHAR" || field.fieldType =="CHAR">
5
-        "${field.fieldName}" ${field.fieldType}(${field.dataLength?c}) <#if field.nullFlag  =="1">NOT NULL</#if>  ,
6
-    <#elseif field.fieldType =="NUMBER">
7
-        "${field.fieldName}" ${field.fieldType}(${field.dataLength?c},${field.dataPrecision?c})<#if field.nullFlag  =="1">NOT NULL</#if> ,
8
-    <#elseif field.fieldType =="INT">
9
-        "${field.fieldName}" ${field.fieldType}<#if field.nullFlag  =="1">NOT NULL</#if> ,
10
-    <#elseif field.fieldType =="FLOAT">
11
-        "${field.fieldName}" ${field.fieldType}<#if field.nullFlag  =="1">NOT NULL</#if> ,
12
-    <#elseif field.fieldType =="DOUBLE">
13
-        "${field.fieldName}" ${field.fieldType}<#if field.nullFlag  =="1">NOT NULL</#if> ,
14
-    <#elseif field.fieldType =="DATETIME">
15
-        "${field.fieldName}" ${field.fieldType}<#if field.nullFlag  =="1">NOT NULL</#if> ,
16
-    <#elseif field.fieldType =="TIMESTAMP">
17
-        "${field.fieldName}" ${field.fieldType}<#if field.nullFlag  =="1">NOT NULL</#if> ,
18
-    </#if>
19
-</#list>
20
-UNIQUE("ID"),
21
-NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "${tablespace}", CLUSTERBTR) ;
22
-
23
-<#list fields as field>
24
-    COMMENT ON COLUMN "${schema}"."${tableName}"."${field.fieldName}"  is '${field.fieldComment}';
25
-</#list>

+ 0
- 19
ctc/src/main/resources/templates/createTable_mysql.sql.ftl Voir le fichier

@@ -1,19 +0,0 @@
1
-create table ${tableName}
2
-(
3
-<#list fields as field>
4
-    <#if field.fieldType =="varchar">
5
-        ${field.fieldName}      ${field.fieldType}(${field.dataLength?c}) <#if field.nullFlag  =="1">NOT NULL<#else>DEFAULT NULL</#if> COMMENT '${field.fieldComment}',
6
-    <#elseif field.fieldType =="int">
7
-        ${field.fieldName}      ${field.fieldType}(${field.dataLength?c}) <#if field.nullFlag  =="1">NOT NULL<#else>DEFAULT NULL</#if> COMMENT '${field.fieldComment}',
8
-    <#elseif field.fieldType =="float">
9
-        ${field.fieldName}      ${field.fieldType}(${field.dataLength?c},${field.dataPrecision?c}) <#if field.nullFlag  =="1">NOT NULL<#else>DEFAULT NULL</#if> COMMENT '${field.fieldComment}',
10
-    <#elseif field.fieldType =="double">
11
-        ${field.fieldName}      ${field.fieldType}(${field.dataLength?c},${field.dataPrecision?c}) <#if field.nullFlag  =="1">NOT NULL<#else>DEFAULT NULL</#if> COMMENT '${field.fieldComment}',
12
-    <#elseif field.fieldType =="date">
13
-        ${field.fieldName}      ${field.fieldType} <#if field.nullFlag  =="1">NOT NULL<#else>DEFAULT NULL</#if> COMMENT '${field.fieldComment}',
14
-    <#elseif field.fieldType =="datetime">
15
-        ${field.fieldName}      ${field.fieldType} <#if field.nullFlag  =="1">NOT NULL<#else>DEFAULT NULL</#if> COMMENT '${field.fieldComment}',
16
-    </#if>
17
-</#list>
18
-PRIMARY KEY (ID)
19
-)  ROW_FORMAT = DYNAMIC CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;

+ 0
- 45
ctc/src/main/resources/templates/createTable_oracle.sql.ftl Voir le fichier

@@ -1,48 +0,0 @@
1
-create table ${tableName}
2
-(
3
-<#list fields as field>
4
-    <#if field.fieldType =="VARCHAR2">
5
-        ${field.fieldName}      ${field.fieldType}(${field.dataLength?c}) <#if field.nullFlag  =="1">not null</#if> <#sep>,</#sep>
6
-    <#elseif field.fieldType =="NUMBER">
7
-        ${field.fieldName}      ${field.fieldType}(${field.dataLength?c},${field.dataPrecision?c})<#sep>,</#sep>
8
-    <#elseif field.fieldType =="DATE">
9
-        ${field.fieldName}      ${field.fieldType}<#sep>,</#sep>
10
-    <#elseif field.fieldType =="TIMESTAMP">
11
-        ${field.fieldName}      ${field.fieldType}(6)<#sep>,</#sep>
12
-    </#if>
13
-</#list>
14
-)
15
-tablespace ${tablespace}
16
-pctfree 10
17
-initrans 1
18
-maxtrans 255
19
-storage
20
-(
21
-initial 64
22
-next 1
23
-minextents 1
24
-maxextents unlimited
25
-);
26
-
27
-<#list fields as field>
28
-    comment on column ${tableName}.${field.fieldName}
29
-    is '${field.fieldComment}';
30
-</#list>
31
-
32
-alter table ${tableName}
33
-add constraint ${tableName}_PK primary key (ID)
34
-using index
35
-tablespace ${tablespace}
36
-pctfree 10
37
-initrans 2
38
-maxtrans 255
39
-storage
40
-(
41
-initial 64K
42
-next 1M
43
-minextents 1
44
-maxextents unlimited
45
-);

+ 0
- 167
ctc/src/main/resources/templates/entity.java.ftl Voir le fichier

@@ -1,167 +0,0 @@
1
-package ${package.Entity};
2
-
3
-<#list table.importPackages as pkg>
4
-import ${pkg};
5
-</#list>
6
-<#if springdoc>
7
-import io.swagger.v3.oas.annotations.media.Schema;
8
-<#elseif swagger>
9
-import io.swagger.annotations.ApiModel;
10
-import io.swagger.annotations.ApiModelProperty;
11
-</#if>
12
-<#if entityLombokModel>
13
-import lombok.Getter;
14
-import lombok.Setter;
15
-    <#if chainModel>
16
-import lombok.experimental.Accessors;
17
-    </#if>
18
-</#if>
19
-import com.alibaba.fastjson.annotation.JSONField;
20
-
21
-/**
22
- * <p>
23
- * ${table.comment!}
24
- * </p>
25
- *
26
- * @author ${author}
27
- * @since ${date}
28
- */
29
-<#if entityLombokModel>
30
-@Getter
31
-@Setter
32
-    <#if chainModel>
33
-@Accessors(chain = true)
34
-    </#if>
35
-</#if>
36
-<#if table.convert>
37
-@TableName("${schemaName}${table.name}")
38
-</#if>
39
-<#if springdoc>
40
-@Schema(name = "${entity}", description = "${table.comment!}")
41
-<#elseif swagger>
42
-@ApiModel(value = "${entity}对象", description = "${table.comment!}")
43
-</#if>
44
-<#if superEntityClass??>
45
-public class ${entity} extends ${superEntityClass}<#if activeRecord><${entity}></#if> {
46
-<#elseif activeRecord>
47
-public class ${entity} extends Model<${entity}> {
48
-<#elseif entitySerialVersionUID>
49
-public class ${entity} implements Serializable {
50
-<#else>
51
-public class ${entity} {
52
-</#if>
53
-<#if entitySerialVersionUID>
54
-
55
-    private static final long serialVersionUID = 1L;
56
-</#if>
57
-<#-- ----------  BEGIN 字段循环遍历  ---------->
58
-<#list table.fields as field>
59
-    <#if field.keyFlag>
60
-        <#assign keyPropertyName="${field.propertyName}"/>
61
-    </#if>
62
-
63
-    <#if field.comment!?length gt 0>
64
-        <#if springdoc>
65
-    @Schema(description = "${field.comment}")
66
-        <#elseif swagger>
67
-    @ApiModelProperty("${field.comment}")
68
-        <#else>
69
-    /**
70
-     * ${field.comment}
71
-     */
72
-        </#if>
73
-    </#if>
74
-    <#if field.keyFlag>
75
-        <#-- 主键 -->
76
-        <#if field.keyIdentityFlag>
77
-    @TableId(value = "${field.annotationColumnName}", type = IdType.AUTO)
78
-        <#elseif idType??>
79
-    @TableId(value = "${field.annotationColumnName}", type = IdType.${idType})
80
-        <#elseif field.convert>
81
-    @TableId("${field.annotationColumnName}")
82
-        </#if>
83
-        <#-- 普通字段 -->
84
-    <#elseif field.fill??>
85
-    <#-- -----   存在字段填充设置   ----->
86
-        <#if field.convert>
87
-    @TableField(value = "${field.annotationColumnName}", fill = FieldFill.${field.fill})
88
-        <#else>
89
-    @TableField(fill = FieldFill.${field.fill})
90
-        </#if>
91
-    <#elseif field.convert>
92
-    @TableField("${field.annotationColumnName}")
93
-    </#if>
94
-    <#-- 乐观锁注解 -->
95
-    <#if field.versionField>
96
-    @Version
97
-    </#if>
98
-    <#-- 逻辑删除注解 -->
99
-    <#if field.logicDeleteField>
100
-    @TableLogic
101
-    </#if>
102
-    <#if field.name?contains("_TIME")||field.name?contains("_time")>
103
-    @JSONField(format="yyyy-MM-dd HH:mm:ss")
104
-    </#if>
105
-    <#if field.name?contains("_DATE")||field.name?contains("_date")>
106
-    @JSONField(format="yyyy-MM-dd")
107
-    </#if>
108
-    private ${field.propertyType} ${field.propertyName};
109
-</#list>
110
-<#------------  END 字段循环遍历  ---------->
111
-<#if !entityLombokModel>
112
-    <#list table.fields as field>
113
-        <#if field.propertyType == "boolean">
114
-            <#assign getprefix="is"/>
115
-        <#else>
116
-            <#assign getprefix="get"/>
117
-        </#if>
118
-
119
-    public ${field.propertyType} ${getprefix}${field.capitalName}() {
120
-        return ${field.propertyName};
121
-    }
122
-
123
-    <#if chainModel>
124
-    public ${entity} set${field.capitalName}(${field.propertyType} ${field.propertyName}) {
125
-    <#else>
126
-    public void set${field.capitalName}(${field.propertyType} ${field.propertyName}) {
127
-    </#if>
128
-        this.${field.propertyName} = ${field.propertyName};
129
-        <#if chainModel>
130
-        return this;
131
-        </#if>
132
-    }
133
-    </#list>
134
-</#if>
135
-<#if entityColumnConstant>
136
-    <#list table.fields as field>
137
-
138
-    public static final String ${field.name?upper_case} = "${field.name}";
139
-    </#list>
140
-</#if>
141
-<#if activeRecord>
142
-
143
-    @Override
144
-    public Serializable pkVal() {
145
-    <#if keyPropertyName??>
146
-        return this.${keyPropertyName};
147
-    <#else>
148
-        return null;
149
-    </#if>
150
-    }
151
-</#if>
152
-<#if !entityLombokModel>
153
-
154
-    @Override
155
-    public String toString() {
156
-        return "${entity}{" +
157
-    <#list table.fields as field>
158
-        <#if field_index==0>
159
-            "${field.propertyName} = " + ${field.propertyName} +
160
-        <#else>
161
-            ", ${field.propertyName} = " + ${field.propertyName} +
162
-        </#if>
163
-    </#list>
164
-        "}";
165
-    }
166
-</#if>
167
-}

+ 0
- 1
ctc/src/main/resources/templates/h5.vue.ftl Voir le fichier

@@ -1 +0,0 @@
1
-H5:::

+ 0
- 30
ctc/src/main/resources/templates/mapper.java.ftl Voir le fichier

@@ -1,30 +0,0 @@
1
-package ${package.Mapper};
2
-
3
-import ${package.Entity}.${entity};
4
-import ${superMapperClassPackage};
5
-import org.apache.ibatis.annotations.Select;
6
-<#if mapperAnnotationClass??>
7
-import ${mapperAnnotationClass.name};
8
-</#if>
9
-
10
-/**
11
- * <p>
12
- * ${table.comment!} Mapper 接口
13
- * </p>
14
- *
15
- * @author ${author}
16
- * @since ${date}
17
- */
18
-<#if mapperAnnotationClass??>
19
-@${mapperAnnotationClass.simpleName}
20
-</#if>
21
-<#if kotlin>
22
-interface ${table.mapperName} : ${superMapperClass}<${entity}>
23
-<#else>
24
-public interface ${table.mapperName} extends ${superMapperClass}<${entity}> {
25
-
26
- @Select("SELECT * FROM ${table.name} WHERE ID = ${r'#{id}'}" )
27
- ${entity} selectByPK(String id);
28
-
29
-}
30
-</#if>

+ 0
- 39
ctc/src/main/resources/templates/mapper.xml.ftl Voir le fichier

@@ -1,39 +0,0 @@
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="${package.Mapper}.${table.mapperName}">
4
-
5
-<#if enableCache>
6
-    <!-- 开启二级缓存 -->
7
-    <cache type="${cacheClassName}"/>
8
-
9
-</#if>
10
-<#if baseResultMap>
11
-    <!-- 通用查询映射结果 -->
12
-    <resultMap id="BaseResultMap" type="${package.Entity}.${entity}">
13
-<#list table.fields as field>
14
-<#if field.keyFlag><#--生成主键排在第一位-->
15
-        <id column="${field.name}" property="${field.propertyName}" />
16
-</#if>
17
-</#list>
18
-<#list table.commonFields as field><#--生成公共字段 -->
19
-        <result column="${field.name}" property="${field.propertyName}" />
20
-</#list>
21
-<#list table.fields as field>
22
-<#if !field.keyFlag><#--生成普通字段 -->
23
-        <result column="${field.name}" property="${field.propertyName}" />
24
-</#if>
25
-</#list>
26
-    </resultMap>
27
-
28
-</#if>
29
-<#if baseColumnList>
30
-    <!-- 通用查询结果列 -->
31
-    <sql id="Base_Column_List">
32
-<#list table.commonFields as field>
33
-        ${field.columnName},
34
-</#list>
35
-        ${table.fieldNames}
36
-    </sql>
37
-
38
-</#if>
39
-</mapper>

+ 0
- 33
ctc/src/main/resources/templates/service.java.ftl Voir le fichier

@@ -1,33 +0,0 @@
1
-package ${package.Service};
2
-
3
-import ${package.Entity}.${entity};
4
-import ${superServiceClassPackage};
5
-
6
-import com.shinsoft.tools.model.common.ResultJSON;
7
-
8
-
9
-/**
10
- * <p>
11
- * ${table.comment!} 服务类
12
- * </p>
13
- *
14
- * @author ${author}
15
- * @since ${date}
16
- */
17
-<#if kotlin>
18
-interface ${table.serviceName} : ${superServiceClass}<${entity}>
19
-<#else>
20
-public interface ${table.serviceName} extends ${superServiceClass}<${entity}> {
21
-
22
-   ResultJSON query(int page, int rows,String params);
23
-
24
-   ResultJSON queryByPK(String id);
25
-
26
-   ResultJSON save(String userId, String json);
27
-
28
-   ResultJSON remove(String userId, String id);
29
-
30
-   ResultJSON removeBatch(String userId, String ids);
31
-
32
- }
33
-</#if>

+ 0
- 162
ctc/src/main/resources/templates/serviceImpl.java.ftl Voir le fichier

@@ -1,162 +0,0 @@
1
-package ${package.ServiceImpl};
2
-
3
-import ${package.Entity}.${entity};
4
-import ${package.Mapper}.${table.mapperName};
5
-<#if table.serviceInterface>
6
-    import ${package.Service}.${table.serviceName};
7
-</#if>
8
-import ${superServiceImplClassPackage};
9
-import org.springframework.stereotype.Service;
10
-
11
-
12
-import org.springframework.beans.factory.annotation.Autowired;
13
-import java.util.Date;
14
-import java.util.List;
15
-import com.alibaba.fastjson.JSON;
16
-import com.alibaba.fastjson.JSONObject;
17
-import com.alibaba.fastjson.JSONArray;
18
-import com.alibaba.fastjson.TypeReference;
19
-import com.shinsoft.tools.JSONTools;
20
-import com.shinsoft.tools.model.common.ResultJSON;
21
-import org.apache.commons.lang3.StringUtils;
22
-import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
23
-import com.baomidou.mybatisplus.core.metadata.IPage;
24
-import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
25
-import org.apache.commons.lang3.ObjectUtils;
26
-import org.apache.commons.lang3.StringUtils;
27
-
28
-/**
29
-* <p>
30
-    * ${table.comment!} 服务实现类
31
-    * </p>
32
-*
33
-* @author ${author}
34
-* @since ${date}
35
-*/
36
-@Service
37
-<#if kotlin>
38
-    open class ${table.serviceImplName} : ${superServiceImplClass}<${table.mapperName}, ${entity}>()<#if table.serviceInterface>, ${table.serviceName}</#if> {
39
-
40
-    }
41
-<#else>
42
-    public class ${table.serviceImplName} extends ${superServiceImplClass}<${table.mapperName}, ${entity}><#if table.serviceInterface> implements ${table.serviceName}</#if> {
43
-
44
-
45
-    ResultJSON resultJSON;
46
-
47
-    @Autowired
48
-    ${table.mapperName} ${table.entityPath}Mapper;
49
-
50
-    @Override
51
-    public ResultJSON query(int page,int rows,String params){
52
-    JSONObject jsonObject=JSON.parseObject(params);
53
-    <#list queryList as item>
54
-        <#if item.fieldType == 'varchar'||item.fieldType == 'VARCHAR2'||item.fieldType == 'VARCHAR'||item.fieldType == 'CHAR'>
55
-            String ${item.prop} = jsonObject.getString("${item.prop}");
56
-        <#elseif item.fieldType == 'int'||item.fieldType == 'INT'>
57
-            int ${item.prop} = jsonObject.getInteger("${item.prop}");
58
-        <#elseif item.fieldType == 'float'||item.fieldType == 'FLOAT'>
59
-            float ${item.prop} = jsonObject.getInteger("${item.prop}");
60
-        <#elseif item.fieldType == 'double'||item.fieldType == 'DOUBLE'>
61
-            Double ${item.prop} = jsonObject.getDouble("${item.prop}");
62
-        <#elseif item.fieldType == 'NUMBER'&& item.dataPrecision == 0>
63
-            int ${item.prop} = jsonObject.getInteger("${item.prop}");
64
-        <#elseif item.fieldType == 'NUMBER'&& item.dataPrecision != 0>
65
-            Double ${item.prop} = jsonObject.getDouble("${item.prop}");
66
-        <#elseif item.fieldType == 'date'||item.fieldType == 'datetime'||item.fieldType == 'DATE'||item.fieldType == 'DATETIME'||item.fieldType == 'TIMESTAMP'>
67
-            <#if item.dateFlag=='1'>
68
-                JSONArray ${item.prop}Range = jsonObject.getJSONArray("${item.prop}");
69
-                Date ${item.prop}Begin = ${item.prop}Range.getDate(0);
70
-                Date ${item.prop}End = ${item.prop}Range.getDate(1);
71
-            <#else>
72
-                Date ${item.prop} = jsonObject.getDate("${item.prop}");
73
-            </#if>
74
-        </#if>
75
-    </#list>
76
-    Page<${entity}> ${table.entityPath}Page=new Page<>(page,rows);
77
-    QueryWrapper<${entity}>queryWrapper=new QueryWrapper<>();
78
-    queryWrapper.eq("cancel_flag","0");
79
-    <#list queryList as item>
80
-        <#if item.fieldType == 'date'||item.fieldType == 'datetime'||item.fieldType == 'DATE'||item.fieldType == 'DATETIME'||item.fieldType == 'TIMESTAMP'>
81
-            <#if item.dateFlag=='1'>
82
-                queryWrapper.between(ObjectUtils.isNotEmpty(${item.prop}Begin),"${item.fieldName}",${item.prop}Begin, ${item.prop}End);
83
-            <#else>
84
-                queryWrapper.eq(ObjectUtils.isNotEmpty(${item.prop}),"${item.fieldName}",${item.prop});
85
-            </#if>
86
-        <#else>
87
-            <#if item.fuzzyFlag == '1'>
88
-                queryWrapper.like(StringUtils.isNotEmpty(${item.prop}),"${item.fieldName}",${item.prop});
89
-            <#else>
90
-                <#if item.fieldType == 'varchar'||item.fieldType == 'VARCHAR'||item.fieldType == 'VARCHAR2'||item.fieldType == 'char'||item.fieldType == 'CHAR'>
91
-                    queryWrapper.eq(StringUtils.isNotEmpty(${item.prop}),"${item.fieldName}",${item.prop});
92
-                <#else>
93
-                    queryWrapper.eq(ObjectUtils.isNotEmpty(${item.prop}),"${item.fieldName}",${item.prop});
94
-                </#if>
95
-            </#if>
96
-        </#if>
97
-    </#list>
98
-    queryWrapper.orderByDesc("add_time");
99
-    Page<${entity}>list= ${table.entityPath}Mapper.selectPage(${table.entityPath}Page,queryWrapper);
100
-    resultJSON=JSONTools.toResultJSON(list);
101
-    return resultJSON;
102
-    }
103
-
104
-    @Override
105
-    public ResultJSON queryByPK(String id) {
106
-    ${entity} ${table.entityPath} =  ${table.entityPath}Mapper.selectByPK(id);
107
-    resultJSON = JSONTools.toResultJSON(${table.entityPath});
108
-    return resultJSON;
109
-    }
110
-
111
-
112
-    @Override
113
-    public ResultJSON save(String userId,String json){
114
-    Date date = new Date();
115
-    ${entity} ${table.entityPath} =JSON.parseObject(json,new TypeReference<${entity}>(){
116
-    });
117
-    if(StringUtils.isEmpty(${table.entityPath}.getId())){
118
-    ${table.entityPath}.setCancelFlag("0");
119
-    ${table.entityPath}.setAddId(userId);
120
-    ${table.entityPath}.setAddTime(date);
121
-    ${table.entityPath}Mapper.insert(${table.entityPath});
122
-    }else{
123
-    ${table.entityPath}.setModifyId(userId);
124
-    ${table.entityPath}.setModifyTime(date);
125
-    ${table.entityPath}Mapper.updateById(${table.entityPath});
126
-    }
127
-
128
-    resultJSON=JSONTools.toResultJSON(${table.entityPath});
129
-    return resultJSON;
130
-    }
131
-
132
-    @Override
133
-    public ResultJSON remove(String userId,String id){
134
-    Date date=new Date();
135
-    ${entity} ${table.entityPath} = ${table.entityPath}Mapper.selectById(id);
136
-    ${table.entityPath}.setCancelFlag("1");
137
-    ${table.entityPath}.setCancelId(userId);
138
-    ${table.entityPath}.setCancelTime(date);
139
-    ${table.entityPath}Mapper.updateById(${table.entityPath});
140
-    resultJSON=JSONTools.toResultJSON("");
141
-    return resultJSON;
142
-    }
143
-
144
-    @Override
145
-    public ResultJSON removeBatch(String userId, String ids) {
146
-    Date date = new Date();
147
-    ${r"List<String>"} list = JSON.parseObject(ids,new TypeReference<${r"List<String>"}>() {
148
-    });
149
-    ${entity} ${table.entityPath};
150
-    for(String id :list){
151
-    ${table.entityPath} = ${table.entityPath}Mapper.selectById(id);
152
-    ${table.entityPath}.setCancelFlag("1");
153
-    ${table.entityPath}.setCancelId(userId);
154
-    ${table.entityPath}.setCancelTime(date);
155
-    ${table.entityPath}Mapper.updateById(${table.entityPath});
156
-    }
157
-    resultJSON = JSONTools.toResultJSON("");
158
-    return resultJSON;
159
-    }
160
-
161
-    }
162
-</#if>

+ 0
- 1
ctc/src/main/resources/templates/uniapp3.vue.ftl Voir le fichier

@@ -1 +0,0 @@
1
-uniapp3:::${package.ModuleName}/${controllerMappingHyphen}

+ 0
- 462
ctc/src/main/resources/templates/vue3.vue.ftl Voir le fichier

@@ -1,462 +0,0 @@
1
-<template>
2
-    <div>
3
-        <el-card :body-style="cardBodyStyle">
4
-            <el-form :inline="true">
5
-                <#list queryList as item>
6
-                    <#if item.controllerType == "日期">
7
-                        <el-form-item label="${item.fieldComment}"  style="margin-bottom: 0px;">
8
-                            <#if item.dateFlag =='1'>
9
-                                <el-date-picker v-model="query.${item.prop}" type="daterange"
10
-                                                align="right" range-separator="至"
11
-                                                start-placeholder="开始日期" end-placeholder="结束日期"
12
-                                                :picker-options="pickerOptions" style="width: 250px;"
13
-                                                value-format="YYYY-MM-DD" format="YYYY-MM-DD">
14
-                                </el-date-picker>
15
-                            <#else>
16
-                                <el-date-picker v-model="query.${item.prop}"  type="date"
17
-                                                value-format="YYYY-MM-DD" format="YYYY-MM-DD"
18
-                                                style="width: 200px;"></el-date-picker>
19
-                            </#if>
20
-                        </el-form-item>
21
-                    <#elseif item.controllerType == "日期时间">
22
-                        <el-form-item label="${item.fieldComment}" style="margin-bottom: 0px;">
23
-                            <#if item.dateFlag =='1'>
24
-                                <el-date-picker v-model="query.${item.prop}" type="datetimerange"
25
-                                                align="right" unlink-panels range-separator="至"
26
-                                                start-placeholder="开始时间" end-placeholder="结束时间"
27
-                                                :picker-options="pickerOptions" style="width: 350px;"
28
-                                                value-format="YYYY-MM-DD HH:mm:ss" format="YYYY-MM-DD HH:mm:ss">
29
-                                </el-date-picker>
30
-                            <#else>
31
-                                <el-date-picker v-model="query.${item.prop}"
32
-                                                type="datetime" style="width: 200px;"
33
-                                                value-format="YYYY-MM-DD HH:mm:ss" format="YYYY-MM-DD HH:mm:ss"></el-date-picker>
34
-                            </#if>
35
-                        </el-form-item>
36
-                    <#else>
37
-                        <el-form-item label="${item.fieldComment}" style="margin-bottom: 5px;" prop="${item.prop}">
38
-                            <el-input v-model="query.${item.prop}" placeholder="请输入${item.fieldComment}"
39
-                                      clearable></el-input>
40
-                        </el-form-item>
41
-                    </#if>
42
-                </#list>
43
-            </el-form>
44
-        </el-card>
45
-        <ButtonBar @search="handleSearch" @add="handleAdd" @remove="handleRemoveBatch" @edit="handleEditBatch"
46
-                   @upload="handleUpload" @download="handleDownload" @import="handleImport" @export="handleExport"></ButtonBar>
47
-        <el-card :body-style="cardBodyStyle">
48
-            <el-table :data="tableData" border highlight-current-row  @selection-change="handleSelectionChange">
49
-                <el-table-column type="selection" fixed></el-table-column>
50
-                <el-table-column type="index" label="序号" align="center" width="60">
51
-                    <template #default="scope">
52
-                        <span>{{ scope.$index + (currentPage - 1) * pageSize + 1 }}</span>
53
-                    </template>
54
-                </el-table-column>
55
-                <#if lowCode.fixedFlag=='1'>
56
-                    <el-table-column v-for="item in cols"  :key="item.id"  :prop="item.prop"
57
-                                     :label="item.label" :width="item.width" :header-align="item.headerAlign" :align="item.align"
58
-                                     show-overflow-tooltip></el-table-column>
59
-                <#else>
60
-                    <#list lowCodeFields as item>
61
-                        <el-table-column v-if="<#if item.showFlag=='1'>true<#else>false</#if>" prop="${item.prop}" label="${item.fieldComment}" width="${item.width}"
62
-                                         header-align="${item.headerAlign}" align="${item.align}"
63
-                                         show-overflow-tooltip>
64
-                        </el-table-column>
65
-                    </#list>
66
-                </#if>
67
-
68
-
69
-                <el-table-column label="操作" header-align="center" align="center" width="200px">
70
-                    <template #default="scope">
71
-                        <el-button plain type="warning" size="small" @click="handleEdit(scope.row)">编辑</el-button>
72
-                        <el-button plain type="danger"  size="small" @click="handleDelete(scope.row )">删除</el-button>
73
-                    </template>
74
-                </el-table-column>
75
-            </el-table>
76
-        </el-card>
77
-        <el-card :body-style="cardBodyStyle">
78
-            <el-pagination  :current-page="currentPage"  :page-size="pageSize" :page-sizes="pageSizes"
79
-                           :total="totalRows" background="background" layout="total, sizes, prev, pager, next, jumper"
80
-                           @size-change="handleSizeChange" @current-change="handleCurrentChange">
81
-            </el-pagination>
82
-        </el-card>
83
-
84
-        <el-dialog :close-on-click-modal="false" draggable title="编辑" v-model="dialogVisible" width="1200px"
85
-                   top="5vh"  @open="openDialog">
86
-            <el-form :model="form" label-width="80px" label-position="right" inline ref="ruleFormRef" :rules="rules">
87
-                <#list inputList as item>
88
-                <el-form-item label="${item.fieldComment}" <#if item.requireFlag=='1'> prop="${item.prop}" </#if> >
89
-                 <#if item.controllerType == "日期">
90
-                    <el-date-picker v-model="form.${item.prop}"  type="date"  style="width: 200px;"
91
-                                     value-format="YYYY-MM-DD" format="YYYY-MM-DD"
92
-                                    ></el-date-picker>
93
-                  <#elseif  item.controllerType == "日期时间">
94
-                    <el-date-picker v-model="form.${item.prop}"  type="datetime" style="width: 200px;"
95
-                                     value-format="YYYY-MM-DD HH:mm:ss" format="YYYY-MM-DD HH:mm:ss"></el-date-picker>
96
-                   <#elseif  item.controllerType == "单行文本">
97
-                    <el-input v-model="form.${item.prop}" clearable style="width: 200px"></el-input>
98
-                    <#elseif  item.controllerType == "多行文本">
99
-                     <el-input v-model="form.${item.prop}" clearable style="width: 200px"></el-input>
100
-                  </#if>
101
-                </el-form-item>
102
-                </#list>
103
-            </el-form>
104
-            <#if lowCode.attachmentFlag=='1'>
105
-                <Attachment ref="refUpload"></Attachment>
106
-            </#if>
107
-            <template #footer>
108
-                <div class="dialog-footer">
109
-                    <el-button type="success" @click="handleSave(ruleFormRef)">保存</el-button>
110
-                    <el-button type="danger" @click="handleCancelSave">取消</el-button>
111
-                </div>
112
-            </template>
113
-        </el-dialog>
114
-
115
-
116
-    </div>
117
-</template>
118
-
119
-<script setup>
120
-    import ButtonBar from '@/components/ButtonBar.vue'
121
-
122
-    import {
123
-        ref,
124
-        reactive,
125
-        onMounted,
126
-        getCurrentInstance
127
-    } from 'vue'
128
-
129
-    const {
130
-        proxy
131
-    } = getCurrentInstance()
132
-
133
-    import tools from '@/tools'
134
-    const cardBodyStyle = ref(tools.style.card)
135
-    const inputStyle = ref(tools.style.input)
136
-
137
-    onMounted(() => {
138
-        <#if lowCode.fixedFlag=='1'>
139
-        getCols()
140
-        </#if>
141
-        handleSearch()
142
-    })
143
-    <#if lowCode.attachmentFlag=='1'>
144
-    import Attachment from '@/components/Attachment.vue'
145
-    </#if>
146
-
147
-
148
-
149
-    /**
150
-     *   查询
151
-     */
152
-
153
-
154
-    <#if lowCode.fixedFlag=='1'>
155
-    import {
156
-        nextTick
157
-    } from 'vue'
158
-    const cols = ref([ ])
159
-    const getCols = () => {
160
-        var url = 'framework/LowCodePersonal/queryByUserIdMenuId'
161
-        var param = {
162
-            menuId: localStorage.getItem('menuId'),
163
-            tName: '表格'
164
-        }
165
-        proxy.$axios.get(url, param).then(response => {
166
-            var temp = []
167
-            for (var col of response.data.data) {
168
-                if (col.showFlag == '1') {
169
-                    temp.push(col)
170
-                }
171
-            }
172
-            var newArray = temp.slice(0)
173
-            cols.value = []
174
-            nextTick(() => {
175
-                cols.value = newArray
176
-            })
177
-        })
178
-    }
179
-    </#if>
180
-
181
-
182
-    const query = ref({
183
-        <#list queryList as item>
184
-        <#if item.controllerType == "日期">
185
-            <#if item.dateFlag =='1'>
186
-                ${item.prop} : [proxy.$dayjs().format('YYYY-MM-DD'), proxy.$dayjs().format('YYYY-MM-DD')] <#if item_has_next>, </#if>
187
-            <#else>
188
-                ${item.prop}: proxy.$dayjs().format('YYYY-MM-DD') <#if item_has_next>, </#if>
189
-            </#if>
190
-        <#elseif  item.controllerType == "日期时间" >
191
-            <#if item.dateFlag =='1'>
192
-              ${item.prop} : [proxy.$dayjs().format('YYYY-MM-DD') + ' 00:00:00', proxy.$dayjs().format('YYYY-MM-DD') + ' 23:59:59' ] <#if item_has_next>, </#if>
193
-              <#else>
194
-              ${item.prop}:proxy.$dayjs().format('YYYY-MM-DD HH:mm:ss')<#if item_has_next>, </#if>
195
-            </#if>
196
-        <#else>
197
-           ${item.prop}: ''<#if item_has_next>, </#if>
198
-       </#if>
199
-       </#list>
200
-   })
201
-   const tableData = ref([])
202
-   const handleSearch = () => {
203
-       currentPage.value = 1
204
-       getTableData()
205
-   }
206
-
207
-   const getTableData = () => {
208
-       var url = '${lowCode.serviceName}/${entity}/query'
209
-       var param = {
210
-           page: currentPage.value,
211
-           rows: pageSize.value,
212
-           params: JSON.stringify(query.value)
213
-       }
214
-       proxy.$axios.get(url, param).then(response => {
215
-            if (response.data.code == '0') {
216
-                tableData.value = response.data.data.records
217
-                totalRows.value = response.data.data.total
218
-            } else {
219
-                ElMessage.error('操作失败!' + response.data.msg)
220
-            }
221
-        })
222
-    }
223
-    /**
224
-     *   查询
225
-     */
226
-
227
-    /**
228
-     * 分页
229
-     */
230
-    const currentPage = ref(1)
231
-    const totalRows = ref(0)
232
-    const pageSizes = ref([10, 20, 30, 40])
233
-    const pageSize = ref(10)
234
-    const handleSizeChange = (val) => {
235
-        pageSize.value = val
236
-        getTableData()
237
-    }
238
-    const handleCurrentChange = (val) => {
239
-        currentPage.value = val
240
-        getTableData()
241
-    }
242
-    /**
243
-     * 分页
244
-     */
245
-
246
-
247
-    /**
248
-     * 新增
249
-     */
250
-    const dialogVisible = ref(false)
251
-    const form = ref({
252
-        <#list inputList as item>
253
-        ${item.prop}: ''<#if item_has_next>, </#if>
254
-        </#list>
255
-    })
256
-    const ruleFormRef = ref()
257
-    const rules = reactive({
258
-        <#list inputList as item>
259
-        <#if item.requireFlag=='1'>
260
-        ${item.prop}: [{
261
-            required: true,
262
-            message: '请输入${item.fieldComment}',
263
-            trigger: 'change' | 'blur'
264
-        }]<#if item_has_next>, </#if>
265
-        </#if>
266
-        </#list>
267
-    })
268
-
269
-    const handleAdd = () => {
270
-        form.value = {
271
-            <#list inputList as item>
272
-            ${item.prop}: ''<#if item_has_next>, </#if>
273
-            </#list>
274
-        }
275
-        dialogVisible.value = true
276
-    }
277
-    /**
278
-     * 新增
279
-     */
280
-
281
-
282
-    /**
283
-     * 保存、修改、删除
284
-     */
285
-    <#if lowCode.attachmentFlag=='1'>
286
-         const refUpload = ref()
287
-    </#if>
288
-
289
-    const openDialog=()=>{
290
-        <#if lowCode.attachmentFlag=='1'>
291
-        refUpload.value.fId = form.value.id
292
-        refUpload.value.getTableData()
293
-        </#if>
294
-    }
295
-
296
-    const handleSave = (ruleFormRef) => {
297
-        ruleFormRef.validate((valid, fields) => {
298
-            if (valid) {
299
-                var url = '${lowCode.serviceName}/${entity}/save'
300
-                var param = {
301
-                    json: JSON.stringify(form.value),
302
-                }
303
-                proxy.$axios.post(url, param).then(response => {
304
-                    if (response.data.code == 0) {
305
-                        form.value = response.data.data
306
-                        ElMessage({
307
-                            message: '保存成功',
308
-                            type: 'success',
309
-                        })
310
-                        <#if lowCode.attachmentFlag=='1'>
311
-                        refUpload.value.fId = form.value.id
312
-                        refUpload.value.upload()
313
-                        </#if>
314
-                        getTableData()
315
-                        dialogVisible.value = false
316
-                    } else {
317
-                        // ElMessage.error('操作失败!' + response.data.msg)
318
-                        ElMessage({
319
-                            message: '操作失败' + response.data.msg,
320
-                            type: 'error'
321
-                        })
322
-                    }
323
-                })
324
-
325
-            } else {
326
-                console.log('error submit!', fields)
327
-            }
328
-        })
329
-    }
330
-    const handleCancelSave = () => {
331
-        dialogVisible.value = false
332
-    }
333
-    const handleEdit = (row) => {
334
-        dialogVisible.value = true
335
-        form.value = row
336
-    }
337
-    const handleDelete = (row) => {
338
-        ElMessageBox.confirm(
339
-            '确定删除本条记录?',
340
-            '提示', {
341
-                confirmButtonText: '确认',
342
-                cancelButtonText: '取消',
343
-                type: 'warning',
344
-                draggable: true,
345
-            }
346
-        )
347
-            .then(() => {
348
-                var url = '${lowCode.serviceName}/${entity}/remove'
349
-                var param = {
350
-                    id: row.id
351
-                }
352
-                proxy.$axios.post(url, param).then(response => {
353
-                    if (response.data.code == 0) {
354
-                        ElMessage({
355
-                            type: 'success',
356
-                            message: '删除成功',
357
-                        })
358
-                        getTableData()
359
-                    } else {
360
-                        ElMessage({
361
-                            type: 'error',
362
-                            message: '删除失败' + response.data.msg
363
-                        });
364
-                    }
365
-                });
366
-            })
367
-            .catch(() => {
368
-                ElMessage({
369
-                    type: 'info',
370
-                    message: '已取消',
371
-                })
372
-            })
373
-    }
374
-
375
-    /**
376
-     * 保存、修改、删除
377
-     */
378
-
379
-    const multipleSelection = ref([])
380
-    const handleSelectionChange = (val) => {
381
-        multipleSelection.value = val
382
-    }
383
-
384
-    const handleRemoveBatch = () => {
385
-        console.log('handleRemoveBatch')
386
-
387
-        if (multipleSelection.value.length < 1) {
388
-            ElMessage({
389
-                type: 'warning',
390
-                message: '请选择要删除的数据!'
391
-            })
392
-            return
393
-        }
394
-
395
-        ElMessageBox.confirm('此操作将删除该数据, 是否继续?', '提示', {
396
-            confirmButtonText: '确定',
397
-            cancelButtonText: '取消',
398
-            type: 'warning'
399
-        }).then(() => {
400
-            var ids = []
401
-            multipleSelection.value.forEach((item, index) => {
402
-                ids.push(item.id)
403
-            })
404
-            var url = '${lowCode.serviceName}/${entity}/removeBatch'
405
-            var param = {
406
-                ids: JSON.stringify(ids)
407
-            }
408
-            proxy.$axios.post(url, param).then(response => {
409
-                if (response.data.code == '0') {
410
-                    ElMessage({
411
-                        type: 'success',
412
-                        message: '操作成功!',
413
-                    });
414
-                    getTableData()
415
-                    dialogVisible.value = false
416
-                } else {
417
-                    ElMessage({
418
-                        type: 'error',
419
-                        message: '操作失败!' + response.data.msg
420
-                    });
421
-                }
422
-            })
423
-        }).catch(() => {
424
-            ElMessage({
425
-                type: 'info',
426
-                message: '已取消删除'
427
-            })
428
-        })
429
-    }
430
-
431
-    const handleEditBatch = () => {
432
-        console.log('handleEditBatch')
433
-        if (multipleSelection.value.length != 1) {
434
-            ElMessage({
435
-                type: 'warning',
436
-                message: '请选择一条数据编辑!'
437
-            })
438
-            return
439
-        }
440
-        handleEdit(multipleSelection.value[0])
441
-    }
442
-
443
-    const handleUpload = () => {
444
-        console.log('handleUpload')
445
-    }
446
-
447
-    const handleDownload = () => {
448
-        console.log('handleDownload')
449
-    }
450
-
451
-    const handleImport = () => {
452
-        console.log('handleImport')
453
-    }
454
-
455
-    const handleExport = () => {
456
-        console.log('handleExport')
457
-    }
458
-
459
-</script>
460
-
461
-<style>
462
-</style>

+ 0
- 5
ctc/src/main/resources/test/Dockerfile Voir le fichier

@@ -1,5 +0,0 @@
1
-FROM alpine-java8:1.0.0
2
-ADD lib /lib
3
-ADD bootstrap.properties /bootstrap.properties
4
-ADD framework.jar /framework.jar
5
-CMD ["java","-jar","-Duser.timezone=GMT+08","/framework.jar","--spring.config.location=file:/bootstrap.properties"]

+ 0
- 24
ctc/src/main/resources/test/bootstrap.properties Voir le fichier

@@ -1,24 +0,0 @@
1
-nacosServer=192.168.31.191:8848
2
-nacosNamespace=sgiip
3
-nacosGroup=test
4
-
5
-server.port=8011
6
-spring.application.name=framework
7
-
8
-spring.cloud.nacos.config.namespace=${nacosNamespace}
9
-spring.cloud.nacos.config.group=${nacosGroup}
10
-spring.cloud.nacos.config.server-addr=${nacosServer}
11
-spring.cloud.nacos.config.file-extension=yaml
12
-spring.cloud.nacos.config.ext-config[0].data-id=common.yaml
13
-spring.cloud.nacos.config.ext-config[0].group=${nacosGroup}
14
-spring.cloud.nacos.config.ext-config[0].refresh=true
15
-spring.cloud.nacos.config.ext-config[1].data-id=db-framework-oracle.yaml
16
-spring.cloud.nacos.config.ext-config[1].group=${nacosGroup}
17
-spring.cloud.nacos.config.ext-config[1].refresh=true
18
-
19
-spring.cloud.nacos.discovery.namespace=${nacosNamespace}
20
-spring.cloud.nacos.discovery.group=${nacosGroup}
21
-spring.cloud.nacos.discovery.server-addr=${nacosServer}
22
-spring.cloud.nacos.discovery.retry.enabled=true
23
-
24
-spring.cloud.inetutils.preferred-networks=192.168.31.

+ 0
- 76
ctc/src/main/resources/test/log4j2.xml Voir le fichier

@@ -1,76 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8"?>
2
-<Configuration status="DEBUG" monitorInterval="60">
3
-
4
-
5
-    <Properties>
6
-        <!--自定义一些常量,之后使用${变量名}引用-->
7
-        <Property name="logFilePath">logs</Property>
8
-    </Properties>
9
-
10
-
11
-    <!--定义所有的appender-->
12
-    <Appenders>
13
-        <!--输出控制台的配置-->
14
-        <Console name="Console" target="SYSTEM_OUT">
15
-            <!--日志信息的格式-->
16
-            <PatternLayout pattern="%d{HH:mm:ss:SSS} [%p] %c  %m%n"/>
17
-        </Console>
18
-
19
-        <!--输出文件的配置-->
20
-        <File name="log" fileName="${logFilePath}/log.log" append="false">
21
-            <PatternLayout pattern="%d{HH:mm:ss.SSS} %-5level %c{36} %L %c %M %msg%n"/>
22
-        </File>
23
-
24
-        <RollingFile name="RollingFileInfo" fileName="${logFilePath}/info.log"
25
-                     filePattern="${logFilePath}/$${date:yyyy-MM}/info-%d{yyyy-MM-dd}-%i.log">
26
-            <!--只输出level级别以上的信息(onMatch),其他级别的拒绝(onMismatch)-->
27
-            <ThresholdFilter level="info" onMatch="ACCEPT" onMismatch="DENY"/>
28
-            <PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss:SSS} [%p] %l %c %m%n"/>
29
-            <Policies>
30
-                <TimeBasedTriggeringPolicy/>
31
-                <SizeBasedTriggeringPolicy size="20MB"/>
32
-            </Policies>
33
-            <!--文件数量的设置-->
34
-            <DefaultRolloverStrategy max="50"/>
35
-        </RollingFile>
36
-
37
-        <RollingFile name="RollingFileWarn" fileName="${logFilePath}/warn.log"
38
-                     filePattern="${logFilePath}/$${date:yyyy-MM}/warn-%d{yyyy-MM-dd}-%i.log">
39
-            <ThresholdFilter level="warn" onMatch="ACCEPT" onMismatch="DENY"/>
40
-            <PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss:SSS} [%p] %l %c %m%n"/>
41
-            <Policies>
42
-                <TimeBasedTriggeringPolicy/>
43
-                <SizeBasedTriggeringPolicy size="20MB"/>
44
-            </Policies>
45
-            <!--文件数量的设置-->
46
-            <DefaultRolloverStrategy max="50"/>
47
-        </RollingFile>
48
-
49
-        <RollingFile name="RollingFileError" fileName="${logFilePath}/error.log"
50
-                     filePattern="${logFilePath}/$${date:yyyy-MM}/warn-%d{yyyy-MM-dd}-%i.log">
51
-            <ThresholdFilter level="error" onMatch="ACCEPT" onMismatch="DENY"/>
52
-            <PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss:SSS} [%p] %l %c %m%n"/>
53
-            <Policies>
54
-                <TimeBasedTriggeringPolicy/>
55
-                <SizeBasedTriggeringPolicy size="20MB"/>
56
-            </Policies>
57
-            <!--文件数量的设置-->
58
-            <DefaultRolloverStrategy max="50"/>
59
-        </RollingFile>
60
-    </Appenders>
61
-
62
-    <Loggers>
63
-        <logger name="org.springframework" level="INFO"></logger>
64
-        <logger name="com.netflix" level="INFO"></logger>
65
-        <logger name="org.apache" level="INFO"></logger>
66
-        <logger name="org.mybatis" level="INFO"></logger>
67
-        <logger name="com.alibaba.nacos" level="WARN"></logger>
68
-        <Root level="DEBUG">
69
-            <AppenderRef ref="Console"/>
70
-            <AppenderRef ref="RollingFileInfo"/>
71
-            <AppenderRef ref="RollingFileWarn"/>
72
-            <AppenderRef ref="RollingFileError"/>
73
-        </Root>
74
-
75
-    </Loggers>
76
-</Configuration>

+ 0
- 59
lim-api/pom.xml Voir le fichier

@@ -1,59 +0,0 @@
1
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2
-         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
3
-    <modelVersion>4.0.0</modelVersion>
4
-    <parent>
5
-        <groupId>com.shinsoft</groupId>
6
-        <artifactId>service</artifactId>
7
-        <version>1.0-SNAPSHOT</version>
8
-    </parent>
9
-    <groupId>com.shinsoft.limapi</groupId>
10
-    <artifactId>lim-api</artifactId>
11
-    <version>1.0.0</version>
12
-
13
-
14
-    <dependencies>
15
-        <dependency>
16
-            <groupId>junit</groupId>
17
-            <artifactId>junit</artifactId>
18
-            <version>4.11</version>
19
-            <scope>test</scope>
20
-        </dependency>
21
-
22
-        <dependency>
23
-            <groupId>org.springframework.cloud</groupId>
24
-            <artifactId>spring-cloud-openfeign-core</artifactId>
25
-            <version>2.1.3.RELEASE</version>
26
-            <scope>compile</scope>
27
-        </dependency>
28
-
29
-        <dependency>
30
-            <groupId>org.projectlombok</groupId>
31
-            <artifactId>lombok</artifactId>
32
-        </dependency>
33
-        <!-- 公共方法和接口-->
34
-        <dependency>
35
-            <groupId>com.shinsoft</groupId>
36
-            <artifactId>tools</artifactId>
37
-            <version>1.0.1</version>
38
-            <scope>system</scope>
39
-            <systemPath>${project.basedir}/../lib/tools-1.0.1.jar</systemPath>
40
-        </dependency>
41
-        <!-- 公共方法和接口-->
42
-
43
-
44
-    </dependencies>
45
-
46
-    <build>
47
-        <plugins>
48
-            <plugin>
49
-                <groupId>org.apache.maven.plugins</groupId>
50
-                <artifactId>maven-jar-plugin</artifactId>
51
-                <configuration>
52
-                    <outputDirectory>
53
-                        ${project.basedir}/../lib
54
-                    </outputDirectory>
55
-                </configuration>
56
-            </plugin>
57
-        </plugins>
58
-    </build>
59
-</project>

+ 0
- 7
lim-api/src/main/java/com/shinsoft/limapi/service/LimService.java Voir le fichier

@@ -1,7 +0,0 @@
1
-package com.shinsoft.limapi.service;
2
-
3
-import org.springframework.cloud.openfeign.FeignClient;
4
-
5
-@FeignClient(name = "lim", contextId = "lim-api")
6
-public interface LimService {
7
-}

+ 0
- 516
lim/pom.xml Voir le fichier

@@ -1,516 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8"?>
2
-<project xmlns="http://maven.apache.org/POM/4.0.0"
3
-         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
-         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5
-    <modelVersion>4.0.0</modelVersion>
6
-    <parent>
7
-        <groupId>com.shinsoft</groupId>
8
-        <artifactId>service</artifactId>
9
-        <version>1.0-SNAPSHOT</version>
10
-    </parent>
11
-
12
-
13
-    <groupId>com.shinsoft</groupId>
14
-    <artifactId>lim</artifactId>
15
-    <version>1.0.0</version>
16
-    <name>lim</name>
17
-    <description>Demo project for Spring Boot</description>
18
-
19
-    <properties>
20
-        <maven.compiler.source>8</maven.compiler.source>
21
-        <maven.compiler.target>8</maven.compiler.target>
22
-        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
23
-    </properties>
24
-
25
-    <dependencies>
26
-        <!--spring-->
27
-        <dependency>
28
-            <groupId>org.springframework.boot</groupId>
29
-            <artifactId>spring-boot-starter-web</artifactId>
30
-            <exclusions>
31
-                <exclusion>
32
-                    <groupId>org.springframework.boot</groupId>
33
-                    <artifactId>spring-boot-starter-logging</artifactId>
34
-                </exclusion>
35
-                <exclusion>
36
-                    <groupId>org.hibernate</groupId>
37
-                    <artifactId>hibernate-validator</artifactId>
38
-                </exclusion>
39
-            </exclusions>
40
-        </dependency>
41
-
42
-        <!--log4j2-->
43
-        <dependency>
44
-            <groupId>org.springframework.boot</groupId>
45
-            <artifactId>spring-boot-starter-log4j2</artifactId>
46
-        </dependency>
47
-        <dependency>
48
-            <groupId>org.apache.logging.log4j</groupId>
49
-            <artifactId>log4j-api</artifactId>
50
-        </dependency>
51
-        <dependency>
52
-            <groupId>org.apache.logging.log4j</groupId>
53
-            <artifactId>log4j-core</artifactId>
54
-        </dependency>
55
-        <dependency>
56
-            <groupId>org.apache.logging.log4j</groupId>
57
-            <artifactId>log4j-jul</artifactId>
58
-        </dependency>
59
-        <dependency>
60
-            <groupId>org.apache.logging.log4j</groupId>
61
-            <artifactId>log4j-slf4j-impl</artifactId>
62
-        </dependency>
63
-        <!--log4j2-->
64
-
65
-        <dependency>
66
-            <groupId>org.springframework.boot</groupId>
67
-            <artifactId>spring-boot-starter-test</artifactId>
68
-            <scope>test</scope>
69
-        </dependency>
70
-
71
-        <dependency>
72
-            <groupId>com.alibaba.cloud</groupId>
73
-            <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
74
-        </dependency>
75
-        <dependency>
76
-            <groupId>com.alibaba.cloud</groupId>
77
-            <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
78
-        </dependency>
79
-
80
-        <dependency>
81
-            <groupId>org.springframework.cloud</groupId>
82
-            <artifactId>spring-cloud-starter-netflix-ribbon</artifactId>
83
-        </dependency>
84
-
85
-        <dependency>
86
-            <groupId>org.springframework.cloud</groupId>
87
-            <artifactId>spring-cloud-starter-netflix-hystrix</artifactId>
88
-        </dependency>
89
-
90
-        <dependency>
91
-            <groupId>org.springframework.cloud</groupId>
92
-            <artifactId>spring-cloud-starter-openfeign</artifactId>
93
-        </dependency>
94
-
95
-        <dependency>
96
-            <groupId>org.springframework.boot</groupId>
97
-            <artifactId>spring-boot-starter-aop</artifactId>
98
-        </dependency>
99
-
100
-        <dependency>
101
-            <groupId>org.springframework.boot</groupId>
102
-            <artifactId>spring-boot-starter-data-redis</artifactId>
103
-        </dependency>
104
-
105
-        <dependency>
106
-            <groupId>org.springframework.boot</groupId>
107
-            <artifactId>spring-boot-starter-amqp</artifactId>
108
-        </dependency>
109
-        <!--spring-->
110
-
111
-        <!--common-->
112
-        <dependency>
113
-            <groupId>org.apache.commons</groupId>
114
-            <artifactId>commons-pool2</artifactId>
115
-        </dependency>
116
-
117
-        <dependency>
118
-            <groupId>org.apache.commons</groupId>
119
-            <artifactId>commons-lang3</artifactId>
120
-        </dependency>
121
-
122
-        <dependency>
123
-            <groupId>commons-io</groupId>
124
-            <artifactId>commons-io</artifactId>
125
-        </dependency>
126
-
127
-        <dependency>
128
-            <groupId>commons-fileupload</groupId>
129
-            <artifactId>commons-fileupload</artifactId>
130
-        </dependency>
131
-
132
-        <dependency>
133
-            <groupId>commons-dbutils</groupId>
134
-            <artifactId>commons-dbutils</artifactId>
135
-        </dependency>
136
-        <!--common-->
137
-
138
-
139
-        <!--数据库相关-->
140
-        <dependency>
141
-            <groupId>mysql</groupId>
142
-            <artifactId>mysql-connector-java</artifactId>
143
-        </dependency>
144
-
145
-        <dependency>
146
-            <groupId>com.oracle.database.jdbc</groupId>
147
-            <artifactId>ojdbc8</artifactId>
148
-        </dependency>
149
-
150
-        <dependency>
151
-            <groupId>com.oracle.database.nls</groupId>
152
-            <artifactId>orai18n</artifactId>
153
-        </dependency>
154
-
155
-        <dependency>
156
-            <groupId>com.dameng</groupId>
157
-            <artifactId>DmJdbcDriver18</artifactId>
158
-        </dependency>
159
-
160
-        <dependency>
161
-            <groupId>com.alibaba</groupId>
162
-            <artifactId>druid</artifactId>
163
-        </dependency>
164
-
165
-        <!--数据库相关-->
166
-
167
-
168
-
169
-        <!--代码生成-->
170
-        <dependency>
171
-            <groupId>org.freemarker</groupId>
172
-            <artifactId>freemarker</artifactId>
173
-        </dependency>
174
-
175
-        <dependency>
176
-            <groupId>com.baomidou</groupId>
177
-            <artifactId>mybatis-plus-boot-starter</artifactId>
178
-        </dependency>
179
-
180
-        <dependency>
181
-            <groupId>com.baomidou</groupId>
182
-            <artifactId>mybatis-plus-generator</artifactId>
183
-        </dependency>
184
-
185
-        <!--        <dependency>-->
186
-        <!--            <groupId>com.baomidou</groupId>-->
187
-        <!--            <artifactId>mybatis-plus-extension</artifactId>-->
188
-        <!--        </dependency>-->
189
-
190
-        <dependency>
191
-            <groupId>org.projectlombok</groupId>
192
-            <artifactId>lombok</artifactId>
193
-        </dependency>
194
-
195
-        <dependency>
196
-            <groupId>io.swagger</groupId>
197
-            <artifactId>swagger-annotations</artifactId>
198
-        </dependency>
199
-        <!--代码生成-->
200
-
201
-
202
-        <!--JSON相关-->
203
-        <dependency>
204
-            <groupId>com.alibaba</groupId>
205
-            <artifactId>fastjson</artifactId>
206
-        </dependency>
207
-
208
-        <!--JSON相关-->
209
-
210
-        <!--加密-->
211
-        <dependency>
212
-            <groupId>com.auth0</groupId>
213
-            <artifactId>java-jwt</artifactId>
214
-        </dependency>
215
-        <!--加密-->
216
-
217
-        <!--二维码-->
218
-        <dependency>
219
-            <groupId>com.google.zxing</groupId>
220
-            <artifactId>core</artifactId>
221
-        </dependency>
222
-        <dependency>
223
-            <groupId>com.google.zxing</groupId>
224
-            <artifactId>javase</artifactId>
225
-        </dependency>
226
-        <!--二维码-->
227
-
228
-
229
-        <!--POI office文档控制jar-->
230
-        <!--        <dependency>-->
231
-        <!--            <groupId>org.apache.poi</groupId>-->
232
-        <!--            <artifactId>poi</artifactId>-->
233
-        <!--        </dependency>-->
234
-        <!--        <dependency>-->
235
-        <!--            <groupId>org.apache.poi</groupId>-->
236
-        <!--            <artifactId>poi-scratchpad</artifactId>-->
237
-        <!--        </dependency>-->
238
-        <!--        <dependency>-->
239
-        <!--            <groupId>org.apache.poi</groupId>-->
240
-        <!--            <artifactId>poi-ooxml</artifactId>-->
241
-        <!--        </dependency>-->
242
-        <!--        <dependency>-->
243
-        <!--            <groupId>fr.opensagres.xdocreport</groupId>-->
244
-        <!--            <artifactId>xdocreport</artifactId>-->
245
-        <!--        </dependency>-->
246
-
247
-        <!--        <dependency>-->
248
-        <!--            <groupId>fr.opensagres.xdocreport</groupId>-->
249
-        <!--            <artifactId>fr.opensagres.poi.xwpf.converter.core</artifactId>-->
250
-        <!--        </dependency>-->
251
-
252
-        <!--        <dependency>-->
253
-        <!--            <groupId>fr.opensagres.xdocreport</groupId>-->
254
-        <!--            <artifactId>fr.opensagres.poi.xwpf.converter.xhtml</artifactId>-->
255
-        <!--        </dependency>-->
256
-
257
-        <!--        <dependency>-->
258
-        <!--            <groupId>org.apache.poi</groupId>-->
259
-        <!--            <artifactId>poi-ooxml-schemas</artifactId>-->
260
-        <!--        </dependency>-->
261
-
262
-        <!--        <dependency>-->
263
-        <!--            <groupId>org.apache.poi</groupId>-->
264
-        <!--            <artifactId>ooxml-schemas</artifactId>-->
265
-        <!--        </dependency>-->
266
-
267
-
268
-        <!--POI office文档控制jar-->
269
-
270
-
271
-        <!--Excel导入导出-->
272
-        <dependency>
273
-            <groupId>com.alibaba</groupId>
274
-            <artifactId>easyexcel</artifactId>
275
-        </dependency>
276
-        <!--Excel导入导出-->
277
-
278
-
279
-        <!--  itext-->
280
-        <dependency>
281
-            <groupId>com.lowagie</groupId>
282
-            <artifactId>itext</artifactId>
283
-        </dependency>
284
-        <!--itext-->
285
-
286
-        <dependency>
287
-            <groupId>cn.hutool</groupId>
288
-            <artifactId>hutool-all</artifactId>
289
-        </dependency>
290
-
291
-        <dependency>
292
-            <groupId>io.swagger</groupId>
293
-            <artifactId>swagger-annotations</artifactId>
294
-        </dependency>
295
-
296
-        <dependency>
297
-            <groupId>com.squareup.okhttp3</groupId>
298
-            <artifactId>okhttp</artifactId>
299
-        </dependency>
300
-
301
-        <!--对象存储-->
302
-        <dependency>
303
-            <groupId>io.minio</groupId>
304
-            <artifactId>minio</artifactId>
305
-        </dependency>
306
-        <dependency>
307
-            <groupId>com.qiniu</groupId>
308
-            <artifactId>qiniu-java-sdk</artifactId>
309
-        </dependency>
310
-        <dependency>
311
-            <groupId>software.amazon.awssdk</groupId>
312
-            <artifactId>s3</artifactId>
313
-        </dependency>
314
-
315
-        <!-- 公共方法和接口-->
316
-        <dependency>
317
-            <groupId>com.shinsoft</groupId>
318
-            <artifactId>tools</artifactId>
319
-            <version>1.0.1</version>
320
-            <scope>system</scope>
321
-            <systemPath>${project.basedir}/../lib/tools-1.0.1.jar</systemPath>
322
-        </dependency>
323
-
324
-        <dependency>
325
-            <groupId>com.shinsoft</groupId>
326
-            <artifactId>generator</artifactId>
327
-            <version>1.0.0</version>
328
-            <scope>system</scope>
329
-            <systemPath>${project.basedir}/../lib/generator-1.0.0.jar</systemPath>
330
-        </dependency>
331
-
332
-        <dependency>
333
-            <groupId>com.shinsoft</groupId>
334
-            <artifactId>framework-api</artifactId>
335
-            <version>1.0.1</version>
336
-            <scope>system</scope>
337
-            <systemPath>${project.basedir}/../lib/framework-api-1.0.1.jar</systemPath>
338
-        </dependency>
339
-
340
-        <dependency>
341
-            <groupId>com.shinsoft</groupId>
342
-            <artifactId>workflow-api</artifactId>
343
-            <version>1.0.1</version>
344
-            <scope>system</scope>
345
-            <systemPath>${project.basedir}/../lib/workflow-api-1.0.1.jar</systemPath>
346
-        </dependency>
347
-
348
-        <!-- 公共方法和接口-->
349
-    </dependencies>
350
-
351
-
352
-
353
-    <profiles>
354
-
355
-        <profile> <!-- 本地开发环境 -->
356
-            <id>localhost</id>
357
-            <properties>
358
-                <profiles.active>localhost</profiles.active>
359
-            </properties>
360
-        </profile>
361
-        <profile> <!-- 服务器开发环境 -->
362
-            <id>develop</id>
363
-            <properties>
364
-                <profiles.active>develop</profiles.active>
365
-            </properties>
366
-            <activation>
367
-                <activeByDefault>true</activeByDefault>
368
-            </activation>
369
-        </profile>
370
-        <profile> <!-- 测试环境 -->
371
-            <id>test</id>
372
-            <properties>
373
-                <profiles.active>test</profiles.active>
374
-            </properties>
375
-        </profile>
376
-        <profile> <!-- 生产环境 -->
377
-            <id>production</id>
378
-            <properties>
379
-                <profiles.active>production</profiles.active>
380
-            </properties>
381
-        </profile>
382
-
383
-        <profile> <!-- 个人 -->
384
-            <id>litai</id>
385
-            <properties>
386
-                <profiles.active>litai</profiles.active>
387
-            </properties>
388
-        </profile>
389
-
390
-    </profiles>
391
-
392
-
393
-    <build>
394
-
395
-        <finalName>${project.artifactId}</finalName>
396
-        <resources>
397
-            <resource>
398
-                <directory>src/main/resources</directory>
399
-                <!--                <excludes>-->
400
-                <!--                    <exclude>localhost/**</exclude>-->
401
-                <!--                    <exclude>develop/**</exclude>-->
402
-                <!--                    <exclude>production/**</exclude>-->
403
-                <!--                    <exclude>classes/**</exclude>-->
404
-                <!--                    <exclude>lib/**</exclude>-->
405
-                <!--                </excludes>-->
406
-            </resource>
407
-            <resource>
408
-                <directory>src/main/resources/${profiles.active}</directory>
409
-            </resource>
410
-            <resource>
411
-                <directory>src/main/resources</directory>
412
-                <includes>
413
-                    <include>**/*.yml</include>
414
-                    <include>**/*.properties</include>
415
-                    <include>**/*.xml</include>
416
-                </includes>
417
-                <filtering>false</filtering>
418
-            </resource>
419
-            <resource>
420
-                <directory>src/main/java</directory>
421
-                <targetPath>${project.build.directory}/classes/mapper</targetPath>
422
-                <includes>
423
-                    <include>**/*.xml</include>
424
-                </includes>
425
-                <filtering>false</filtering>
426
-            </resource>
427
-        </resources>
428
-
429
-        <plugins>
430
-            <plugin>
431
-                <groupId>org.apache.maven.plugins</groupId>
432
-                <artifactId>maven-jar-plugin</artifactId>
433
-                <configuration>
434
-                    <archive>
435
-                        <manifest>
436
-                            <addClasspath>true</addClasspath>
437
-                            <classpathPrefix>lib/</classpathPrefix>
438
-                            <mainClass>com.shinsoft.lim.LimApplication</mainClass>
439
-                        </manifest>
440
-                        <manifestEntries>
441
-                            <Class-Path>lib/tools-1.0.1.jar lib/generator-1.0.0.jar  lib/framework-api-1.0.1.jar lib/workflow-api-1.0.1.jar
442
-                            </Class-Path>
443
-                        </manifestEntries>
444
-                    </archive>
445
-                    <outputDirectory>
446
-                        ${project.build.directory}
447
-                    </outputDirectory>
448
-                </configuration>
449
-            </plugin>
450
-
451
-
452
-            <plugin>
453
-                <groupId>org.apache.maven.plugins</groupId>
454
-                <artifactId>maven-dependency-plugin</artifactId>
455
-                <executions>
456
-                    <execution>
457
-                        <id>copy</id>
458
-                        <phase>compile</phase>
459
-                        <goals>
460
-                            <goal>copy-dependencies</goal>
461
-                        </goals>
462
-                        <configuration>
463
-                            <outputDirectory>
464
-                                ${project.build.directory}/lib
465
-                            </outputDirectory>
466
-                        </configuration>
467
-                    </execution>
468
-                    <execution>
469
-                        <id>sys</id>
470
-                        <phase>compile</phase>
471
-                        <goals>
472
-                            <goal>copy-dependencies</goal>
473
-                        </goals>
474
-                        <configuration>
475
-                            <includeScope>system</includeScope>
476
-                        </configuration>
477
-                    </execution>
478
-                </executions>
479
-            </plugin>
480
-
481
-            <plugin>
482
-                <groupId>org.apache.maven.plugins</groupId>
483
-                <artifactId>maven-resources-plugin</artifactId>
484
-                <executions>
485
-                    <execution>
486
-                        <id>copy-resource</id>
487
-                        <phase>package</phase>
488
-                        <goals>
489
-                            <goal>copy-resources</goal>
490
-                        </goals>
491
-                        <configuration>
492
-                            <outputDirectory>
493
-                                ${project.build.directory}
494
-                            </outputDirectory>
495
-                            <resources>
496
-                                <resource>
497
-                                    <directory>${project.basedir}/src/main/resources/${profiles.active}</directory>
498
-                                    <includes>
499
-                                        <include>Dockerfile</include>
500
-                                        <include>bootstrap.properties</include>
501
-                                    </includes>
502
-                                </resource>
503
-                            </resources>
504
-                        </configuration>
505
-                    </execution>
506
-                </executions>
507
-            </plugin>
508
-
509
-
510
-        </plugins>
511
-
512
-    </build>
513
-
514
-</project>
515
-
516
-

+ 0
- 22
lim/src/main/java/com/shinsoft/lim/LimApplication.java Voir le fichier

@@ -1,22 +0,0 @@
1
-package com.shinsoft.lim;
2
-
3
-
4
-import org.mybatis.spring.annotation.MapperScan;
5
-import org.springframework.boot.SpringApplication;
6
-import org.springframework.boot.autoconfigure.SpringBootApplication;
7
-import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
8
-import org.springframework.cloud.openfeign.EnableFeignClients;
9
-import org.springframework.context.annotation.ComponentScan;
10
-
11
-@SpringBootApplication
12
-@EnableFeignClients(basePackages = {"com.shinsoft"})
13
-@EnableDiscoveryClient
14
-@ComponentScan(basePackages = {"com.shinsoft"})
15
-@MapperScan("com.shinsoft.**.mapper")
16
-public class LimApplication {
17
-
18
-    public static void main(String[] args) {
19
-        SpringApplication.run(LimApplication.class, args);
20
-    }
21
-
22
-}

+ 0
- 5
lim/src/main/resources/develop/Dockerfile Voir le fichier

@@ -1,5 +0,0 @@
1
-FROM alpine-java8:1.0.0
2
-ADD lib /lib
3
-ADD bootstrap.properties /bootstrap.properties
4
-ADD framework.jar /framework.jar
5
-CMD ["java","-jar","-Duser.timezone=GMT+08","/framework.jar","--spring.config.location=file:/bootstrap.properties"]

+ 0
- 24
lim/src/main/resources/develop/bootstrap.properties Voir le fichier

@@ -1,24 +0,0 @@
1
-nacosServer=192.168.31.191:8848
2
-nacosNamespace=sgiip
3
-nacosGroup=develop
4
-
5
-server.port=8011
6
-spring.application.name=framework
7
-
8
-spring.cloud.nacos.config.namespace=${nacosNamespace}
9
-spring.cloud.nacos.config.group=${nacosGroup}
10
-spring.cloud.nacos.config.server-addr=${nacosServer}
11
-spring.cloud.nacos.config.file-extension=yaml
12
-spring.cloud.nacos.config.ext-config[0].data-id=common.yaml
13
-spring.cloud.nacos.config.ext-config[0].group=${nacosGroup}
14
-spring.cloud.nacos.config.ext-config[0].refresh=true
15
-spring.cloud.nacos.config.ext-config[1].data-id=db-framework-oracle.yaml
16
-spring.cloud.nacos.config.ext-config[1].group=${nacosGroup}
17
-spring.cloud.nacos.config.ext-config[1].refresh=true
18
-
19
-spring.cloud.nacos.discovery.namespace=${nacosNamespace}
20
-spring.cloud.nacos.discovery.group=${nacosGroup}
21
-spring.cloud.nacos.discovery.server-addr=${nacosServer}
22
-spring.cloud.nacos.discovery.retry.enabled=true
23
-
24
-spring.cloud.inetutils.preferred-networks=192.168.31.

+ 0
- 76
lim/src/main/resources/develop/log4j2.xml Voir le fichier

@@ -1,76 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8"?>
2
-<Configuration status="DEBUG" monitorInterval="60">
3
-
4
-
5
-    <Properties>
6
-        <!--自定义一些常量,之后使用${变量名}引用-->
7
-        <Property name="logFilePath">logs</Property>
8
-    </Properties>
9
-
10
-
11
-    <!--定义所有的appender-->
12
-    <Appenders>
13
-        <!--输出控制台的配置-->
14
-        <Console name="Console" target="SYSTEM_OUT">
15
-            <!--日志信息的格式-->
16
-            <PatternLayout pattern="%d{HH:mm:ss:SSS} [%p] %c  %m%n"/>
17
-        </Console>
18
-
19
-        <!--输出文件的配置-->
20
-        <File name="log" fileName="${logFilePath}/log.log" append="false">
21
-            <PatternLayout pattern="%d{HH:mm:ss.SSS} %-5level %c{36} %L %c %M %msg%n"/>
22
-        </File>
23
-
24
-        <RollingFile name="RollingFileInfo" fileName="${logFilePath}/info.log"
25
-                     filePattern="${logFilePath}/$${date:yyyy-MM}/info-%d{yyyy-MM-dd}-%i.log">
26
-            <!--只输出level级别以上的信息(onMatch),其他级别的拒绝(onMismatch)-->
27
-            <ThresholdFilter level="info" onMatch="ACCEPT" onMismatch="DENY"/>
28
-            <PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss:SSS} [%p] %l %c %m%n"/>
29
-            <Policies>
30
-                <TimeBasedTriggeringPolicy/>
31
-                <SizeBasedTriggeringPolicy size="20MB"/>
32
-            </Policies>
33
-            <!--文件数量的设置-->
34
-            <DefaultRolloverStrategy max="50"/>
35
-        </RollingFile>
36
-
37
-        <RollingFile name="RollingFileWarn" fileName="${logFilePath}/warn.log"
38
-                     filePattern="${logFilePath}/$${date:yyyy-MM}/warn-%d{yyyy-MM-dd}-%i.log">
39
-            <ThresholdFilter level="warn" onMatch="ACCEPT" onMismatch="DENY"/>
40
-            <PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss:SSS} [%p] %l %c %m%n"/>
41
-            <Policies>
42
-                <TimeBasedTriggeringPolicy/>
43
-                <SizeBasedTriggeringPolicy size="20MB"/>
44
-            </Policies>
45
-            <!--文件数量的设置-->
46
-            <DefaultRolloverStrategy max="50"/>
47
-        </RollingFile>
48
-
49
-        <RollingFile name="RollingFileError" fileName="${logFilePath}/error.log"
50
-                     filePattern="${logFilePath}/$${date:yyyy-MM}/warn-%d{yyyy-MM-dd}-%i.log">
51
-            <ThresholdFilter level="error" onMatch="ACCEPT" onMismatch="DENY"/>
52
-            <PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss:SSS} [%p] %l %c %m%n"/>
53
-            <Policies>
54
-                <TimeBasedTriggeringPolicy/>
55
-                <SizeBasedTriggeringPolicy size="20MB"/>
56
-            </Policies>
57
-            <!--文件数量的设置-->
58
-            <DefaultRolloverStrategy max="50"/>
59
-        </RollingFile>
60
-    </Appenders>
61
-
62
-    <Loggers>
63
-        <logger name="org.springframework" level="INFO"></logger>
64
-        <logger name="com.netflix" level="INFO"></logger>
65
-        <logger name="org.apache" level="INFO"></logger>
66
-        <logger name="org.mybatis" level="INFO"></logger>
67
-        <logger name="com.alibaba.nacos" level="WARN"></logger>
68
-        <Root level="DEBUG">
69
-            <AppenderRef ref="Console"/>
70
-            <AppenderRef ref="RollingFileInfo"/>
71
-            <AppenderRef ref="RollingFileWarn"/>
72
-            <AppenderRef ref="RollingFileError"/>
73
-        </Root>
74
-
75
-    </Loggers>
76
-</Configuration>

+ 0
- 5
lim/src/main/resources/litai/Dockerfile Voir le fichier

@@ -1,5 +0,0 @@
1
-FROM alpine-java8:1.0.0
2
-ADD lib /lib
3
-ADD bootstrap.properties /bootstrap.properties
4
-ADD framework.jar /framework.jar
5
-CMD ["java","-jar","-Duser.timezone=GMT+08","/framework.jar","--spring.config.location=file:/bootstrap.properties"]

+ 0
- 28
lim/src/main/resources/litai/bootstrap.properties Voir le fichier

@@ -1,28 +0,0 @@
1
-server.port=8050
2
-spring.application.name=lim
3
-
4
-nacosServer=47.115.211.214:8848
5
-nacosNamespace=litai
6
-nacosGroup=GMIMP
7
-
8
-spring.cloud.nacos.discovery.ip=172.16.108.158
9
-
10
-spring.cloud.nacos.config.namespace=${nacosNamespace}
11
-spring.cloud.nacos.config.group=${nacosGroup}
12
-spring.cloud.nacos.config.server-addr=${nacosServer}
13
-spring.cloud.nacos.config.file-extension=yaml
14
-spring.cloud.nacos.config.ext-config[0].data-id=common.yaml
15
-spring.cloud.nacos.config.ext-config[0].group=${nacosGroup}
16
-spring.cloud.nacos.config.ext-config[0].refresh=true
17
-spring.cloud.nacos.config.ext-config[1].data-id=db-gmimp-dameng.yaml
18
-spring.cloud.nacos.config.ext-config[1].group=${nacosGroup}
19
-spring.cloud.nacos.config.ext-config[1].refresh=true
20
-spring.cloud.nacos.config.ext-config[2].data-id=updownload.yaml
21
-spring.cloud.nacos.config.ext-config[2].group=${nacosGroup}
22
-spring.cloud.nacos.config.ext-config[2].refresh=true
23
-
24
-spring.cloud.nacos.discovery.namespace=${nacosNamespace}
25
-spring.cloud.nacos.discovery.group=${nacosGroup}
26
-spring.cloud.nacos.discovery.server-addr=${nacosServer}
27
-spring.cloud.nacos.discovery.retry.enabled=true
28
-

+ 0
- 76
lim/src/main/resources/litai/log4j2.xml Voir le fichier

@@ -1,76 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8"?>
2
-<Configuration status="DEBUG" monitorInterval="60">
3
-
4
-
5
-    <Properties>
6
-        <!--自定义一些常量,之后使用${变量名}引用-->
7
-        <Property name="logFilePath">logs</Property>
8
-    </Properties>
9
-
10
-
11
-    <!--定义所有的appender-->
12
-    <Appenders>
13
-        <!--输出控制台的配置-->
14
-        <Console name="Console" target="SYSTEM_OUT">
15
-            <!--日志信息的格式-->
16
-            <PatternLayout pattern="%d{HH:mm:ss:SSS} [%p] %c  %m%n"/>
17
-        </Console>
18
-
19
-        <!--输出文件的配置-->
20
-        <File name="log" fileName="${logFilePath}/log.log" append="false">
21
-            <PatternLayout pattern="%d{HH:mm:ss.SSS} %-5level %c{36} %L %c %M %msg%n"/>
22
-        </File>
23
-
24
-        <RollingFile name="RollingFileInfo" fileName="${logFilePath}/info.log"
25
-                     filePattern="${logFilePath}/$${date:yyyy-MM}/info-%d{yyyy-MM-dd}-%i.log">
26
-            <!--只输出level级别以上的信息(onMatch),其他级别的拒绝(onMismatch)-->
27
-            <ThresholdFilter level="info" onMatch="ACCEPT" onMismatch="DENY"/>
28
-            <PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss:SSS} [%p] %l %c %m%n"/>
29
-            <Policies>
30
-                <TimeBasedTriggeringPolicy/>
31
-                <SizeBasedTriggeringPolicy size="20MB"/>
32
-            </Policies>
33
-            <!--文件数量的设置-->
34
-            <DefaultRolloverStrategy max="50"/>
35
-        </RollingFile>
36
-
37
-        <RollingFile name="RollingFileWarn" fileName="${logFilePath}/warn.log"
38
-                     filePattern="${logFilePath}/$${date:yyyy-MM}/warn-%d{yyyy-MM-dd}-%i.log">
39
-            <ThresholdFilter level="warn" onMatch="ACCEPT" onMismatch="DENY"/>
40
-            <PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss:SSS} [%p] %l %c %m%n"/>
41
-            <Policies>
42
-                <TimeBasedTriggeringPolicy/>
43
-                <SizeBasedTriggeringPolicy size="20MB"/>
44
-            </Policies>
45
-            <!--文件数量的设置-->
46
-            <DefaultRolloverStrategy max="50"/>
47
-        </RollingFile>
48
-
49
-        <RollingFile name="RollingFileError" fileName="${logFilePath}/error.log"
50
-                     filePattern="${logFilePath}/$${date:yyyy-MM}/warn-%d{yyyy-MM-dd}-%i.log">
51
-            <ThresholdFilter level="error" onMatch="ACCEPT" onMismatch="DENY"/>
52
-            <PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss:SSS} [%p] %l %c %m%n"/>
53
-            <Policies>
54
-                <TimeBasedTriggeringPolicy/>
55
-                <SizeBasedTriggeringPolicy size="20MB"/>
56
-            </Policies>
57
-            <!--文件数量的设置-->
58
-            <DefaultRolloverStrategy max="50"/>
59
-        </RollingFile>
60
-    </Appenders>
61
-
62
-    <Loggers>
63
-        <logger name="org.springframework" level="INFO"></logger>
64
-        <logger name="com.netflix" level="INFO"></logger>
65
-        <logger name="org.apache" level="INFO"></logger>
66
-        <logger name="org.mybatis" level="INFO"></logger>
67
-        <logger name="com.alibaba.nacos" level="WARN"></logger>
68
-        <Root level="DEBUG">
69
-            <AppenderRef ref="Console"/>
70
-            <AppenderRef ref="RollingFileInfo"/>
71
-            <AppenderRef ref="RollingFileWarn"/>
72
-            <AppenderRef ref="RollingFileError"/>
73
-        </Root>
74
-
75
-    </Loggers>
76
-</Configuration>

+ 0
- 5
lim/src/main/resources/localhost/Dockerfile Voir le fichier

@@ -1,5 +0,0 @@
1
-FROM alpine-java8:1.0.0
2
-ADD lib /lib
3
-ADD bootstrap.properties /bootstrap.properties
4
-ADD framework.jar /framework.jar
5
-CMD ["java","-jar","-Duser.timezone=GMT+08","/framework.jar","--spring.config.location=file:/bootstrap.properties"]

+ 0
- 24
lim/src/main/resources/localhost/bootstrap.properties Voir le fichier

@@ -1,24 +0,0 @@
1
-nacosServer=192.168.31.191:8848
2
-nacosNamespace=sgiip
3
-nacosGroup=localhost
4
-
5
-server.port=8020
6
-spring.application.name=exp
7
-
8
-spring.cloud.nacos.config.namespace=${nacosNamespace}
9
-spring.cloud.nacos.config.group=${nacosGroup}
10
-spring.cloud.nacos.config.server-addr=${nacosServer}
11
-spring.cloud.nacos.config.file-extension=yaml
12
-spring.cloud.nacos.config.ext-config[0].data-id=common.yaml
13
-spring.cloud.nacos.config.ext-config[0].group=${nacosGroup}
14
-spring.cloud.nacos.config.ext-config[0].refresh=true
15
-spring.cloud.nacos.config.ext-config[1].data-id=db-framework-oracle.yaml
16
-spring.cloud.nacos.config.ext-config[1].group=${nacosGroup}
17
-spring.cloud.nacos.config.ext-config[1].refresh=true
18
-
19
-spring.cloud.nacos.discovery.namespace=${nacosNamespace}
20
-spring.cloud.nacos.discovery.group=${nacosGroup}
21
-spring.cloud.nacos.discovery.server-addr=${nacosServer}
22
-spring.cloud.nacos.discovery.retry.enabled=true
23
-
24
-spring.cloud.inetutils.preferred-networks=192.168.31.

+ 0
- 76
lim/src/main/resources/localhost/log4j2.xml Voir le fichier

@@ -1,76 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8"?>
2
-<Configuration status="DEBUG" monitorInterval="60">
3
-
4
-
5
-    <Properties>
6
-        <!--自定义一些常量,之后使用${变量名}引用-->
7
-        <Property name="logFilePath">logs</Property>
8
-    </Properties>
9
-
10
-
11
-    <!--定义所有的appender-->
12
-    <Appenders>
13
-        <!--输出控制台的配置-->
14
-        <Console name="Console" target="SYSTEM_OUT">
15
-            <!--日志信息的格式-->
16
-            <PatternLayout pattern="%d{HH:mm:ss:SSS} [%p] %c  %m%n"/>
17
-        </Console>
18
-
19
-        <!--输出文件的配置-->
20
-        <File name="log" fileName="${logFilePath}/log.log" append="false">
21
-            <PatternLayout pattern="%d{HH:mm:ss.SSS} %-5level %c{36} %L %c %M %msg%n"/>
22
-        </File>
23
-
24
-        <RollingFile name="RollingFileInfo" fileName="${logFilePath}/info.log"
25
-                     filePattern="${logFilePath}/$${date:yyyy-MM}/info-%d{yyyy-MM-dd}-%i.log">
26
-            <!--只输出level级别以上的信息(onMatch),其他级别的拒绝(onMismatch)-->
27
-            <ThresholdFilter level="info" onMatch="ACCEPT" onMismatch="DENY"/>
28
-            <PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss:SSS} [%p] %l %c %m%n"/>
29
-            <Policies>
30
-                <TimeBasedTriggeringPolicy/>
31
-                <SizeBasedTriggeringPolicy size="20MB"/>
32
-            </Policies>
33
-            <!--文件数量的设置-->
34
-            <DefaultRolloverStrategy max="50"/>
35
-        </RollingFile>
36
-
37
-        <RollingFile name="RollingFileWarn" fileName="${logFilePath}/warn.log"
38
-                     filePattern="${logFilePath}/$${date:yyyy-MM}/warn-%d{yyyy-MM-dd}-%i.log">
39
-            <ThresholdFilter level="warn" onMatch="ACCEPT" onMismatch="DENY"/>
40
-            <PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss:SSS} [%p] %l %c %m%n"/>
41
-            <Policies>
42
-                <TimeBasedTriggeringPolicy/>
43
-                <SizeBasedTriggeringPolicy size="20MB"/>
44
-            </Policies>
45
-            <!--文件数量的设置-->
46
-            <DefaultRolloverStrategy max="50"/>
47
-        </RollingFile>
48
-
49
-        <RollingFile name="RollingFileError" fileName="${logFilePath}/error.log"
50
-                     filePattern="${logFilePath}/$${date:yyyy-MM}/warn-%d{yyyy-MM-dd}-%i.log">
51
-            <ThresholdFilter level="error" onMatch="ACCEPT" onMismatch="DENY"/>
52
-            <PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss:SSS} [%p] %l %c %m%n"/>
53
-            <Policies>
54
-                <TimeBasedTriggeringPolicy/>
55
-                <SizeBasedTriggeringPolicy size="20MB"/>
56
-            </Policies>
57
-            <!--文件数量的设置-->
58
-            <DefaultRolloverStrategy max="50"/>
59
-        </RollingFile>
60
-    </Appenders>
61
-
62
-    <Loggers>
63
-        <logger name="org.springframework" level="INFO"></logger>
64
-        <logger name="com.netflix" level="INFO"></logger>
65
-        <logger name="org.apache" level="INFO"></logger>
66
-        <logger name="org.mybatis" level="INFO"></logger>
67
-        <logger name="com.alibaba.nacos" level="WARN"></logger>
68
-        <Root level="DEBUG">
69
-            <AppenderRef ref="Console"/>
70
-            <AppenderRef ref="RollingFileInfo"/>
71
-            <AppenderRef ref="RollingFileWarn"/>
72
-            <AppenderRef ref="RollingFileError"/>
73
-        </Root>
74
-
75
-    </Loggers>
76
-</Configuration>

+ 0
- 5
lim/src/main/resources/production/Dockerfile Voir le fichier

@@ -1,5 +0,0 @@
1
-FROM alpine-java8:1.0.0
2
-ADD lib /lib
3
-ADD bootstrap.properties /bootstrap.properties
4
-ADD framework.jar /framework.jar
5
-CMD ["java","-jar","-Duser.timezone=GMT+08","/framework.jar","--spring.config.location=file:/bootstrap.properties"]

+ 0
- 21
lim/src/main/resources/production/bootstrap.properties Voir le fichier

@@ -1,21 +0,0 @@
1
-server.port=8011
2
-spring.application.name=framework
3
-spring.cloud.nacos.config.namespace=production
4
-spring.cloud.nacos.config.server-addr=10.209.100.121:8848
5
-spring.cloud.nacos.config.file-extension=yaml
6
-
7
-spring.cloud.nacos.config.ext-config[0].data-id=common.yaml
8
-spring.cloud.nacos.config.ext-config[0].group=DEFAULT_GROUP
9
-spring.cloud.nacos.config.ext-config[0].refresh=true
10
-spring.cloud.nacos.config.ext-config[1].data-id=db-framework-oracle.yaml
11
-spring.cloud.nacos.config.ext-config[1].group=DEFAULT_GROUP
12
-spring.cloud.nacos.config.ext-config[1].refresh=true
13
-#spring.cloud.nacos.config.ext-config[1].data-id=db-framework-mysql.yaml
14
-#spring.cloud.nacos.config.ext-config[1].group=DEFAULT_GROUP
15
-#spring.cloud.nacos.config.ext-config[1].refresh=true
16
-spring.cloud.nacos.discovery.ip=10.209.100.121
17
-spring.cloud.nacos.discovery.namespace=production
18
-spring.cloud.nacos.discovery.server-addr=10.209.100.121:8848
19
-
20
-uploadPath: /upload
21
-downloadPath: /download

+ 0
- 76
lim/src/main/resources/production/log4j2.xml Voir le fichier

@@ -1,76 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8"?>
2
-<Configuration status="DEBUG" monitorInterval="60">
3
-
4
-
5
-    <Properties>
6
-        <!--自定义一些常量,之后使用${变量名}引用-->
7
-        <Property name="logFilePath">logs</Property>
8
-    </Properties>
9
-
10
-
11
-    <!--定义所有的appender-->
12
-    <Appenders>
13
-        <!--输出控制台的配置-->
14
-        <Console name="Console" target="SYSTEM_OUT">
15
-            <!--日志信息的格式-->
16
-            <PatternLayout pattern="%d{HH:mm:ss:SSS} [%p] %c  %m%n"/>
17
-        </Console>
18
-
19
-        <!--输出文件的配置-->
20
-        <File name="log" fileName="${logFilePath}/log.log" append="false">
21
-            <PatternLayout pattern="%d{HH:mm:ss.SSS} %-5level %c{36} %L %c %M %msg%n"/>
22
-        </File>
23
-
24
-        <RollingFile name="RollingFileInfo" fileName="${logFilePath}/info.log"
25
-                     filePattern="${logFilePath}/$${date:yyyy-MM}/info-%d{yyyy-MM-dd}-%i.log">
26
-            <!--只输出level级别以上的信息(onMatch),其他级别的拒绝(onMismatch)-->
27
-            <ThresholdFilter level="info" onMatch="ACCEPT" onMismatch="DENY"/>
28
-            <PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss:SSS} [%p] %l %c %m%n"/>
29
-            <Policies>
30
-                <TimeBasedTriggeringPolicy/>
31
-                <SizeBasedTriggeringPolicy size="20MB"/>
32
-            </Policies>
33
-            <!--文件数量的设置-->
34
-            <DefaultRolloverStrategy max="50"/>
35
-        </RollingFile>
36
-
37
-        <RollingFile name="RollingFileWarn" fileName="${logFilePath}/warn.log"
38
-                     filePattern="${logFilePath}/$${date:yyyy-MM}/warn-%d{yyyy-MM-dd}-%i.log">
39
-            <ThresholdFilter level="warn" onMatch="ACCEPT" onMismatch="DENY"/>
40
-            <PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss:SSS} [%p] %l %c %m%n"/>
41
-            <Policies>
42
-                <TimeBasedTriggeringPolicy/>
43
-                <SizeBasedTriggeringPolicy size="20MB"/>
44
-            </Policies>
45
-            <!--文件数量的设置-->
46
-            <DefaultRolloverStrategy max="50"/>
47
-        </RollingFile>
48
-
49
-        <RollingFile name="RollingFileError" fileName="${logFilePath}/error.log"
50
-                     filePattern="${logFilePath}/$${date:yyyy-MM}/warn-%d{yyyy-MM-dd}-%i.log">
51
-            <ThresholdFilter level="error" onMatch="ACCEPT" onMismatch="DENY"/>
52
-            <PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss:SSS} [%p] %l %c %m%n"/>
53
-            <Policies>
54
-                <TimeBasedTriggeringPolicy/>
55
-                <SizeBasedTriggeringPolicy size="20MB"/>
56
-            </Policies>
57
-            <!--文件数量的设置-->
58
-            <DefaultRolloverStrategy max="50"/>
59
-        </RollingFile>
60
-    </Appenders>
61
-
62
-    <Loggers>
63
-        <logger name="org.springframework" level="INFO"></logger>
64
-        <logger name="com.netflix" level="INFO"></logger>
65
-        <logger name="org.apache" level="INFO"></logger>
66
-        <logger name="org.mybatis" level="INFO"></logger>
67
-        <logger name="com.alibaba.nacos" level="WARN"></logger>
68
-        <Root level="DEBUG">
69
-            <AppenderRef ref="Console"/>
70
-            <AppenderRef ref="RollingFileInfo"/>
71
-            <AppenderRef ref="RollingFileWarn"/>
72
-            <AppenderRef ref="RollingFileError"/>
73
-        </Root>
74
-
75
-    </Loggers>
76
-</Configuration>

+ 0
- 125
lim/src/main/resources/templates/controller.java.ftl Voir le fichier

@@ -1,125 +0,0 @@
1
-package ${package.Controller};
2
-
3
-import org.springframework.web.bind.annotation.RequestMapping;
4
-<#if restControllerStyle>
5
-import org.springframework.web.bind.annotation.RestController;
6
-<#else>
7
-import org.springframework.stereotype.Controller;
8
-</#if>
9
-<#if superControllerClassPackage??>
10
-import ${superControllerClassPackage};
11
-</#if>
12
-
13
-
14
-import org.springframework.beans.factory.annotation.Autowired;
15
-import org.springframework.web.bind.annotation.RequestMapping;
16
-import org.springframework.web.bind.annotation.RestController;
17
-import org.springframework.web.bind.annotation.RequestMethod;
18
-import javax.servlet.http.HttpServletRequest;
19
-
20
-import com.shinsoft.tools.JSONTools;
21
-import com.shinsoft.tools.ExceptionTools;
22
-import com.shinsoft.tools.model.common.ResultJSON;
23
-import com.shinsoft.tools.model.common.ResponseCodeMsg;
24
-
25
-import ${package.Service}.${table.serviceName};
26
-
27
-/**
28
- * <p>
29
- * ${table.comment!} 前端控制器
30
- * </p>
31
- *
32
- * @author ${author}
33
- * @since ${date}
34
- */
35
-<#if restControllerStyle>
36
-@RestController
37
-<#else>
38
-@Controller
39
-</#if>
40
-//@RequestMapping("<#if package.ModuleName?? && package.ModuleName != "">/${package.ModuleName}</#if>/<#if controllerMappingHyphenStyle>${controllerMappingHyphen}<#else>${table.entityPath}</#if>")
41
-@RequestMapping("/${entity}")
42
-<#if kotlin>
43
-class ${table.controllerName}<#if superControllerClass??> : ${superControllerClass}()</#if>
44
-<#else>
45
-<#if superControllerClass??>
46
-public class ${table.controllerName} extends ${superControllerClass} {
47
-<#else>
48
-public class ${table.controllerName} {
49
-</#if>
50
-
51
-
52
-
53
-       @Autowired
54
-       private ${table.serviceName} ${table.entityPath}Service;
55
-
56
-       ResultJSON resultJSON;
57
-
58
-
59
-       @RequestMapping(value = "/query")
60
-       public ResultJSON query(int page, int rows, String params,  HttpServletRequest request) {
61
-           try {
62
-               String userId = (String) request.getHeader("userId");
63
-               resultJSON = ${table.entityPath}Service.query(page, rows, params);
64
-           } catch (Exception ex) {
65
-               ex.printStackTrace();
66
-               resultJSON = JSONTools.toResultJSON(ResponseCodeMsg.CODE_EX, ExceptionTools.getExceptionAllinformation(ex));
67
-           } finally {
68
-               return resultJSON;
69
-           }
70
-       }
71
-
72
-        @RequestMapping(value = "/queryByPK")
73
-        public ResultJSON queryByPK(  String id,  HttpServletRequest request) {
74
-            try {
75
-                String userId = (String) request.getHeader("userId");
76
-                resultJSON = ${table.entityPath}Service.queryByPK(id);
77
-            } catch (Exception ex) {
78
-                 ex.printStackTrace();
79
-                 resultJSON = JSONTools.toResultJSON(ResponseCodeMsg.CODE_EX, ExceptionTools.getExceptionAllinformation(ex));
80
-            } finally {
81
-                return resultJSON;
82
-            }
83
-        }
84
-
85
-       @RequestMapping(value = "/save", method = RequestMethod.POST)
86
-       public ResultJSON save(String json,  HttpServletRequest request) {
87
-           try {
88
-               String userId = (String) request.getHeader("userId");
89
-               resultJSON = ${table.entityPath}Service.save(userId, json);
90
-           } catch (Exception ex) {
91
-               resultJSON = JSONTools.toResultJSON(ResponseCodeMsg.CODE_EX, ExceptionTools.getExceptionAllinformation(ex));
92
-               ex.printStackTrace();
93
-           } finally {
94
-               return resultJSON;
95
-           }
96
-       }
97
-
98
-       @RequestMapping(value = "/remove", method = RequestMethod.POST)
99
-       public ResultJSON remove(String id,   HttpServletRequest request) {
100
-           try {
101
-               String userId = (String) request.getHeader("userId");
102
-               resultJSON = ${table.entityPath}Service.remove(userId, id);
103
-           } catch (Exception ex) {
104
-               ex.printStackTrace();
105
-               resultJSON = JSONTools.toResultJSON(ResponseCodeMsg.CODE_EX, ExceptionTools.getExceptionAllinformation(ex));
106
-           } finally {
107
-               return resultJSON;
108
-           }
109
-       }
110
-
111
-        @RequestMapping(value = "/removeBatch", method = RequestMethod.POST)
112
-        public ResultJSON removeBatch(String ids, HttpServletRequest request) {
113
-            try {
114
-                String userId = (String) request.getHeader("userId");
115
-                resultJSON = ${table.entityPath}Service.removeBatch(userId, ids);
116
-            } catch (Exception ex) {
117
-                ex.printStackTrace();
118
-                resultJSON = JSONTools.toResultJSON(ResponseCodeMsg.CODE_EX, ExceptionTools.getExceptionAllinformation(ex));
119
-            } finally {
120
-                return resultJSON;
121
-            }
122
-        }
123
-
124
- }
125
-</#if>

+ 0
- 25
lim/src/main/resources/templates/createTable_dameng.sql.ftl Voir le fichier

@@ -1,26 +0,0 @@
1
-create table "${schema}"."${tableName}"
2
-(
3
-<#list fields as field>
4
-    <#if field.fieldType =="VARCHAR" || field.fieldType =="CHAR">
5
-        "${field.fieldName}" ${field.fieldType}(${field.dataLength?c}) <#if field.nullFlag  =="1">NOT NULL</#if>  ,
6
-    <#elseif field.fieldType =="NUMBER">
7
-        "${field.fieldName}" ${field.fieldType}(${field.dataLength?c},${field.dataPrecision?c})<#if field.nullFlag  =="1">NOT NULL</#if> ,
8
-    <#elseif field.fieldType =="INT">
9
-        "${field.fieldName}" ${field.fieldType}<#if field.nullFlag  =="1">NOT NULL</#if> ,
10
-    <#elseif field.fieldType =="FLOAT">
11
-        "${field.fieldName}" ${field.fieldType}<#if field.nullFlag  =="1">NOT NULL</#if> ,
12
-    <#elseif field.fieldType =="DOUBLE">
13
-        "${field.fieldName}" ${field.fieldType}<#if field.nullFlag  =="1">NOT NULL</#if> ,
14
-    <#elseif field.fieldType =="DATETIME">
15
-        "${field.fieldName}" ${field.fieldType}<#if field.nullFlag  =="1">NOT NULL</#if> ,
16
-    <#elseif field.fieldType =="TIMESTAMP">
17
-        "${field.fieldName}" ${field.fieldType}<#if field.nullFlag  =="1">NOT NULL</#if> ,
18
-    </#if>
19
-</#list>
20
-UNIQUE("ID"),
21
-NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "${tablespace}", CLUSTERBTR) ;
22
-
23
-<#list fields as field>
24
-    COMMENT ON COLUMN "${schema}"."${tableName}"."${field.fieldName}"  is '${field.fieldComment}';
25
-</#list>

+ 0
- 19
lim/src/main/resources/templates/createTable_mysql.sql.ftl Voir le fichier

@@ -1,19 +0,0 @@
1
-create table ${tableName}
2
-(
3
-<#list fields as field>
4
-    <#if field.fieldType =="varchar">
5
-        ${field.fieldName}      ${field.fieldType}(${field.dataLength?c}) <#if field.nullFlag  =="1">NOT NULL<#else>DEFAULT NULL</#if> COMMENT '${field.fieldComment}',
6
-    <#elseif field.fieldType =="int">
7
-        ${field.fieldName}      ${field.fieldType}(${field.dataLength?c}) <#if field.nullFlag  =="1">NOT NULL<#else>DEFAULT NULL</#if> COMMENT '${field.fieldComment}',
8
-    <#elseif field.fieldType =="float">
9
-        ${field.fieldName}      ${field.fieldType}(${field.dataLength?c},${field.dataPrecision?c}) <#if field.nullFlag  =="1">NOT NULL<#else>DEFAULT NULL</#if> COMMENT '${field.fieldComment}',
10
-    <#elseif field.fieldType =="double">
11
-        ${field.fieldName}      ${field.fieldType}(${field.dataLength?c},${field.dataPrecision?c}) <#if field.nullFlag  =="1">NOT NULL<#else>DEFAULT NULL</#if> COMMENT '${field.fieldComment}',
12
-    <#elseif field.fieldType =="date">
13
-        ${field.fieldName}      ${field.fieldType} <#if field.nullFlag  =="1">NOT NULL<#else>DEFAULT NULL</#if> COMMENT '${field.fieldComment}',
14
-    <#elseif field.fieldType =="datetime">
15
-        ${field.fieldName}      ${field.fieldType} <#if field.nullFlag  =="1">NOT NULL<#else>DEFAULT NULL</#if> COMMENT '${field.fieldComment}',
16
-    </#if>
17
-</#list>
18
-PRIMARY KEY (ID)
19
-)  ROW_FORMAT = DYNAMIC CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;

+ 0
- 45
lim/src/main/resources/templates/createTable_oracle.sql.ftl Voir le fichier

@@ -1,48 +0,0 @@
1
-create table ${tableName}
2
-(
3
-<#list fields as field>
4
-    <#if field.fieldType =="VARCHAR2">
5
-        ${field.fieldName}      ${field.fieldType}(${field.dataLength?c}) <#if field.nullFlag  =="1">not null</#if> <#sep>,</#sep>
6
-    <#elseif field.fieldType =="NUMBER">
7
-        ${field.fieldName}      ${field.fieldType}(${field.dataLength?c},${field.dataPrecision?c})<#sep>,</#sep>
8
-    <#elseif field.fieldType =="DATE">
9
-        ${field.fieldName}      ${field.fieldType}<#sep>,</#sep>
10
-    <#elseif field.fieldType =="TIMESTAMP">
11
-        ${field.fieldName}      ${field.fieldType}(6)<#sep>,</#sep>
12
-    </#if>
13
-</#list>
14
-)
15
-tablespace ${tablespace}
16
-pctfree 10
17
-initrans 1
18
-maxtrans 255
19
-storage
20
-(
21
-initial 64
22
-next 1
23
-minextents 1
24
-maxextents unlimited
25
-);
26
-
27
-<#list fields as field>
28
-    comment on column ${tableName}.${field.fieldName}
29
-    is '${field.fieldComment}';
30
-</#list>
31
-
32
-alter table ${tableName}
33
-add constraint ${tableName}_PK primary key (ID)
34
-using index
35
-tablespace ${tablespace}
36
-pctfree 10
37
-initrans 2
38
-maxtrans 255
39
-storage
40
-(
41
-initial 64K
42
-next 1M
43
-minextents 1
44
-maxextents unlimited
45
-);

+ 0
- 167
lim/src/main/resources/templates/entity.java.ftl Voir le fichier

@@ -1,167 +0,0 @@
1
-package ${package.Entity};
2
-
3
-<#list table.importPackages as pkg>
4
-import ${pkg};
5
-</#list>
6
-<#if springdoc>
7
-import io.swagger.v3.oas.annotations.media.Schema;
8
-<#elseif swagger>
9
-import io.swagger.annotations.ApiModel;
10
-import io.swagger.annotations.ApiModelProperty;
11
-</#if>
12
-<#if entityLombokModel>
13
-import lombok.Getter;
14
-import lombok.Setter;
15
-    <#if chainModel>
16
-import lombok.experimental.Accessors;
17
-    </#if>
18
-</#if>
19
-import com.alibaba.fastjson.annotation.JSONField;
20
-
21
-/**
22
- * <p>
23
- * ${table.comment!}
24
- * </p>
25
- *
26
- * @author ${author}
27
- * @since ${date}
28
- */
29
-<#if entityLombokModel>
30
-@Getter
31
-@Setter
32
-    <#if chainModel>
33
-@Accessors(chain = true)
34
-    </#if>
35
-</#if>
36
-<#if table.convert>
37
-@TableName("${schemaName}${table.name}")
38
-</#if>
39
-<#if springdoc>
40
-@Schema(name = "${entity}", description = "${table.comment!}")
41
-<#elseif swagger>
42
-@ApiModel(value = "${entity}对象", description = "${table.comment!}")
43
-</#if>
44
-<#if superEntityClass??>
45
-public class ${entity} extends ${superEntityClass}<#if activeRecord><${entity}></#if> {
46
-<#elseif activeRecord>
47
-public class ${entity} extends Model<${entity}> {
48
-<#elseif entitySerialVersionUID>
49
-public class ${entity} implements Serializable {
50
-<#else>
51
-public class ${entity} {
52
-</#if>
53
-<#if entitySerialVersionUID>
54
-
55
-    private static final long serialVersionUID = 1L;
56
-</#if>
57
-<#-- ----------  BEGIN 字段循环遍历  ---------->
58
-<#list table.fields as field>
59
-    <#if field.keyFlag>
60
-        <#assign keyPropertyName="${field.propertyName}"/>
61
-    </#if>
62
-
63
-    <#if field.comment!?length gt 0>
64
-        <#if springdoc>
65
-    @Schema(description = "${field.comment}")
66
-        <#elseif swagger>
67
-    @ApiModelProperty("${field.comment}")
68
-        <#else>
69
-    /**
70
-     * ${field.comment}
71
-     */
72
-        </#if>
73
-    </#if>
74
-    <#if field.keyFlag>
75
-        <#-- 主键 -->
76
-        <#if field.keyIdentityFlag>
77
-    @TableId(value = "${field.annotationColumnName}", type = IdType.AUTO)
78
-        <#elseif idType??>
79
-    @TableId(value = "${field.annotationColumnName}", type = IdType.${idType})
80
-        <#elseif field.convert>
81
-    @TableId("${field.annotationColumnName}")
82
-        </#if>
83
-        <#-- 普通字段 -->
84
-    <#elseif field.fill??>
85
-    <#-- -----   存在字段填充设置   ----->
86
-        <#if field.convert>
87
-    @TableField(value = "${field.annotationColumnName}", fill = FieldFill.${field.fill})
88
-        <#else>
89
-    @TableField(fill = FieldFill.${field.fill})
90
-        </#if>
91
-    <#elseif field.convert>
92
-    @TableField("${field.annotationColumnName}")
93
-    </#if>
94
-    <#-- 乐观锁注解 -->
95
-    <#if field.versionField>
96
-    @Version
97
-    </#if>
98
-    <#-- 逻辑删除注解 -->
99
-    <#if field.logicDeleteField>
100
-    @TableLogic
101
-    </#if>
102
-    <#if field.name?contains("_TIME")||field.name?contains("_time")>
103
-    @JSONField(format="yyyy-MM-dd HH:mm:ss")
104
-    </#if>
105
-    <#if field.name?contains("_DATE")||field.name?contains("_date")>
106
-    @JSONField(format="yyyy-MM-dd")
107
-    </#if>
108
-    private ${field.propertyType} ${field.propertyName};
109
-</#list>
110
-<#------------  END 字段循环遍历  ---------->
111
-<#if !entityLombokModel>
112
-    <#list table.fields as field>
113
-        <#if field.propertyType == "boolean">
114
-            <#assign getprefix="is"/>
115
-        <#else>
116
-            <#assign getprefix="get"/>
117
-        </#if>
118
-
119
-    public ${field.propertyType} ${getprefix}${field.capitalName}() {
120
-        return ${field.propertyName};
121
-    }
122
-
123
-    <#if chainModel>
124
-    public ${entity} set${field.capitalName}(${field.propertyType} ${field.propertyName}) {
125
-    <#else>
126
-    public void set${field.capitalName}(${field.propertyType} ${field.propertyName}) {
127
-    </#if>
128
-        this.${field.propertyName} = ${field.propertyName};
129
-        <#if chainModel>
130
-        return this;
131
-        </#if>
132
-    }
133
-    </#list>
134
-</#if>
135
-<#if entityColumnConstant>
136
-    <#list table.fields as field>
137
-
138
-    public static final String ${field.name?upper_case} = "${field.name}";
139
-    </#list>
140
-</#if>
141
-<#if activeRecord>
142
-
143
-    @Override
144
-    public Serializable pkVal() {
145
-    <#if keyPropertyName??>
146
-        return this.${keyPropertyName};
147
-    <#else>
148
-        return null;
149
-    </#if>
150
-    }
151
-</#if>
152
-<#if !entityLombokModel>
153
-
154
-    @Override
155
-    public String toString() {
156
-        return "${entity}{" +
157
-    <#list table.fields as field>
158
-        <#if field_index==0>
159
-            "${field.propertyName} = " + ${field.propertyName} +
160
-        <#else>
161
-            ", ${field.propertyName} = " + ${field.propertyName} +
162
-        </#if>
163
-    </#list>
164
-        "}";
165
-    }
166
-</#if>
167
-}

+ 0
- 1
lim/src/main/resources/templates/h5.vue.ftl Voir le fichier

@@ -1 +0,0 @@
1
-H5:::

+ 0
- 30
lim/src/main/resources/templates/mapper.java.ftl Voir le fichier

@@ -1,30 +0,0 @@
1
-package ${package.Mapper};
2
-
3
-import ${package.Entity}.${entity};
4
-import ${superMapperClassPackage};
5
-import org.apache.ibatis.annotations.Select;
6
-<#if mapperAnnotationClass??>
7
-import ${mapperAnnotationClass.name};
8
-</#if>
9
-
10
-/**
11
- * <p>
12
- * ${table.comment!} Mapper 接口
13
- * </p>
14
- *
15
- * @author ${author}
16
- * @since ${date}
17
- */
18
-<#if mapperAnnotationClass??>
19
-@${mapperAnnotationClass.simpleName}
20
-</#if>
21
-<#if kotlin>
22
-interface ${table.mapperName} : ${superMapperClass}<${entity}>
23
-<#else>
24
-public interface ${table.mapperName} extends ${superMapperClass}<${entity}> {
25
-
26
- @Select("SELECT * FROM ${table.name} WHERE ID = ${r'#{id}'}" )
27
- ${entity} selectByPK(String id);
28
-
29
-}
30
-</#if>

+ 0
- 39
lim/src/main/resources/templates/mapper.xml.ftl Voir le fichier

@@ -1,39 +0,0 @@
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="${package.Mapper}.${table.mapperName}">
4
-
5
-<#if enableCache>
6
-    <!-- 开启二级缓存 -->
7
-    <cache type="${cacheClassName}"/>
8
-
9
-</#if>
10
-<#if baseResultMap>
11
-    <!-- 通用查询映射结果 -->
12
-    <resultMap id="BaseResultMap" type="${package.Entity}.${entity}">
13
-<#list table.fields as field>
14
-<#if field.keyFlag><#--生成主键排在第一位-->
15
-        <id column="${field.name}" property="${field.propertyName}" />
16
-</#if>
17
-</#list>
18
-<#list table.commonFields as field><#--生成公共字段 -->
19
-        <result column="${field.name}" property="${field.propertyName}" />
20
-</#list>
21
-<#list table.fields as field>
22
-<#if !field.keyFlag><#--生成普通字段 -->
23
-        <result column="${field.name}" property="${field.propertyName}" />
24
-</#if>
25
-</#list>
26
-    </resultMap>
27
-
28
-</#if>
29
-<#if baseColumnList>
30
-    <!-- 通用查询结果列 -->
31
-    <sql id="Base_Column_List">
32
-<#list table.commonFields as field>
33
-        ${field.columnName},
34
-</#list>
35
-        ${table.fieldNames}
36
-    </sql>
37
-
38
-</#if>
39
-</mapper>

+ 0
- 33
lim/src/main/resources/templates/service.java.ftl Voir le fichier

@@ -1,33 +0,0 @@
1
-package ${package.Service};
2
-
3
-import ${package.Entity}.${entity};
4
-import ${superServiceClassPackage};
5
-
6
-import com.shinsoft.tools.model.common.ResultJSON;
7
-
8
-
9
-/**
10
- * <p>
11
- * ${table.comment!} 服务类
12
- * </p>
13
- *
14
- * @author ${author}
15
- * @since ${date}
16
- */
17
-<#if kotlin>
18
-interface ${table.serviceName} : ${superServiceClass}<${entity}>
19
-<#else>
20
-public interface ${table.serviceName} extends ${superServiceClass}<${entity}> {
21
-
22
-   ResultJSON query(int page, int rows,String params);
23
-
24
-   ResultJSON queryByPK(String id);
25
-
26
-   ResultJSON save(String userId, String json);
27
-
28
-   ResultJSON remove(String userId, String id);
29
-
30
-   ResultJSON removeBatch(String userId, String ids);
31
-
32
- }
33
-</#if>

+ 0
- 162
lim/src/main/resources/templates/serviceImpl.java.ftl Voir le fichier

@@ -1,162 +0,0 @@
1
-package ${package.ServiceImpl};
2
-
3
-import ${package.Entity}.${entity};
4
-import ${package.Mapper}.${table.mapperName};
5
-<#if table.serviceInterface>
6
-    import ${package.Service}.${table.serviceName};
7
-</#if>
8
-import ${superServiceImplClassPackage};
9
-import org.springframework.stereotype.Service;
10
-
11
-
12
-import org.springframework.beans.factory.annotation.Autowired;
13
-import java.util.Date;
14
-import java.util.List;
15
-import com.alibaba.fastjson.JSON;
16
-import com.alibaba.fastjson.JSONObject;
17
-import com.alibaba.fastjson.JSONArray;
18
-import com.alibaba.fastjson.TypeReference;
19
-import com.shinsoft.tools.JSONTools;
20
-import com.shinsoft.tools.model.common.ResultJSON;
21
-import org.apache.commons.lang3.StringUtils;
22
-import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
23
-import com.baomidou.mybatisplus.core.metadata.IPage;
24
-import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
25
-import org.apache.commons.lang3.ObjectUtils;
26
-import org.apache.commons.lang3.StringUtils;
27
-
28
-/**
29
-* <p>
30
-    * ${table.comment!} 服务实现类
31
-    * </p>
32
-*
33
-* @author ${author}
34
-* @since ${date}
35
-*/
36
-@Service
37
-<#if kotlin>
38
-    open class ${table.serviceImplName} : ${superServiceImplClass}<${table.mapperName}, ${entity}>()<#if table.serviceInterface>, ${table.serviceName}</#if> {
39
-
40
-    }
41
-<#else>
42
-    public class ${table.serviceImplName} extends ${superServiceImplClass}<${table.mapperName}, ${entity}><#if table.serviceInterface> implements ${table.serviceName}</#if> {
43
-
44
-
45
-    ResultJSON resultJSON;
46
-
47
-    @Autowired
48
-    ${table.mapperName} ${table.entityPath}Mapper;
49
-
50
-    @Override
51
-    public ResultJSON query(int page,int rows,String params){
52
-    JSONObject jsonObject=JSON.parseObject(params);
53
-    <#list queryList as item>
54
-        <#if item.fieldType == 'varchar'||item.fieldType == 'VARCHAR2'||item.fieldType == 'VARCHAR'||item.fieldType == 'CHAR'>
55
-            String ${item.prop} = jsonObject.getString("${item.prop}");
56
-        <#elseif item.fieldType == 'int'||item.fieldType == 'INT'>
57
-            int ${item.prop} = jsonObject.getInteger("${item.prop}");
58
-        <#elseif item.fieldType == 'float'||item.fieldType == 'FLOAT'>
59
-            float ${item.prop} = jsonObject.getInteger("${item.prop}");
60
-        <#elseif item.fieldType == 'double'||item.fieldType == 'DOUBLE'>
61
-            Double ${item.prop} = jsonObject.getDouble("${item.prop}");
62
-        <#elseif item.fieldType == 'NUMBER'&& item.dataPrecision == 0>
63
-            int ${item.prop} = jsonObject.getInteger("${item.prop}");
64
-        <#elseif item.fieldType == 'NUMBER'&& item.dataPrecision != 0>
65
-            Double ${item.prop} = jsonObject.getDouble("${item.prop}");
66
-        <#elseif item.fieldType == 'date'||item.fieldType == 'datetime'||item.fieldType == 'DATE'||item.fieldType == 'DATETIME'||item.fieldType == 'TIMESTAMP'>
67
-            <#if item.dateFlag=='1'>
68
-                JSONArray ${item.prop}Range = jsonObject.getJSONArray("${item.prop}");
69
-                Date ${item.prop}Begin = ${item.prop}Range.getDate(0);
70
-                Date ${item.prop}End = ${item.prop}Range.getDate(1);
71
-            <#else>
72
-                Date ${item.prop} = jsonObject.getDate("${item.prop}");
73
-            </#if>
74
-        </#if>
75
-    </#list>
76
-    Page<${entity}> ${table.entityPath}Page=new Page<>(page,rows);
77
-    QueryWrapper<${entity}>queryWrapper=new QueryWrapper<>();
78
-    queryWrapper.eq("cancel_flag","0");
79
-    <#list queryList as item>
80
-        <#if item.fieldType == 'date'||item.fieldType == 'datetime'||item.fieldType == 'DATE'||item.fieldType == 'DATETIME'||item.fieldType == 'TIMESTAMP'>
81
-            <#if item.dateFlag=='1'>
82
-                queryWrapper.between(ObjectUtils.isNotEmpty(${item.prop}Begin),"${item.fieldName}",${item.prop}Begin, ${item.prop}End);
83
-            <#else>
84
-                queryWrapper.eq(ObjectUtils.isNotEmpty(${item.prop}),"${item.fieldName}",${item.prop});
85
-            </#if>
86
-        <#else>
87
-            <#if item.fuzzyFlag == '1'>
88
-                queryWrapper.like(StringUtils.isNotEmpty(${item.prop}),"${item.fieldName}",${item.prop});
89
-            <#else>
90
-                <#if item.fieldType == 'varchar'||item.fieldType == 'VARCHAR'||item.fieldType == 'VARCHAR2'||item.fieldType == 'char'||item.fieldType == 'CHAR'>
91
-                    queryWrapper.eq(StringUtils.isNotEmpty(${item.prop}),"${item.fieldName}",${item.prop});
92
-                <#else>
93
-                    queryWrapper.eq(ObjectUtils.isNotEmpty(${item.prop}),"${item.fieldName}",${item.prop});
94
-                </#if>
95
-            </#if>
96
-        </#if>
97
-    </#list>
98
-    queryWrapper.orderByDesc("add_time");
99
-    Page<${entity}>list= ${table.entityPath}Mapper.selectPage(${table.entityPath}Page,queryWrapper);
100
-    resultJSON=JSONTools.toResultJSON(list);
101
-    return resultJSON;
102
-    }
103
-
104
-    @Override
105
-    public ResultJSON queryByPK(String id) {
106
-    ${entity} ${table.entityPath} =  ${table.entityPath}Mapper.selectByPK(id);
107
-    resultJSON = JSONTools.toResultJSON(${table.entityPath});
108
-    return resultJSON;
109
-    }
110
-
111
-
112
-    @Override
113
-    public ResultJSON save(String userId,String json){
114
-    Date date = new Date();
115
-    ${entity} ${table.entityPath} =JSON.parseObject(json,new TypeReference<${entity}>(){
116
-    });
117
-    if(StringUtils.isEmpty(${table.entityPath}.getId())){
118
-    ${table.entityPath}.setCancelFlag("0");
119
-    ${table.entityPath}.setAddId(userId);
120
-    ${table.entityPath}.setAddTime(date);
121
-    ${table.entityPath}Mapper.insert(${table.entityPath});
122
-    }else{
123
-    ${table.entityPath}.setModifyId(userId);
124
-    ${table.entityPath}.setModifyTime(date);
125
-    ${table.entityPath}Mapper.updateById(${table.entityPath});
126
-    }
127
-
128
-    resultJSON=JSONTools.toResultJSON(${table.entityPath});
129
-    return resultJSON;
130
-    }
131
-
132
-    @Override
133
-    public ResultJSON remove(String userId,String id){
134
-    Date date=new Date();
135
-    ${entity} ${table.entityPath} = ${table.entityPath}Mapper.selectById(id);
136
-    ${table.entityPath}.setCancelFlag("1");
137
-    ${table.entityPath}.setCancelId(userId);
138
-    ${table.entityPath}.setCancelTime(date);
139
-    ${table.entityPath}Mapper.updateById(${table.entityPath});
140
-    resultJSON=JSONTools.toResultJSON("");
141
-    return resultJSON;
142
-    }
143
-
144
-    @Override
145
-    public ResultJSON removeBatch(String userId, String ids) {
146
-    Date date = new Date();
147
-    ${r"List<String>"} list = JSON.parseObject(ids,new TypeReference<${r"List<String>"}>() {
148
-    });
149
-    ${entity} ${table.entityPath};
150
-    for(String id :list){
151
-    ${table.entityPath} = ${table.entityPath}Mapper.selectById(id);
152
-    ${table.entityPath}.setCancelFlag("1");
153
-    ${table.entityPath}.setCancelId(userId);
154
-    ${table.entityPath}.setCancelTime(date);
155
-    ${table.entityPath}Mapper.updateById(${table.entityPath});
156
-    }
157
-    resultJSON = JSONTools.toResultJSON("");
158
-    return resultJSON;
159
-    }
160
-
161
-    }
162
-</#if>

+ 0
- 1
lim/src/main/resources/templates/uniapp3.vue.ftl Voir le fichier

@@ -1 +0,0 @@
1
-uniapp3:::${package.ModuleName}/${controllerMappingHyphen}

+ 0
- 462
lim/src/main/resources/templates/vue3.vue.ftl Voir le fichier

@@ -1,462 +0,0 @@
1
-<template>
2
-    <div>
3
-        <el-card :body-style="cardBodyStyle">
4
-            <el-form :inline="true">
5
-                <#list queryList as item>
6
-                    <#if item.controllerType == "日期">
7
-                        <el-form-item label="${item.fieldComment}"  style="margin-bottom: 0px;">
8
-                            <#if item.dateFlag =='1'>
9
-                                <el-date-picker v-model="query.${item.prop}" type="daterange"
10
-                                                align="right" range-separator="至"
11
-                                                start-placeholder="开始日期" end-placeholder="结束日期"
12
-                                                :picker-options="pickerOptions" style="width: 250px;"
13
-                                                value-format="YYYY-MM-DD" format="YYYY-MM-DD">
14
-                                </el-date-picker>
15
-                            <#else>
16
-                                <el-date-picker v-model="query.${item.prop}"  type="date"
17
-                                                value-format="YYYY-MM-DD" format="YYYY-MM-DD"
18
-                                                style="width: 200px;"></el-date-picker>
19
-                            </#if>
20
-                        </el-form-item>
21
-                    <#elseif item.controllerType == "日期时间">
22
-                        <el-form-item label="${item.fieldComment}" style="margin-bottom: 0px;">
23
-                            <#if item.dateFlag =='1'>
24
-                                <el-date-picker v-model="query.${item.prop}" type="datetimerange"
25
-                                                align="right" unlink-panels range-separator="至"
26
-                                                start-placeholder="开始时间" end-placeholder="结束时间"
27
-                                                :picker-options="pickerOptions" style="width: 350px;"
28
-                                                value-format="YYYY-MM-DD HH:mm:ss" format="YYYY-MM-DD HH:mm:ss">
29
-                                </el-date-picker>
30
-                            <#else>
31
-                                <el-date-picker v-model="query.${item.prop}"
32
-                                                type="datetime" style="width: 200px;"
33
-                                                value-format="YYYY-MM-DD HH:mm:ss" format="YYYY-MM-DD HH:mm:ss"></el-date-picker>
34
-                            </#if>
35
-                        </el-form-item>
36
-                    <#else>
37
-                        <el-form-item label="${item.fieldComment}" style="margin-bottom: 5px;" prop="${item.prop}">
38
-                            <el-input v-model="query.${item.prop}" placeholder="请输入${item.fieldComment}"
39
-                                      clearable></el-input>
40
-                        </el-form-item>
41
-                    </#if>
42
-                </#list>
43
-            </el-form>
44
-        </el-card>
45
-        <ButtonBar @search="handleSearch" @add="handleAdd" @remove="handleRemoveBatch" @edit="handleEditBatch"
46
-                   @upload="handleUpload" @download="handleDownload" @import="handleImport" @export="handleExport"></ButtonBar>
47
-        <el-card :body-style="cardBodyStyle">
48
-            <el-table :data="tableData" border highlight-current-row  @selection-change="handleSelectionChange">
49
-                <el-table-column type="selection" fixed></el-table-column>
50
-                <el-table-column type="index" label="序号" align="center" width="60">
51
-                    <template #default="scope">
52
-                        <span>{{ scope.$index + (currentPage - 1) * pageSize + 1 }}</span>
53
-                    </template>
54
-                </el-table-column>
55
-                <#if lowCode.fixedFlag=='1'>
56
-                    <el-table-column v-for="item in cols"  :key="item.id"  :prop="item.prop"
57
-                                     :label="item.label" :width="item.width" :header-align="item.headerAlign" :align="item.align"
58
-                                     show-overflow-tooltip></el-table-column>
59
-                <#else>
60
-                    <#list lowCodeFields as item>
61
-                        <el-table-column v-if="<#if item.showFlag=='1'>true<#else>false</#if>" prop="${item.prop}" label="${item.fieldComment}" width="${item.width}"
62
-                                         header-align="${item.headerAlign}" align="${item.align}"
63
-                                         show-overflow-tooltip>
64
-                        </el-table-column>
65
-                    </#list>
66
-                </#if>
67
-
68
-
69
-                <el-table-column label="操作" header-align="center" align="center" width="200px">
70
-                    <template #default="scope">
71
-                        <el-button plain type="warning" size="small" @click="handleEdit(scope.row)">编辑</el-button>
72
-                        <el-button plain type="danger"  size="small" @click="handleDelete(scope.row )">删除</el-button>
73
-                    </template>
74
-                </el-table-column>
75
-            </el-table>
76
-        </el-card>
77
-        <el-card :body-style="cardBodyStyle">
78
-            <el-pagination  :current-page="currentPage"  :page-size="pageSize" :page-sizes="pageSizes"
79
-                           :total="totalRows" background="background" layout="total, sizes, prev, pager, next, jumper"
80
-                           @size-change="handleSizeChange" @current-change="handleCurrentChange">
81
-            </el-pagination>
82
-        </el-card>
83
-
84
-        <el-dialog :close-on-click-modal="false" draggable title="编辑" v-model="dialogVisible" width="1200px"
85
-                   top="5vh"  @open="openDialog">
86
-            <el-form :model="form" label-width="80px" label-position="right" inline ref="ruleFormRef" :rules="rules">
87
-                <#list inputList as item>
88
-                <el-form-item label="${item.fieldComment}" <#if item.requireFlag=='1'> prop="${item.prop}" </#if> >
89
-                 <#if item.controllerType == "日期">
90
-                    <el-date-picker v-model="form.${item.prop}"  type="date"  style="width: 200px;"
91
-                                     value-format="YYYY-MM-DD" format="YYYY-MM-DD"
92
-                                    ></el-date-picker>
93
-                  <#elseif  item.controllerType == "日期时间">
94
-                    <el-date-picker v-model="form.${item.prop}"  type="datetime" style="width: 200px;"
95
-                                     value-format="YYYY-MM-DD HH:mm:ss" format="YYYY-MM-DD HH:mm:ss"></el-date-picker>
96
-                   <#elseif  item.controllerType == "单行文本">
97
-                    <el-input v-model="form.${item.prop}" clearable style="width: 200px"></el-input>
98
-                    <#elseif  item.controllerType == "多行文本">
99
-                     <el-input v-model="form.${item.prop}" clearable style="width: 200px"></el-input>
100
-                  </#if>
101
-                </el-form-item>
102
-                </#list>
103
-            </el-form>
104
-            <#if lowCode.attachmentFlag=='1'>
105
-                <Attachment ref="refUpload"></Attachment>
106
-            </#if>
107
-            <template #footer>
108
-                <div class="dialog-footer">
109
-                    <el-button type="success" @click="handleSave(ruleFormRef)">保存</el-button>
110
-                    <el-button type="danger" @click="handleCancelSave">取消</el-button>
111
-                </div>
112
-            </template>
113
-        </el-dialog>
114
-
115
-
116
-    </div>
117
-</template>
118
-
119
-<script setup>
120
-    import ButtonBar from '@/components/ButtonBar.vue'
121
-
122
-    import {
123
-        ref,
124
-        reactive,
125
-        onMounted,
126
-        getCurrentInstance
127
-    } from 'vue'
128
-
129
-    const {
130
-        proxy
131
-    } = getCurrentInstance()
132
-
133
-    import tools from '@/tools'
134
-    const cardBodyStyle = ref(tools.style.card)
135
-    const inputStyle = ref(tools.style.input)
136
-
137
-    onMounted(() => {
138
-        <#if lowCode.fixedFlag=='1'>
139
-        getCols()
140
-        </#if>
141
-        handleSearch()
142
-    })
143
-    <#if lowCode.attachmentFlag=='1'>
144
-    import Attachment from '@/components/Attachment.vue'
145
-    </#if>
146
-
147
-
148
-
149
-    /**
150
-     *   查询
151
-     */
152
-
153
-
154
-    <#if lowCode.fixedFlag=='1'>
155
-    import {
156
-        nextTick
157
-    } from 'vue'
158
-    const cols = ref([ ])
159
-    const getCols = () => {
160
-        var url = 'framework/LowCodePersonal/queryByUserIdMenuId'
161
-        var param = {
162
-            menuId: localStorage.getItem('menuId'),
163
-            tName: '表格'
164
-        }
165
-        proxy.$axios.get(url, param).then(response => {
166
-            var temp = []
167
-            for (var col of response.data.data) {
168
-                if (col.showFlag == '1') {
169
-                    temp.push(col)
170
-                }
171
-            }
172
-            var newArray = temp.slice(0)
173
-            cols.value = []
174
-            nextTick(() => {
175
-                cols.value = newArray
176
-            })
177
-        })
178
-    }
179
-    </#if>
180
-
181
-
182
-    const query = ref({
183
-        <#list queryList as item>
184
-        <#if item.controllerType == "日期">
185
-            <#if item.dateFlag =='1'>
186
-                ${item.prop} : [proxy.$dayjs().format('YYYY-MM-DD'), proxy.$dayjs().format('YYYY-MM-DD')] <#if item_has_next>, </#if>
187
-            <#else>
188
-                ${item.prop}: proxy.$dayjs().format('YYYY-MM-DD') <#if item_has_next>, </#if>
189
-            </#if>
190
-        <#elseif  item.controllerType == "日期时间" >
191
-            <#if item.dateFlag =='1'>
192
-              ${item.prop} : [proxy.$dayjs().format('YYYY-MM-DD') + ' 00:00:00', proxy.$dayjs().format('YYYY-MM-DD') + ' 23:59:59' ] <#if item_has_next>, </#if>
193
-              <#else>
194
-              ${item.prop}:proxy.$dayjs().format('YYYY-MM-DD HH:mm:ss')<#if item_has_next>, </#if>
195
-            </#if>
196
-        <#else>
197
-           ${item.prop}: ''<#if item_has_next>, </#if>
198
-       </#if>
199
-       </#list>
200
-   })
201
-   const tableData = ref([])
202
-   const handleSearch = () => {
203
-       currentPage.value = 1
204
-       getTableData()
205
-   }
206
-
207
-   const getTableData = () => {
208
-       var url = '${lowCode.serviceName}/${entity}/query'
209
-       var param = {
210
-           page: currentPage.value,
211
-           rows: pageSize.value,
212
-           params: JSON.stringify(query.value)
213
-       }
214
-       proxy.$axios.get(url, param).then(response => {
215
-            if (response.data.code == '0') {
216
-                tableData.value = response.data.data.records
217
-                totalRows.value = response.data.data.total
218
-            } else {
219
-                ElMessage.error('操作失败!' + response.data.msg)
220
-            }
221
-        })
222
-    }
223
-    /**
224
-     *   查询
225
-     */
226
-
227
-    /**
228
-     * 分页
229
-     */
230
-    const currentPage = ref(1)
231
-    const totalRows = ref(0)
232
-    const pageSizes = ref([10, 20, 30, 40])
233
-    const pageSize = ref(10)
234
-    const handleSizeChange = (val) => {
235
-        pageSize.value = val
236
-        getTableData()
237
-    }
238
-    const handleCurrentChange = (val) => {
239
-        currentPage.value = val
240
-        getTableData()
241
-    }
242
-    /**
243
-     * 分页
244
-     */
245
-
246
-
247
-    /**
248
-     * 新增
249
-     */
250
-    const dialogVisible = ref(false)
251
-    const form = ref({
252
-        <#list inputList as item>
253
-        ${item.prop}: ''<#if item_has_next>, </#if>
254
-        </#list>
255
-    })
256
-    const ruleFormRef = ref()
257
-    const rules = reactive({
258
-        <#list inputList as item>
259
-        <#if item.requireFlag=='1'>
260
-        ${item.prop}: [{
261
-            required: true,
262
-            message: '请输入${item.fieldComment}',
263
-            trigger: 'change' | 'blur'
264
-        }]<#if item_has_next>, </#if>
265
-        </#if>
266
-        </#list>
267
-    })
268
-
269
-    const handleAdd = () => {
270
-        form.value = {
271
-            <#list inputList as item>
272
-            ${item.prop}: ''<#if item_has_next>, </#if>
273
-            </#list>
274
-        }
275
-        dialogVisible.value = true
276
-    }
277
-    /**
278
-     * 新增
279
-     */
280
-
281
-
282
-    /**
283
-     * 保存、修改、删除
284
-     */
285
-    <#if lowCode.attachmentFlag=='1'>
286
-         const refUpload = ref()
287
-    </#if>
288
-
289
-    const openDialog=()=>{
290
-        <#if lowCode.attachmentFlag=='1'>
291
-        refUpload.value.fId = form.value.id
292
-        refUpload.value.getTableData()
293
-        </#if>
294
-    }
295
-
296
-    const handleSave = (ruleFormRef) => {
297
-        ruleFormRef.validate((valid, fields) => {
298
-            if (valid) {
299
-                var url = '${lowCode.serviceName}/${entity}/save'
300
-                var param = {
301
-                    json: JSON.stringify(form.value),
302
-                }
303
-                proxy.$axios.post(url, param).then(response => {
304
-                    if (response.data.code == 0) {
305
-                        form.value = response.data.data
306
-                        ElMessage({
307
-                            message: '保存成功',
308
-                            type: 'success',
309
-                        })
310
-                        <#if lowCode.attachmentFlag=='1'>
311
-                        refUpload.value.fId = form.value.id
312
-                        refUpload.value.upload()
313
-                        </#if>
314
-                        getTableData()
315
-                        dialogVisible.value = false
316
-                    } else {
317
-                        // ElMessage.error('操作失败!' + response.data.msg)
318
-                        ElMessage({
319
-                            message: '操作失败' + response.data.msg,
320
-                            type: 'error'
321
-                        })
322
-                    }
323
-                })
324
-
325
-            } else {
326
-                console.log('error submit!', fields)
327
-            }
328
-        })
329
-    }
330
-    const handleCancelSave = () => {
331
-        dialogVisible.value = false
332
-    }
333
-    const handleEdit = (row) => {
334
-        dialogVisible.value = true
335
-        form.value = row
336
-    }
337
-    const handleDelete = (row) => {
338
-        ElMessageBox.confirm(
339
-            '确定删除本条记录?',
340
-            '提示', {
341
-                confirmButtonText: '确认',
342
-                cancelButtonText: '取消',
343
-                type: 'warning',
344
-                draggable: true,
345
-            }
346
-        )
347
-            .then(() => {
348
-                var url = '${lowCode.serviceName}/${entity}/remove'
349
-                var param = {
350
-                    id: row.id
351
-                }
352
-                proxy.$axios.post(url, param).then(response => {
353
-                    if (response.data.code == 0) {
354
-                        ElMessage({
355
-                            type: 'success',
356
-                            message: '删除成功',
357
-                        })
358
-                        getTableData()
359
-                    } else {
360
-                        ElMessage({
361
-                            type: 'error',
362
-                            message: '删除失败' + response.data.msg
363
-                        });
364
-                    }
365
-                });
366
-            })
367
-            .catch(() => {
368
-                ElMessage({
369
-                    type: 'info',
370
-                    message: '已取消',
371
-                })
372
-            })
373
-    }
374
-
375
-    /**
376
-     * 保存、修改、删除
377
-     */
378
-
379
-    const multipleSelection = ref([])
380
-    const handleSelectionChange = (val) => {
381
-        multipleSelection.value = val
382
-    }
383
-
384
-    const handleRemoveBatch = () => {
385
-        console.log('handleRemoveBatch')
386
-
387
-        if (multipleSelection.value.length < 1) {
388
-            ElMessage({
389
-                type: 'warning',
390
-                message: '请选择要删除的数据!'
391
-            })
392
-            return
393
-        }
394
-
395
-        ElMessageBox.confirm('此操作将删除该数据, 是否继续?', '提示', {
396
-            confirmButtonText: '确定',
397
-            cancelButtonText: '取消',
398
-            type: 'warning'
399
-        }).then(() => {
400
-            var ids = []
401
-            multipleSelection.value.forEach((item, index) => {
402
-                ids.push(item.id)
403
-            })
404
-            var url = '${lowCode.serviceName}/${entity}/removeBatch'
405
-            var param = {
406
-                ids: JSON.stringify(ids)
407
-            }
408
-            proxy.$axios.post(url, param).then(response => {
409
-                if (response.data.code == '0') {
410
-                    ElMessage({
411
-                        type: 'success',
412
-                        message: '操作成功!',
413
-                    });
414
-                    getTableData()
415
-                    dialogVisible.value = false
416
-                } else {
417
-                    ElMessage({
418
-                        type: 'error',
419
-                        message: '操作失败!' + response.data.msg
420
-                    });
421
-                }
422
-            })
423
-        }).catch(() => {
424
-            ElMessage({
425
-                type: 'info',
426
-                message: '已取消删除'
427
-            })
428
-        })
429
-    }
430
-
431
-    const handleEditBatch = () => {
432
-        console.log('handleEditBatch')
433
-        if (multipleSelection.value.length != 1) {
434
-            ElMessage({
435
-                type: 'warning',
436
-                message: '请选择一条数据编辑!'
437
-            })
438
-            return
439
-        }
440
-        handleEdit(multipleSelection.value[0])
441
-    }
442
-
443
-    const handleUpload = () => {
444
-        console.log('handleUpload')
445
-    }
446
-
447
-    const handleDownload = () => {
448
-        console.log('handleDownload')
449
-    }
450
-
451
-    const handleImport = () => {
452
-        console.log('handleImport')
453
-    }
454
-
455
-    const handleExport = () => {
456
-        console.log('handleExport')
457
-    }
458
-
459
-</script>
460
-
461
-<style>
462
-</style>

+ 0
- 5
lim/src/main/resources/test/Dockerfile Voir le fichier

@@ -1,5 +0,0 @@
1
-FROM alpine-java8:1.0.0
2
-ADD lib /lib
3
-ADD bootstrap.properties /bootstrap.properties
4
-ADD framework.jar /framework.jar
5
-CMD ["java","-jar","-Duser.timezone=GMT+08","/framework.jar","--spring.config.location=file:/bootstrap.properties"]

+ 0
- 24
lim/src/main/resources/test/bootstrap.properties Voir le fichier

@@ -1,24 +0,0 @@
1
-nacosServer=192.168.31.191:8848
2
-nacosNamespace=sgiip
3
-nacosGroup=test
4
-
5
-server.port=8011
6
-spring.application.name=framework
7
-
8
-spring.cloud.nacos.config.namespace=${nacosNamespace}
9
-spring.cloud.nacos.config.group=${nacosGroup}
10
-spring.cloud.nacos.config.server-addr=${nacosServer}
11
-spring.cloud.nacos.config.file-extension=yaml
12
-spring.cloud.nacos.config.ext-config[0].data-id=common.yaml
13
-spring.cloud.nacos.config.ext-config[0].group=${nacosGroup}
14
-spring.cloud.nacos.config.ext-config[0].refresh=true
15
-spring.cloud.nacos.config.ext-config[1].data-id=db-framework-oracle.yaml
16
-spring.cloud.nacos.config.ext-config[1].group=${nacosGroup}
17
-spring.cloud.nacos.config.ext-config[1].refresh=true
18
-
19
-spring.cloud.nacos.discovery.namespace=${nacosNamespace}
20
-spring.cloud.nacos.discovery.group=${nacosGroup}
21
-spring.cloud.nacos.discovery.server-addr=${nacosServer}
22
-spring.cloud.nacos.discovery.retry.enabled=true
23
-
24
-spring.cloud.inetutils.preferred-networks=192.168.31.

+ 0
- 76
lim/src/main/resources/test/log4j2.xml Voir le fichier

@@ -1,76 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8"?>
2
-<Configuration status="DEBUG" monitorInterval="60">
3
-
4
-
5
-    <Properties>
6
-        <!--自定义一些常量,之后使用${变量名}引用-->
7
-        <Property name="logFilePath">logs</Property>
8
-    </Properties>
9
-
10
-
11
-    <!--定义所有的appender-->
12
-    <Appenders>
13
-        <!--输出控制台的配置-->
14
-        <Console name="Console" target="SYSTEM_OUT">
15
-            <!--日志信息的格式-->
16
-            <PatternLayout pattern="%d{HH:mm:ss:SSS} [%p] %c  %m%n"/>
17
-        </Console>
18
-
19
-        <!--输出文件的配置-->
20
-        <File name="log" fileName="${logFilePath}/log.log" append="false">
21
-            <PatternLayout pattern="%d{HH:mm:ss.SSS} %-5level %c{36} %L %c %M %msg%n"/>
22
-        </File>
23
-
24
-        <RollingFile name="RollingFileInfo" fileName="${logFilePath}/info.log"
25
-                     filePattern="${logFilePath}/$${date:yyyy-MM}/info-%d{yyyy-MM-dd}-%i.log">
26
-            <!--只输出level级别以上的信息(onMatch),其他级别的拒绝(onMismatch)-->
27
-            <ThresholdFilter level="info" onMatch="ACCEPT" onMismatch="DENY"/>
28
-            <PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss:SSS} [%p] %l %c %m%n"/>
29
-            <Policies>
30
-                <TimeBasedTriggeringPolicy/>
31
-                <SizeBasedTriggeringPolicy size="20MB"/>
32
-            </Policies>
33
-            <!--文件数量的设置-->
34
-            <DefaultRolloverStrategy max="50"/>
35
-        </RollingFile>
36
-
37
-        <RollingFile name="RollingFileWarn" fileName="${logFilePath}/warn.log"
38
-                     filePattern="${logFilePath}/$${date:yyyy-MM}/warn-%d{yyyy-MM-dd}-%i.log">
39
-            <ThresholdFilter level="warn" onMatch="ACCEPT" onMismatch="DENY"/>
40
-            <PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss:SSS} [%p] %l %c %m%n"/>
41
-            <Policies>
42
-                <TimeBasedTriggeringPolicy/>
43
-                <SizeBasedTriggeringPolicy size="20MB"/>
44
-            </Policies>
45
-            <!--文件数量的设置-->
46
-            <DefaultRolloverStrategy max="50"/>
47
-        </RollingFile>
48
-
49
-        <RollingFile name="RollingFileError" fileName="${logFilePath}/error.log"
50
-                     filePattern="${logFilePath}/$${date:yyyy-MM}/warn-%d{yyyy-MM-dd}-%i.log">
51
-            <ThresholdFilter level="error" onMatch="ACCEPT" onMismatch="DENY"/>
52
-            <PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss:SSS} [%p] %l %c %m%n"/>
53
-            <Policies>
54
-                <TimeBasedTriggeringPolicy/>
55
-                <SizeBasedTriggeringPolicy size="20MB"/>
56
-            </Policies>
57
-            <!--文件数量的设置-->
58
-            <DefaultRolloverStrategy max="50"/>
59
-        </RollingFile>
60
-    </Appenders>
61
-
62
-    <Loggers>
63
-        <logger name="org.springframework" level="INFO"></logger>
64
-        <logger name="com.netflix" level="INFO"></logger>
65
-        <logger name="org.apache" level="INFO"></logger>
66
-        <logger name="org.mybatis" level="INFO"></logger>
67
-        <logger name="com.alibaba.nacos" level="WARN"></logger>
68
-        <Root level="DEBUG">
69
-            <AppenderRef ref="Console"/>
70
-            <AppenderRef ref="RollingFileInfo"/>
71
-            <AppenderRef ref="RollingFileWarn"/>
72
-            <AppenderRef ref="RollingFileError"/>
73
-        </Root>
74
-
75
-    </Loggers>
76
-</Configuration>

Loading…
Annuler
Enregistrer