电子证照接口,实体,请求
Showing
41 changed files
with
4465 additions
and
1011 deletions
.settings/.jsdtscope
deleted
100644 → 0
1 | eclipse.preferences.version=1 | ||
2 | encoding//src/main/java=UTF-8 | ||
3 | encoding//src/main/java/com/thinkgem/jeesite/modules/reg/service/qjxt/BdcZdxxService.java=UTF-8 | ||
4 | encoding//src/main/java/com/thinkgem/jeesite/modules/reg/web/updata/CSCDJ3000402Controller.java=UTF-8 | ||
5 | encoding//src/main/resources=UTF-8 | ||
6 | encoding//src/main/resources/jeesite.properties=UTF-8 | ||
7 | encoding//src/main/resources/server.json=UTF-8 | ||
8 | encoding//src/main/resources/si_code.json=UTF-8 | ||
9 | encoding//src/main/resources/stencilset.json=UTF-8 | ||
10 | encoding//src/test/java=UTF-8 | ||
11 | encoding/<project>=UTF-8 |
.settings/org.eclipse.jdt.core.prefs
deleted
100644 → 0
1 | eclipse.preferences.version=1 | ||
2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled | ||
3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 | ||
4 | org.eclipse.jdt.core.compiler.compliance=1.8 | ||
5 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error | ||
6 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error | ||
7 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning | ||
8 | org.eclipse.jdt.core.compiler.release=disabled | ||
9 | org.eclipse.jdt.core.compiler.source=1.8 |
1 | <?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0"> | ||
2 | <wb-module deploy-name="ODM"> | ||
3 | <wb-resource deploy-path="/" source-path="/target/m2e-wtp/web-resources"/> | ||
4 | <wb-resource deploy-path="/" source-path="/src/main/webapp" tag="defaultRootSource"/> | ||
5 | <wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/> | ||
6 | <wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/resources"/> | ||
7 | <property name="context-root" value="ODM"/> | ||
8 | <property name="java-output-path" value="/ODM/src/main/webapp/WEB-INF/classes"/> | ||
9 | <property name="component.exclusion.patterns" value="static/bootstrap/2.3.1/docs/**,static/ckeditor/_samples/**,static/ckeditor/_source/**,static/ckfinder/_samples/**,static/ckfinder/help/**,static/compressor*/**,static/jquery-jbox/2.3/docs/**,static/jquery-jbox/2.3/Skins2/**,static/jquery-validation/1.11.0/demo/**,static/jquery-ztree/3.5.12/demo/**,static/My97DatePicker/docs/**,static/supcan/doc/**,static/SuperSlide/demo/**,static/treeTable/demo/**,test/**,WEB-INF/classes/org/apache/ibatis/**,WEB-INF/classes/org/mybatis/spring/**"/> | ||
10 | </wb-module> | ||
11 | </project-modules> |
1 | <?xml version="1.0" encoding="UTF-8"?> | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | 2 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
3 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | 3 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
4 | <modelVersion>4.0.0</modelVersion> | 4 | <modelVersion>4.0.0</modelVersion> |
5 | 5 | ||
6 | <groupId>com.thinkgem.jeesite</groupId> | 6 | <groupId>com.thinkgem.jeesite</groupId> |
7 | <artifactId>ODM</artifactId> | 7 | <artifactId>ODM</artifactId> |
8 | <version>1.0</version> | 8 | <version>1.0</version> |
9 | <packaging>war</packaging> | 9 | <packaging>war</packaging> |
10 | 10 | ||
11 | <name>ODM</name> | 11 | <name>ODM</name> |
12 | <url>#</url> | 12 | <url>#</url> |
13 | <inceptionYear>2015-2018</inceptionYear> | 13 | <inceptionYear>2015-2018</inceptionYear> |
14 | 14 | ||
15 | <!-- 项目属性 --> | 15 | <!-- 项目属性 --> |
16 | <properties> | 16 | <properties> |
17 | 17 | ||
18 | <!-- main version setting --> | 18 | <!-- main version setting --> |
19 | <spring.version>4.0.8.RELEASE</spring.version> | 19 | <spring.version>4.0.8.RELEASE</spring.version> |
20 | <validator.version>5.1.1.Final</validator.version> | 20 | <validator.version>5.1.1.Final</validator.version> |
... | @@ -26,7 +26,7 @@ | ... | @@ -26,7 +26,7 @@ |
26 | <shiro.version>1.2.3</shiro.version> | 26 | <shiro.version>1.2.3</shiro.version> |
27 | <sitemesh.version>2.4.2</sitemesh.version> | 27 | <sitemesh.version>2.4.2</sitemesh.version> |
28 | <activiti.version>5.15.1</activiti.version> | 28 | <activiti.version>5.15.1</activiti.version> |
29 | 29 | ||
30 | <!-- tools version setting --> | 30 | <!-- tools version setting --> |
31 | <slf4j.version>1.7.7</slf4j.version> | 31 | <slf4j.version>1.7.7</slf4j.version> |
32 | <commons-lang3.version>3.3.2</commons-lang3.version> | 32 | <commons-lang3.version>3.3.2</commons-lang3.version> |
... | @@ -41,120 +41,115 @@ | ... | @@ -41,120 +41,115 @@ |
41 | <dozer.version>5.5.1</dozer.version> | 41 | <dozer.version>5.5.1</dozer.version> |
42 | <poi.version>3.9</poi.version> | 42 | <poi.version>3.9</poi.version> |
43 | <freemarker.version>2.3.20</freemarker.version> | 43 | <freemarker.version>2.3.20</freemarker.version> |
44 | 44 | ||
45 | <!-- jdbc driver setting --> | 45 | <!-- jdbc driver setting --> |
46 | <mysql.driver.version>5.1.30</mysql.driver.version> | 46 | <mysql.driver.version>5.1.30</mysql.driver.version> |
47 | <oracle.driver.version>10.2.0.4.0</oracle.driver.version> | 47 | <oracle.driver.version>10.2.0.4.0</oracle.driver.version> |
48 | <mssql.driver.version>1.3.1</mssql.driver.version> | 48 | <mssql.driver.version>1.3.1</mssql.driver.version> |
49 | 49 | ||
50 | <!-- environment setting --> | 50 | <!-- environment setting --> |
51 | <jdk.version>1.8</jdk.version> | 51 | <jdk.version>1.7</jdk.version> |
52 | <tomcat.version>2.2</tomcat.version> | 52 | <tomcat.version>2.2</tomcat.version> |
53 | <jetty.version>7.6.14.v20131031</jetty.version> | 53 | <jetty.version>7.6.14.v20131031</jetty.version> |
54 | <webserver.port>8080</webserver.port> | 54 | <webserver.port>8080</webserver.port> |
55 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | 55 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
56 | <downloadSources>true</downloadSources> | 56 | <downloadSources>true</downloadSources> |
57 | 57 | ||
58 | </properties> | 58 | </properties> |
59 | 59 | ||
60 | <!-- 设定主仓库,按设定顺序进行查找。 --> | 60 | <!-- 设定主仓库,按设定顺序进行查找。 --> |
61 | <repositories> | 61 | <repositories> |
62 | 62 | ||
63 | <!-- 如有Nexus私服, 取消注释并指向正确的服务器地址. | 63 | <!-- 如有Nexus私服, 取消注释并指向正确的服务器地址. |
64 | <repository> | ||
65 | <id>nexus-repos</id> | ||
66 | <name>Team Nexus Repository</name> | ||
67 | <url>http://192.168.11.36:8888/nexus/content/groups/public</url> | ||
68 | </repository> --> | ||
69 | |||
70 | <repository> | ||
71 | <id>oschina-repos</id> | ||
72 | <name>Oschina Releases</name> | ||
73 | <url>http://maven.oschina.net/content/groups/public</url> | ||
74 | </repository> | ||
75 | |||
76 | <repository> | ||
77 | <id>java-repos</id> | ||
78 | <name>Java Repository</name> | ||
79 | <url>http://download.java.net/maven/2/</url> | ||
80 | </repository> | ||
81 | |||
82 | <repository> | 64 | <repository> |
83 | <id>springsource-repos</id> | 65 | <id>nexus-repos</id> |
84 | <name>SpringSource Repository</name> | 66 | <name>Team Nexus Repository</name> |
85 | <url>http://repo.spring.io/release/</url> | 67 | <url>http://192.168.11.36:8888/nexus/content/groups/public</url> |
86 | </repository> | 68 | </repository> --> |
87 | 69 | ||
88 | <repository> | 70 | <!--<repository>--> |
89 | <id>central-repos</id> | 71 | <!-- <id>oschina-repos</id>--> |
90 | <name>Central Repository</name> | 72 | <!-- <name>Oschina Releases</name>--> |
91 | <url>http://repo.maven.apache.org/maven2</url> | 73 | <!-- <url>http://maven.oschina.net/content/groups/public</url>--> |
92 | </repository> | 74 | <!--</repository>--> |
93 | 75 | ||
94 | <repository> | 76 | <!--<repository>--> |
95 | <id>central-repos2</id> | 77 | <!-- <id>java-repos</id>--> |
96 | <name>Central Repository 2</name> | 78 | <!-- <name>Java Repository</name>--> |
97 | <url>http://repo1.maven.org/maven2/</url> | 79 | <!-- <url>http://download.java.net/maven/2/</url>--> |
98 | </repository> | 80 | <!--</repository>--> |
99 | 81 | ||
100 | <repository> | 82 | <!--<repository>--> |
101 | <id>activiti-repos</id> | 83 | <!-- <id>springsource-repos</id>--> |
102 | <name>Activiti Repository</name> | 84 | <!-- <name>SpringSource Repository</name>--> |
103 | <url>https://maven.alfresco.com/nexus/content/groups/public</url> | 85 | <!-- <url>http://repo.spring.io/release/</url>--> |
104 | </repository> | 86 | <!--</repository>--> |
105 | 87 | ||
106 | <repository> | 88 | <!--<repository>--> |
107 | <id>activiti-repos2</id> | 89 | <!-- <id>central-repos</id>--> |
108 | <name>Activiti Repository 2</name> | 90 | <!-- <name>Central Repository</name>--> |
109 | <url>https://app.camunda.com/nexus/content/groups/public</url> | 91 | <!-- <url>http://repo.maven.apache.org/maven2</url>--> |
110 | </repository> | 92 | <!--</repository>--> |
111 | 93 | ||
112 | <repository> | 94 | <!--<repository>--> |
113 | <id>thinkgem-repos</id> | 95 | <!-- <id>central-repos2</id>--> |
114 | <name>ThinkGem Repository</name> | 96 | <!-- <name>Central Repository 2</name>--> |
115 | <url>http://git.oschina.net/thinkgem/repos/raw/master</url> | 97 | <!-- <url>http://repo1.maven.org/maven2/</url>--> |
116 | </repository> | 98 | <!--</repository>--> |
117 | 99 | ||
118 | <repository> | 100 | <!--<repository>--> |
119 | <id>thinkgem-repos2</id> | 101 | <!-- <id>activiti-repos</id>--> |
120 | <name>ThinkGem Repository 2</name> | 102 | <!-- <name>Activiti Repository</name>--> |
121 | <url>https://raw.github.com/thinkgem/repository/master</url> | 103 | <!-- <url>https://maven.alfresco.com/nexus/content/groups/public</url>--> |
122 | </repository> | 104 | <!--</repository>--> |
123 | 105 | ||
106 | <!--<repository>--> | ||
107 | <!-- <id>activiti-repos2</id>--> | ||
108 | <!-- <name>Activiti Repository 2</name>--> | ||
109 | <!-- <url>https://app.camunda.com/nexus/content/groups/public</url>--> | ||
110 | <!--</repository>--> | ||
111 | |||
112 | <!--<repository> --> | ||
113 | <!-- <id>thinkgem-repos</id> --> | ||
114 | <!-- <name>ThinkGem Repository</name>--> | ||
115 | <!-- <url>http://git.oschina.net/thinkgem/repos/raw/master</url>--> | ||
116 | <!--</repository>--> | ||
117 | |||
118 | <!--<repository> --> | ||
119 | <!-- <id>thinkgem-repos2</id> --> | ||
120 | <!-- <name>ThinkGem Repository 2</name>--> | ||
121 | <!-- <url>https://raw.github.com/thinkgem/repository/master</url>--> | ||
122 | <!--</repository>--> | ||
123 | |||
124 | </repositories> | 124 | </repositories> |
125 | 125 | ||
126 | <!-- 设定插件仓库 --> | 126 | <!-- 设定插件仓库 --> |
127 | <pluginRepositories> | 127 | <pluginRepositories> |
128 | 128 | ||
129 | <!-- 如有Nexus私服, 取消注释并指向正确的服务器地址. | 129 | <!-- 如有Nexus私服, 取消注释并指向正确的服务器地址. |
130 | <pluginRepository> | 130 | <pluginRepository> |
131 | <id>nexus-repos</id> | 131 | <id>nexus-repos</id> |
132 | <name>Team Nexus Repository</name> | 132 | <name>Team Nexus Repository</name> |
133 | <url>http://192.168.11.36:8888/nexus/content/groups/public</url> | 133 | <url>http://192.168.11.36:8888/nexus/content/groups/public</url> |
134 | </pluginRepository> --> | 134 | </pluginRepository> --> |
135 | 135 | ||
136 | <pluginRepository> | 136 | <!--<pluginRepository>--> |
137 | <id>oschina-repos</id> | 137 | <!-- <id>oschina-repos</id>--> |
138 | <name>Oschina Releases</name> | 138 | <!-- <name>Oschina Releases</name>--> |
139 | <url>http://maven.oschina.net/content/groups/public</url> | 139 | <!-- <url>http://maven.oschina.net/content/groups/public</url>--> |
140 | </pluginRepository> | 140 | <!--</pluginRepository>--> |
141 | 141 | ||
142 | </pluginRepositories> | 142 | </pluginRepositories> |
143 | 143 | ||
144 | <!-- 依赖项定义 --> | 144 | <!-- 依赖项定义 --> |
145 | <dependencies> | 145 | <dependencies> |
146 | <!-- config redis data and client jar--> | 146 | <!-- config redis data and client jar--> |
147 | <dependency> | 147 | <dependency> |
148 | <groupId>org.springframework.data</groupId> | 148 | <groupId>org.springframework.data</groupId> |
149 | <artifactId>spring-data-redis</artifactId> | 149 | <artifactId>spring-data-redis</artifactId> |
150 | <version>1.6.0.RELEASE</version> | 150 | <version>1.6.0.RELEASE</version> |
151 | </dependency> | 151 | </dependency> |
152 | <dependency> | 152 | |
153 | <groupId>redis.clients</groupId> | ||
154 | <artifactId>jedis</artifactId> | ||
155 | <version>2.4.2</version> | ||
156 | </dependency> | ||
157 | |||
158 | <!-- SPRING begin --> | 153 | <!-- SPRING begin --> |
159 | <dependency> | 154 | <dependency> |
160 | <groupId>org.springframework</groupId> | 155 | <groupId>org.springframework</groupId> |
... | @@ -198,7 +193,7 @@ | ... | @@ -198,7 +193,7 @@ |
198 | <artifactId>spring-tx</artifactId> | 193 | <artifactId>spring-tx</artifactId> |
199 | <version>${spring.version}</version> | 194 | <version>${spring.version}</version> |
200 | </dependency> | 195 | </dependency> |
201 | 196 | ||
202 | <!-- spring orm --> | 197 | <!-- spring orm --> |
203 | <dependency> | 198 | <dependency> |
204 | <groupId>org.springframework</groupId> | 199 | <groupId>org.springframework</groupId> |
... | @@ -210,7 +205,7 @@ | ... | @@ -210,7 +205,7 @@ |
210 | <artifactId>spring-jdbc</artifactId> | 205 | <artifactId>spring-jdbc</artifactId> |
211 | <version>${spring.version}</version> | 206 | <version>${spring.version}</version> |
212 | </dependency> | 207 | </dependency> |
213 | 208 | ||
214 | <!-- bean validate --> | 209 | <!-- bean validate --> |
215 | <dependency> | 210 | <dependency> |
216 | <groupId>org.hibernate</groupId> | 211 | <groupId>org.hibernate</groupId> |
... | @@ -218,7 +213,7 @@ | ... | @@ -218,7 +213,7 @@ |
218 | <version>${validator.version}</version> | 213 | <version>${validator.version}</version> |
219 | </dependency> | 214 | </dependency> |
220 | <!-- SPRING end --> | 215 | <!-- SPRING end --> |
221 | 216 | ||
222 | <!-- AOP begin --> | 217 | <!-- AOP begin --> |
223 | <dependency> | 218 | <dependency> |
224 | <groupId>org.aspectj</groupId> | 219 | <groupId>org.aspectj</groupId> |
... | @@ -236,9 +231,9 @@ | ... | @@ -236,9 +231,9 @@ |
236 | <version>3.1</version> | 231 | <version>3.1</version> |
237 | </dependency> | 232 | </dependency> |
238 | <!-- AOP end --> | 233 | <!-- AOP end --> |
239 | 234 | ||
240 | <!-- PERSISTENCE begin --> | 235 | <!-- PERSISTENCE begin --> |
241 | 236 | ||
242 | <!-- MyBatis --> | 237 | <!-- MyBatis --> |
243 | <dependency> | 238 | <dependency> |
244 | <groupId>org.mybatis</groupId> | 239 | <groupId>org.mybatis</groupId> |
... | @@ -250,14 +245,14 @@ | ... | @@ -250,14 +245,14 @@ |
250 | <artifactId>mybatis-spring</artifactId> | 245 | <artifactId>mybatis-spring</artifactId> |
251 | <version>${mybatis-spring.version}</version> | 246 | <version>${mybatis-spring.version}</version> |
252 | </dependency> | 247 | </dependency> |
253 | 248 | ||
254 | <!-- connection pool --> | 249 | <!-- connection pool --> |
255 | <dependency> | 250 | <dependency> |
256 | <groupId>com.alibaba</groupId> | 251 | <groupId>com.alibaba</groupId> |
257 | <artifactId>druid</artifactId> | 252 | <artifactId>druid</artifactId> |
258 | <version>${druid.version}</version> | 253 | <version>${druid.version}</version> |
259 | </dependency> | 254 | </dependency> |
260 | 255 | ||
261 | <!-- jdbc driver --> | 256 | <!-- jdbc driver --> |
262 | <dependency> | 257 | <dependency> |
263 | <groupId>mysql</groupId> | 258 | <groupId>mysql</groupId> |
... | @@ -278,7 +273,7 @@ | ... | @@ -278,7 +273,7 @@ |
278 | <scope>runtime</scope> | 273 | <scope>runtime</scope> |
279 | </dependency> | 274 | </dependency> |
280 | <!-- PERSISTENCE end --> | 275 | <!-- PERSISTENCE end --> |
281 | 276 | ||
282 | <!-- WEB begin --> | 277 | <!-- WEB begin --> |
283 | <dependency> | 278 | <dependency> |
284 | <groupId>org.springframework</groupId> | 279 | <groupId>org.springframework</groupId> |
... | @@ -332,17 +327,17 @@ | ... | @@ -332,17 +327,17 @@ |
332 | <scope>compile</scope> | 327 | <scope>compile</scope> |
333 | </dependency> | 328 | </dependency> |
334 | <!-- <dependency> | 329 | <!-- <dependency> |
335 | <groupId>javax.servlet</groupId> | 330 | <groupId>javax.servlet</groupId> |
336 | <artifactId>javax.servlet-api</artifactId> | 331 | <artifactId>javax.servlet-api</artifactId> |
337 | <version>3.0.1</version> | 332 | <version>3.0.1</version> |
338 | <scope>provided</scope> | 333 | <scope>provided</scope> |
339 | </dependency> | 334 | </dependency> |
340 | <dependency> | 335 | <dependency> |
341 | <groupId>javax.servlet.jsp</groupId> | 336 | <groupId>javax.servlet.jsp</groupId> |
342 | <artifactId>jsp-api</artifactId> | 337 | <artifactId>jsp-api</artifactId> |
343 | <version>2.2</version> | 338 | <version>2.2</version> |
344 | <scope>provided</scope> | 339 | <scope>provided</scope> |
345 | </dependency> --> | 340 | </dependency> --> |
346 | <!-- WEB end --> | 341 | <!-- WEB end --> |
347 | 342 | ||
348 | <!-- CACHE begin --> | 343 | <!-- CACHE begin --> |
... | @@ -352,17 +347,17 @@ | ... | @@ -352,17 +347,17 @@ |
352 | <version>${ehcache.version}</version> | 347 | <version>${ehcache.version}</version> |
353 | </dependency> | 348 | </dependency> |
354 | <dependency> | 349 | <dependency> |
355 | <groupId>net.sf.ehcache</groupId> | 350 | <groupId>net.sf.ehcache</groupId> |
356 | <artifactId>ehcache-web</artifactId> | 351 | <artifactId>ehcache-web</artifactId> |
357 | <version>${ehcache-web.version}</version> | 352 | <version>${ehcache-web.version}</version> |
358 | </dependency> | 353 | </dependency> |
359 | <dependency> | 354 | <dependency> |
360 | <groupId>redis.clients</groupId> | 355 | <groupId>redis.clients</groupId> |
361 | <artifactId>jedis</artifactId> | 356 | <artifactId>jedis</artifactId> |
362 | <version>2.5.1</version> | 357 | <version>2.5.1</version> |
363 | </dependency> | 358 | </dependency> |
364 | <!-- CACHE end --> | 359 | <!-- CACHE end --> |
365 | 360 | ||
366 | <!-- SECURITY begin --> | 361 | <!-- SECURITY begin --> |
367 | <dependency> | 362 | <dependency> |
368 | <groupId>org.apache.shiro</groupId> | 363 | <groupId>org.apache.shiro</groupId> |
... | @@ -396,7 +391,7 @@ | ... | @@ -396,7 +391,7 @@ |
396 | <version>${shiro.version}</version> | 391 | <version>${shiro.version}</version> |
397 | </dependency> | 392 | </dependency> |
398 | <!-- SECURITY end --> | 393 | <!-- SECURITY end --> |
399 | 394 | ||
400 | <!-- Activiti --> | 395 | <!-- Activiti --> |
401 | <dependency> | 396 | <dependency> |
402 | <groupId>org.activiti</groupId> | 397 | <groupId>org.activiti</groupId> |
... | @@ -430,21 +425,21 @@ | ... | @@ -430,21 +425,21 @@ |
430 | <dependency> | 425 | <dependency> |
431 | <groupId>org.activiti</groupId> | 426 | <groupId>org.activiti</groupId> |
432 | <artifactId>activiti-modeler</artifactId> | 427 | <artifactId>activiti-modeler</artifactId> |
433 | <version>${activiti.version}</version> | 428 | <version>${activiti.version}</version> |
434 | </dependency> | 429 | </dependency> |
435 | <dependency> | 430 | <dependency> |
436 | <groupId>org.activiti</groupId> | 431 | <groupId>org.activiti</groupId> |
437 | <artifactId>activiti-diagram-rest</artifactId> | 432 | <artifactId>activiti-diagram-rest</artifactId> |
438 | <version>${activiti.version}</version> | 433 | <version>${activiti.version}</version> |
439 | </dependency> | 434 | </dependency> |
440 | 435 | ||
441 | <!-- 支持activiti缓存 --> | 436 | <!-- 支持activiti缓存 --> |
442 | <!-- <dependency> | 437 | <!-- <dependency> |
443 | <groupId>org.infinispan</groupId> | 438 | <groupId>org.infinispan</groupId> |
444 | <artifactId>infinispan-core</artifactId> | 439 | <artifactId>infinispan-core</artifactId> |
445 | <version>5.1.7.Final</version> | 440 | <version>5.1.7.Final</version> |
446 | </dependency> --> | 441 | </dependency> --> |
447 | 442 | ||
448 | <!-- LOGGING begin --> | 443 | <!-- LOGGING begin --> |
449 | <dependency> | 444 | <dependency> |
450 | <groupId>org.slf4j</groupId> | 445 | <groupId>org.slf4j</groupId> |
... | @@ -469,7 +464,7 @@ | ... | @@ -469,7 +464,7 @@ |
469 | <version>${slf4j.version}</version> | 464 | <version>${slf4j.version}</version> |
470 | </dependency> | 465 | </dependency> |
471 | <!-- LOGGING end --> | 466 | <!-- LOGGING end --> |
472 | 467 | ||
473 | <!-- GENERAL UTILS begin --> | 468 | <!-- GENERAL UTILS begin --> |
474 | <dependency> | 469 | <dependency> |
475 | <groupId>org.apache.commons</groupId> | 470 | <groupId>org.apache.commons</groupId> |
... | @@ -487,9 +482,9 @@ | ... | @@ -487,9 +482,9 @@ |
487 | <version>${commons-codec.version}</version> | 482 | <version>${commons-codec.version}</version> |
488 | </dependency> | 483 | </dependency> |
489 | <dependency> | 484 | <dependency> |
490 | <groupId>commons-fileupload</groupId> | 485 | <groupId>commons-fileupload</groupId> |
491 | <artifactId>commons-fileupload</artifactId> | 486 | <artifactId>commons-fileupload</artifactId> |
492 | <version>${commons-fileupload.version}</version> | 487 | <version>${commons-fileupload.version}</version> |
493 | </dependency> | 488 | </dependency> |
494 | <dependency> | 489 | <dependency> |
495 | <groupId>commons-beanutils</groupId> | 490 | <groupId>commons-beanutils</groupId> |
... | @@ -502,14 +497,14 @@ | ... | @@ -502,14 +497,14 @@ |
502 | </exclusion> | 497 | </exclusion> |
503 | </exclusions> | 498 | </exclusions> |
504 | </dependency> | 499 | </dependency> |
505 | 500 | ||
506 | <!-- google java lib --> | 501 | <!-- google java lib --> |
507 | <dependency> | 502 | <dependency> |
508 | <groupId>com.google.guava</groupId> | 503 | <groupId>com.google.guava</groupId> |
509 | <artifactId>guava</artifactId> | 504 | <artifactId>guava</artifactId> |
510 | <version>${guava.version}</version> | 505 | <version>${guava.version}</version> |
511 | </dependency> | 506 | </dependency> |
512 | 507 | ||
513 | <!-- jackson json --> | 508 | <!-- jackson json --> |
514 | <dependency> | 509 | <dependency> |
515 | <groupId>com.fasterxml.jackson.core</groupId> | 510 | <groupId>com.fasterxml.jackson.core</groupId> |
... | @@ -531,35 +526,35 @@ | ... | @@ -531,35 +526,35 @@ |
531 | <artifactId>jackson-module-jaxb-annotations</artifactId> | 526 | <artifactId>jackson-module-jaxb-annotations</artifactId> |
532 | <version>${jackson.version}</version> | 527 | <version>${jackson.version}</version> |
533 | </dependency> | 528 | </dependency> |
534 | 529 | ||
535 | <!-- fastjson json | 530 | <!-- fastjson json |
536 | <dependency> | 531 | <dependency> |
537 | <groupId>com.alibaba</groupId> | 532 | <groupId>com.alibaba</groupId> |
538 | <artifactId>fastjson</artifactId> | 533 | <artifactId>fastjson</artifactId> |
539 | <version>${fastjson.version}</version> | 534 | <version>${fastjson.version}</version> |
540 | </dependency> --> | 535 | </dependency> --> |
541 | 536 | ||
542 | <!-- xstream xml --> | 537 | <!-- xstream xml --> |
543 | <dependency> | 538 | <dependency> |
544 | <groupId>com.thoughtworks.xstream</groupId> | 539 | <groupId>com.thoughtworks.xstream</groupId> |
545 | <artifactId>xstream</artifactId> | 540 | <artifactId>xstream</artifactId> |
546 | <version>${xstream.version}</version> | 541 | <version>${xstream.version}</version> |
547 | </dependency> | 542 | </dependency> |
548 | 543 | ||
549 | <!-- pojo copy --> | 544 | <!-- pojo copy --> |
550 | <dependency> | 545 | <dependency> |
551 | <groupId>net.sf.dozer</groupId> | 546 | <groupId>net.sf.dozer</groupId> |
552 | <artifactId>dozer</artifactId> | 547 | <artifactId>dozer</artifactId> |
553 | <version>${dozer.version}</version> | 548 | <version>${dozer.version}</version> |
554 | </dependency> | 549 | </dependency> |
555 | 550 | ||
556 | <!-- freemarker engine --> | 551 | <!-- freemarker engine --> |
557 | <dependency> | 552 | <dependency> |
558 | <groupId>org.freemarker</groupId> | 553 | <groupId>org.freemarker</groupId> |
559 | <artifactId>freemarker</artifactId> | 554 | <artifactId>freemarker</artifactId> |
560 | <version>${freemarker.version}</version> | 555 | <version>${freemarker.version}</version> |
561 | </dependency> | 556 | </dependency> |
562 | 557 | ||
563 | <!-- email --> | 558 | <!-- email --> |
564 | <dependency> | 559 | <dependency> |
565 | <groupId>javax.mail</groupId> | 560 | <groupId>javax.mail</groupId> |
... | @@ -571,7 +566,7 @@ | ... | @@ -571,7 +566,7 @@ |
571 | <artifactId>activation</artifactId> | 566 | <artifactId>activation</artifactId> |
572 | <version>1.1.1</version> | 567 | <version>1.1.1</version> |
573 | </dependency> | 568 | </dependency> |
574 | 569 | ||
575 | <!-- poi office --> | 570 | <!-- poi office --> |
576 | <dependency> | 571 | <dependency> |
577 | <groupId>org.apache.poi</groupId> | 572 | <groupId>org.apache.poi</groupId> |
... | @@ -588,14 +583,14 @@ | ... | @@ -588,14 +583,14 @@ |
588 | <artifactId>poi-ooxml-schemas</artifactId> | 583 | <artifactId>poi-ooxml-schemas</artifactId> |
589 | <version>${poi.version}</version> | 584 | <version>${poi.version}</version> |
590 | </dependency> | 585 | </dependency> |
591 | 586 | ||
592 | <!-- image util --> | 587 | <!-- image util --> |
593 | <dependency> | 588 | <dependency> |
594 | <groupId>com.drewnoakes</groupId> | 589 | <groupId>com.drewnoakes</groupId> |
595 | <artifactId>metadata-extractor</artifactId> | 590 | <artifactId>metadata-extractor</artifactId> |
596 | <version>2.6.2</version> | 591 | <version>2.6.2</version> |
597 | </dependency> | 592 | </dependency> |
598 | 593 | ||
599 | <!-- 条形码、二维码生成 --> | 594 | <!-- 条形码、二维码生成 --> |
600 | <dependency> | 595 | <dependency> |
601 | <groupId>com.google.zxing</groupId> | 596 | <groupId>com.google.zxing</groupId> |
... | @@ -607,7 +602,7 @@ | ... | @@ -607,7 +602,7 @@ |
607 | <artifactId>javase</artifactId> | 602 | <artifactId>javase</artifactId> |
608 | <version>2.2</version> | 603 | <version>2.2</version> |
609 | </dependency> | 604 | </dependency> |
610 | 605 | ||
611 | <!-- 中文分词 --> | 606 | <!-- 中文分词 --> |
612 | <dependency> | 607 | <dependency> |
613 | <groupId>org.wltea</groupId> | 608 | <groupId>org.wltea</groupId> |
... | @@ -615,7 +610,7 @@ | ... | @@ -615,7 +610,7 @@ |
615 | <version>2012_u6</version> | 610 | <version>2012_u6</version> |
616 | </dependency> | 611 | </dependency> |
617 | <!-- GENERAL UTILS end --> | 612 | <!-- GENERAL UTILS end --> |
618 | 613 | ||
619 | <!-- CKFinder begin --> | 614 | <!-- CKFinder begin --> |
620 | <dependency> | 615 | <dependency> |
621 | <groupId>net.coobird</groupId> | 616 | <groupId>net.coobird</groupId> |
... | @@ -643,7 +638,7 @@ | ... | @@ -643,7 +638,7 @@ |
643 | <version>2.3</version> | 638 | <version>2.3</version> |
644 | </dependency> | 639 | </dependency> |
645 | <!-- CKFinder end --> | 640 | <!-- CKFinder end --> |
646 | 641 | ||
647 | <!-- TEST begin --> | 642 | <!-- TEST begin --> |
648 | <dependency> | 643 | <dependency> |
649 | <groupId>junit</groupId> | 644 | <groupId>junit</groupId> |
... | @@ -656,70 +651,70 @@ | ... | @@ -656,70 +651,70 @@ |
656 | <version>${spring.version}</version> | 651 | <version>${spring.version}</version> |
657 | </dependency> | 652 | </dependency> |
658 | <!-- TEST end --> | 653 | <!-- TEST end --> |
659 | 654 | ||
660 | <!-- User Agent --> | 655 | <!-- User Agent --> |
661 | <dependency> | 656 | <dependency> |
662 | <groupId>eu.bitwalker</groupId> | 657 | <groupId>eu.bitwalker</groupId> |
663 | <artifactId>UserAgentUtils</artifactId> | 658 | <artifactId>UserAgentUtils</artifactId> |
664 | <version>1.14</version> | 659 | <version>1.14</version> |
665 | </dependency> | 660 | </dependency> |
666 | <!-- Cxf web Service --> | 661 | <!-- Cxf web Service --> |
667 | <dependency> | ||
668 | <groupId>org.apache.cxf</groupId> | ||
669 | <artifactId>cxf</artifactId> | ||
670 | <version>2.7.0</version> | ||
671 | </dependency> | ||
672 | <dependency> | ||
673 | <groupId>org.apache.neethi</groupId> | ||
674 | <artifactId>neethi</artifactId> | ||
675 | <version>3.0.3</version> | ||
676 | </dependency> | ||
677 | <dependency> | ||
678 | <groupId>wsdl4j</groupId> | ||
679 | <artifactId>wsdl4j</artifactId> | ||
680 | <version>1.6.3</version> | ||
681 | </dependency> | ||
682 | <dependency> | 662 | <dependency> |
683 | <groupId>org.apache.ws.xmlschema</groupId> | 663 | <groupId>org.apache.cxf</groupId> |
684 | <artifactId>xmlschema-core</artifactId> | 664 | <artifactId>cxf</artifactId> |
685 | <version>2.0.3</version> | 665 | <version>2.7.0</version> |
686 | <type>jar</type> | ||
687 | </dependency> | 666 | </dependency> |
688 | |||
689 | <dependency> | 667 | <dependency> |
690 | <groupId>org.apache.httpcomponents</groupId> | 668 | <groupId>org.apache.neethi</groupId> |
691 | <artifactId>httpclient</artifactId> | 669 | <artifactId>neethi</artifactId> |
692 | <version>4.2.1</version> | 670 | <version>3.0.3</version> |
693 | </dependency> | 671 | </dependency> |
694 | |||
695 | <dependency> | 672 | <dependency> |
696 | <groupId>org.apache.httpcomponents</groupId> | 673 | <groupId>wsdl4j</groupId> |
697 | <artifactId>httpcore</artifactId> | 674 | <artifactId>wsdl4j</artifactId> |
698 | <version>4.2.2</version> | 675 | <version>1.6.3</version> |
699 | </dependency> | 676 | </dependency> |
700 | <dependency> | 677 | <dependency> |
701 | <groupId>org.apache.httpcomponents</groupId> | 678 | <groupId>org.apache.ws.xmlschema</groupId> |
702 | <artifactId>httpcore-nio</artifactId> | 679 | <artifactId>xmlschema-core</artifactId> |
703 | <version>4.2.2</version> | 680 | <version>2.0.3</version> |
681 | <type>jar</type> | ||
704 | </dependency> | 682 | </dependency> |
705 | 683 | ||
684 | <!--<dependency>--> | ||
685 | <!-- <groupId>org.apache.httpcomponents</groupId>--> | ||
686 | <!-- <artifactId>httpclient</artifactId>--> | ||
687 | <!-- <version>4.2.1</version>--> | ||
688 | <!--</dependency>--> | ||
689 | |||
690 | <!--<dependency>--> | ||
691 | <!-- <groupId>org.apache.httpcomponents</groupId>--> | ||
692 | <!-- <artifactId>httpcore</artifactId>--> | ||
693 | <!-- <version>4.2.2</version>--> | ||
694 | <!--</dependency>--> | ||
706 | <dependency> | 695 | <dependency> |
707 | <groupId>org.apache.httpcomponents</groupId> | 696 | <groupId>org.apache.httpcomponents</groupId> |
708 | <artifactId>httpasyncclient</artifactId> | 697 | <artifactId>httpcore-nio</artifactId> |
709 | <version>4.0</version> | 698 | <version>4.2.2</version> |
710 | </dependency> | 699 | </dependency> |
700 | |||
711 | <dependency> | 701 | <dependency> |
712 | <groupId>javax.xml.ws</groupId> | 702 | <groupId>org.apache.httpcomponents</groupId> |
713 | <artifactId>jaxws-api</artifactId> | 703 | <artifactId>httpasyncclient</artifactId> |
714 | <version>2.2.11</version> | 704 | <version>4.0</version> |
715 | </dependency> | 705 | </dependency> |
716 | 706 | <!--<dependency>--> | |
707 | <!-- <groupId>javax.xml.ws</groupId>--> | ||
708 | <!-- <artifactId>jaxws-api</artifactId>--> | ||
709 | <!-- <version>2.2.11</version>--> | ||
710 | <!--</dependency>--> | ||
711 | |||
717 | 712 | ||
718 | <!-- 数据上报 --> | 713 | <!-- 数据上报 --> |
719 | <dependency> | 714 | <dependency> |
720 | <groupId>org.apache.santuario</groupId> | 715 | <groupId>org.apache.santuario</groupId> |
721 | <artifactId>xmlsec</artifactId> | 716 | <artifactId>xmlsec</artifactId> |
722 | <version>1.5.2</version> | 717 | <version>1.5.2</version> |
723 | </dependency> | 718 | </dependency> |
724 | <dependency> | 719 | <dependency> |
725 | <groupId>com.thinkgem.jeesite</groupId> | 720 | <groupId>com.thinkgem.jeesite</groupId> |
... | @@ -736,69 +731,69 @@ | ... | @@ -736,69 +731,69 @@ |
736 | <systemPath>${project.basedir}/src/main/webapp/WEB-INF/lib/jaxen-1.1.6.jar</systemPath> | 731 | <systemPath>${project.basedir}/src/main/webapp/WEB-INF/lib/jaxen-1.1.6.jar</systemPath> |
737 | </dependency> | 732 | </dependency> |
738 | <!-- 网路传输 --> | 733 | <!-- 网路传输 --> |
739 | 734 | ||
740 | <!--http接口--> | 735 | <!--http接口--> |
741 | <dependency> | 736 | <dependency> |
742 | <groupId>com.jcraft</groupId> | 737 | <groupId>com.jcraft</groupId> |
743 | <artifactId>jsch</artifactId> | 738 | <artifactId>jsch</artifactId> |
744 | <version>0.1.50</version> | 739 | <version>0.1.50</version> |
745 | </dependency> | 740 | </dependency> |
746 | 741 | ||
747 | <dependency> | 742 | <dependency> |
748 | <groupId>org.apache.httpcomponents</groupId> | 743 | <groupId>org.apache.httpcomponents</groupId> |
749 | <artifactId>httpclient</artifactId> | 744 | <artifactId>httpclient</artifactId> |
750 | <version>4.3.6</version> | 745 | <version>4.3.6</version> |
751 | </dependency> | 746 | </dependency> |
752 | 747 | ||
753 | <dependency> | 748 | <dependency> |
754 | <groupId>org.apache.httpcomponents</groupId> | 749 | <groupId>org.apache.httpcomponents</groupId> |
755 | <artifactId>httpcore</artifactId> | 750 | <artifactId>httpcore</artifactId> |
756 | <version>4.3.3</version> | 751 | <version>4.3.3</version> |
757 | </dependency> | 752 | </dependency> |
758 | 753 | ||
759 | <!-- 阿里云短信包 --> | 754 | <!-- 阿里云短信包 --> |
760 | <dependency> | 755 | <dependency> |
761 | <groupId>com.aliyun</groupId> | 756 | <groupId>com.aliyun</groupId> |
762 | <artifactId>aliyun-java-sdk-dysmsapi</artifactId> | 757 | <artifactId>aliyun-java-sdk-dysmsapi</artifactId> |
763 | <version>1.0.0</version> | 758 | <version>1.0.0</version> |
764 | </dependency> | 759 | </dependency> |
765 | <dependency> | 760 | <dependency> |
766 | <groupId>com.aliyun</groupId> | 761 | <groupId>com.aliyun</groupId> |
767 | <artifactId>aliyun-java-sdk-core</artifactId> | 762 | <artifactId>aliyun-java-sdk-core</artifactId> |
768 | <version>3.3.0</version> | 763 | <version>3.3.0</version> |
769 | </dependency> | 764 | </dependency> |
770 | <!-- --> | 765 | <!-- --> |
771 | <dependency> | ||
772 | <groupId>net.sf.json-lib</groupId> | ||
773 | <artifactId>json-lib</artifactId> | ||
774 | <version>2.4</version> | ||
775 | <classifier>jdk15</classifier> | ||
776 | </dependency> | ||
777 | <!-- 自定义jar依赖包 | ||
778 | <dependency> | 766 | <dependency> |
779 | <groupId>com.thinkgem.jeesite</groupId> | 767 | <groupId>net.sf.json-lib</groupId> |
780 | <artifactId>test-core</artifactId> | 768 | <artifactId>json-lib</artifactId> |
781 | <version>1.0</version> | 769 | <version>2.4</version> |
782 | <scope>system</scope> | 770 | <classifier>jdk15</classifier> |
783 | <systemPath>${project.basedir}/src/main/webapp/WEB-INF/lib/test-core-1.0.jar</systemPath> | 771 | </dependency> |
784 | </dependency> --> | 772 | <!-- 自定义jar依赖包 |
785 | 773 | <dependency> | |
786 | <!-- 使用 Jetty JSP引擎 | 774 | <groupId>com.thinkgem.jeesite</groupId> |
787 | <dependency> | 775 | <artifactId>test-core</artifactId> |
788 | <groupId>org.eclipse.jetty</groupId> | 776 | <version>1.0</version> |
789 | <artifactId>jetty-jsp</artifactId> | 777 | <scope>system</scope> |
790 | <version>${jetty.version}</version> | 778 | <systemPath>${project.basedir}/src/main/webapp/WEB-INF/lib/test-core-1.0.jar</systemPath> |
791 | <exclusions> | 779 | </dependency> --> |
792 | <exclusion> | 780 | |
793 | <groupId>org.eclipse.jetty.orbit</groupId> | 781 | <!-- 使用 Jetty JSP引擎 |
794 | <artifactId>javax.servlet</artifactId> | 782 | <dependency> |
795 | </exclusion> | 783 | <groupId>org.eclipse.jetty</groupId> |
796 | <exclusion> | 784 | <artifactId>jetty-jsp</artifactId> |
797 | <groupId>org.eclipse.jetty.orbit</groupId> | 785 | <version>${jetty.version}</version> |
798 | <artifactId>org.apache.taglibs.standard.glassfish</artifactId> | 786 | <exclusions> |
799 | </exclusion> | 787 | <exclusion> |
800 | </exclusions> | 788 | <groupId>org.eclipse.jetty.orbit</groupId> |
801 | </dependency> --> | 789 | <artifactId>javax.servlet</artifactId> |
790 | </exclusion> | ||
791 | <exclusion> | ||
792 | <groupId>org.eclipse.jetty.orbit</groupId> | ||
793 | <artifactId>org.apache.taglibs.standard.glassfish</artifactId> | ||
794 | </exclusion> | ||
795 | </exclusions> | ||
796 | </dependency> --> | ||
802 | 797 | ||
803 | <dependency> | 798 | <dependency> |
804 | <groupId>javax.xml.ws</groupId> | 799 | <groupId>javax.xml.ws</groupId> |
... | @@ -814,25 +809,54 @@ | ... | @@ -814,25 +809,54 @@ |
814 | <type>jar</type> | 809 | <type>jar</type> |
815 | <scope>compile</scope> | 810 | <scope>compile</scope> |
816 | </dependency> | 811 | </dependency> |
817 | 812 | ||
818 | <dependency> | 813 | <dependency> |
819 | <groupId>commons-net</groupId> | 814 | <groupId>commons-net</groupId> |
820 | <artifactId>commons-net</artifactId> | 815 | <artifactId>commons-net</artifactId> |
821 | <version>3.6</version> | 816 | <version>3.6</version> |
822 | </dependency> | 817 | </dependency> |
823 | 818 | ||
824 | <!--生成pdf --> | 819 | <!--生成pdf --> |
825 | <!-- <dependency> --> | 820 | <!-- <dependency> --> |
826 | <!-- <groupId>com.itextpdf</groupId> --> | 821 | <!-- <groupId>com.itextpdf</groupId> --> |
827 | <!-- <artifactId>itextpdf</artifactId> --> | 822 | <!-- <artifactId>itextpdf</artifactId> --> |
828 | <!-- <version>5.5.10</version> --> | 823 | <!-- <version>5.5.10</version> --> |
829 | <!-- </dependency> --> | 824 | <!-- </dependency> --> |
830 | 825 | ||
831 | <!-- <dependency> --> | 826 | <!-- <dependency> --> |
832 | <!-- <groupId>com.itextpdf</groupId> --> | 827 | <!-- <groupId>com.itextpdf</groupId> --> |
833 | <!-- <artifactId>itext-asian</artifactId> --> | 828 | <!-- <artifactId>itext-asian</artifactId> --> |
834 | <!-- <version>5.2.0</version> --> | 829 | <!-- <version>5.2.0</version> --> |
835 | <!-- </dependency> --> | 830 | <!-- </dependency> --> |
831 | |||
832 | <dependency> | ||
833 | <groupId>javax.jws</groupId> | ||
834 | <artifactId>javax.jws-api</artifactId> | ||
835 | <version>1.1</version> | ||
836 | </dependency> | ||
837 | |||
838 | <dependency> | ||
839 | <groupId>javax.annotation</groupId> | ||
840 | <artifactId>javax.annotation-api</artifactId> | ||
841 | <version>1.3.2</version> | ||
842 | </dependency> | ||
843 | |||
844 | <dependency> | ||
845 | <groupId>javax.xml.bind</groupId> | ||
846 | <artifactId>jaxb-api</artifactId> | ||
847 | <version>2.2.11</version> | ||
848 | </dependency> | ||
849 | <dependency> | ||
850 | <groupId>com.sun.xml.bind</groupId> | ||
851 | <artifactId>jaxb-core</artifactId> | ||
852 | <version>2.2.11</version> | ||
853 | </dependency> | ||
854 | <dependency> | ||
855 | <groupId>com.sun.xml.bind</groupId> | ||
856 | <artifactId>jaxb-impl</artifactId> | ||
857 | <version>2.2.11</version> | ||
858 | </dependency> | ||
859 | |||
836 | </dependencies> | 860 | </dependencies> |
837 | 861 | ||
838 | <build> | 862 | <build> |
... | @@ -844,53 +868,53 @@ | ... | @@ -844,53 +868,53 @@ |
844 | <artifactId>maven-compiler-plugin</artifactId> | 868 | <artifactId>maven-compiler-plugin</artifactId> |
845 | <version>2.5.1</version> | 869 | <version>2.5.1</version> |
846 | <configuration> | 870 | <configuration> |
847 | <source>${jdk.version}</source> | 871 | <source>8</source> |
848 | <target>${jdk.version}</target> | 872 | <target>8</target> |
849 | <showWarnings>true</showWarnings> | 873 | <showWarnings>true</showWarnings> |
850 | </configuration> | 874 | </configuration> |
851 | </plugin> | 875 | </plugin> |
852 | 876 | ||
853 | <!-- JSP 预编译插件 jspweb.xml | 877 | <!-- JSP 预编译插件 jspweb.xml |
854 | <plugin> | 878 | <plugin> |
855 | <groupId>org.jasig.mojo.jspc</groupId> | 879 | <groupId>org.jasig.mojo.jspc</groupId> |
856 | <artifactId>jspc-maven-plugin</artifactId> | 880 | <artifactId>jspc-maven-plugin</artifactId> |
857 | <version>2.0.0</version> | 881 | <version>2.0.0</version> |
858 | <configuration> | 882 | <configuration> |
859 | <injectString><!- - [INSERT FRAGMENT HERE] - -></injectString> | 883 | <injectString><!- - [INSERT FRAGMENT HERE] - -></injectString> |
860 | </configuration> | 884 | </configuration> |
861 | <executions> | 885 | <executions> |
862 | <execution> | 886 | <execution> |
863 | <goals> | 887 | <goals> |
864 | <goal>compile</goal> | 888 | <goal>compile</goal> |
865 | </goals> | 889 | </goals> |
866 | </execution> | 890 | </execution> |
867 | </executions> | 891 | </executions> |
868 | <dependencies> | 892 | <dependencies> |
869 | <dependency> | 893 | <dependency> |
870 | <groupId>org.jasig.mojo.jspc</groupId> | 894 | <groupId>org.jasig.mojo.jspc</groupId> |
871 | <artifactId>jspc-compiler-tomcat6</artifactId> | 895 | <artifactId>jspc-compiler-tomcat6</artifactId> |
872 | <version>2.0.0</version> | 896 | <version>2.0.0</version> |
873 | </dependency> | 897 | </dependency> |
874 | </dependencies> | 898 | </dependencies> |
875 | </plugin>--> | 899 | </plugin>--> |
876 | 900 | ||
877 | <!-- Jetty JSP 预编译插件 web.xml6 | 901 | <!-- Jetty JSP 预编译插件 web.xml6 |
878 | <plugin> | 902 | <plugin> |
879 | <groupId>org.mortbay.jetty</groupId> | 903 | <groupId>org.mortbay.jetty</groupId> |
880 | <artifactId>jetty-jspc-maven-plugin</artifactId> | 904 | <artifactId>jetty-jspc-maven-plugin</artifactId> |
881 | <version>${jetty.version}</version> | 905 | <version>${jetty.version}</version> |
882 | <configuration> | 906 | <configuration> |
883 | <insertionMarker><!- - [INSERT FRAGMENT HERE] - -></insertionMarker> | 907 | <insertionMarker><!- - [INSERT FRAGMENT HERE] - -></insertionMarker> |
884 | </configuration> | 908 | </configuration> |
885 | <executions> | 909 | <executions> |
886 | <execution> | 910 | <execution> |
887 | <goals> | 911 | <goals> |
888 | <goal>jspc</goal> | 912 | <goal>jspc</goal> |
889 | </goals> | 913 | </goals> |
890 | </execution> | 914 | </execution> |
891 | </executions> | 915 | </executions> |
892 | </plugin>--> | 916 | </plugin>--> |
893 | 917 | ||
894 | <!-- 打包jar文件时,配置manifest文件,加入lib包的jar依赖 --> | 918 | <!-- 打包jar文件时,配置manifest文件,加入lib包的jar依赖 --> |
895 | <plugin> | 919 | <plugin> |
896 | <groupId>org.apache.maven.plugins</groupId> | 920 | <groupId>org.apache.maven.plugins</groupId> |
... | @@ -908,55 +932,56 @@ | ... | @@ -908,55 +932,56 @@ |
908 | <configuration> | 932 | <configuration> |
909 | <classesDirectory>${project.outputDirectory}</classesDirectory> | 933 | <classesDirectory>${project.outputDirectory}</classesDirectory> |
910 | <finalName>odm-webservice</finalName> | 934 | <finalName>odm-webservice</finalName> |
911 | <outputDirectory>${project.build.directory}/${project.artifactId}/WEB-INF/lib</outputDirectory> | 935 | <outputDirectory>${project.build.directory}/${project.artifactId}/WEB-INF/lib |
936 | </outputDirectory> | ||
912 | <includes> | 937 | <includes> |
913 | <include>com/thinkgem/jeesite/modules/restws/**</include> | 938 | <include>com/thinkgem/jeesite/modules/restws/**</include> |
914 | </includes> | 939 | </includes> |
915 | </configuration> | 940 | </configuration> |
916 | </execution> | 941 | </execution> |
917 | </executions> | 942 | </executions> |
918 | </plugin> | 943 | </plugin> |
919 | 944 | ||
920 | <!-- 混淆代码 | 945 | <!-- 混淆代码 |
921 | <plugin> | 946 | <plugin> |
922 | <groupId>com.github.wvengen</groupId> | 947 | <groupId>com.github.wvengen</groupId> |
923 | <artifactId>proguard-maven-plugin</artifactId> | 948 | <artifactId>proguard-maven-plugin</artifactId> |
924 | <version>2.0.6</version> | 949 | <version>2.0.6</version> |
925 | <executions> | 950 | <executions> |
926 | <execution> | 951 | <execution> |
927 | <phase>prepare-package</phase> | 952 | <phase>prepare-package</phase> |
928 | <goals> | 953 | <goals> |
929 | <goal>proguard</goal> | 954 | <goal>proguard</goal> |
930 | </goals> | 955 | </goals> |
931 | </execution> | 956 | </execution> |
932 | </executions> | 957 | </executions> |
933 | <configuration> | 958 | <configuration> |
934 | <obfuscate>true</obfuscate> | 959 | <obfuscate>true</obfuscate> |
935 | <options> | 960 | <options> |
936 | <option>-injars ${project.build.directory}/${project.artifactId}/WEB-INF/lib/jeesite.jar</option> | 961 | <option>-injars ${project.build.directory}/${project.artifactId}/WEB-INF/lib/jeesite.jar</option> |
937 | </options> | 962 | </options> |
938 | <outjar>${project.artifactId}/WEB-INF/lib/jeesite_out.jar</outjar> | 963 | <outjar>${project.artifactId}/WEB-INF/lib/jeesite_out.jar</outjar> |
939 | <outputDirectory>${project.build.directory}</outputDirectory> | 964 | <outputDirectory>${project.build.directory}</outputDirectory> |
940 | <proguardInclude>${basedir}/proguard.cfg</proguardInclude> | 965 | <proguardInclude>${basedir}/proguard.cfg</proguardInclude> |
941 | <source>${jdk.version}</source> | 966 | <source>${jdk.version}</source> |
942 | <target>${jdk.version}</target> | 967 | <target>${jdk.version}</target> |
943 | <encoding>${project.build.sourceEncoding}</encoding> | 968 | <encoding>${project.build.sourceEncoding}</encoding> |
944 | <libs> | 969 | <libs> |
945 | <lib>${java.home}/lib/rt.jar</lib> | 970 | <lib>${java.home}/lib/rt.jar</lib> |
946 | <lib>${java.home}/lib/jsse.jar</lib> | 971 | <lib>${java.home}/lib/jsse.jar</lib> |
947 | <lib>${java.home}/lib/jce.jar</lib> | 972 | <lib>${java.home}/lib/jce.jar</lib> |
948 | </libs> | 973 | </libs> |
949 | <addMavenDescriptor>false</addMavenDescriptor> | 974 | <addMavenDescriptor>false</addMavenDescriptor> |
950 | </configuration> | 975 | </configuration> |
951 | <dependencies> | 976 | <dependencies> |
952 | <dependency> | 977 | <dependency> |
953 | <groupId>net.sf.proguard</groupId> | 978 | <groupId>net.sf.proguard</groupId> |
954 | <artifactId>proguard-base</artifactId> | 979 | <artifactId>proguard-base</artifactId> |
955 | <version>4.9</version> | 980 | <version>4.9</version> |
956 | <scope>runtime</scope> | 981 | <scope>runtime</scope> |
957 | </dependency> | 982 | </dependency> |
958 | </dependencies> | 983 | </dependencies> |
959 | </plugin> --> | 984 | </plugin> --> |
960 | 985 | ||
961 | <!-- war 打包插件, 设定war包名称不带版本号 --> | 986 | <!-- war 打包插件, 设定war包名称不带版本号 --> |
962 | <plugin> | 987 | <plugin> |
... | @@ -987,12 +1012,12 @@ | ... | @@ -987,12 +1012,12 @@ |
987 | <!-- userfiles/** --><!-- ,/**/*.jsp -->, | 1012 | <!-- userfiles/** --><!-- ,/**/*.jsp -->, |
988 | test/** | 1013 | test/** |
989 | </warSourceExcludes> | 1014 | </warSourceExcludes> |
990 | <webappDirectory>${project.build.directory}/${project.artifactId}</webappDirectory><!-- | 1015 | <webappDirectory>${project.build.directory}/${project.artifactId}</webappDirectory><!-- |
991 | <webXml>${project.basedir}/target/jspweb.xml</webXml> --> | 1016 | <webXml>${project.basedir}/target/jspweb.xml</webXml> --> |
992 | <warName>${project.artifactId}</warName> | 1017 | <warName>${project.artifactId}</warName> |
993 | </configuration> | 1018 | </configuration> |
994 | </plugin> | 1019 | </plugin> |
995 | 1020 | ||
996 | <!-- Eclipse 插件 --> | 1021 | <!-- Eclipse 插件 --> |
997 | <plugin> | 1022 | <plugin> |
998 | <groupId>org.apache.maven.plugins</groupId> | 1023 | <groupId>org.apache.maven.plugins</groupId> |
... | @@ -1017,31 +1042,31 @@ | ... | @@ -1017,31 +1042,31 @@ |
1017 | </additionalProjectnatures> | 1042 | </additionalProjectnatures> |
1018 | </configuration> | 1043 | </configuration> |
1019 | </plugin> | 1044 | </plugin> |
1020 | 1045 | ||
1021 | <!-- tomcat6插件 --> | 1046 | <!-- tomcat6插件 --> |
1022 | <!-- <plugin>--> | 1047 | <plugin> |
1023 | <!-- <groupId>org.apache.tomcat.maven</groupId>--> | 1048 | <groupId>org.apache.tomcat.maven</groupId> |
1024 | <!-- <artifactId>tomcat6-maven-plugin</artifactId>--> | 1049 | <artifactId>tomcat6-maven-plugin</artifactId> |
1025 | <!-- <version>${tomcat.version}</version> --> | 1050 | <version>${tomcat.version}</version> |
1026 | <!-- <configuration>--> | 1051 | <configuration> |
1027 | <!-- <port>${webserver.port}</port>--> | 1052 | <port>${webserver.port}</port> |
1028 | <!-- <path>/${project.artifactId}</path>--> | 1053 | <path>/${project.artifactId}</path> |
1029 | <!-- <uriEncoding>${project.build.sourceEncoding}</uriEncoding>--> | 1054 | <uriEncoding>${project.build.sourceEncoding}</uriEncoding> |
1030 | <!-- </configuration>--> | 1055 | </configuration> |
1031 | <!-- </plugin> --> | 1056 | </plugin> |
1032 | 1057 | ||
1033 | <!-- tomcat7插件 --> | 1058 | <!-- tomcat7插件 --> |
1034 | <plugin> | 1059 | <plugin> |
1035 | <groupId>org.apache.tomcat.maven</groupId> | 1060 | <groupId>org.apache.tomcat.maven</groupId> |
1036 | <artifactId>tomcat7-maven-plugin</artifactId> | 1061 | <artifactId>tomcat7-maven-plugin</artifactId> |
1037 | <version>${tomcat.version}</version> | 1062 | <version>${tomcat.version}</version> |
1038 | <configuration> | 1063 | <configuration> |
1039 | <port>${webserver.port}</port> | 1064 | <port>${webserver.port}</port> |
1040 | <path>/${project.artifactId}</path> | 1065 | <path>/${project.artifactId}</path> |
1041 | <uriEncoding>${project.build.sourceEncoding}</uriEncoding> | 1066 | <uriEncoding>${project.build.sourceEncoding}</uriEncoding> |
1042 | </configuration> | 1067 | </configuration> |
1043 | </plugin> | 1068 | </plugin> |
1044 | 1069 | ||
1045 | <!-- jetty插件 --> | 1070 | <!-- jetty插件 --> |
1046 | <plugin> | 1071 | <plugin> |
1047 | <groupId>org.mortbay.jetty</groupId> | 1072 | <groupId>org.mortbay.jetty</groupId> |
... | @@ -1056,7 +1081,7 @@ | ... | @@ -1056,7 +1081,7 @@ |
1056 | <webAppConfig> | 1081 | <webAppConfig> |
1057 | <contextPath>/${project.artifactId}</contextPath> | 1082 | <contextPath>/${project.artifactId}</contextPath> |
1058 | </webAppConfig> | 1083 | </webAppConfig> |
1059 | <systemProperties> | 1084 | <systemProperties> |
1060 | <systemProperty> | 1085 | <systemProperty> |
1061 | <name>org.mortbay.util.URI.charset</name> | 1086 | <name>org.mortbay.util.URI.charset</name> |
1062 | <value>${project.build.sourceEncoding}</value> | 1087 | <value>${project.build.sourceEncoding}</value> |
... | @@ -1064,7 +1089,7 @@ | ... | @@ -1064,7 +1089,7 @@ |
1064 | </systemProperties> | 1089 | </systemProperties> |
1065 | </configuration> | 1090 | </configuration> |
1066 | </plugin> | 1091 | </plugin> |
1067 | 1092 | ||
1068 | <!-- resource插件 --> | 1093 | <!-- resource插件 --> |
1069 | <plugin> | 1094 | <plugin> |
1070 | <groupId>org.apache.maven.plugins</groupId> | 1095 | <groupId>org.apache.maven.plugins</groupId> |
... | @@ -1078,21 +1103,21 @@ | ... | @@ -1078,21 +1103,21 @@ |
1078 | <artifactId>maven-install-plugin</artifactId> | 1103 | <artifactId>maven-install-plugin</artifactId> |
1079 | <version>2.4</version> | 1104 | <version>2.4</version> |
1080 | </plugin> | 1105 | </plugin> |
1081 | 1106 | ||
1082 | <!-- clean插件 --> | 1107 | <!-- clean插件 --> |
1083 | <plugin> | 1108 | <plugin> |
1084 | <groupId>org.apache.maven.plugins</groupId> | 1109 | <groupId>org.apache.maven.plugins</groupId> |
1085 | <artifactId>maven-clean-plugin</artifactId> | 1110 | <artifactId>maven-clean-plugin</artifactId> |
1086 | <version>2.5</version> | 1111 | <version>2.5</version> |
1087 | </plugin> | 1112 | </plugin> |
1088 | 1113 | ||
1089 | <!-- ant插件 --> | 1114 | <!-- ant插件 --> |
1090 | <plugin> | 1115 | <plugin> |
1091 | <groupId>org.apache.maven.plugins</groupId> | 1116 | <groupId>org.apache.maven.plugins</groupId> |
1092 | <artifactId>maven-antrun-plugin</artifactId> | 1117 | <artifactId>maven-antrun-plugin</artifactId> |
1093 | <version>1.7</version> | 1118 | <version>1.7</version> |
1094 | </plugin> | 1119 | </plugin> |
1095 | 1120 | ||
1096 | <!-- dependency插件 --> | 1121 | <!-- dependency插件 --> |
1097 | <plugin> | 1122 | <plugin> |
1098 | <groupId>org.apache.maven.plugins</groupId> | 1123 | <groupId>org.apache.maven.plugins</groupId> |
... | @@ -1101,9 +1126,9 @@ | ... | @@ -1101,9 +1126,9 @@ |
1101 | </plugin> | 1126 | </plugin> |
1102 | </plugins> | 1127 | </plugins> |
1103 | </build> | 1128 | </build> |
1104 | 1129 | ||
1105 | <profiles> | 1130 | <profiles> |
1106 | <!-- 初始化数据库 --> | 1131 | <!-- 初始化数据库 --> |
1107 | <profile> | 1132 | <profile> |
1108 | <id>init-db</id> | 1133 | <id>init-db</id> |
1109 | <dependencies> | 1134 | <dependencies> |
... | @@ -1112,10 +1137,10 @@ | ... | @@ -1112,10 +1137,10 @@ |
1112 | <artifactId>dbunit</artifactId> | 1137 | <artifactId>dbunit</artifactId> |
1113 | <version>2.4.8</version> | 1138 | <version>2.4.8</version> |
1114 | </dependency> | 1139 | </dependency> |
1115 | <dependency> | 1140 | <dependency> |
1116 | <groupId>org.apache.poi</groupId> | 1141 | <groupId>org.apache.poi</groupId> |
1117 | <artifactId>poi</artifactId> | 1142 | <artifactId>poi</artifactId> |
1118 | <version>3.2-FINAL</version> | 1143 | <version>3.2-FINAL</version> |
1119 | </dependency> | 1144 | </dependency> |
1120 | </dependencies> | 1145 | </dependencies> |
1121 | <build> | 1146 | <build> |
... | @@ -1126,20 +1151,21 @@ | ... | @@ -1126,20 +1151,21 @@ |
1126 | <version>1.7</version> | 1151 | <version>1.7</version> |
1127 | <configuration> | 1152 | <configuration> |
1128 | <target> | 1153 | <target> |
1129 | 1154 | ||
1130 | <!-- mysql --> | 1155 | <!-- mysql --> |
1131 | <property name="dbunit.datatype" value="org.dbunit.ext.mysql.MySqlDataTypeFactory" /> | 1156 | <property name="dbunit.datatype" value="org.dbunit.ext.mysql.MySqlDataTypeFactory"/> |
1132 | 1157 | ||
1133 | <!-- mssql | 1158 | <!-- mssql |
1134 | <property name="dbunit.datatype" value="org.dbunit.ext.mssql.MsSqlDataTypeFactory" /> --> | 1159 | <property name="dbunit.datatype" value="org.dbunit.ext.mssql.MsSqlDataTypeFactory" /> --> |
1135 | 1160 | ||
1136 | <!-- oracle | 1161 | <!-- oracle |
1137 | <property name="dbunit.datatype" value="org.dbunit.ext.oracle.Oracle10DataTypeFactory" /> --> | 1162 | <property name="dbunit.datatype" value="org.dbunit.ext.oracle.Oracle10DataTypeFactory" /> --> |
1138 | 1163 | ||
1139 | <property file="src/main/resources/jeesite.properties" /> | 1164 | <property file="src/main/resources/jeesite.properties"/> |
1140 | <sql driver="${jdbc.driver}" url="${jdbc.url}" userid="${jdbc.username}" password="${jdbc.password}" | 1165 | <sql driver="${jdbc.driver}" url="${jdbc.url}" userid="${jdbc.username}" |
1141 | onerror="continue" encoding="${project.build.sourceEncoding}"> | 1166 | password="${jdbc.password}" |
1142 | <classpath refid="maven.test.classpath" /> | 1167 | onerror="continue" encoding="${project.build.sourceEncoding}"> |
1168 | <classpath refid="maven.test.classpath"/> | ||
1143 | <transaction src="db/sys/jeesite_${jdbc.type}.sql"/> | 1169 | <transaction src="db/sys/jeesite_${jdbc.type}.sql"/> |
1144 | <transaction src="db/cms/jeesite_${jdbc.type}.sql"/> | 1170 | <transaction src="db/cms/jeesite_${jdbc.type}.sql"/> |
1145 | <transaction src="db/oa/jeesite_${jdbc.type}.sql"/> | 1171 | <transaction src="db/oa/jeesite_${jdbc.type}.sql"/> |
... | @@ -1153,26 +1179,29 @@ | ... | @@ -1153,26 +1179,29 @@ |
1153 | <transaction src="db/act/create/activiti.${jdbc.type}.create.history.sql"/> | 1179 | <transaction src="db/act/create/activiti.${jdbc.type}.create.history.sql"/> |
1154 | <transaction src="db/act/create/activiti.${jdbc.type}.create.identity.sql"/> | 1180 | <transaction src="db/act/create/activiti.${jdbc.type}.create.identity.sql"/> |
1155 | </sql> | 1181 | </sql> |
1156 | 1182 | ||
1157 | <taskdef name="dbunit" classname="org.dbunit.ant.DbUnitTask" classpathref="maven.test.classpath" /> | 1183 | <taskdef name="dbunit" classname="org.dbunit.ant.DbUnitTask" |
1158 | 1184 | classpathref="maven.test.classpath"/> | |
1185 | |||
1159 | <!-- mysql、mssql --> | 1186 | <!-- mysql、mssql --> |
1160 | <dbunit driver="${jdbc.driver}" url="${jdbc.url}" userid="${jdbc.username}" | 1187 | <dbunit driver="${jdbc.driver}" url="${jdbc.url}" userid="${jdbc.username}" |
1161 | password="${jdbc.password}"> | 1188 | password="${jdbc.password}"> |
1162 | 1189 | ||
1163 | <!-- oracle | 1190 | <!-- oracle |
1164 | <dbunit driver="${jdbc.driver}" url="${jdbc.url}" userid="${jdbc.username}" | 1191 | <dbunit driver="${jdbc.driver}" url="${jdbc.url}" userid="${jdbc.username}" |
1165 | password="${jdbc.password}" schema="${jdbc.username}" > --> | 1192 | password="${jdbc.password}" schema="${jdbc.username}" > --> |
1166 | 1193 | ||
1167 | <dbconfig> | 1194 | <dbconfig> |
1168 | <property name="datatypeFactory" value="${dbunit.datatype}" /> | 1195 | <property name="datatypeFactory" value="${dbunit.datatype}"/> |
1169 | </dbconfig> | 1196 | </dbconfig> |
1170 | <classpath refid="maven.test.classpath" /> | 1197 | <classpath refid="maven.test.classpath"/> |
1171 | <operation type="INSERT" src="db/sys/jeesite_data.xls" format="xls" transaction="true"/> | 1198 | <operation type="INSERT" src="db/sys/jeesite_data.xls" format="xls" |
1172 | <operation type="INSERT" src="db/cms/jeesite_data.xls" format="xls" transaction="true"/> | 1199 | transaction="true"/> |
1173 | 1200 | <operation type="INSERT" src="db/cms/jeesite_data.xls" format="xls" | |
1201 | transaction="true"/> | ||
1202 | |||
1174 | </dbunit> | 1203 | </dbunit> |
1175 | 1204 | ||
1176 | </target> | 1205 | </target> |
1177 | </configuration> | 1206 | </configuration> |
1178 | </plugin> | 1207 | </plugin> |
... | @@ -1180,16 +1209,18 @@ | ... | @@ -1180,16 +1209,18 @@ |
1180 | </build> | 1209 | </build> |
1181 | </profile> | 1210 | </profile> |
1182 | </profiles> | 1211 | </profiles> |
1183 | 1212 | ||
1184 | <!-- 开发者信息 --> | 1213 | <!-- 开发者信息 --> |
1185 | <developers> | 1214 | <developers> |
1186 | <developer> | 1215 | <developer> |
1187 | <id>thinkgem</id> | 1216 | <id>thinkgem</id> |
1188 | <name>WangZhen</name> | 1217 | <name>WangZhen</name> |
1189 | <email>thinkgem at 163.com</email> | 1218 | <email>thinkgem at 163.com</email> |
1190 | <roles><role>Project lead</role></roles> | 1219 | <roles> |
1220 | <role>Project lead</role> | ||
1221 | </roles> | ||
1191 | <timezone>+8</timezone> | 1222 | <timezone>+8</timezone> |
1192 | </developer> | 1223 | </developer> |
1193 | </developers> | 1224 | </developers> |
1194 | 1225 | ||
1195 | </project> | 1226 | </project> | ... | ... |
... | @@ -32,20 +32,20 @@ import com.thinkgem.jeesite.common.utils.StringUtils; | ... | @@ -32,20 +32,20 @@ import com.thinkgem.jeesite.common.utils.StringUtils; |
32 | public class Global { | 32 | public class Global { |
33 | private static Boolean isycsl = false; | 33 | private static Boolean isycsl = false; |
34 | private static Boolean istitle = false ; | 34 | private static Boolean istitle = false ; |
35 | 35 | ||
36 | private static Boolean istest = false ; | 36 | private static Boolean istest = false ; |
37 | 37 | ||
38 | protected static Logger logger = LoggerFactory.getLogger(Global.class); | 38 | protected static Logger logger = LoggerFactory.getLogger(Global.class); |
39 | /** | 39 | /** |
40 | * 当前对象实例 | 40 | * 当前对象实例 |
41 | */ | 41 | */ |
42 | private static Global global = new Global(); | 42 | private static Global global = new Global(); |
43 | 43 | ||
44 | /** | 44 | /** |
45 | * 保存全局属性值 | 45 | * 保存全局属性值 |
46 | */ | 46 | */ |
47 | private static Map<String, String> map = Maps.newHashMap(); | 47 | private static Map<String, String> map = Maps.newHashMap(); |
48 | 48 | ||
49 | /** | 49 | /** |
50 | * 属性文件加载对象 | 50 | * 属性文件加载对象 |
51 | */ | 51 | */ |
... | @@ -62,13 +62,13 @@ public class Global { | ... | @@ -62,13 +62,13 @@ public class Global { |
62 | */ | 62 | */ |
63 | public static final String YES = "1"; | 63 | public static final String YES = "1"; |
64 | public static final String NO = "0"; | 64 | public static final String NO = "0"; |
65 | 65 | ||
66 | /** | 66 | /** |
67 | * 对/错 | 67 | * 对/错 |
68 | */ | 68 | */ |
69 | public static final String TRUE = "true"; | 69 | public static final String TRUE = "true"; |
70 | public static final String FALSE = "false"; | 70 | public static final String FALSE = "false"; |
71 | 71 | ||
72 | /** | 72 | /** |
73 | * 上传文件基础虚拟路径 | 73 | * 上传文件基础虚拟路径 |
74 | */ | 74 | */ |
... | @@ -77,12 +77,12 @@ public class Global { | ... | @@ -77,12 +77,12 @@ public class Global { |
77 | * 临时文件基础虚拟路径 | 77 | * 临时文件基础虚拟路径 |
78 | */ | 78 | */ |
79 | public static final String UP_DATA_URL = "/updatas/"; | 79 | public static final String UP_DATA_URL = "/updatas/"; |
80 | 80 | ||
81 | /** | 81 | /** |
82 | * 上报文件本地校验路径 | 82 | * 上报文件本地校验路径 |
83 | */ | 83 | */ |
84 | public static final String SJHJ_XSD_URL = "/xsd/"; | 84 | public static final String SJHJ_XSD_URL = "/xsd/"; |
85 | 85 | ||
86 | /** | 86 | /** |
87 | * 上报生成报文路径 | 87 | * 上报生成报文路径 |
88 | */ | 88 | */ |
... | @@ -97,69 +97,69 @@ public class Global { | ... | @@ -97,69 +97,69 @@ public class Global { |
97 | public static Global getInstance() { | 97 | public static Global getInstance() { |
98 | return global; | 98 | return global; |
99 | } | 99 | } |
100 | 100 | ||
101 | /** | 101 | /** |
102 | * 报文上报用户名 | 102 | * 报文上报用户名 |
103 | */ | 103 | */ |
104 | public static final String UP_NAME = "610700"; | 104 | public static final String UP_NAME = "610700"; |
105 | 105 | ||
106 | /** | 106 | /** |
107 | * 报文上报用户密码 | 107 | * 报文上报用户密码 |
108 | */ | 108 | */ |
109 | public static final String UP_PASSWORD = "yuiop90876"; | 109 | public static final String UP_PASSWORD = "yuiop90876"; |
110 | 110 | ||
111 | /** | 111 | /** |
112 | * 报文上报用户名 | 112 | * 报文上报用户名 |
113 | */ | 113 | */ |
114 | public static final String UP_IPCONFIG = "172.16.56.28"; | 114 | public static final String UP_IPCONFIG = "172.16.56.28"; |
115 | //public static final String UP_IPCONFIG = "172.0.0.1"; | 115 | //public static final String UP_IPCONFIG = "172.0.0.1"; |
116 | 116 | ||
117 | /** | 117 | /** |
118 | * 一窗受理,登簿推送 | 118 | * 一窗受理,登簿推送 |
119 | */ | 119 | */ |
120 | //public static final String POST_YCSL_URL_FZ = "http://172.16.56.31:8080/estateplat-acceptance/rest/v1.0/bdc/dbxx"; | 120 | //public static final String POST_YCSL_URL_FZ = "http://172.16.56.31:8080/estateplat-acceptance/rest/v1.0/bdc/dbxx"; |
121 | public static final String POST_YCSL_URL_FZ = getYcslUrl()+"/accept/registerInfo"; | 121 | public static final String POST_YCSL_URL_FZ = getYcslUrl()+"/accept/registerInfo"; |
122 | 122 | ||
123 | public static final String POST_YCSL_URL_XTTJ = getYcslUrl()+"/api/rest/bhSqxx"; | 123 | public static final String POST_YCSL_URL_XTTJ = getYcslUrl()+"/api/rest/bhSqxx"; |
124 | 124 | ||
125 | public static final String POST_YCSL_URL_YWZT = getYcslUrl()+"/api/rest/updateYwzt"; | 125 | public static final String POST_YCSL_URL_YWZT = getYcslUrl()+"/api/rest/updateYwzt"; |
126 | 126 | ||
127 | public static final String POST_YCSL_URL_queryTradeWj = getYcslUrl()+"/accept/findTradeInfo"; | 127 | public static final String POST_YCSL_URL_queryTradeWj = getYcslUrl()+"/accept/findTradeInfo"; |
128 | 128 | ||
129 | public static final String POST_YCSL_URL_downTradeFiles = getYcslUrl()+"/accept/downFileByPath"; | 129 | public static final String POST_YCSL_URL_downTradeFiles = getYcslUrl()+"/accept/downFileByPath"; |
130 | 130 | ||
131 | public static final String POST_YCSL_URL_insertSL = getYcslUrl()+"/accept/saveAcceptInfo"; | 131 | public static final String POST_YCSL_URL_insertSL = getYcslUrl()+"/accept/saveAcceptInfo"; |
132 | 132 | ||
133 | public static final String POST_YCSL_URL_updateSL = getYcslUrl()+"/accept/modifyAcceptInfo"; | 133 | public static final String POST_YCSL_URL_updateSL = getYcslUrl()+"/accept/modifyAcceptInfo"; |
134 | 134 | ||
135 | public static final String POST_YCSL_URL_deleteSL = getYcslUrl()+"/accept/removeAcceptInfo"; | 135 | public static final String POST_YCSL_URL_deleteSL = getYcslUrl()+"/accept/removeAcceptInfo"; |
136 | 136 | ||
137 | public static final String POST_YCSL_URL_queryTradeYw = getYcslUrl()+"/accept/findTradeToEstate"; | 137 | public static final String POST_YCSL_URL_queryTradeYw = getYcslUrl()+"/accept/findTradeToEstate"; |
138 | 138 | ||
139 | public static final String POST_YCSL_URL_queryTradeEstate = getYcslUrl()+"/accept/findEstateTrade"; | 139 | public static final String POST_YCSL_URL_queryTradeEstate = getYcslUrl()+"/accept/findEstateTrade"; |
140 | 140 | ||
141 | public static final String POST_YCSL_URL_saveHookRelation = getYcslUrl()+"/accept/saveHookRelation"; | 141 | public static final String POST_YCSL_URL_saveHookRelation = getYcslUrl()+"/accept/saveHookRelation"; |
142 | 142 | ||
143 | public static final String POST_YCSL_URL_removeHookRelation = getYcslUrl()+"/accept/removeHookRelation"; | 143 | public static final String POST_YCSL_URL_removeHookRelation = getYcslUrl()+"/accept/removeHookRelation"; |
144 | 144 | ||
145 | public static final String POST_YCSL_URL_saveHouseStatus = getYcslUrl()+"/accept/saveHouseStatus"; | 145 | public static final String POST_YCSL_URL_saveHouseStatus = getYcslUrl()+"/accept/saveHouseStatus"; |
146 | 146 | ||
147 | public static final String POST_YCSL_URL_modifyHouseStatus = getYcslUrl()+"/accept/modifyHouseStatus"; | 147 | public static final String POST_YCSL_URL_modifyHouseStatus = getYcslUrl()+"/accept/modifyHouseStatus"; |
148 | 148 | ||
149 | public static final String POST_YCSL_URL_terminateInfo = getYcslUrl()+"/accept/terminateInfo"; | 149 | public static final String POST_YCSL_URL_terminateInfo = getYcslUrl()+"/accept/terminateInfo"; |
150 | 150 | ||
151 | public static final String POST_YCSL_URL_findLicenseInfo = getYcslUrl()+"/accept/findLicenseInfo"; | 151 | public static final String POST_YCSL_URL_findLicenseInfo = getYcslUrl()+"/accept/findLicenseInfo"; |
152 | 152 | ||
153 | public static final String POST_YCSL_URL_wsqk = getYcslUrl()+"/accept/wsqk"; | 153 | public static final String POST_YCSL_URL_wsqk = getYcslUrl()+"/accept/wsqk"; |
154 | 154 | ||
155 | public static final String POST_YCSL_URL_downDealFiles = getYcslUrl()+"/accept/downDealByPath"; | 155 | public static final String POST_YCSL_URL_downDealFiles = getYcslUrl()+"/accept/downDealByPath"; |
156 | 156 | ||
157 | /** | 157 | /** |
158 | * 数据汇总,复核请求 | 158 | * 数据汇总,复核请求 |
159 | */ | 159 | */ |
160 | public static final String POST_SJHZ_URL_FH = "http://172.16.58.79:8000/platSi/fhDmlRec"; | 160 | public static final String POST_SJHZ_URL_FH = "http://172.16.58.79:8000/platSi/fhDmlRec"; |
161 | 161 | ||
162 | 162 | ||
163 | /** | 163 | /** |
164 | * 获取配置 | 164 | * 获取配置 |
165 | * @see ${fns:getConfig('adminPath')} | 165 | * @see ${fns:getConfig('adminPath')} |
... | @@ -172,10 +172,10 @@ public class Global { | ... | @@ -172,10 +172,10 @@ public class Global { |
172 | } | 172 | } |
173 | return value; | 173 | return value; |
174 | } | 174 | } |
175 | 175 | ||
176 | /** | 176 | /** |
177 | * 获取访问接口使用的用户名 密码 | 177 | * 获取访问接口使用的用户名 密码 |
178 | * | 178 | * |
179 | */ | 179 | */ |
180 | public static String getInterUserName(){ | 180 | public static String getInterUserName(){ |
181 | return getConfig("reg.inter.username"); | 181 | return getConfig("reg.inter.username"); |
... | @@ -183,17 +183,17 @@ public class Global { | ... | @@ -183,17 +183,17 @@ public class Global { |
183 | public static String getInterPassword(){ | 183 | public static String getInterPassword(){ |
184 | return getConfig("reg.inter.password"); | 184 | return getConfig("reg.inter.password"); |
185 | } | 185 | } |
186 | 186 | ||
187 | 187 | ||
188 | public static String getYcslUrl(){ | 188 | public static String getYcslUrl(){ |
189 | return getConfig("reg.ycsl.url"); | 189 | return getConfig("reg.ycsl.url"); |
190 | } | 190 | } |
191 | 191 | ||
192 | /*** | 192 | /*** |
193 | * @Title: getAreaCode | 193 | * @Title: getAreaCode |
194 | * @Description: 获取当前系统部署的区县代码 | 194 | * @Description: 获取当前系统部署的区县代码 |
195 | * @param @return 设定文件 | 195 | * @param @return 设定文件 |
196 | * @return String 返回类型 | 196 | * @return String 返回类型 |
197 | * @throws | 197 | * @throws |
198 | */ | 198 | */ |
199 | public static String getAreaCode(){ | 199 | public static String getAreaCode(){ |
... | @@ -206,49 +206,49 @@ public class Global { | ... | @@ -206,49 +206,49 @@ public class Global { |
206 | public static String getfhRowNum(){ | 206 | public static String getfhRowNum(){ |
207 | return getConfig("dmlRec.fhRowNum"); | 207 | return getConfig("dmlRec.fhRowNum"); |
208 | } | 208 | } |
209 | 209 | ||
210 | public static String getPictures(){ | 210 | public static String getPictures(){ |
211 | return getConfig("reg.pictures"); | 211 | return getConfig("reg.pictures"); |
212 | } | 212 | } |
213 | 213 | ||
214 | /* | 214 | /* |
215 | * 微信公众号路径 | 215 | * 微信公众号路径 |
216 | */ | 216 | */ |
217 | public static String getWxUrl(){ | 217 | public static String getWxUrl(){ |
218 | return getConfig("reg.wxurl"); | 218 | return getConfig("reg.wxurl"); |
219 | } | 219 | } |
220 | 220 | ||
221 | /* | 221 | /* |
222 | * 權籍接口系統路径 | 222 | * 權籍接口系統路径 |
223 | */ | 223 | */ |
224 | public static String getTitleUrl(){ | 224 | public static String getTitleUrl(){ |
225 | return getConfig("reg.titleurl"); | 225 | return getConfig("reg.titleurl"); |
226 | } | 226 | } |
227 | 227 | ||
228 | 228 | ||
229 | 229 | ||
230 | 230 | ||
231 | 231 | ||
232 | public static List<String> getIPList() { | 232 | public static List<String> getIPList() { |
233 | 233 | ||
234 | 234 | ||
235 | List<String> res_list = Lists.newArrayList(); | 235 | List<String> res_list = Lists.newArrayList(); |
236 | Enumeration<NetworkInterface> e1; | 236 | Enumeration<NetworkInterface> e1; |
237 | try { | 237 | try { |
238 | e1 = NetworkInterface.getNetworkInterfaces(); | 238 | e1 = NetworkInterface.getNetworkInterfaces(); |
239 | while (e1.hasMoreElements()) { | 239 | while (e1.hasMoreElements()) { |
240 | NetworkInterface ni = e1.nextElement(); | 240 | NetworkInterface ni = e1.nextElement(); |
241 | 241 | ||
242 | List<String> ips = Lists.newLinkedList(); | 242 | List<String> ips = Lists.newLinkedList(); |
243 | 243 | ||
244 | 244 | ||
245 | Enumeration<InetAddress> e2 = ni.getInetAddresses(); | 245 | Enumeration<InetAddress> e2 = ni.getInetAddresses(); |
246 | while (e2.hasMoreElements()) { | 246 | while (e2.hasMoreElements()) { |
247 | InetAddress ia = e2.nextElement(); | 247 | InetAddress ia = e2.nextElement(); |
248 | if(ia instanceof Inet6Address) { | 248 | if(ia instanceof Inet6Address) { |
249 | continue; // omit IPv6 address | 249 | continue; // omit IPv6 address |
250 | } | 250 | } |
251 | ips.add(ia.getHostAddress()); | 251 | ips.add(ia.getHostAddress()); |
252 | } | 252 | } |
253 | res_list.addAll(ips); | 253 | res_list.addAll(ips); |
254 | } | 254 | } |
... | @@ -263,25 +263,25 @@ public class Global { | ... | @@ -263,25 +263,25 @@ public class Global { |
263 | */ | 263 | */ |
264 | public static Boolean isYcsl(){ | 264 | public static Boolean isYcsl(){ |
265 | if(!isycsl) { | 265 | if(!isycsl) { |
266 | String ycsl = getConfig("reg.ycsl"); | 266 | String ycsl = getConfig("reg.ycsl"); |
267 | String[] list = StringUtils.isEmpty(ycsl) ? new String[]{}:ycsl.split(","); | 267 | String[] list = StringUtils.isEmpty(ycsl) ? new String[]{}:ycsl.split(","); |
268 | for(String ip : list) { | 268 | for(String ip : list) { |
269 | if(StringUtils.isEmpty(ip) ) { | 269 | if(StringUtils.isEmpty(ip) ) { |
270 | continue; | 270 | continue; |
271 | } | 271 | } |
272 | if(getIPList().contains(ip)) { | 272 | if(getIPList().contains(ip)) { |
273 | isycsl = true; | 273 | isycsl = true; |
274 | break; | 274 | break; |
275 | } | 275 | } |
276 | } | 276 | } |
277 | } | 277 | } |
278 | return isycsl; | 278 | return isycsl; |
279 | 279 | ||
280 | } | 280 | } |
281 | 281 | ||
282 | 282 | ||
283 | 283 | ||
284 | 284 | ||
285 | /** | 285 | /** |
286 | * 权籍开通标志 | 286 | * 权籍开通标志 |
287 | * @return | 287 | * @return |
... | @@ -290,44 +290,44 @@ public class Global { | ... | @@ -290,44 +290,44 @@ public class Global { |
290 | if(!istitle) { | 290 | if(!istitle) { |
291 | String title = getConfig("reg.title"); | 291 | String title = getConfig("reg.title"); |
292 | String[] list = StringUtils.isEmpty(title) ? new String[]{}:title.split(","); | 292 | String[] list = StringUtils.isEmpty(title) ? new String[]{}:title.split(","); |
293 | 293 | ||
294 | for(String ip : list) { | 294 | for(String ip : list) { |
295 | if(StringUtils.isEmpty(ip) ) { | 295 | if(StringUtils.isEmpty(ip) ) { |
296 | continue; | 296 | continue; |
297 | } | 297 | } |
298 | if(getIPList().contains(ip)) { | 298 | if(getIPList().contains(ip)) { |
299 | istitle = true; | 299 | istitle = true; |
300 | break; | 300 | break; |
301 | } | 301 | } |
302 | } | 302 | } |
303 | return istitle; | 303 | return istitle; |
304 | } | 304 | } |
305 | return istitle; | 305 | return istitle; |
306 | } | 306 | } |
307 | 307 | ||
308 | 308 | ||
309 | /** | 309 | /** |
310 | * 测试标志 | 310 | * 测试标志 |
311 | * @return | 311 | * @return |
312 | */ | 312 | */ |
313 | public static Boolean isTest(){ | 313 | public static Boolean isTest(){ |
314 | if(!istest) { | 314 | if(!istest) { |
315 | String title = getConfig("reg.test"); | 315 | String title = getConfig("reg.test"); |
316 | String[] list = StringUtils.isEmpty(title) ? new String[]{}:title.split(","); | 316 | String[] list = StringUtils.isEmpty(title) ? new String[]{}:title.split(","); |
317 | 317 | ||
318 | for(String ip : list) { | 318 | for(String ip : list) { |
319 | if(StringUtils.isEmpty(ip) ) { | 319 | if(StringUtils.isEmpty(ip) ) { |
320 | continue; | 320 | continue; |
321 | } | 321 | } |
322 | if(getIPList().contains(ip)) { | 322 | if(getIPList().contains(ip)) { |
323 | istest = true; | 323 | istest = true; |
324 | break; | 324 | break; |
325 | } | 325 | } |
326 | } | 326 | } |
327 | } | 327 | } |
328 | return istest; | 328 | return istest; |
329 | } | 329 | } |
330 | 330 | ||
331 | /** | 331 | /** |
332 | * 业务号新生成方式 | 332 | * 业务号新生成方式 |
333 | * @return | 333 | * @return |
... | @@ -335,7 +335,7 @@ public class Global { | ... | @@ -335,7 +335,7 @@ public class Global { |
335 | public static Boolean isNewCreateType(){ | 335 | public static Boolean isNewCreateType(){ |
336 | return Boolean.parseBoolean(StringUtils.isEmpty(getConfig("reg.ywh.new"))?"false":getConfig("reg.ywh.new")); | 336 | return Boolean.parseBoolean(StringUtils.isEmpty(getConfig("reg.ywh.new"))?"false":getConfig("reg.ywh.new")); |
337 | } | 337 | } |
338 | 338 | ||
339 | /** | 339 | /** |
340 | * 是否新区 | 340 | * 是否新区 |
341 | * @return | 341 | * @return |
... | @@ -343,41 +343,41 @@ public class Global { | ... | @@ -343,41 +343,41 @@ public class Global { |
343 | public static Boolean isXq(){ | 343 | public static Boolean isXq(){ |
344 | return Boolean.parseBoolean(StringUtils.isEmpty(getConfig("reg.xq"))?"false":getConfig("reg.xq")); | 344 | return Boolean.parseBoolean(StringUtils.isEmpty(getConfig("reg.xq"))?"false":getConfig("reg.xq")); |
345 | } | 345 | } |
346 | 346 | ||
347 | 347 | ||
348 | /** | 348 | /** |
349 | * 获取管理端根路径 | 349 | * 获取管理端根路径 |
350 | */ | 350 | */ |
351 | public static String getAdminPath() { | 351 | public static String getAdminPath() { |
352 | return getConfig("adminPath"); | 352 | return getConfig("adminPath"); |
353 | } | 353 | } |
354 | 354 | ||
355 | /** | 355 | /** |
356 | * 获取前端根路径 | 356 | * 获取前端根路径 |
357 | */ | 357 | */ |
358 | public static String getFrontPath() { | 358 | public static String getFrontPath() { |
359 | return getConfig("frontPath"); | 359 | return getConfig("frontPath"); |
360 | } | 360 | } |
361 | 361 | ||
362 | /** | 362 | /** |
363 | * 获取URL后缀 | 363 | * 获取URL后缀 |
364 | */ | 364 | */ |
365 | public static String getUrlSuffix() { | 365 | public static String getUrlSuffix() { |
366 | return getConfig("urlSuffix"); | 366 | return getConfig("urlSuffix"); |
367 | } | 367 | } |
368 | 368 | ||
369 | public static String getDbName(){ | 369 | public static String getDbName(){ |
370 | return Global.getConfig("jdbc.type"); | 370 | return Global.getConfig("jdbc.type"); |
371 | } | 371 | } |
372 | 372 | ||
373 | public static String getSumDataWSUrl(){ | 373 | public static String getSumDataWSUrl(){ |
374 | return Global.getConfig("webServiceUrl"); | 374 | return Global.getConfig("webServiceUrl"); |
375 | } | 375 | } |
376 | 376 | ||
377 | public static String getCommonLogUrl(){ | 377 | public static String getCommonLogUrl(){ |
378 | return Global.getConfig("commitLogUrl"); | 378 | return Global.getConfig("commitLogUrl"); |
379 | } | 379 | } |
380 | 380 | ||
381 | /** | 381 | /** |
382 | * 是否是演示模式,演示模式下不能修改用户、角色、密码、菜单、授权 | 382 | * 是否是演示模式,演示模式下不能修改用户、角色、密码、菜单、授权 |
383 | */ | 383 | */ |
... | @@ -385,7 +385,7 @@ public class Global { | ... | @@ -385,7 +385,7 @@ public class Global { |
385 | String dm = getConfig("demoMode"); | 385 | String dm = getConfig("demoMode"); |
386 | return "true".equals(dm) || "1".equals(dm); | 386 | return "true".equals(dm) || "1".equals(dm); |
387 | } | 387 | } |
388 | 388 | ||
389 | /** | 389 | /** |
390 | * 在修改系统用户和角色时是否同步到Activiti | 390 | * 在修改系统用户和角色时是否同步到Activiti |
391 | */ | 391 | */ |
... | @@ -393,7 +393,7 @@ public class Global { | ... | @@ -393,7 +393,7 @@ public class Global { |
393 | String dm = getConfig("activiti.isSynActivitiIndetity"); | 393 | String dm = getConfig("activiti.isSynActivitiIndetity"); |
394 | return "true".equals(dm) || "1".equals(dm); | 394 | return "true".equals(dm) || "1".equals(dm); |
395 | } | 395 | } |
396 | 396 | ||
397 | /** | 397 | /** |
398 | * 页面获取常量 | 398 | * 页面获取常量 |
399 | * @see ${fns:getConst('YES')} | 399 | * @see ${fns:getConst('YES')} |
... | @@ -478,5 +478,68 @@ public class Global { | ... | @@ -478,5 +478,68 @@ public class Global { |
478 | } | 478 | } |
479 | return projectPath; | 479 | return projectPath; |
480 | } | 480 | } |
481 | 481 | ||
482 | /** | ||
483 | * 契约锁URL | ||
484 | */ | ||
485 | public static String ECI_HOST; | ||
486 | |||
487 | /** | ||
488 | * 契约锁appToken | ||
489 | */ | ||
490 | public static String ECI_APP_TOKEN; | ||
491 | |||
492 | /** | ||
493 | * 契约锁appSecret | ||
494 | */ | ||
495 | public static String ECI_APP_SECRET; | ||
496 | |||
497 | /** | ||
498 | * 契约锁不动产登记证明流程ID | ||
499 | */ | ||
500 | public static String ECI_BDCDJZMLC; | ||
501 | |||
502 | /** | ||
503 | * 契约锁不动产权证书流程ID | ||
504 | */ | ||
505 | public static String ECI_BDCQZSLC; | ||
506 | |||
507 | /** | ||
508 | * 不动产查询证明流程ID | ||
509 | */ | ||
510 | public static String ECI_BDCCXZMLC; | ||
511 | |||
512 | /** | ||
513 | * 证照专用章ID | ||
514 | */ | ||
515 | public static String ECI_ZZZYZ; | ||
516 | |||
517 | /** | ||
518 | * 档案查询专用章ID | ||
519 | */ | ||
520 | public static String ECI_DACXZYZ; | ||
521 | |||
522 | public static void setEciConfig() { | ||
523 | String flag = Global.getConfig("eci.flag"); | ||
524 | if ("false".equals(flag)) { | ||
525 | ECI_HOST = Global.getConfig("eci.test.host"); | ||
526 | ECI_APP_TOKEN = Global.getConfig("eci.test.AppToken"); | ||
527 | ECI_APP_SECRET = Global.getConfig("eci.test.AppSecret"); | ||
528 | ECI_BDCDJZMLC = Global.getConfig("eci.test.bdcdjzmlc"); | ||
529 | ECI_BDCQZSLC = Global.getConfig("eci.test.bdcqzslc"); | ||
530 | ECI_BDCCXZMLC = Global.getConfig("eci.test.bdccxzmlc"); | ||
531 | ECI_ZZZYZ = Global.getConfig("eci.test.zzzyz"); | ||
532 | ECI_DACXZYZ = Global.getConfig("eci.test.dacxzyz"); | ||
533 | }else { | ||
534 | ECI_HOST = Global.getConfig("eci.prod.host"); | ||
535 | ECI_APP_TOKEN = Global.getConfig("eci.prod.AppToken"); | ||
536 | ECI_APP_SECRET = Global.getConfig("eci.prod.AppSecret"); | ||
537 | ECI_BDCDJZMLC = Global.getConfig("eci.prod.bdcdjzmlc"); | ||
538 | ECI_BDCQZSLC = Global.getConfig("eci.prod.bdcqzslc"); | ||
539 | ECI_BDCCXZMLC = Global.getConfig("eci.prod.bdccxzmlc"); | ||
540 | ECI_ZZZYZ = Global.getConfig("eci.prod.zzzyz"); | ||
541 | ECI_DACXZYZ = Global.getConfig("eci.prod.dacxzyz"); | ||
542 | } | ||
543 | } | ||
544 | |||
482 | } | 545 | } | ... | ... |
1 | package com.thinkgem.jeesite.modules.eci.dao; | ||
2 | |||
3 | import com.thinkgem.jeesite.common.persistence.CrudDao; | ||
4 | import com.thinkgem.jeesite.modules.eci.entity.ElecLicenseInfo; | ||
5 | import org.apache.ibatis.annotations.Param; | ||
6 | |||
7 | import java.util.List; | ||
8 | |||
9 | public interface ElecLicenseInfoDao extends CrudDao<ElecLicenseInfo> { | ||
10 | |||
11 | /** | ||
12 | * 获取需要创建合同contractId为空的集合 | ||
13 | * | ||
14 | * @return | ||
15 | */ | ||
16 | List<ElecLicenseInfo> getContractIdIsNull(); | ||
17 | |||
18 | /** | ||
19 | * 更新合同ID和状态 | ||
20 | * @param waitForCreateContract | ||
21 | * @return | ||
22 | */ | ||
23 | Integer updateContractIdAndStatus(@Param("waitForCreateContract") ElecLicenseInfo waitForCreateContract); | ||
24 | |||
25 | /** | ||
26 | * 获取需要更新合同DOUCUMENT_ID为空的集合 | ||
27 | * | ||
28 | * @return | ||
29 | */ | ||
30 | List<ElecLicenseInfo> getDocumentIdIsNull(); | ||
31 | |||
32 | /** | ||
33 | * 更新合同文档ID | ||
34 | * | ||
35 | * @param bizId 主键 | ||
36 | * @param documentId 文档ID | ||
37 | * @return | ||
38 | */ | ||
39 | Integer updateDocumentId(@Param("bizId") String bizId, @Param("documentId") Long documentId); | ||
40 | |||
41 | /** | ||
42 | * 获取合同文档ID已经入库并且还未下载集合 | ||
43 | * | ||
44 | * @return | ||
45 | */ | ||
46 | List<ElecLicenseInfo> getWaitForDownload(); | ||
47 | |||
48 | /** | ||
49 | * 更新OFD文件地址和下载状态 | ||
50 | * | ||
51 | * @param bizId | ||
52 | * @param ofdPath | ||
53 | * @return | ||
54 | */ | ||
55 | Integer updateOfdWjdz(@Param("bizId") String bizId, @Param("ofdPath") String ofdPath); | ||
56 | |||
57 | /** | ||
58 | * 获取已经下载还未转换的集合 | ||
59 | * | ||
60 | * @return | ||
61 | */ | ||
62 | List<ElecLicenseInfo> getWaitForConvert(); | ||
63 | |||
64 | |||
65 | } |
1 | package com.thinkgem.jeesite.modules.eci.entity; | ||
2 | |||
3 | /** | ||
4 | * 签署人 | ||
5 | */ | ||
6 | public class ActionOperator { | ||
7 | |||
8 | private static final long serialVersionUID = 1L; | ||
9 | |||
10 | /** | ||
11 | * 否 | ||
12 | * 签署人姓名 | ||
13 | */ | ||
14 | private String operatorName; | ||
15 | |||
16 | /** | ||
17 | * 联系方式与员工编号不能同时为空 | ||
18 | * 签署人联系方式 | ||
19 | */ | ||
20 | private String operatorContact; | ||
21 | |||
22 | /** | ||
23 | * 联系方式与员工编号不能同时为空 | ||
24 | * 签署人员工编号(用于企业签署方) | ||
25 | */ | ||
26 | private String operatorNumber; | ||
27 | |||
28 | public String getOperatorName() { | ||
29 | return operatorName; | ||
30 | } | ||
31 | |||
32 | public void setOperatorName(String operatorName) { | ||
33 | this.operatorName = operatorName; | ||
34 | } | ||
35 | |||
36 | public String getOperatorContact() { | ||
37 | return operatorContact; | ||
38 | } | ||
39 | |||
40 | public void setOperatorContact(String operatorContact) { | ||
41 | this.operatorContact = operatorContact; | ||
42 | } | ||
43 | |||
44 | public String getOperatorNumber() { | ||
45 | return operatorNumber; | ||
46 | } | ||
47 | |||
48 | public void setOperatorNumber(String operatorNumber) { | ||
49 | this.operatorNumber = operatorNumber; | ||
50 | } | ||
51 | |||
52 | } |
1 | package com.thinkgem.jeesite.modules.eci.entity; | ||
2 | |||
3 | |||
4 | import java.util.List; | ||
5 | |||
6 | /** | ||
7 | * 签署动作 | ||
8 | */ | ||
9 | public class ActionRequest { | ||
10 | |||
11 | private static final long serialVersionUID = 1L; | ||
12 | |||
13 | /** | ||
14 | * 是 | ||
15 | * 签署动作类型:CORPORATE(企业签章),PERSONAL(个人签字),LP(法定代表人签字),AUDIT(审批) | ||
16 | */ | ||
17 | private String type; | ||
18 | |||
19 | /** | ||
20 | * 是 | ||
21 | * 签署动作名称 | ||
22 | */ | ||
23 | private String name; | ||
24 | |||
25 | /** | ||
26 | * 是 | ||
27 | * 签署顺序(从1开始);如果想按顺序签署,则分别设置签署动作的serialNo为1,2,3;如果想无序签署,则设置签署动作的serialNo为1,1,1;设置签署动作顺序为1,2,2时,表示第一个先签署,后两个同时签署。 | ||
28 | */ | ||
29 | private Integer serialNo; | ||
30 | |||
31 | /** | ||
32 | * 否 | ||
33 | * 印章ID,指定企业签章所用印章 | ||
34 | */ | ||
35 | private Long sealId; | ||
36 | |||
37 | /** | ||
38 | * 否 | ||
39 | * 指定印章,格式:[123123123213,123213213213] | ||
40 | */ | ||
41 | private String sealIds; | ||
42 | |||
43 | /** | ||
44 | * 否 | ||
45 | * 指定多个印章名称,印章不存在或存在多个抛出异常 格式:["印章一","印章二"] | ||
46 | */ | ||
47 | private String sealNames; | ||
48 | |||
49 | /** | ||
50 | * 否 | ||
51 | * 指定印章的印章类型 | ||
52 | */ | ||
53 | private String sealCategoryName; | ||
54 | |||
55 | /** | ||
56 | * 否 | ||
57 | * 签章所属组织ID,发起方生效,默认为发起方关联的组织 | ||
58 | */ | ||
59 | private Long sealOwner; | ||
60 | |||
61 | /** | ||
62 | * 否 | ||
63 | * 是否自动签署 | ||
64 | */ | ||
65 | private boolean autoSign; | ||
66 | |||
67 | /** | ||
68 | * 否 | ||
69 | * 签署人(法定代表人签字无需填写该项) | ||
70 | */ | ||
71 | private List<ActionOperator> actionOperators; | ||
72 | |||
73 | /** | ||
74 | * 否 | ||
75 | * 签署位置 | ||
76 | */ | ||
77 | private List<SignatoryRect> locations; | ||
78 | |||
79 | public String getType() { | ||
80 | return type; | ||
81 | } | ||
82 | |||
83 | public void setType(String type) { | ||
84 | this.type = type; | ||
85 | } | ||
86 | |||
87 | public String getName() { | ||
88 | return name; | ||
89 | } | ||
90 | |||
91 | public void setName(String name) { | ||
92 | this.name = name; | ||
93 | } | ||
94 | |||
95 | public Integer getSerialNo() { | ||
96 | return serialNo; | ||
97 | } | ||
98 | |||
99 | public void setSerialNo(Integer serialNo) { | ||
100 | this.serialNo = serialNo; | ||
101 | } | ||
102 | |||
103 | public Long getSealId() { | ||
104 | return sealId; | ||
105 | } | ||
106 | |||
107 | public void setSealId(Long sealId) { | ||
108 | this.sealId = sealId; | ||
109 | } | ||
110 | |||
111 | public String getSealIds() { | ||
112 | return sealIds; | ||
113 | } | ||
114 | |||
115 | public void setSealIds(String sealIds) { | ||
116 | this.sealIds = sealIds; | ||
117 | } | ||
118 | |||
119 | public String getSealNames() { | ||
120 | return sealNames; | ||
121 | } | ||
122 | |||
123 | public void setSealNames(String sealNames) { | ||
124 | this.sealNames = sealNames; | ||
125 | } | ||
126 | |||
127 | public String getSealCategoryName() { | ||
128 | return sealCategoryName; | ||
129 | } | ||
130 | |||
131 | public void setSealCategoryName(String sealCategoryName) { | ||
132 | this.sealCategoryName = sealCategoryName; | ||
133 | } | ||
134 | |||
135 | public Long getSealOwner() { | ||
136 | return sealOwner; | ||
137 | } | ||
138 | |||
139 | public void setSealOwner(Long sealOwner) { | ||
140 | this.sealOwner = sealOwner; | ||
141 | } | ||
142 | |||
143 | public boolean isAutoSign() { | ||
144 | return autoSign; | ||
145 | } | ||
146 | |||
147 | public void setAutoSign(boolean autoSign) { | ||
148 | this.autoSign = autoSign; | ||
149 | } | ||
150 | |||
151 | public List<ActionOperator> getActionOperators() { | ||
152 | return actionOperators; | ||
153 | } | ||
154 | |||
155 | public void setActionOperators(List<ActionOperator> actionOperators) { | ||
156 | this.actionOperators = actionOperators; | ||
157 | } | ||
158 | |||
159 | public List<SignatoryRect> getLocations() { | ||
160 | return locations; | ||
161 | } | ||
162 | |||
163 | public void setLocations(List<SignatoryRect> locations) { | ||
164 | this.locations = locations; | ||
165 | } | ||
166 | |||
167 | } |
1 | package com.thinkgem.jeesite.modules.eci.entity; | ||
2 | |||
3 | import java.io.Serializable; | ||
4 | import java.util.Date; | ||
5 | import java.util.List; | ||
6 | |||
7 | /** | ||
8 | * 签署动作相应 | ||
9 | */ | ||
10 | public class ActionResponse implements Serializable { | ||
11 | |||
12 | private static final long serialVersionUID = 6489919156899102962L; | ||
13 | /** | ||
14 | * 签署动作ID | ||
15 | */ | ||
16 | private Long id; | ||
17 | |||
18 | /** | ||
19 | * 动作类型: OPERATOR("经办人签字"),LP("法定代表人签字"),CORPORATE("企业签章"),PERSONAL("个人签字"),AUDIT("审批"),FILL("合同填参"),TERMINATE_CORPORATE("合同作废"),TERMINATE_PERSONAL("合同作废"),COUNTERSIGN("会签签章") | ||
20 | */ | ||
21 | private String type; | ||
22 | |||
23 | /** | ||
24 | * 名称 | ||
25 | */ | ||
26 | private String name; | ||
27 | |||
28 | /** | ||
29 | * 状态:FILLING(填参中),FILLED(完成填参 ),WAITING(等待签署),SIGNING(签署中),SIGNED(完成),DISCARDED(废弃),REJECTED(拒绝),FINISHED(已完成,强制结束) | ||
30 | */ | ||
31 | private String status; | ||
32 | |||
33 | /** | ||
34 | * 创建时间 | ||
35 | */ | ||
36 | private Date createTime; | ||
37 | |||
38 | /** | ||
39 | * 完成时间 | ||
40 | */ | ||
41 | private Date completeTime; | ||
42 | |||
43 | /** | ||
44 | * 签署动作操作人 | ||
45 | */ | ||
46 | private List<OperatorResponse> actionOperators; | ||
47 | |||
48 | /** | ||
49 | * 操作人类型:EMPLOYEE(员工),ROLE(角色),USER(用户),COMPANY(企业),LP_USER(法人) | ||
50 | */ | ||
51 | private String operatorType; | ||
52 | |||
53 | /** | ||
54 | * 操作人ID | ||
55 | */ | ||
56 | private Long operatorId; | ||
57 | |||
58 | /** | ||
59 | * 操作人名称 | ||
60 | */ | ||
61 | private String operatorName; | ||
62 | |||
63 | public Long getId() { | ||
64 | return id; | ||
65 | } | ||
66 | |||
67 | public void setId(Long id) { | ||
68 | this.id = id; | ||
69 | } | ||
70 | |||
71 | public String getType() { | ||
72 | return type; | ||
73 | } | ||
74 | |||
75 | public void setType(String type) { | ||
76 | this.type = type; | ||
77 | } | ||
78 | |||
79 | public String getName() { | ||
80 | return name; | ||
81 | } | ||
82 | |||
83 | public void setName(String name) { | ||
84 | this.name = name; | ||
85 | } | ||
86 | |||
87 | public String getStatus() { | ||
88 | return status; | ||
89 | } | ||
90 | |||
91 | public void setStatus(String status) { | ||
92 | this.status = status; | ||
93 | } | ||
94 | |||
95 | public Date getCreateTime() { | ||
96 | return createTime; | ||
97 | } | ||
98 | |||
99 | public void setCreateTime(Date createTime) { | ||
100 | this.createTime = createTime; | ||
101 | } | ||
102 | |||
103 | public Date getCompleteTime() { | ||
104 | return completeTime; | ||
105 | } | ||
106 | |||
107 | public void setCompleteTime(Date completeTime) { | ||
108 | this.completeTime = completeTime; | ||
109 | } | ||
110 | |||
111 | public List<OperatorResponse> getActionOperators() { | ||
112 | return actionOperators; | ||
113 | } | ||
114 | |||
115 | public void setActionOperators(List<OperatorResponse> actionOperators) { | ||
116 | this.actionOperators = actionOperators; | ||
117 | } | ||
118 | |||
119 | public String getOperatorType() { | ||
120 | return operatorType; | ||
121 | } | ||
122 | |||
123 | public void setOperatorType(String operatorType) { | ||
124 | this.operatorType = operatorType; | ||
125 | } | ||
126 | |||
127 | public Long getOperatorId() { | ||
128 | return operatorId; | ||
129 | } | ||
130 | |||
131 | public void setOperatorId(Long operatorId) { | ||
132 | this.operatorId = operatorId; | ||
133 | } | ||
134 | |||
135 | public String getOperatorName() { | ||
136 | return operatorName; | ||
137 | } | ||
138 | |||
139 | public void setOperatorName(String operatorName) { | ||
140 | this.operatorName = operatorName; | ||
141 | } | ||
142 | } |
1 | package com.thinkgem.jeesite.modules.eci.entity; | ||
2 | |||
3 | import java.io.Serializable; | ||
4 | import java.util.List; | ||
5 | |||
6 | /** | ||
7 | * 合同详情 | ||
8 | */ | ||
9 | public class Contract implements Serializable { | ||
10 | |||
11 | private static final long serialVersionUID = 8444369877748311005L; | ||
12 | /** | ||
13 | * 合同ID | ||
14 | */ | ||
15 | private Long id; | ||
16 | |||
17 | /** | ||
18 | * 合同的唯一标识,由调用方生成 | ||
19 | */ | ||
20 | private String bizId; | ||
21 | |||
22 | /** | ||
23 | * 合同主题 | ||
24 | */ | ||
25 | private String subject; | ||
26 | |||
27 | /** | ||
28 | * 合同编号 | ||
29 | */ | ||
30 | private String sn; | ||
31 | |||
32 | /** | ||
33 | * 描述 | ||
34 | */ | ||
35 | private String description; | ||
36 | |||
37 | /** | ||
38 | * 是否顺序签署 | ||
39 | */ | ||
40 | private Boolean ordinal; | ||
41 | |||
42 | /** | ||
43 | * 合同状态:DRAFT(草稿),SIGNING(签署中),COMPLETE(已完成),REJECTED(已退回),RECALLED(已撤回),EXPIRED(已过期),FILLING(拟定中),TERMINATING(作废确认中),TERMINATED(已作废),DELETE(已删除),FINISHED(已完成) | ||
44 | */ | ||
45 | private String status; | ||
46 | |||
47 | /** | ||
48 | * 合同分类 | ||
49 | */ | ||
50 | private Long categoryId; | ||
51 | |||
52 | /** | ||
53 | * 合同分类名称 | ||
54 | */ | ||
55 | private String categoryName; | ||
56 | |||
57 | /** | ||
58 | * 合同具体发起人ID | ||
59 | */ | ||
60 | private Long creatorId; | ||
61 | |||
62 | /** | ||
63 | * 创建人名称 | ||
64 | */ | ||
65 | private String creatorName; | ||
66 | |||
67 | /** | ||
68 | * 合同具体发起人类型:CORPORATE(平台方),INNER_COMPANY(内部企业),PERSONAL(个人) | ||
69 | */ | ||
70 | private String creatorType; | ||
71 | |||
72 | /** | ||
73 | * 创建人在发起方中的员工编号(用于创建人为个人) | ||
74 | */ | ||
75 | private String creatorNumber; | ||
76 | |||
77 | /** | ||
78 | * 合同发起方ID | ||
79 | */ | ||
80 | private Long tenantId; | ||
81 | |||
82 | /** | ||
83 | * 发起方名称 | ||
84 | */ | ||
85 | private String tenantName; | ||
86 | |||
87 | /** | ||
88 | * 合同发起方类型:CORPORATE(平台方),COMPANY(外部企业),INNER_COMPANY(内部企业),PERSONAL(个人) | ||
89 | */ | ||
90 | private String tenantType; | ||
91 | |||
92 | /** | ||
93 | * 合同最后更新时间;格式yyyy-MM-dd HH:mm:ss | ||
94 | */ | ||
95 | private String updateTime; | ||
96 | |||
97 | /** | ||
98 | * 合同过期时间;格式yyyy-MM-dd HH:mm:ss | ||
99 | */ | ||
100 | private String expireTime; | ||
101 | |||
102 | /** | ||
103 | * 合同创建时间;格式yyyy-MM-dd HH:mm:ss | ||
104 | */ | ||
105 | private String createTime; | ||
106 | |||
107 | /** | ||
108 | * 合同拒绝/撤回原因 | ||
109 | */ | ||
110 | private String comments; | ||
111 | |||
112 | /** | ||
113 | * 是否可退回 | ||
114 | */ | ||
115 | private Boolean rejectable; | ||
116 | |||
117 | /** | ||
118 | * 是否可撤回 | ||
119 | */ | ||
120 | private Boolean recallable; | ||
121 | |||
122 | /** | ||
123 | * 是否可作废 | ||
124 | */ | ||
125 | private Boolean cancelable; | ||
126 | |||
127 | /** | ||
128 | * 是否可面对面签署 | ||
129 | */ | ||
130 | private Boolean faceSign; | ||
131 | |||
132 | /** | ||
133 | * 是否可拒绝作废 | ||
134 | */ | ||
135 | private Boolean rejectCancel; | ||
136 | |||
137 | /** | ||
138 | * 文档信息集合 | ||
139 | */ | ||
140 | private List<DocumentResponse> documents; | ||
141 | |||
142 | /** | ||
143 | * 签署方集合 | ||
144 | */ | ||
145 | private List<SignatoryResponse> signatories; | ||
146 | |||
147 | /** | ||
148 | * 用户的业务数据 | ||
149 | */ | ||
150 | private String businessData; | ||
151 | |||
152 | /** | ||
153 | * 签署code | ||
154 | */ | ||
155 | private Integer signCode; | ||
156 | |||
157 | /** | ||
158 | * 剩余打印次数,-1表示无限制 | ||
159 | */ | ||
160 | private Integer leftPrintCount; | ||
161 | |||
162 | /** | ||
163 | * 合同类型: NORMAL(标准合同)、OFFLINE(线下合同) | ||
164 | */ | ||
165 | private String type; | ||
166 | |||
167 | public Long getId() { | ||
168 | return id; | ||
169 | } | ||
170 | |||
171 | public void setId(Long id) { | ||
172 | this.id = id; | ||
173 | } | ||
174 | |||
175 | public String getBizId() { | ||
176 | return bizId; | ||
177 | } | ||
178 | |||
179 | public void setBizId(String bizId) { | ||
180 | this.bizId = bizId; | ||
181 | } | ||
182 | |||
183 | public String getSubject() { | ||
184 | return subject; | ||
185 | } | ||
186 | |||
187 | public void setSubject(String subject) { | ||
188 | this.subject = subject; | ||
189 | } | ||
190 | |||
191 | public String getSn() { | ||
192 | return sn; | ||
193 | } | ||
194 | |||
195 | public void setSn(String sn) { | ||
196 | this.sn = sn; | ||
197 | } | ||
198 | |||
199 | public String getDescription() { | ||
200 | return description; | ||
201 | } | ||
202 | |||
203 | public void setDescription(String description) { | ||
204 | this.description = description; | ||
205 | } | ||
206 | |||
207 | public Boolean getOrdinal() { | ||
208 | return ordinal; | ||
209 | } | ||
210 | |||
211 | public void setOrdinal(Boolean ordinal) { | ||
212 | this.ordinal = ordinal; | ||
213 | } | ||
214 | |||
215 | public String getStatus() { | ||
216 | return status; | ||
217 | } | ||
218 | |||
219 | public void setStatus(String status) { | ||
220 | this.status = status; | ||
221 | } | ||
222 | |||
223 | public Long getCategoryId() { | ||
224 | return categoryId; | ||
225 | } | ||
226 | |||
227 | public void setCategoryId(Long categoryId) { | ||
228 | this.categoryId = categoryId; | ||
229 | } | ||
230 | |||
231 | public String getCategoryName() { | ||
232 | return categoryName; | ||
233 | } | ||
234 | |||
235 | public void setCategoryName(String categoryName) { | ||
236 | this.categoryName = categoryName; | ||
237 | } | ||
238 | |||
239 | public Long getCreatorId() { | ||
240 | return creatorId; | ||
241 | } | ||
242 | |||
243 | public void setCreatorId(Long creatorId) { | ||
244 | this.creatorId = creatorId; | ||
245 | } | ||
246 | |||
247 | public String getCreatorName() { | ||
248 | return creatorName; | ||
249 | } | ||
250 | |||
251 | public void setCreatorName(String creatorName) { | ||
252 | this.creatorName = creatorName; | ||
253 | } | ||
254 | |||
255 | public String getCreatorType() { | ||
256 | return creatorType; | ||
257 | } | ||
258 | |||
259 | public void setCreatorType(String creatorType) { | ||
260 | this.creatorType = creatorType; | ||
261 | } | ||
262 | |||
263 | public String getCreatorNumber() { | ||
264 | return creatorNumber; | ||
265 | } | ||
266 | |||
267 | public void setCreatorNumber(String creatorNumber) { | ||
268 | this.creatorNumber = creatorNumber; | ||
269 | } | ||
270 | |||
271 | public Long getTenantId() { | ||
272 | return tenantId; | ||
273 | } | ||
274 | |||
275 | public void setTenantId(Long tenantId) { | ||
276 | this.tenantId = tenantId; | ||
277 | } | ||
278 | |||
279 | public String getTenantName() { | ||
280 | return tenantName; | ||
281 | } | ||
282 | |||
283 | public void setTenantName(String tenantName) { | ||
284 | this.tenantName = tenantName; | ||
285 | } | ||
286 | |||
287 | public String getTenantType() { | ||
288 | return tenantType; | ||
289 | } | ||
290 | |||
291 | public void setTenantType(String tenantType) { | ||
292 | this.tenantType = tenantType; | ||
293 | } | ||
294 | |||
295 | public String getUpdateTime() { | ||
296 | return updateTime; | ||
297 | } | ||
298 | |||
299 | public void setUpdateTime(String updateTime) { | ||
300 | this.updateTime = updateTime; | ||
301 | } | ||
302 | |||
303 | public String getExpireTime() { | ||
304 | return expireTime; | ||
305 | } | ||
306 | |||
307 | public void setExpireTime(String expireTime) { | ||
308 | this.expireTime = expireTime; | ||
309 | } | ||
310 | |||
311 | public String getCreateTime() { | ||
312 | return createTime; | ||
313 | } | ||
314 | |||
315 | public void setCreateTime(String createTime) { | ||
316 | this.createTime = createTime; | ||
317 | } | ||
318 | |||
319 | public String getComments() { | ||
320 | return comments; | ||
321 | } | ||
322 | |||
323 | public void setComments(String comments) { | ||
324 | this.comments = comments; | ||
325 | } | ||
326 | |||
327 | public Boolean getRejectable() { | ||
328 | return rejectable; | ||
329 | } | ||
330 | |||
331 | public void setRejectable(Boolean rejectable) { | ||
332 | this.rejectable = rejectable; | ||
333 | } | ||
334 | |||
335 | public Boolean getRecallable() { | ||
336 | return recallable; | ||
337 | } | ||
338 | |||
339 | public void setRecallable(Boolean recallable) { | ||
340 | this.recallable = recallable; | ||
341 | } | ||
342 | |||
343 | public Boolean getCancelable() { | ||
344 | return cancelable; | ||
345 | } | ||
346 | |||
347 | public void setCancelable(Boolean cancelable) { | ||
348 | this.cancelable = cancelable; | ||
349 | } | ||
350 | |||
351 | public Boolean getFaceSign() { | ||
352 | return faceSign; | ||
353 | } | ||
354 | |||
355 | public void setFaceSign(Boolean faceSign) { | ||
356 | this.faceSign = faceSign; | ||
357 | } | ||
358 | |||
359 | public Boolean getRejectCancel() { | ||
360 | return rejectCancel; | ||
361 | } | ||
362 | |||
363 | public void setRejectCancel(Boolean rejectCancel) { | ||
364 | this.rejectCancel = rejectCancel; | ||
365 | } | ||
366 | |||
367 | public List<DocumentResponse> getDocuments() { | ||
368 | return documents; | ||
369 | } | ||
370 | |||
371 | public void setDocuments(List<DocumentResponse> documents) { | ||
372 | this.documents = documents; | ||
373 | } | ||
374 | |||
375 | public List<SignatoryResponse> getSignatories() { | ||
376 | return signatories; | ||
377 | } | ||
378 | |||
379 | public void setSignatories(List<SignatoryResponse> signatories) { | ||
380 | this.signatories = signatories; | ||
381 | } | ||
382 | |||
383 | public String getBusinessData() { | ||
384 | return businessData; | ||
385 | } | ||
386 | |||
387 | public void setBusinessData(String businessData) { | ||
388 | this.businessData = businessData; | ||
389 | } | ||
390 | |||
391 | public Integer getSignCode() { | ||
392 | return signCode; | ||
393 | } | ||
394 | |||
395 | public void setSignCode(Integer signCode) { | ||
396 | this.signCode = signCode; | ||
397 | } | ||
398 | |||
399 | public Integer getLeftPrintCount() { | ||
400 | return leftPrintCount; | ||
401 | } | ||
402 | |||
403 | public void setLeftPrintCount(Integer leftPrintCount) { | ||
404 | this.leftPrintCount = leftPrintCount; | ||
405 | } | ||
406 | |||
407 | public String getType() { | ||
408 | return type; | ||
409 | } | ||
410 | |||
411 | public void setType(String type) { | ||
412 | this.type = type; | ||
413 | } | ||
414 | } |
1 | package com.thinkgem.jeesite.modules.eci.entity; | ||
2 | |||
3 | import java.io.Serializable; | ||
4 | |||
5 | public class ContractDetailsRequest implements Serializable { | ||
6 | |||
7 | private static final long serialVersionUID = 1L; | ||
8 | |||
9 | /** | ||
10 | * 合同ID 或 bizId必须填写一个 | ||
11 | * 合同ID | ||
12 | */ | ||
13 | private Long contractId; | ||
14 | |||
15 | /** | ||
16 | * 合同的唯一标识,由调用方生成 | ||
17 | */ | ||
18 | private String bizId; | ||
19 | |||
20 | /** | ||
21 | * 否 | ||
22 | * 是否查询签署方用印记录 | ||
23 | */ | ||
24 | private Boolean countSeal; | ||
25 | |||
26 | public Long getContractId() { | ||
27 | return contractId; | ||
28 | } | ||
29 | |||
30 | public void setContractId(Long contractId) { | ||
31 | this.contractId = contractId; | ||
32 | } | ||
33 | |||
34 | public String getBizId() { | ||
35 | return bizId; | ||
36 | } | ||
37 | |||
38 | public void setBizId(String bizId) { | ||
39 | this.bizId = bizId; | ||
40 | } | ||
41 | |||
42 | public Boolean getCountSeal() { | ||
43 | return countSeal; | ||
44 | } | ||
45 | |||
46 | public void setCountSeal(Boolean countSeal) { | ||
47 | this.countSeal = countSeal; | ||
48 | } | ||
49 | } |
1 | package com.thinkgem.jeesite.modules.eci.entity; | ||
2 | |||
3 | import java.io.Serializable; | ||
4 | |||
5 | /** | ||
6 | * 合同详情接口返回实体 | ||
7 | */ | ||
8 | public class ContractDetailsResponse implements Serializable { | ||
9 | |||
10 | private static final long serialVersionUID = -3548126503391957301L; | ||
11 | /** | ||
12 | * 错误码,0为成功,1000000未知错误,1000001参数错误 | ||
13 | */ | ||
14 | private Integer code; | ||
15 | |||
16 | /** | ||
17 | * 错误信息 | ||
18 | */ | ||
19 | private String message; | ||
20 | |||
21 | /** | ||
22 | * 合同详情 | ||
23 | */ | ||
24 | private Contract contract; | ||
25 | |||
26 | public Integer getCode() { | ||
27 | return code; | ||
28 | } | ||
29 | |||
30 | public void setCode(Integer code) { | ||
31 | this.code = code; | ||
32 | } | ||
33 | |||
34 | public String getMessage() { | ||
35 | return message; | ||
36 | } | ||
37 | |||
38 | public void setMessage(String message) { | ||
39 | this.message = message; | ||
40 | } | ||
41 | |||
42 | public Contract getContract() { | ||
43 | return contract; | ||
44 | } | ||
45 | |||
46 | public void setContract(Contract contract) { | ||
47 | this.contract = contract; | ||
48 | } | ||
49 | } |
1 | package com.thinkgem.jeesite.modules.eci.entity; | ||
2 | |||
3 | /** | ||
4 | * 抄送人配置 | ||
5 | */ | ||
6 | public class ContractTransmitItem { | ||
7 | |||
8 | |||
9 | private static final long serialVersionUID = 1L; | ||
10 | |||
11 | /** | ||
12 | * 是 | ||
13 | * 抄送人联系方式 | ||
14 | */ | ||
15 | private String receiverMobile; | ||
16 | |||
17 | /** | ||
18 | * 是 | ||
19 | * 抄送人名称 | ||
20 | */ | ||
21 | private String receiverName; | ||
22 | |||
23 | public String getReceiverMobile() { | ||
24 | return receiverMobile; | ||
25 | } | ||
26 | |||
27 | public void setReceiverMobile(String receiverMobile) { | ||
28 | this.receiverMobile = receiverMobile; | ||
29 | } | ||
30 | |||
31 | public String getReceiverName() { | ||
32 | return receiverName; | ||
33 | } | ||
34 | |||
35 | public void setReceiverName(String receiverName) { | ||
36 | this.receiverName = receiverName; | ||
37 | } | ||
38 | } |
1 | package com.thinkgem.jeesite.modules.eci.entity; | ||
2 | |||
3 | import org.apache.poi.ss.formula.functions.T; | ||
4 | |||
5 | import java.util.List; | ||
6 | |||
7 | /** | ||
8 | * 创建合同请求实体 | ||
9 | */ | ||
10 | public class CreateContractRequest { | ||
11 | |||
12 | private static final long serialVersionUID = 1L; | ||
13 | /** | ||
14 | * 是 | ||
15 | * 合同名称 | ||
16 | */ | ||
17 | private String subject; | ||
18 | |||
19 | /** | ||
20 | * 否 | ||
21 | * 合同编号,对接方系统中的业务编号 | ||
22 | */ | ||
23 | private String sn; | ||
24 | |||
25 | /** | ||
26 | * 否 | ||
27 | * 合同描述 | ||
28 | */ | ||
29 | private String description; | ||
30 | |||
31 | /** | ||
32 | * 否 | ||
33 | * 用印流程ID | ||
34 | */ | ||
35 | private String categoryId; | ||
36 | |||
37 | /** | ||
38 | * 否 | ||
39 | * 用印流程名称,如果分类ID为空,则用此参数确定用印流程 | ||
40 | */ | ||
41 | private String categoryName; | ||
42 | |||
43 | /** | ||
44 | * 否 | ||
45 | * 是否发起合同,默认true。(true:立即发起;false:保存为草稿) | ||
46 | */ | ||
47 | private boolean send; | ||
48 | |||
49 | /** | ||
50 | * 否 | ||
51 | * 合同文档ID的集合(一个文档只能属于一个合同) | ||
52 | */ | ||
53 | private List<Long> documents; | ||
54 | |||
55 | /** | ||
56 | * 否 | ||
57 | * 合同过期时间;格式:yyyy-MM-dd HH:mm:ss,过期未结束签署,则作废,不传该参数则默认使用控制台配置的过期时间 | ||
58 | */ | ||
59 | private String expireTime; | ||
60 | |||
61 | /** | ||
62 | * 否 | ||
63 | * 合同终止时间;格式:yyyy-MM-dd ,系统将时间调至传入时间的23时59分59秒。 | ||
64 | */ | ||
65 | private String endTime; | ||
66 | |||
67 | /** | ||
68 | * 否 | ||
69 | * 合同创建人姓名 | ||
70 | */ | ||
71 | private String creatorName; | ||
72 | |||
73 | /** | ||
74 | * 否 | ||
75 | * 合同创建人手机号码 | ||
76 | */ | ||
77 | private String creatorContact; | ||
78 | |||
79 | /** | ||
80 | * 否 | ||
81 | * 合同创建人邮箱 | ||
82 | */ | ||
83 | private String creatorEmail; | ||
84 | |||
85 | /** | ||
86 | * 否 | ||
87 | * 合同创建人在发起方中的员工编号 | ||
88 | */ | ||
89 | private String creatorNumber; | ||
90 | |||
91 | /** | ||
92 | * 否 | ||
93 | * 发起方名称 | ||
94 | */ | ||
95 | private String tenantName; | ||
96 | |||
97 | /** | ||
98 | * 否 | ||
99 | * 签署方,为空时在合同签署完成后需要调用接口“封存合同”主动结束合同 | ||
100 | */ | ||
101 | private List<SignatoryRequest> signatories; | ||
102 | |||
103 | /** | ||
104 | * 否 | ||
105 | * 模板参数 | ||
106 | */ | ||
107 | private List<T> documentParams; | ||
108 | |||
109 | /** | ||
110 | * 否 | ||
111 | * 用户的业务数据 | ||
112 | */ | ||
113 | private String businessData; | ||
114 | |||
115 | /** | ||
116 | * 否 | ||
117 | * 合同的唯一标识,由调用方生成 | ||
118 | */ | ||
119 | private String bizId; | ||
120 | |||
121 | /** | ||
122 | * 否 | ||
123 | * 水印配置(需在用印流程配置水印并勾选通过接口设置),参考WaterMarkContent | ||
124 | */ | ||
125 | private List<WaterMarkContent> waterMarkConfigs; | ||
126 | |||
127 | /** | ||
128 | * 否 | ||
129 | * 指定位置外签署,默认使用业务分类中的「签署位置规则」配置 | ||
130 | */ | ||
131 | private boolean extraSign; | ||
132 | |||
133 | /** | ||
134 | * 否 | ||
135 | * 允许指定位置签署,默认使用业务分类中的「签署位置规则」配置 | ||
136 | */ | ||
137 | private boolean mustSign; | ||
138 | |||
139 | /** | ||
140 | * 否 | ||
141 | * 是否自动生成会签节点(用于签署动作中传入多个印章并且未指定签署人)默认false | ||
142 | */ | ||
143 | private boolean autoCreateCounterSign; | ||
144 | |||
145 | /** | ||
146 | * 否 | ||
147 | * 是否所有文档均需签署:1. DEFAULT, 默认,无需签署所有文档2. ALL, 所有签署方每个签署节点必须签署所有文档3. SENDER, 发起方每个签署节点必须签署所有文档4. RECEIVER 接受方每个节点必须签署所有文档 | ||
148 | */ | ||
149 | private String signAll; | ||
150 | |||
151 | /** | ||
152 | * 否 | ||
153 | * 抄送人配置,参考ContractTransmit | ||
154 | */ | ||
155 | private List<ContractTransmitItem> transmitters; | ||
156 | |||
157 | /** | ||
158 | * 否 | ||
159 | * 0 发送全部通知;1 仅发送短信通知;2 仅发送邮件通知 | ||
160 | */ | ||
161 | private Integer msgCode; | ||
162 | |||
163 | public String getSubject() { | ||
164 | return subject; | ||
165 | } | ||
166 | |||
167 | public void setSubject(String subject) { | ||
168 | this.subject = subject; | ||
169 | } | ||
170 | |||
171 | public String getSn() { | ||
172 | return sn; | ||
173 | } | ||
174 | |||
175 | public void setSn(String sn) { | ||
176 | this.sn = sn; | ||
177 | } | ||
178 | |||
179 | public String getDescription() { | ||
180 | return description; | ||
181 | } | ||
182 | |||
183 | public void setDescription(String description) { | ||
184 | this.description = description; | ||
185 | } | ||
186 | |||
187 | public String getCategoryId() { | ||
188 | return categoryId; | ||
189 | } | ||
190 | |||
191 | public void setCategoryId(String categoryId) { | ||
192 | this.categoryId = categoryId; | ||
193 | } | ||
194 | |||
195 | public String getCategoryName() { | ||
196 | return categoryName; | ||
197 | } | ||
198 | |||
199 | public void setCategoryName(String categoryName) { | ||
200 | this.categoryName = categoryName; | ||
201 | } | ||
202 | |||
203 | public boolean isSend() { | ||
204 | return send; | ||
205 | } | ||
206 | |||
207 | public void setSend(boolean send) { | ||
208 | this.send = send; | ||
209 | } | ||
210 | |||
211 | public List<Long> getDocuments() { | ||
212 | return documents; | ||
213 | } | ||
214 | |||
215 | public void setDocuments(List<Long> documents) { | ||
216 | this.documents = documents; | ||
217 | } | ||
218 | |||
219 | public String getExpireTime() { | ||
220 | return expireTime; | ||
221 | } | ||
222 | |||
223 | public void setExpireTime(String expireTime) { | ||
224 | this.expireTime = expireTime; | ||
225 | } | ||
226 | |||
227 | public String getEndTime() { | ||
228 | return endTime; | ||
229 | } | ||
230 | |||
231 | public void setEndTime(String endTime) { | ||
232 | this.endTime = endTime; | ||
233 | } | ||
234 | |||
235 | public String getCreatorName() { | ||
236 | return creatorName; | ||
237 | } | ||
238 | |||
239 | public void setCreatorName(String creatorName) { | ||
240 | this.creatorName = creatorName; | ||
241 | } | ||
242 | |||
243 | public String getCreatorContact() { | ||
244 | return creatorContact; | ||
245 | } | ||
246 | |||
247 | public void setCreatorContact(String creatorContact) { | ||
248 | this.creatorContact = creatorContact; | ||
249 | } | ||
250 | |||
251 | public String getCreatorEmail() { | ||
252 | return creatorEmail; | ||
253 | } | ||
254 | |||
255 | public void setCreatorEmail(String creatorEmail) { | ||
256 | this.creatorEmail = creatorEmail; | ||
257 | } | ||
258 | |||
259 | public String getCreatorNumber() { | ||
260 | return creatorNumber; | ||
261 | } | ||
262 | |||
263 | public void setCreatorNumber(String creatorNumber) { | ||
264 | this.creatorNumber = creatorNumber; | ||
265 | } | ||
266 | |||
267 | public String getTenantName() { | ||
268 | return tenantName; | ||
269 | } | ||
270 | |||
271 | public void setTenantName(String tenantName) { | ||
272 | this.tenantName = tenantName; | ||
273 | } | ||
274 | |||
275 | public List<SignatoryRequest> getSignatories() { | ||
276 | return signatories; | ||
277 | } | ||
278 | |||
279 | public void setSignatories(List<SignatoryRequest> signatories) { | ||
280 | this.signatories = signatories; | ||
281 | } | ||
282 | |||
283 | public List<T> getDocumentParams() { | ||
284 | return documentParams; | ||
285 | } | ||
286 | |||
287 | public void setDocumentParams(List<T> documentParams) { | ||
288 | this.documentParams = documentParams; | ||
289 | } | ||
290 | |||
291 | public String getBusinessData() { | ||
292 | return businessData; | ||
293 | } | ||
294 | |||
295 | public void setBusinessData(String businessData) { | ||
296 | this.businessData = businessData; | ||
297 | } | ||
298 | |||
299 | public String getBizId() { | ||
300 | return bizId; | ||
301 | } | ||
302 | |||
303 | public void setBizId(String bizId) { | ||
304 | this.bizId = bizId; | ||
305 | } | ||
306 | |||
307 | public List<WaterMarkContent> getWaterMarkConfigs() { | ||
308 | return waterMarkConfigs; | ||
309 | } | ||
310 | |||
311 | public void setWaterMarkConfigs(List<WaterMarkContent> waterMarkConfigs) { | ||
312 | this.waterMarkConfigs = waterMarkConfigs; | ||
313 | } | ||
314 | |||
315 | public boolean isExtraSign() { | ||
316 | return extraSign; | ||
317 | } | ||
318 | |||
319 | public void setExtraSign(boolean extraSign) { | ||
320 | this.extraSign = extraSign; | ||
321 | } | ||
322 | |||
323 | public boolean isMustSign() { | ||
324 | return mustSign; | ||
325 | } | ||
326 | |||
327 | public void setMustSign(boolean mustSign) { | ||
328 | this.mustSign = mustSign; | ||
329 | } | ||
330 | |||
331 | public boolean isAutoCreateCounterSign() { | ||
332 | return autoCreateCounterSign; | ||
333 | } | ||
334 | |||
335 | public void setAutoCreateCounterSign(boolean autoCreateCounterSign) { | ||
336 | this.autoCreateCounterSign = autoCreateCounterSign; | ||
337 | } | ||
338 | |||
339 | public String getSignAll() { | ||
340 | return signAll; | ||
341 | } | ||
342 | |||
343 | public void setSignAll(String signAll) { | ||
344 | this.signAll = signAll; | ||
345 | } | ||
346 | |||
347 | public List<ContractTransmitItem> getTransmitters() { | ||
348 | return transmitters; | ||
349 | } | ||
350 | |||
351 | public void setTransmitters(List<ContractTransmitItem> transmitters) { | ||
352 | this.transmitters = transmitters; | ||
353 | } | ||
354 | |||
355 | public Integer getMsgCode() { | ||
356 | return msgCode; | ||
357 | } | ||
358 | |||
359 | public void setMsgCode(Integer msgCode) { | ||
360 | this.msgCode = msgCode; | ||
361 | } | ||
362 | |||
363 | } |
1 | package com.thinkgem.jeesite.modules.eci.entity; | ||
2 | |||
3 | /** | ||
4 | * 创建合同接口返回实体 | ||
5 | */ | ||
6 | public class CreateContractResponse { | ||
7 | |||
8 | /** | ||
9 | * 响应码 | ||
10 | * 0:请求成功. | ||
11 | * 1000000:未知错误. | ||
12 | * 1000001:参数错误. | ||
13 | */ | ||
14 | private Integer code; | ||
15 | |||
16 | /** | ||
17 | * 响应消息 | ||
18 | */ | ||
19 | private String message; | ||
20 | |||
21 | /** | ||
22 | * 合同ID | ||
23 | */ | ||
24 | private Long contractId; | ||
25 | |||
26 | public Integer getCode() { | ||
27 | return code; | ||
28 | } | ||
29 | |||
30 | public void setCode(Integer code) { | ||
31 | this.code = code; | ||
32 | } | ||
33 | |||
34 | public String getMessage() { | ||
35 | return message; | ||
36 | } | ||
37 | |||
38 | public void setMessage(String message) { | ||
39 | this.message = message; | ||
40 | } | ||
41 | |||
42 | public Long getContractId() { | ||
43 | return contractId; | ||
44 | } | ||
45 | |||
46 | public void setContractId(Long contractId) { | ||
47 | this.contractId = contractId; | ||
48 | } | ||
49 | } |
1 | package com.thinkgem.jeesite.modules.eci.entity; | ||
2 | |||
3 | /** | ||
4 | * 模板参数 | ||
5 | */ | ||
6 | public class DocumentParam { | ||
7 | |||
8 | private static final long serialVersionUID = 1L; | ||
9 | |||
10 | /** | ||
11 | * 是 | ||
12 | * 模板参数名称 | ||
13 | */ | ||
14 | private String name; | ||
15 | |||
16 | /** | ||
17 | * 是 | ||
18 | * 模板参数值 | ||
19 | */ | ||
20 | private String value; | ||
21 | |||
22 | public String getName() { | ||
23 | return name; | ||
24 | } | ||
25 | |||
26 | public void setName(String name) { | ||
27 | this.name = name; | ||
28 | } | ||
29 | |||
30 | public String getValue() { | ||
31 | return value; | ||
32 | } | ||
33 | |||
34 | public void setValue(String value) { | ||
35 | this.value = value; | ||
36 | } | ||
37 | } |
1 | package com.thinkgem.jeesite.modules.eci.entity; | ||
2 | |||
3 | import java.io.Serializable; | ||
4 | |||
5 | /** | ||
6 | * 合同文档模板参数响应 | ||
7 | */ | ||
8 | public class DocumentParamResponse implements Serializable { | ||
9 | |||
10 | private static final long serialVersionUID = -3418534324086360899L; | ||
11 | /** | ||
12 | * 文档参数名称 | ||
13 | */ | ||
14 | private String name; | ||
15 | |||
16 | /** | ||
17 | * 文档参数值 | ||
18 | */ | ||
19 | private String value; | ||
20 | |||
21 | /** | ||
22 | * 是否必填 | ||
23 | */ | ||
24 | private Boolean required; | ||
25 | |||
26 | /** | ||
27 | * 参数所在页码 | ||
28 | */ | ||
29 | private Integer page; | ||
30 | |||
31 | /** | ||
32 | * 参数X坐标(占页宽比) | ||
33 | */ | ||
34 | private Double offsetX; | ||
35 | |||
36 | private Double offsetY; | ||
37 | |||
38 | /** | ||
39 | * 参数由哪方填写,小于等于0:发起方,1~10000:接收方,长整型为对应签署方 | ||
40 | */ | ||
41 | private Long signatory; | ||
42 | |||
43 | /** | ||
44 | * 印章类型,只在合同完成时使用 | ||
45 | */ | ||
46 | private String signType; | ||
47 | |||
48 | /** | ||
49 | * 对应印章类型的数量,与signType一起使用 | ||
50 | */ | ||
51 | private Integer signCountByType; | ||
52 | |||
53 | public String getName() { | ||
54 | return name; | ||
55 | } | ||
56 | |||
57 | public void setName(String name) { | ||
58 | this.name = name; | ||
59 | } | ||
60 | |||
61 | public String getValue() { | ||
62 | return value; | ||
63 | } | ||
64 | |||
65 | public void setValue(String value) { | ||
66 | this.value = value; | ||
67 | } | ||
68 | |||
69 | public Boolean getRequired() { | ||
70 | return required; | ||
71 | } | ||
72 | |||
73 | public void setRequired(Boolean required) { | ||
74 | this.required = required; | ||
75 | } | ||
76 | |||
77 | public Integer getPage() { | ||
78 | return page; | ||
79 | } | ||
80 | |||
81 | public void setPage(Integer page) { | ||
82 | this.page = page; | ||
83 | } | ||
84 | |||
85 | public Double getOffsetX() { | ||
86 | return offsetX; | ||
87 | } | ||
88 | |||
89 | public void setOffsetX(Double offsetX) { | ||
90 | this.offsetX = offsetX; | ||
91 | } | ||
92 | |||
93 | public Double getOffsetY() { | ||
94 | return offsetY; | ||
95 | } | ||
96 | |||
97 | public void setOffsetY(Double offsetY) { | ||
98 | this.offsetY = offsetY; | ||
99 | } | ||
100 | |||
101 | public Long getSignatory() { | ||
102 | return signatory; | ||
103 | } | ||
104 | |||
105 | public void setSignatory(Long signatory) { | ||
106 | this.signatory = signatory; | ||
107 | } | ||
108 | |||
109 | public String getSignType() { | ||
110 | return signType; | ||
111 | } | ||
112 | |||
113 | public void setSignType(String signType) { | ||
114 | this.signType = signType; | ||
115 | } | ||
116 | |||
117 | public Integer getSignCountByType() { | ||
118 | return signCountByType; | ||
119 | } | ||
120 | |||
121 | public void setSignCountByType(Integer signCountByType) { | ||
122 | this.signCountByType = signCountByType; | ||
123 | } | ||
124 | } |
1 | package com.thinkgem.jeesite.modules.eci.entity; | ||
2 | |||
3 | import java.io.Serializable; | ||
4 | import java.util.Date; | ||
5 | import java.util.List; | ||
6 | |||
7 | /** | ||
8 | * 文档信息响应实体 | ||
9 | */ | ||
10 | public class DocumentResponse implements Serializable { | ||
11 | |||
12 | private static final long serialVersionUID = 9073285508191776029L; | ||
13 | /** | ||
14 | * 合同文档ID | ||
15 | */ | ||
16 | private Long id; | ||
17 | |||
18 | /** | ||
19 | * 文档名称 | ||
20 | */ | ||
21 | private String title; | ||
22 | |||
23 | /** | ||
24 | * 文档页数 | ||
25 | */ | ||
26 | private Integer pages; | ||
27 | |||
28 | /** | ||
29 | * 文档大小 | ||
30 | */ | ||
31 | private Long size; | ||
32 | |||
33 | /** | ||
34 | * 创建时间;格式yyyy-MM-dd HH:mm:ss | ||
35 | */ | ||
36 | private Date createTime; | ||
37 | |||
38 | /** | ||
39 | * 防伪码 | ||
40 | */ | ||
41 | private String antifakeCode; | ||
42 | |||
43 | /** | ||
44 | * 合同文档模板参数 | ||
45 | */ | ||
46 | private List<DocumentParamResponse> params; | ||
47 | |||
48 | /** | ||
49 | * 文件用途:NORMAL(合同正文)、TERMINATION(作废声明)、OFFLINE(线下签署文件) | ||
50 | */ | ||
51 | private String usage; | ||
52 | |||
53 | public Long getId() { | ||
54 | return id; | ||
55 | } | ||
56 | |||
57 | public void setId(Long id) { | ||
58 | this.id = id; | ||
59 | } | ||
60 | |||
61 | public String getTitle() { | ||
62 | return title; | ||
63 | } | ||
64 | |||
65 | public void setTitle(String title) { | ||
66 | this.title = title; | ||
67 | } | ||
68 | |||
69 | public Integer getPages() { | ||
70 | return pages; | ||
71 | } | ||
72 | |||
73 | public void setPages(Integer pages) { | ||
74 | this.pages = pages; | ||
75 | } | ||
76 | |||
77 | public Long getSize() { | ||
78 | return size; | ||
79 | } | ||
80 | |||
81 | public void setSize(Long size) { | ||
82 | this.size = size; | ||
83 | } | ||
84 | |||
85 | public Date getCreateTime() { | ||
86 | return createTime; | ||
87 | } | ||
88 | |||
89 | public void setCreateTime(Date createTime) { | ||
90 | this.createTime = createTime; | ||
91 | } | ||
92 | |||
93 | public String getAntifakeCode() { | ||
94 | return antifakeCode; | ||
95 | } | ||
96 | |||
97 | public void setAntifakeCode(String antifakeCode) { | ||
98 | this.antifakeCode = antifakeCode; | ||
99 | } | ||
100 | |||
101 | public List<DocumentParamResponse> getParams() { | ||
102 | return params; | ||
103 | } | ||
104 | |||
105 | public void setParams(List<DocumentParamResponse> params) { | ||
106 | this.params = params; | ||
107 | } | ||
108 | |||
109 | public String getUsage() { | ||
110 | return usage; | ||
111 | } | ||
112 | |||
113 | public void setUsage(String usage) { | ||
114 | this.usage = usage; | ||
115 | } | ||
116 | } |
1 | package com.thinkgem.jeesite.modules.eci.entity; | ||
2 | |||
3 | import java.util.Date; | ||
4 | |||
5 | /** | ||
6 | * 电子证照表实体 | ||
7 | */ | ||
8 | public class ElecLicenseInfo { | ||
9 | |||
10 | /** | ||
11 | * 合同标识,主键,自己生成 | ||
12 | */ | ||
13 | private String bizId; | ||
14 | |||
15 | /** | ||
16 | * 合同ID | ||
17 | */ | ||
18 | private Long contractId; | ||
19 | |||
20 | /** | ||
21 | * 模板参数 | ||
22 | */ | ||
23 | private String documentParam; | ||
24 | |||
25 | /** | ||
26 | * 合同文档ID | ||
27 | */ | ||
28 | private Long documentId; | ||
29 | |||
30 | /** | ||
31 | * 合同类型.1:不动产登记证明.2:不动产权证书.3:不动产查询证明 | ||
32 | */ | ||
33 | private String htlx; | ||
34 | |||
35 | /** | ||
36 | * 业务号 | ||
37 | */ | ||
38 | private String ywh; | ||
39 | |||
40 | /** | ||
41 | * 证书标识 | ||
42 | */ | ||
43 | private String zsbs; | ||
44 | |||
45 | /** | ||
46 | * 提交参数 | ||
47 | */ | ||
48 | private String tjcs; | ||
49 | |||
50 | /** | ||
51 | * 返回结果 | ||
52 | */ | ||
53 | private String fhjg; | ||
54 | |||
55 | /** | ||
56 | * 推送状态 | ||
57 | */ | ||
58 | private String tszt; | ||
59 | |||
60 | /** | ||
61 | * 合同状态(DRAFT:草稿,FILLING:拟定中,SIGNING:签署中,COMPLETE:已完成,REJECTED:已退回,RECALLED:已撤回,EXPIRED:已过期,TERMINATING:作废中,TERMINATED:已作废,DELETE:已删除,FINISHED:强制完成) | ||
62 | */ | ||
63 | private String htzt; | ||
64 | |||
65 | /** | ||
66 | * 推送时间 | ||
67 | */ | ||
68 | private Date tssj; | ||
69 | |||
70 | /** | ||
71 | * 是否下载 1是2否 | ||
72 | */ | ||
73 | private String sfxz; | ||
74 | |||
75 | /** | ||
76 | * ofd文件地址 | ||
77 | */ | ||
78 | private String ofdWjdz; | ||
79 | |||
80 | /** | ||
81 | * 是否转换1是2否 | ||
82 | */ | ||
83 | private String sfzh; | ||
84 | |||
85 | /** | ||
86 | * jpg文件地址 | ||
87 | */ | ||
88 | private String jpgWjdz; | ||
89 | |||
90 | /** | ||
91 | * 备注 | ||
92 | */ | ||
93 | private String bz; | ||
94 | |||
95 | public String getBizId() { | ||
96 | return bizId; | ||
97 | } | ||
98 | |||
99 | public void setBizId(String bizId) { | ||
100 | this.bizId = bizId; | ||
101 | } | ||
102 | |||
103 | public Long getContractId() { | ||
104 | return contractId; | ||
105 | } | ||
106 | |||
107 | public void setContractId(Long contractId) { | ||
108 | this.contractId = contractId; | ||
109 | } | ||
110 | |||
111 | public String getDocumentParam() { | ||
112 | return documentParam; | ||
113 | } | ||
114 | |||
115 | public void setDocumentParam(String documentParam) { | ||
116 | this.documentParam = documentParam; | ||
117 | } | ||
118 | |||
119 | public Long getDocumentId() { | ||
120 | return documentId; | ||
121 | } | ||
122 | |||
123 | public void setDocumentId(Long documentId) { | ||
124 | this.documentId = documentId; | ||
125 | } | ||
126 | |||
127 | public String getHtlx() { | ||
128 | return htlx; | ||
129 | } | ||
130 | |||
131 | public void setHtlx(String htlx) { | ||
132 | this.htlx = htlx; | ||
133 | } | ||
134 | |||
135 | public String getYwh() { | ||
136 | return ywh; | ||
137 | } | ||
138 | |||
139 | public void setYwh(String ywh) { | ||
140 | this.ywh = ywh; | ||
141 | } | ||
142 | |||
143 | public String getZsbs() { | ||
144 | return zsbs; | ||
145 | } | ||
146 | |||
147 | public void setZsbs(String zsbs) { | ||
148 | this.zsbs = zsbs; | ||
149 | } | ||
150 | |||
151 | public String getTjcs() { | ||
152 | return tjcs; | ||
153 | } | ||
154 | |||
155 | public void setTjcs(String tjcs) { | ||
156 | this.tjcs = tjcs; | ||
157 | } | ||
158 | |||
159 | public String getFhjg() { | ||
160 | return fhjg; | ||
161 | } | ||
162 | |||
163 | public void setFhjg(String fhjg) { | ||
164 | this.fhjg = fhjg; | ||
165 | } | ||
166 | |||
167 | public String getTszt() { | ||
168 | return tszt; | ||
169 | } | ||
170 | |||
171 | public void setTszt(String tszt) { | ||
172 | this.tszt = tszt; | ||
173 | } | ||
174 | |||
175 | public String getHtzt() { | ||
176 | return htzt; | ||
177 | } | ||
178 | |||
179 | public void setHtzt(String htzt) { | ||
180 | this.htzt = htzt; | ||
181 | } | ||
182 | |||
183 | public Date getTssj() { | ||
184 | return tssj; | ||
185 | } | ||
186 | |||
187 | public void setTssj(Date tssj) { | ||
188 | this.tssj = tssj; | ||
189 | } | ||
190 | |||
191 | public String getSfxz() { | ||
192 | return sfxz; | ||
193 | } | ||
194 | |||
195 | public void setSfxz(String sfxz) { | ||
196 | this.sfxz = sfxz; | ||
197 | } | ||
198 | |||
199 | public String getOfdWjdz() { | ||
200 | return ofdWjdz; | ||
201 | } | ||
202 | |||
203 | public void setOfdWjdz(String ofdWjdz) { | ||
204 | this.ofdWjdz = ofdWjdz; | ||
205 | } | ||
206 | |||
207 | public String getSfzh() { | ||
208 | return sfzh; | ||
209 | } | ||
210 | |||
211 | public void setSfzh(String sfzh) { | ||
212 | this.sfzh = sfzh; | ||
213 | } | ||
214 | |||
215 | public String getJpgWjdz() { | ||
216 | return jpgWjdz; | ||
217 | } | ||
218 | |||
219 | public void setJpgWjdz(String jpgWjdz) { | ||
220 | this.jpgWjdz = jpgWjdz; | ||
221 | } | ||
222 | |||
223 | public String getBz() { | ||
224 | return bz; | ||
225 | } | ||
226 | |||
227 | public void setBz(String bz) { | ||
228 | this.bz = bz; | ||
229 | } | ||
230 | } |
1 | package com.thinkgem.jeesite.modules.eci.entity; | ||
2 | |||
3 | import java.io.Serializable; | ||
4 | |||
5 | /** | ||
6 | * 签署动作操作人 | ||
7 | */ | ||
8 | public class OperatorResponse implements Serializable { | ||
9 | |||
10 | private static final long serialVersionUID = -2918875188564078227L; | ||
11 | /** | ||
12 | * 操作人类型:EMPLOYEE(员工),ROLE(角色),USER(用户),COMPANY(企业),LP_USER(法人) | ||
13 | */ | ||
14 | private String operatorType; | ||
15 | |||
16 | /** | ||
17 | * 操作人ID | ||
18 | */ | ||
19 | private Long operatorId; | ||
20 | |||
21 | /** | ||
22 | * 操作人名称 | ||
23 | */ | ||
24 | private String operatorName; | ||
25 | |||
26 | public String getOperatorType() { | ||
27 | return operatorType; | ||
28 | } | ||
29 | |||
30 | public void setOperatorType(String operatorType) { | ||
31 | this.operatorType = operatorType; | ||
32 | } | ||
33 | |||
34 | public Long getOperatorId() { | ||
35 | return operatorId; | ||
36 | } | ||
37 | |||
38 | public void setOperatorId(Long operatorId) { | ||
39 | this.operatorId = operatorId; | ||
40 | } | ||
41 | |||
42 | public String getOperatorName() { | ||
43 | return operatorName; | ||
44 | } | ||
45 | |||
46 | public void setOperatorName(String operatorName) { | ||
47 | this.operatorName = operatorName; | ||
48 | } | ||
49 | } |
1 | package com.thinkgem.jeesite.modules.eci.entity; | ||
2 | |||
3 | import java.io.Serializable; | ||
4 | |||
5 | public class SealStatsBean implements Serializable { | ||
6 | |||
7 | private static final long serialVersionUID = -1458258324552835005L; | ||
8 | private String signType; | ||
9 | |||
10 | private String signCountByType; | ||
11 | |||
12 | public String getSignType() { | ||
13 | return signType; | ||
14 | } | ||
15 | |||
16 | public void setSignType(String signType) { | ||
17 | this.signType = signType; | ||
18 | } | ||
19 | |||
20 | public String getSignCountByType() { | ||
21 | return signCountByType; | ||
22 | } | ||
23 | |||
24 | public void setSignCountByType(String signCountByType) { | ||
25 | this.signCountByType = signCountByType; | ||
26 | } | ||
27 | } |
1 | package com.thinkgem.jeesite.modules.eci.entity; | ||
2 | |||
3 | import java.io.Serializable; | ||
4 | |||
5 | /** | ||
6 | * 该签约主体签署统计信息 | ||
7 | */ | ||
8 | public class SealStatsInfo implements Serializable { | ||
9 | |||
10 | private static final long serialVersionUID = 3699877748342667560L; | ||
11 | /** | ||
12 | * 印章ID | ||
13 | */ | ||
14 | private Long sealId; | ||
15 | |||
16 | /** | ||
17 | * 印章名称 | ||
18 | */ | ||
19 | private String sealName; | ||
20 | |||
21 | /** | ||
22 | * 用印次数 | ||
23 | */ | ||
24 | private Integer count; | ||
25 | |||
26 | public Long getSealId() { | ||
27 | return sealId; | ||
28 | } | ||
29 | |||
30 | public void setSealId(Long sealId) { | ||
31 | this.sealId = sealId; | ||
32 | } | ||
33 | |||
34 | public String getSealName() { | ||
35 | return sealName; | ||
36 | } | ||
37 | |||
38 | public void setSealName(String sealName) { | ||
39 | this.sealName = sealName; | ||
40 | } | ||
41 | |||
42 | public Integer getCount() { | ||
43 | return count; | ||
44 | } | ||
45 | |||
46 | public void setCount(Integer count) { | ||
47 | this.count = count; | ||
48 | } | ||
49 | } |
1 | package com.thinkgem.jeesite.modules.eci.entity; | ||
2 | |||
3 | /** | ||
4 | * 签署位置 | ||
5 | */ | ||
6 | public class SignatoryRect{ | ||
7 | |||
8 | private static final long serialVersionUID = 1L; | ||
9 | /** | ||
10 | * 是 | ||
11 | * 合同文档ID | ||
12 | */ | ||
13 | private Long documentId; | ||
14 | |||
15 | /** | ||
16 | * 是 | ||
17 | * 签章类型: SEAL_PERSONAL(个人签名), SEAL_CORPORATE(公司公章),TIMESTAMP(时间戳),ACROSS_PAGE_ODD(奇数页骑缝章),ACROSS_PAGE(骑缝章);骑缝章类型时只需要指定合同文档ID和Y轴坐标。 | ||
18 | */ | ||
19 | private String rectType; | ||
20 | |||
21 | /** | ||
22 | * 否 按坐标指定位置时:必传 | ||
23 | * 签署页码,坐标指定位置时必须,0:全部页,-1:最后一页,其他:第page页 | ||
24 | */ | ||
25 | private Integer page; | ||
26 | |||
27 | /** | ||
28 | * 否 按关键字指定位置时:必传 | ||
29 | * 关键字,关键字指定位置时必须 | ||
30 | */ | ||
31 | private String keyword; | ||
32 | |||
33 | /** | ||
34 | * 否 | ||
35 | * 第几个关键字,0:全部,-1:最后一个,其他:第keyIndex个,默认为1 | ||
36 | */ | ||
37 | private Integer keywordIndex; | ||
38 | |||
39 | /** | ||
40 | * 否 按坐标时:必传按关键字时:选传 | ||
41 | * X轴坐标,坐标定位时必传,关键字定位时选传 | ||
42 | */ | ||
43 | private Double offsetX; | ||
44 | |||
45 | /** | ||
46 | * 否 按坐标时:必传按关键字时:选传 | ||
47 | * Y轴坐标,坐标定位时必传,关键字定位时选传 | ||
48 | */ | ||
49 | private Double offsetY; | ||
50 | |||
51 | public Long getDocumentId() { | ||
52 | return documentId; | ||
53 | } | ||
54 | |||
55 | public void setDocumentId(Long documentId) { | ||
56 | this.documentId = documentId; | ||
57 | } | ||
58 | |||
59 | public String getRectType() { | ||
60 | return rectType; | ||
61 | } | ||
62 | |||
63 | public void setRectType(String rectType) { | ||
64 | this.rectType = rectType; | ||
65 | } | ||
66 | |||
67 | public Integer getPage() { | ||
68 | return page; | ||
69 | } | ||
70 | |||
71 | public void setPage(Integer page) { | ||
72 | this.page = page; | ||
73 | } | ||
74 | |||
75 | public String getKeyword() { | ||
76 | return keyword; | ||
77 | } | ||
78 | |||
79 | public void setKeyword(String keyword) { | ||
80 | this.keyword = keyword; | ||
81 | } | ||
82 | |||
83 | public Integer getKeywordIndex() { | ||
84 | return keywordIndex; | ||
85 | } | ||
86 | |||
87 | public void setKeywordIndex(Integer keywordIndex) { | ||
88 | this.keywordIndex = keywordIndex; | ||
89 | } | ||
90 | |||
91 | public Double getOffsetX() { | ||
92 | return offsetX; | ||
93 | } | ||
94 | |||
95 | public void setOffsetX(Double offsetX) { | ||
96 | this.offsetX = offsetX; | ||
97 | } | ||
98 | |||
99 | public Double getOffsetY() { | ||
100 | return offsetY; | ||
101 | } | ||
102 | |||
103 | public void setOffsetY(Double offsetY) { | ||
104 | this.offsetY = offsetY; | ||
105 | } | ||
106 | } |
1 | package com.thinkgem.jeesite.modules.eci.entity; | ||
2 | |||
3 | import java.util.List; | ||
4 | |||
5 | /** | ||
6 | * 签署方 | ||
7 | */ | ||
8 | public class SignatoryRequest { | ||
9 | |||
10 | private static final long serialVersionUID = 1L; | ||
11 | |||
12 | /** | ||
13 | * 是 | ||
14 | * 签约主体类型:COMPANY(外部企业),PERSONAL(个人) | ||
15 | */ | ||
16 | private String tenantType; | ||
17 | |||
18 | /** | ||
19 | * 是 | ||
20 | * 签约主体名称 | ||
21 | */ | ||
22 | private String tenantName; | ||
23 | |||
24 | /** | ||
25 | * 否 | ||
26 | * 接收人姓名 | ||
27 | */ | ||
28 | private String receiverName; | ||
29 | |||
30 | /** | ||
31 | * 否 | ||
32 | * 接收人联系方式:手机号、电子邮箱号(签署方为个人时联系方式(contact)或编号(receiverNumber)至少传递一个) | ||
33 | */ | ||
34 | private String contact; | ||
35 | |||
36 | /** | ||
37 | * 否 | ||
38 | * 接收人的员工编号(个人为内部员工时生效) | ||
39 | */ | ||
40 | private String receiverNumber; | ||
41 | |||
42 | /** | ||
43 | * 否 | ||
44 | * 接收人邮箱 | ||
45 | */ | ||
46 | private String email; | ||
47 | |||
48 | /** | ||
49 | * 否 | ||
50 | * 接收人第三方用户id(用于修改接收人联系方式) | ||
51 | */ | ||
52 | private String thirdUserId; | ||
53 | |||
54 | /** | ||
55 | * 否 | ||
56 | * 是否人脸识别签署,默认不需要人脸识别(仅签署方类型为个人时有效) | ||
57 | */ | ||
58 | private boolean faceAuthSign; | ||
59 | |||
60 | /** | ||
61 | * 是 | ||
62 | * 签署顺序(从1开始);如果想按顺序签署,则分别设置签署方的serialNo为1,2,3;如果想无序签署,则设置签署方的serialNo为1,1,1;设置签署方顺序为1,2,2时,表示第一个先签署,后两个同时签署。 | ||
63 | */ | ||
64 | private Integer serialNo; | ||
65 | |||
66 | /** | ||
67 | * 否 | ||
68 | * 签署动作,用印流程非预设且签署方为发起方时,使用用户传入的签署动作,其余情况使用用印流程的配置 | ||
69 | */ | ||
70 | private List<ActionRequest> actionRequests; | ||
71 | |||
72 | /** | ||
73 | * 否 | ||
74 | * 用印流程ID,接收方是内部企业时,可指定用印流程 | ||
75 | */ | ||
76 | private String categoryId; | ||
77 | |||
78 | /** | ||
79 | * 否 | ||
80 | * 用印流程名称,接收方是内部企业时,可指定用印流程 | ||
81 | */ | ||
82 | private String categoryName; | ||
83 | |||
84 | /** | ||
85 | * 否 | ||
86 | * 是否发送消息提醒,默认为true | ||
87 | */ | ||
88 | private boolean remind; | ||
89 | |||
90 | /** | ||
91 | * 否 | ||
92 | * 身份证号,用于指定个人用户认证时的身份证号 | ||
93 | */ | ||
94 | private String cardNo; | ||
95 | |||
96 | /** | ||
97 | * 否 | ||
98 | * 个人认证方式:NONEED(无需认证),DEFAULT(默认配置),FACE(人脸识别认证),BANK(银行卡认证) | ||
99 | */ | ||
100 | private String authMode; | ||
101 | |||
102 | /** | ||
103 | * 否 | ||
104 | * 签署方语言:zh_CN(中文),en_US(英文) | ||
105 | */ | ||
106 | private String language; | ||
107 | |||
108 | |||
109 | public String getTenantType() { | ||
110 | return tenantType; | ||
111 | } | ||
112 | |||
113 | public void setTenantType(String tenantType) { | ||
114 | this.tenantType = tenantType; | ||
115 | } | ||
116 | |||
117 | public String getTenantName() { | ||
118 | return tenantName; | ||
119 | } | ||
120 | |||
121 | public void setTenantName(String tenantName) { | ||
122 | this.tenantName = tenantName; | ||
123 | } | ||
124 | |||
125 | public String getReceiverName() { | ||
126 | return receiverName; | ||
127 | } | ||
128 | |||
129 | public void setReceiverName(String receiverName) { | ||
130 | this.receiverName = receiverName; | ||
131 | } | ||
132 | |||
133 | public String getContact() { | ||
134 | return contact; | ||
135 | } | ||
136 | |||
137 | public void setContact(String contact) { | ||
138 | this.contact = contact; | ||
139 | } | ||
140 | |||
141 | public String getReceiverNumber() { | ||
142 | return receiverNumber; | ||
143 | } | ||
144 | |||
145 | public void setReceiverNumber(String receiverNumber) { | ||
146 | this.receiverNumber = receiverNumber; | ||
147 | } | ||
148 | |||
149 | public String getEmail() { | ||
150 | return email; | ||
151 | } | ||
152 | |||
153 | public void setEmail(String email) { | ||
154 | this.email = email; | ||
155 | } | ||
156 | |||
157 | public String getThirdUserId() { | ||
158 | return thirdUserId; | ||
159 | } | ||
160 | |||
161 | public void setThirdUserId(String thirdUserId) { | ||
162 | this.thirdUserId = thirdUserId; | ||
163 | } | ||
164 | |||
165 | public boolean isFaceAuthSign() { | ||
166 | return faceAuthSign; | ||
167 | } | ||
168 | |||
169 | public void setFaceAuthSign(boolean faceAuthSign) { | ||
170 | this.faceAuthSign = faceAuthSign; | ||
171 | } | ||
172 | |||
173 | public Integer getSerialNo() { | ||
174 | return serialNo; | ||
175 | } | ||
176 | |||
177 | public void setSerialNo(Integer serialNo) { | ||
178 | this.serialNo = serialNo; | ||
179 | } | ||
180 | |||
181 | public String getCategoryId() { | ||
182 | return categoryId; | ||
183 | } | ||
184 | |||
185 | public void setCategoryId(String categoryId) { | ||
186 | this.categoryId = categoryId; | ||
187 | } | ||
188 | |||
189 | public String getCategoryName() { | ||
190 | return categoryName; | ||
191 | } | ||
192 | |||
193 | public void setCategoryName(String categoryName) { | ||
194 | this.categoryName = categoryName; | ||
195 | } | ||
196 | |||
197 | public boolean isRemind() { | ||
198 | return remind; | ||
199 | } | ||
200 | |||
201 | public void setRemind(boolean remind) { | ||
202 | this.remind = remind; | ||
203 | } | ||
204 | |||
205 | public String getCardNo() { | ||
206 | return cardNo; | ||
207 | } | ||
208 | |||
209 | public void setCardNo(String cardNo) { | ||
210 | this.cardNo = cardNo; | ||
211 | } | ||
212 | |||
213 | public String getAuthMode() { | ||
214 | return authMode; | ||
215 | } | ||
216 | |||
217 | public void setAuthMode(String authMode) { | ||
218 | this.authMode = authMode; | ||
219 | } | ||
220 | |||
221 | public String getLanguage() { | ||
222 | return language; | ||
223 | } | ||
224 | |||
225 | public void setLanguage(String language) { | ||
226 | this.language = language; | ||
227 | } | ||
228 | |||
229 | public List<ActionRequest> getActions() { | ||
230 | return actionRequests; | ||
231 | } | ||
232 | |||
233 | public void setActions(List<ActionRequest> actionRequests) { | ||
234 | this.actionRequests = actionRequests; | ||
235 | } | ||
236 | } |
1 | package com.thinkgem.jeesite.modules.eci.entity; | ||
2 | |||
3 | import java.io.Serializable; | ||
4 | import java.util.List; | ||
5 | |||
6 | /** | ||
7 | * 签署方 | ||
8 | */ | ||
9 | public class SignatoryResponse implements Serializable { | ||
10 | |||
11 | private static final long serialVersionUID = -7830145977708166582L; | ||
12 | /** | ||
13 | * 签署方ID | ||
14 | */ | ||
15 | private Long id; | ||
16 | |||
17 | /** | ||
18 | * 签署方公司ID或个人ID | ||
19 | */ | ||
20 | private Long tenantId; | ||
21 | |||
22 | /** | ||
23 | * 签署方类型:CORPORATE(平台企业),INNER_COMPANY(内部企业),(外部企业),PERSONAL(个人) | ||
24 | */ | ||
25 | private String tenantType; | ||
26 | |||
27 | /** | ||
28 | * 签署方名称 | ||
29 | */ | ||
30 | private String tenantName; | ||
31 | |||
32 | /** | ||
33 | * 接收人类型:CORPORATE(平台方),COMPANY(外部企业),INNER_COMPANY(内部企业),PERSONAL(个人) | ||
34 | */ | ||
35 | private String receiverType; | ||
36 | |||
37 | /** | ||
38 | * 接收人ID,即可以转发合同的人 | ||
39 | */ | ||
40 | private Long receiverId; | ||
41 | |||
42 | /** | ||
43 | * 接收人名称 | ||
44 | */ | ||
45 | private String receiverName; | ||
46 | |||
47 | /** | ||
48 | * 接收人联系方式 | ||
49 | */ | ||
50 | private String contact; | ||
51 | |||
52 | /** | ||
53 | * 签署顺序 | ||
54 | */ | ||
55 | private Integer serialNo; | ||
56 | |||
57 | /** | ||
58 | * 签署状态;DRAFT(草稿),SIGNING(签署中),COMPLETE(已完成) | ||
59 | */ | ||
60 | private Boolean status; | ||
61 | |||
62 | /** | ||
63 | * 是否是发起方 | ||
64 | */ | ||
65 | private Boolean sponsor; | ||
66 | |||
67 | /** | ||
68 | * 是否发送信息提醒 | ||
69 | */ | ||
70 | private Boolean remind; | ||
71 | |||
72 | /** | ||
73 | * 是否从业务配置中得到 | ||
74 | */ | ||
75 | private Boolean configured; | ||
76 | |||
77 | /** | ||
78 | * 创建时间;格式yyyy-MM-dd HH:mm:ss | ||
79 | */ | ||
80 | private String createTime; | ||
81 | |||
82 | /** | ||
83 | * 更新时间;格式yyyy-MM-dd HH:mm:ss | ||
84 | */ | ||
85 | private String updateTime; | ||
86 | |||
87 | /** | ||
88 | * 接收时间;格式yyyy-MM-dd HH:mm:ss | ||
89 | */ | ||
90 | private String receiveTime; | ||
91 | |||
92 | /** | ||
93 | * 是否当面签 | ||
94 | */ | ||
95 | private Boolean faceSign; | ||
96 | |||
97 | /** | ||
98 | * 用印流程中,配置的个人认证方式:NONEED("无需认证"),DEFAULT("默认配置"),FACE("人脸识别认证"),BANK("银行卡认证") | ||
99 | */ | ||
100 | private String authMode; | ||
101 | |||
102 | /** | ||
103 | * 签署动作 | ||
104 | */ | ||
105 | private List<ActionResponse> actionRequests; | ||
106 | |||
107 | /** | ||
108 | * 是否人脸识别签署 | ||
109 | */ | ||
110 | private Boolean faceAuthSign; | ||
111 | |||
112 | /** | ||
113 | * 是否降级 | ||
114 | */ | ||
115 | private Boolean demotion; | ||
116 | |||
117 | /** | ||
118 | * 该签约主体签署统计信息 | ||
119 | */ | ||
120 | private List<SealStatsBean> sealStats; | ||
121 | |||
122 | /** | ||
123 | * 该签约主体签署统计信息 | ||
124 | */ | ||
125 | private List<SealStatsInfo> sealStatsInfos; | ||
126 | |||
127 | public Long getId() { | ||
128 | return id; | ||
129 | } | ||
130 | |||
131 | public void setId(Long id) { | ||
132 | this.id = id; | ||
133 | } | ||
134 | |||
135 | public Long getTenantId() { | ||
136 | return tenantId; | ||
137 | } | ||
138 | |||
139 | public void setTenantId(Long tenantId) { | ||
140 | this.tenantId = tenantId; | ||
141 | } | ||
142 | |||
143 | public String getTenantType() { | ||
144 | return tenantType; | ||
145 | } | ||
146 | |||
147 | public void setTenantType(String tenantType) { | ||
148 | this.tenantType = tenantType; | ||
149 | } | ||
150 | |||
151 | public String getTenantName() { | ||
152 | return tenantName; | ||
153 | } | ||
154 | |||
155 | public void setTenantName(String tenantName) { | ||
156 | this.tenantName = tenantName; | ||
157 | } | ||
158 | |||
159 | public String getReceiverType() { | ||
160 | return receiverType; | ||
161 | } | ||
162 | |||
163 | public void setReceiverType(String receiverType) { | ||
164 | this.receiverType = receiverType; | ||
165 | } | ||
166 | |||
167 | public Long getReceiverId() { | ||
168 | return receiverId; | ||
169 | } | ||
170 | |||
171 | public void setReceiverId(Long receiverId) { | ||
172 | this.receiverId = receiverId; | ||
173 | } | ||
174 | |||
175 | public String getReceiverName() { | ||
176 | return receiverName; | ||
177 | } | ||
178 | |||
179 | public void setReceiverName(String receiverName) { | ||
180 | this.receiverName = receiverName; | ||
181 | } | ||
182 | |||
183 | public String getContact() { | ||
184 | return contact; | ||
185 | } | ||
186 | |||
187 | public void setContact(String contact) { | ||
188 | this.contact = contact; | ||
189 | } | ||
190 | |||
191 | public Integer getSerialNo() { | ||
192 | return serialNo; | ||
193 | } | ||
194 | |||
195 | public void setSerialNo(Integer serialNo) { | ||
196 | this.serialNo = serialNo; | ||
197 | } | ||
198 | |||
199 | public Boolean getStatus() { | ||
200 | return status; | ||
201 | } | ||
202 | |||
203 | public void setStatus(Boolean status) { | ||
204 | this.status = status; | ||
205 | } | ||
206 | |||
207 | public Boolean getSponsor() { | ||
208 | return sponsor; | ||
209 | } | ||
210 | |||
211 | public void setSponsor(Boolean sponsor) { | ||
212 | this.sponsor = sponsor; | ||
213 | } | ||
214 | |||
215 | public Boolean getRemind() { | ||
216 | return remind; | ||
217 | } | ||
218 | |||
219 | public void setRemind(Boolean remind) { | ||
220 | this.remind = remind; | ||
221 | } | ||
222 | |||
223 | public Boolean getConfigured() { | ||
224 | return configured; | ||
225 | } | ||
226 | |||
227 | public void setConfigured(Boolean configured) { | ||
228 | this.configured = configured; | ||
229 | } | ||
230 | |||
231 | public String getCreateTime() { | ||
232 | return createTime; | ||
233 | } | ||
234 | |||
235 | public void setCreateTime(String createTime) { | ||
236 | this.createTime = createTime; | ||
237 | } | ||
238 | |||
239 | public String getUpdateTime() { | ||
240 | return updateTime; | ||
241 | } | ||
242 | |||
243 | public void setUpdateTime(String updateTime) { | ||
244 | this.updateTime = updateTime; | ||
245 | } | ||
246 | |||
247 | public String getReceiveTime() { | ||
248 | return receiveTime; | ||
249 | } | ||
250 | |||
251 | public void setReceiveTime(String receiveTime) { | ||
252 | this.receiveTime = receiveTime; | ||
253 | } | ||
254 | |||
255 | public Boolean getFaceSign() { | ||
256 | return faceSign; | ||
257 | } | ||
258 | |||
259 | public void setFaceSign(Boolean faceSign) { | ||
260 | this.faceSign = faceSign; | ||
261 | } | ||
262 | |||
263 | public String getAuthMode() { | ||
264 | return authMode; | ||
265 | } | ||
266 | |||
267 | public void setAuthMode(String authMode) { | ||
268 | this.authMode = authMode; | ||
269 | } | ||
270 | |||
271 | public List<ActionResponse> getActionRequests() { | ||
272 | return actionRequests; | ||
273 | } | ||
274 | |||
275 | public void setActionRequests(List<ActionResponse> actionRequests) { | ||
276 | this.actionRequests = actionRequests; | ||
277 | } | ||
278 | |||
279 | public Boolean getFaceAuthSign() { | ||
280 | return faceAuthSign; | ||
281 | } | ||
282 | |||
283 | public void setFaceAuthSign(Boolean faceAuthSign) { | ||
284 | this.faceAuthSign = faceAuthSign; | ||
285 | } | ||
286 | |||
287 | public Boolean getDemotion() { | ||
288 | return demotion; | ||
289 | } | ||
290 | |||
291 | public void setDemotion(Boolean demotion) { | ||
292 | this.demotion = demotion; | ||
293 | } | ||
294 | |||
295 | public List<SealStatsBean> getSealStats() { | ||
296 | return sealStats; | ||
297 | } | ||
298 | |||
299 | public void setSealStats(List<SealStatsBean> sealStats) { | ||
300 | this.sealStats = sealStats; | ||
301 | } | ||
302 | |||
303 | public List<SealStatsInfo> getSealStatsInfos() { | ||
304 | return sealStatsInfos; | ||
305 | } | ||
306 | |||
307 | public void setSealStatsInfos(List<SealStatsInfo> sealStatsInfos) { | ||
308 | this.sealStatsInfos = sealStatsInfos; | ||
309 | } | ||
310 | } |
1 | package com.thinkgem.jeesite.modules.eci.entity; | ||
2 | |||
3 | /** | ||
4 | * 水印配置 | ||
5 | */ | ||
6 | public class WaterMarkContent { | ||
7 | |||
8 | private static final long serialVersionUID = 1L; | ||
9 | |||
10 | /** | ||
11 | * 是 | ||
12 | * 水印类型:TEXT(文本),IMAGE(图片) | ||
13 | */ | ||
14 | private String type; | ||
15 | |||
16 | /** | ||
17 | * 水印类型为文本时必填 | ||
18 | * 文字内容 | ||
19 | */ | ||
20 | private String content; | ||
21 | |||
22 | /** | ||
23 | * 水印类型为图片时必填 | ||
24 | * 图片水印。只支持png格式 | ||
25 | */ | ||
26 | private String imageBase64; | ||
27 | |||
28 | public String getType() { | ||
29 | return type; | ||
30 | } | ||
31 | |||
32 | public void setType(String type) { | ||
33 | this.type = type; | ||
34 | } | ||
35 | |||
36 | public String getContent() { | ||
37 | return content; | ||
38 | } | ||
39 | |||
40 | public void setContent(String content) { | ||
41 | this.content = content; | ||
42 | } | ||
43 | |||
44 | public String getImageBase64() { | ||
45 | return imageBase64; | ||
46 | } | ||
47 | |||
48 | public void setImageBase64(String imageBase64) { | ||
49 | this.imageBase64 = imageBase64; | ||
50 | } | ||
51 | } |
1 | package com.thinkgem.jeesite.modules.eci.method; | ||
2 | |||
3 | import com.thinkgem.jeesite.common.config.Global; | ||
4 | import com.thinkgem.jeesite.common.utils.JsonUtil; | ||
5 | import com.thinkgem.jeesite.modules.eci.dao.ElecLicenseInfoDao; | ||
6 | import com.thinkgem.jeesite.modules.eci.entity.ContractDetailsResponse; | ||
7 | import com.thinkgem.jeesite.modules.eci.entity.ElecLicenseInfo; | ||
8 | import com.thinkgem.jeesite.modules.eci.utils.EciHttpUtil; | ||
9 | import org.slf4j.Logger; | ||
10 | import org.slf4j.LoggerFactory; | ||
11 | import org.springframework.beans.factory.annotation.Autowired; | ||
12 | import org.springframework.stereotype.Component; | ||
13 | import org.springframework.transaction.annotation.Transactional; | ||
14 | |||
15 | import java.util.List; | ||
16 | |||
17 | /** | ||
18 | * 请求合同详情方法 | ||
19 | */ | ||
20 | @Component | ||
21 | public class ContractDetailsRest { | ||
22 | |||
23 | private static final String DETAILS = "/contract/detail"; | ||
24 | |||
25 | private Logger logger = LoggerFactory.getLogger(ContractDetailsRest.class); | ||
26 | |||
27 | @Autowired | ||
28 | ElecLicenseInfoDao licenseInfoDao; | ||
29 | |||
30 | @Transactional(rollbackFor = Exception.class) | ||
31 | public void accessDetails() { | ||
32 | |||
33 | List<ElecLicenseInfo> waitForDetails = licenseInfoDao.getDocumentIdIsNull(); | ||
34 | |||
35 | for (ElecLicenseInfo waitForDetail : waitForDetails) { | ||
36 | Long contractId = waitForDetail.getContractId(); | ||
37 | String bizId = waitForDetail.getBizId(); | ||
38 | String url = Global.ECI_HOST + DETAILS + "?contractId=" + contractId; | ||
39 | logger.info("请求合同详情接口url:" + url); | ||
40 | try { | ||
41 | String result = null; | ||
42 | result = EciHttpUtil.doGet(url); | ||
43 | logger.info("合同详情接口请求结果:" + result); | ||
44 | ContractDetailsResponse response = JsonUtil.fromJson(result, ContractDetailsResponse.class); | ||
45 | |||
46 | if (response != null && response.getCode() == 0) { | ||
47 | // TODO: 2022/2/15/0015 目前先取文档详情集合第一个 | ||
48 | Long documentId = response.getContract().getDocuments().get(0).getId(); | ||
49 | //文档ID入库 | ||
50 | licenseInfoDao.updateDocumentId(bizId, documentId); | ||
51 | } | ||
52 | |||
53 | } catch (Exception e) { | ||
54 | e.printStackTrace(); | ||
55 | } | ||
56 | } | ||
57 | } | ||
58 | |||
59 | } |
1 | package com.thinkgem.jeesite.modules.eci.method; | ||
2 | |||
3 | import com.thinkgem.jeesite.common.config.Global; | ||
4 | import com.thinkgem.jeesite.common.utils.JsonUtil; | ||
5 | import com.thinkgem.jeesite.modules.eci.dao.ElecLicenseInfoDao; | ||
6 | import com.thinkgem.jeesite.modules.eci.entity.CreateContractRequest; | ||
7 | import com.thinkgem.jeesite.modules.eci.entity.CreateContractResponse; | ||
8 | import com.thinkgem.jeesite.modules.eci.entity.ElecLicenseInfo; | ||
9 | import com.thinkgem.jeesite.modules.eci.utils.EciHttpUtil; | ||
10 | import org.apache.commons.beanutils.BeanUtils; | ||
11 | import org.slf4j.Logger; | ||
12 | import org.slf4j.LoggerFactory; | ||
13 | import org.springframework.beans.factory.annotation.Autowired; | ||
14 | import org.springframework.stereotype.Component; | ||
15 | import org.springframework.transaction.annotation.Transactional; | ||
16 | |||
17 | import java.util.HashMap; | ||
18 | import java.util.List; | ||
19 | import java.util.Map; | ||
20 | |||
21 | /** | ||
22 | * 请求创建合同方法 | ||
23 | */ | ||
24 | @Component | ||
25 | public class CreateContractRest { | ||
26 | |||
27 | private Logger logger = LoggerFactory.getLogger(CreateContractRest.class); | ||
28 | |||
29 | private static final String CREATE_BY_CATEGORY = "/contract/createbycategory"; | ||
30 | |||
31 | @Autowired | ||
32 | ElecLicenseInfoDao licenseInfoDao; | ||
33 | |||
34 | |||
35 | /** | ||
36 | * 批量创建 | ||
37 | * | ||
38 | * @return | ||
39 | */ | ||
40 | @Transactional(rollbackFor = Exception.class) | ||
41 | public void accessCreateContract() { | ||
42 | |||
43 | String url = Global.ECI_HOST + CREATE_BY_CATEGORY; | ||
44 | logger.info("http request url:" + url); | ||
45 | |||
46 | // List<CreateContractRequest> requests = new ArrayList<>(); | ||
47 | |||
48 | List<ElecLicenseInfo> waitForCreateContracts = licenseInfoDao.getContractIdIsNull(); | ||
49 | for (ElecLicenseInfo waitForCreateContract : waitForCreateContracts) { | ||
50 | String result = null; | ||
51 | CreateContractRequest request = new CreateContractRequest(); | ||
52 | request.setSubject("不动产合同"); | ||
53 | request.setSn(waitForCreateContract.getYwh()); | ||
54 | String htlx = waitForCreateContract.getHtlx(); | ||
55 | if ("1".equals(htlx) || "2".equals(htlx)) { | ||
56 | //不动产登记证明和不动产权证书类型使用证照专用章 | ||
57 | request.setCategoryId(Global.ECI_ZZZYZ); | ||
58 | } else if ("3".equals(htlx)) { | ||
59 | //不动产查询证明使用档案查询专用章 | ||
60 | request.setCategoryId(Global.ECI_DACXZYZ); | ||
61 | } | ||
62 | request.setBizId(waitForCreateContract.getBizId()); | ||
63 | |||
64 | // TODO: 2022/2/14/0014 获取模板参数json字符串,处理方式待定 | ||
65 | // request.setDocumentParams(waitForCreateContract.getDocumentParam()); | ||
66 | |||
67 | //提交参数入库 | ||
68 | String tjcs = JsonUtil.toJsonString(request); | ||
69 | logger.info("提交参数:" + tjcs); | ||
70 | waitForCreateContract.setTjcs(tjcs); | ||
71 | // licenseInfoDao.updateTjcs(waitForCreateContract); | ||
72 | |||
73 | try { | ||
74 | Map map = new HashMap(); | ||
75 | BeanUtils.populate(request, map); | ||
76 | result = EciHttpUtil.doPost(url, map); | ||
77 | logger.info("创建合同接口返回结果:" + result); | ||
78 | CreateContractResponse response = JsonUtil.fromJson(result, CreateContractResponse.class); | ||
79 | if (response != null) { | ||
80 | if (0 == (response.getCode())) { | ||
81 | Long contractId = response.getContractId(); | ||
82 | //合同ID入库 | ||
83 | waitForCreateContract.setContractId(contractId); | ||
84 | //返回结果入库 | ||
85 | waitForCreateContract.setFhjg(result); | ||
86 | //未下载 | ||
87 | waitForCreateContract.setSfxz("2"); | ||
88 | //未转换 | ||
89 | waitForCreateContract.setSfzh("2"); | ||
90 | licenseInfoDao.updateContractIdAndStatus(waitForCreateContract); | ||
91 | } | ||
92 | } | ||
93 | } catch (Exception e) { | ||
94 | e.printStackTrace(); | ||
95 | } | ||
96 | |||
97 | } | ||
98 | |||
99 | } | ||
100 | } |
1 | package com.thinkgem.jeesite.modules.eci.method; | ||
2 | |||
3 | import com.thinkgem.jeesite.common.config.Global; | ||
4 | import com.thinkgem.jeesite.modules.eci.dao.ElecLicenseInfoDao; | ||
5 | import com.thinkgem.jeesite.modules.eci.entity.ElecLicenseInfo; | ||
6 | import com.thinkgem.jeesite.modules.eci.utils.EciHttpUtil; | ||
7 | import org.springframework.beans.factory.annotation.Autowired; | ||
8 | import org.springframework.stereotype.Component; | ||
9 | |||
10 | import java.util.List; | ||
11 | |||
12 | /** | ||
13 | * 合同下载 | ||
14 | */ | ||
15 | @Component | ||
16 | public class DownloadContractRest { | ||
17 | |||
18 | private static final String DOCUMENT_DOWNLOAD = "/document/download"; | ||
19 | |||
20 | @Autowired | ||
21 | ElecLicenseInfoDao licenseInfoDao; | ||
22 | |||
23 | /** | ||
24 | * 下载合同方法 | ||
25 | * @return | ||
26 | */ | ||
27 | public void accessDownload() { | ||
28 | |||
29 | List<ElecLicenseInfo> waitForDownloads = licenseInfoDao.getWaitForDownload(); | ||
30 | |||
31 | for (ElecLicenseInfo waitForDownload : waitForDownloads) { | ||
32 | String bizId = waitForDownload.getBizId(); | ||
33 | Long documentId = waitForDownload.getDocumentId(); | ||
34 | String url = Global.ECI_HOST + DOCUMENT_DOWNLOAD + "?documentId=" + documentId; | ||
35 | |||
36 | String ofdPath = EciHttpUtil.download(url); | ||
37 | if (ofdPath != null) { | ||
38 | //入库ofd文件地址 | ||
39 | licenseInfoDao.updateOfdWjdz(bizId, ofdPath); | ||
40 | } | ||
41 | } | ||
42 | |||
43 | } | ||
44 | } |
1 | package com.thinkgem.jeesite.modules.eci.method; | ||
2 | |||
3 | import com.thinkgem.jeesite.modules.eci.dao.ElecLicenseInfoDao; | ||
4 | import com.thinkgem.jeesite.modules.eci.entity.ElecLicenseInfo; | ||
5 | import org.slf4j.Logger; | ||
6 | import org.slf4j.LoggerFactory; | ||
7 | import org.springframework.beans.factory.annotation.Autowired; | ||
8 | import org.springframework.stereotype.Component; | ||
9 | |||
10 | import java.util.List; | ||
11 | |||
12 | /** | ||
13 | * ofd文件转换 | ||
14 | */ | ||
15 | @Component | ||
16 | public class OfdConvertRest { | ||
17 | |||
18 | private Logger logger = LoggerFactory.getLogger(OfdConvertRest.class); | ||
19 | |||
20 | @Autowired | ||
21 | ElecLicenseInfoDao licenseInfoDao; | ||
22 | |||
23 | public void convert() { | ||
24 | |||
25 | List<ElecLicenseInfo> waitForConverts = licenseInfoDao.getWaitForConvert(); | ||
26 | |||
27 | for (ElecLicenseInfo waitForConvert : waitForConverts) { | ||
28 | String ofdPath = waitForConvert.getOfdWjdz(); | ||
29 | // TODO: 2022/2/16/0016 ofd文件转换 | ||
30 | |||
31 | } | ||
32 | } | ||
33 | } |
1 | package com.thinkgem.jeesite.modules.eci.utils; | ||
2 | |||
3 | import com.google.common.collect.Lists; | ||
4 | import com.thinkgem.jeesite.common.config.Global; | ||
5 | import com.thinkgem.jeesite.common.exception.BussException; | ||
6 | import com.thinkgem.jeesite.common.utils.JsonUtil; | ||
7 | import org.apache.http.HttpEntity; | ||
8 | import org.apache.http.NameValuePair; | ||
9 | import org.apache.http.client.entity.UrlEncodedFormEntity; | ||
10 | import org.apache.http.client.methods.CloseableHttpResponse; | ||
11 | import org.apache.http.client.methods.HttpGet; | ||
12 | import org.apache.http.client.methods.HttpPost; | ||
13 | import org.apache.http.impl.client.CloseableHttpClient; | ||
14 | import org.apache.http.impl.client.HttpClientBuilder; | ||
15 | import org.apache.http.message.BasicNameValuePair; | ||
16 | import org.apache.http.util.EntityUtils; | ||
17 | import org.slf4j.Logger; | ||
18 | import org.slf4j.LoggerFactory; | ||
19 | |||
20 | import java.io.File; | ||
21 | import java.io.FileOutputStream; | ||
22 | import java.io.InputStream; | ||
23 | import java.io.OutputStream; | ||
24 | import java.text.SimpleDateFormat; | ||
25 | import java.util.Date; | ||
26 | import java.util.Iterator; | ||
27 | import java.util.List; | ||
28 | import java.util.Map; | ||
29 | |||
30 | public class EciHttpUtil { | ||
31 | |||
32 | private static Logger logger = LoggerFactory.getLogger(EciHttpUtil.class); | ||
33 | |||
34 | /** | ||
35 | * post请求接口地址 | ||
36 | * | ||
37 | * @param url | ||
38 | * @param params | ||
39 | * @return | ||
40 | * @throws Exception | ||
41 | */ | ||
42 | public static String doPost(String url, Map params) { | ||
43 | |||
44 | logger.info("http request url:" + url); | ||
45 | logger.info("http request data:" + JsonUtil.toJsonString(params)); | ||
46 | |||
47 | HttpPost httpPost = new HttpPost(url); | ||
48 | List<NameValuePair> urlParameters = Lists.newArrayList(); | ||
49 | String result = null; | ||
50 | //创建通道 | ||
51 | CloseableHttpClient client = HttpClientBuilder.create().build(); | ||
52 | CloseableHttpResponse response = null; | ||
53 | try { | ||
54 | if (params != null && params.size() > 0) { | ||
55 | Iterator<String> it = params.keySet().iterator(); | ||
56 | while (it.hasNext()) { | ||
57 | String key = it.next(); | ||
58 | urlParameters.add(new BasicNameValuePair(key, params.get(key).toString())); | ||
59 | } | ||
60 | httpPost.setEntity(new UrlEncodedFormEntity(urlParameters, "utf-8")); | ||
61 | } | ||
62 | httpPost.setHeader("Content-Type", "application/json;charset=utf-8"); | ||
63 | //x-qys-signature生成方式:Md5(AppToken + AppSecret + timestamp),获取32位小写值 | ||
64 | String unSignature = Global.ECI_APP_TOKEN + Global.ECI_APP_SECRET + System.currentTimeMillis(); | ||
65 | String signature = MD5Util.getMD5(unSignature); | ||
66 | |||
67 | httpPost.setHeader("x-qys-signature", signature); | ||
68 | |||
69 | response = client.execute(httpPost); | ||
70 | HttpEntity entity = response.getEntity(); | ||
71 | int code = response.getStatusLine().getStatusCode(); | ||
72 | if (code == 200) { | ||
73 | result = EntityUtils.toString(entity, "utf-8"); | ||
74 | } else { | ||
75 | throw new BussException("返回状态码:" + code); | ||
76 | } | ||
77 | } catch (Exception e) { | ||
78 | e.printStackTrace(); | ||
79 | } finally { | ||
80 | httpPost.releaseConnection(); | ||
81 | try { | ||
82 | response.close(); | ||
83 | client.close(); | ||
84 | } catch (Exception e) { | ||
85 | e.printStackTrace(); | ||
86 | } | ||
87 | } | ||
88 | |||
89 | return result; | ||
90 | } | ||
91 | |||
92 | /** | ||
93 | * get请求接口地址 | ||
94 | * | ||
95 | * @param url | ||
96 | * @param | ||
97 | * @return | ||
98 | * @throws Exception | ||
99 | */ | ||
100 | public static String doGet(String url) { | ||
101 | HttpGet httpGet = new HttpGet(url); | ||
102 | String result = null; | ||
103 | CloseableHttpClient client = HttpClientBuilder.create().build(); | ||
104 | CloseableHttpResponse response = null; | ||
105 | try { | ||
106 | httpGet.setHeader("Content-Type", "application/json;charset=utf-8"); | ||
107 | //x-qys-signature生成方式:Md5(AppToken + AppSecret + timestamp),获取32位小写值 | ||
108 | String unSignature = Global.ECI_APP_TOKEN + Global.ECI_APP_SECRET + System.currentTimeMillis(); | ||
109 | String signature = MD5Util.getMD5(unSignature); | ||
110 | httpGet.setHeader("x-qys-signature", signature); | ||
111 | response = client.execute(httpGet); | ||
112 | HttpEntity entity = response.getEntity(); | ||
113 | int code = response.getStatusLine().getStatusCode(); | ||
114 | if (code == 200) { | ||
115 | result = EntityUtils.toString(entity, "utf-8"); | ||
116 | } | ||
117 | } catch (Exception e) { | ||
118 | e.printStackTrace(); | ||
119 | } finally { | ||
120 | httpGet.releaseConnection(); | ||
121 | try { | ||
122 | response.close(); | ||
123 | client.close(); | ||
124 | } catch (Exception e) { | ||
125 | e.printStackTrace(); | ||
126 | } | ||
127 | } | ||
128 | |||
129 | return result; | ||
130 | } | ||
131 | |||
132 | /** | ||
133 | * 文件下载 | ||
134 | * | ||
135 | * @param documentId 合同文档ID | ||
136 | * @return | ||
137 | */ | ||
138 | public static String download(String documentId) { | ||
139 | |||
140 | String url = Global.ECI_HOST + "/document/download" + "?documentId=" + documentId; | ||
141 | HttpGet httpGet = new HttpGet(url); | ||
142 | CloseableHttpClient client = HttpClientBuilder.create().build(); | ||
143 | CloseableHttpResponse response = null; | ||
144 | OutputStream out = null; | ||
145 | InputStream in = null; | ||
146 | String path = null; | ||
147 | try { | ||
148 | httpGet.setHeader("Content-Type", "application/json;charset=utf-8"); | ||
149 | //x-qys-signature生成方式:Md5(AppToken + AppSecret + timestamp),获取32位小写值 | ||
150 | String unSignature = Global.ECI_APP_TOKEN + Global.ECI_APP_SECRET + System.currentTimeMillis(); | ||
151 | String signature = MD5Util.getMD5(unSignature); | ||
152 | httpGet.setHeader("x-qys-signature", signature); | ||
153 | response = client.execute(httpGet); | ||
154 | HttpEntity entity = response.getEntity(); | ||
155 | in = entity.getContent(); | ||
156 | int code = response.getStatusLine().getStatusCode(); | ||
157 | if (code == 200) { | ||
158 | long length = entity.getContentLength(); | ||
159 | if (length > 0) { | ||
160 | SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dddd"); | ||
161 | String dateDir = simpleDateFormat.format(new Date()); | ||
162 | File file = new File("E:\\ECI\\" + dateDir + "\\" + documentId + ".ofd"); | ||
163 | if (!file.exists()) { | ||
164 | file.createNewFile(); | ||
165 | } | ||
166 | |||
167 | out = new FileOutputStream(file); | ||
168 | byte[] buffer = new byte[4096]; | ||
169 | int readLength = 0; | ||
170 | while ((readLength = in.read(buffer)) != -1) { | ||
171 | // byte[] bytes = new byte[readLength]; | ||
172 | // System.arraycopy(buffer, 0, bytes, 0, readLength); | ||
173 | out.write(buffer, 0, readLength); | ||
174 | } | ||
175 | path = file.getAbsolutePath(); | ||
176 | out.flush(); | ||
177 | } | ||
178 | |||
179 | } | ||
180 | } catch (Exception e) { | ||
181 | e.printStackTrace(); | ||
182 | } finally { | ||
183 | httpGet.releaseConnection(); | ||
184 | try { | ||
185 | response.close(); | ||
186 | client.close(); | ||
187 | } catch (Exception e) { | ||
188 | e.printStackTrace(); | ||
189 | } | ||
190 | } | ||
191 | return path; | ||
192 | } | ||
193 | |||
194 | } |
1 | package com.thinkgem.jeesite.modules.eci.utils; | ||
2 | |||
3 | import java.security.MessageDigest; | ||
4 | |||
5 | public class MD5Util { | ||
6 | |||
7 | public static String getMD5(String unEncryption) { | ||
8 | char[] hexDigits = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'}; | ||
9 | |||
10 | try { | ||
11 | byte[] btInput = unEncryption.getBytes(); | ||
12 | // 获得MD5摘要算法的 MessageDigest 对象 | ||
13 | MessageDigest mdInst = MessageDigest.getInstance("MD5"); | ||
14 | // 使用指定的字节更新摘要 | ||
15 | mdInst.update(btInput); | ||
16 | // 获得密文 | ||
17 | byte[] md = mdInst.digest(); | ||
18 | // 把密文转换成十六进制的字符串形式 | ||
19 | char[] str = new char[md.length * 2]; | ||
20 | int k = 0; | ||
21 | for (byte byte0 : md) { | ||
22 | str[k++] = hexDigits[byte0 >>> 4 & 0xf]; | ||
23 | str[k++] = hexDigits[byte0 & 0xf]; | ||
24 | } | ||
25 | return new String(str).toLowerCase(); | ||
26 | } catch (Exception e) { | ||
27 | e.printStackTrace(); | ||
28 | return null; | ||
29 | } | ||
30 | } | ||
31 | } |
1 | package com.thinkgem.jeesite.modules.reg.utils; | 1 | // package com.thinkgem.jeesite.modules.reg.utils; |
2 | 2 | // | |
3 | import java.io.File; | 3 | // import java.io.File; |
4 | import java.io.FileNotFoundException; | 4 | // import java.io.FileNotFoundException; |
5 | import java.io.FileOutputStream; | 5 | // import java.io.FileOutputStream; |
6 | import java.io.IOException; | 6 | // import java.io.IOException; |
7 | 7 | // | |
8 | import sun.misc.BASE64Decoder; | 8 | // import sun.misc.BASE64Decoder; |
9 | import sun.misc.BASE64Encoder; | 9 | // import sun.misc.BASE64Encoder; |
10 | 10 | // | |
11 | 11 | // | |
12 | public class Base64 { | 12 | // public class Base64 { |
13 | 13 | // | |
14 | /** | 14 | // /** |
15 | * BASE64加密 | 15 | // * BASE64加密 |
16 | * | 16 | // * |
17 | * @param key | 17 | // * @param key |
18 | * @return | 18 | // * @return |
19 | * @throws Exception | 19 | // * @throws Exception |
20 | */ | 20 | // */ |
21 | public static String encryptBASE64(String key) { | 21 | // public static String encryptBASE64(String key) { |
22 | byte[] bt = key.getBytes(); | 22 | // byte[] bt = key.getBytes(); |
23 | return (new BASE64Encoder()).encodeBuffer(bt); | 23 | // return (new BASE64Encoder()).encodeBuffer(bt); |
24 | } | 24 | // } |
25 | 25 | // | |
26 | /** | 26 | // /** |
27 | * 对字符串进行Base64解码 | 27 | // * 对字符串进行Base64解码 |
28 | * | 28 | // * |
29 | * @param s | 29 | // * @param s |
30 | * 要解码的字符串 | 30 | // * 要解码的字符串 |
31 | * @return 返回解码后的字符串 | 31 | // * @return 返回解码后的字符串 |
32 | */ | 32 | // */ |
33 | public static byte[] decode(String s) { | 33 | // public static byte[] decode(String s) { |
34 | 34 | // | |
35 | BASE64Decoder decoder=new BASE64Decoder(); | 35 | // BASE64Decoder decoder=new BASE64Decoder(); |
36 | byte[] bytes=null; | 36 | // byte[] bytes=null; |
37 | try { | 37 | // try { |
38 | bytes=decoder.decodeBuffer(s); | 38 | // bytes=decoder.decodeBuffer(s); |
39 | } catch (IOException e) { | 39 | // } catch (IOException e) { |
40 | e.printStackTrace(); | 40 | // e.printStackTrace(); |
41 | } | 41 | // } |
42 | return bytes; | 42 | // return bytes; |
43 | } | 43 | // } |
44 | 44 | // | |
45 | /** | 45 | // /** |
46 | * 得到经过Base64解码的图像二进制数据 | 46 | // * 得到经过Base64解码的图像二进制数据 |
47 | */ | 47 | // */ |
48 | public static byte[] getImgData(String fileUrl) { | 48 | // public static byte[] getImgData(String fileUrl) { |
49 | /* | 49 | // /* |
50 | * 利用canvas元素的toDataURL("image/jpeg")方法生成的图像地址格式为: | 50 | // * 利用canvas元素的toDataURL("image/jpeg")方法生成的图像地址格式为: |
51 | * 第一部分:data:image/jpeg;base64 中间一个逗号 | 51 | // * 第一部分:data:image/jpeg;base64 中间一个逗号 |
52 | * 第二部分:一个经过base64编码的字符串,通过Base64解码后即可得到该图像原始二进制数据 | 52 | // * 第二部分:一个经过base64编码的字符串,通过Base64解码后即可得到该图像原始二进制数据 |
53 | */ | 53 | // */ |
54 | //String[] data = fileUrl.split(",");// 这里fileUrl就是前台toDataURL()方法传过来的数据 | 54 | // //String[] data = fileUrl.split(",");// 这里fileUrl就是前台toDataURL()方法传过来的数据 |
55 | return Base64.decode(fileUrl); | 55 | // return Base64.decode(fileUrl); |
56 | } | 56 | // } |
57 | 57 | // | |
58 | /** | 58 | // /** |
59 | * 保存Base64解码后的二进制数据到文件 | 59 | // * 保存Base64解码后的二进制数据到文件 |
60 | * | 60 | // * |
61 | * @param base64Str | 61 | // * @param base64Str |
62 | * 经Base64解码后的图片原始二进制数据 | 62 | // * 经Base64解码后的图片原始二进制数据 |
63 | * @param path | 63 | // * @param path |
64 | * 文件路径 | 64 | // * 文件路径 |
65 | */ | 65 | // */ |
66 | public static void saveImage(byte[] imageBytes, String path) { | 66 | // public static void saveImage(byte[] imageBytes, String path) { |
67 | File file = new File(path); | 67 | // File file = new File(path); |
68 | FileOutputStream outputStream = null; | 68 | // FileOutputStream outputStream = null; |
69 | try { | 69 | // try { |
70 | outputStream = new FileOutputStream(file); | 70 | // outputStream = new FileOutputStream(file); |
71 | outputStream.write(imageBytes); | 71 | // outputStream.write(imageBytes); |
72 | } catch (FileNotFoundException e) { | 72 | // } catch (FileNotFoundException e) { |
73 | e.printStackTrace(); | 73 | // e.printStackTrace(); |
74 | } catch (IOException e) { | 74 | // } catch (IOException e) { |
75 | e.printStackTrace(); | 75 | // e.printStackTrace(); |
76 | } finally { | 76 | // } finally { |
77 | closeSteam(outputStream); | 77 | // closeSteam(outputStream); |
78 | } | 78 | // } |
79 | } | 79 | // } |
80 | 80 | // | |
81 | /** | 81 | // /** |
82 | * 关闭文件输出流 | 82 | // * 关闭文件输出流 |
83 | * | 83 | // * |
84 | * @param outputStream | 84 | // * @param outputStream |
85 | */ | 85 | // */ |
86 | public static void closeSteam(FileOutputStream outputStream) { | 86 | // public static void closeSteam(FileOutputStream outputStream) { |
87 | if (outputStream != null) { | 87 | // if (outputStream != null) { |
88 | try { | 88 | // try { |
89 | outputStream.close(); | 89 | // outputStream.close(); |
90 | } catch (IOException e) { | 90 | // } catch (IOException e) { |
91 | e.printStackTrace(); | 91 | // e.printStackTrace(); |
92 | } | 92 | // } |
93 | } | 93 | // } |
94 | } | 94 | // } |
95 | 95 | // | |
96 | /** | 96 | // /** |
97 | * 对字符串进行Base64解码 | 97 | // * 对字符串进行Base64解码 |
98 | * @param s 要解码的字符串 | 98 | // * @param s 要解码的字符串 |
99 | * @return 返回解码后的字符串 | 99 | // * @return 返回解码后的字符串 |
100 | */ | 100 | // */ |
101 | public static String decodeStr(String s,String bm){ | 101 | // public static String decodeStr(String s,String bm){ |
102 | BASE64Decoder decoder=new BASE64Decoder(); | 102 | // BASE64Decoder decoder=new BASE64Decoder(); |
103 | String decoded_str=null; | 103 | // String decoded_str=null; |
104 | try { | 104 | // try { |
105 | decoded_str = new String(decoder.decodeBuffer(s),bm); | 105 | // decoded_str = new String(decoder.decodeBuffer(s),bm); |
106 | } catch (IOException e) { | 106 | // } catch (IOException e) { |
107 | e.printStackTrace(); | 107 | // e.printStackTrace(); |
108 | } | 108 | // } |
109 | return decoded_str; | 109 | // return decoded_str; |
110 | } | 110 | // } |
111 | public static String decodeStr(String s){ | 111 | // public static String decodeStr(String s){ |
112 | BASE64Decoder decoder=new BASE64Decoder(); | 112 | // BASE64Decoder decoder=new BASE64Decoder(); |
113 | String decoded_str=null; | 113 | // String decoded_str=null; |
114 | try { | 114 | // try { |
115 | decoded_str = new String(decoder.decodeBuffer(s)); | 115 | // decoded_str = new String(decoder.decodeBuffer(s)); |
116 | } catch (IOException e) { | 116 | // } catch (IOException e) { |
117 | e.printStackTrace(); | 117 | // e.printStackTrace(); |
118 | } | 118 | // } |
119 | return decoded_str; | 119 | // return decoded_str; |
120 | } | 120 | // } |
121 | 121 | // | |
122 | /** | 122 | // /** |
123 | * 得到经过Base64解码的图像二进制数据 | 123 | // * 得到经过Base64解码的图像二进制数据 |
124 | */ | 124 | // */ |
125 | public static String getImgDataStr(String fileUrl){ | 125 | // public static String getImgDataStr(String fileUrl){ |
126 | /* | 126 | // /* |
127 | * 利用canvas元素的toDataURL("image/jpeg")方法生成的图像地址格式为: | 127 | // * 利用canvas元素的toDataURL("image/jpeg")方法生成的图像地址格式为: |
128 | * 第一部分:data:image/jpeg;base64 | 128 | // * 第一部分:data:image/jpeg;base64 |
129 | * 中间一个逗号 | 129 | // * 中间一个逗号 |
130 | * 第二部分:一个经过base64编码的字符串,通过Base64解码后即可得到该图像原始二进制数据 | 130 | // * 第二部分:一个经过base64编码的字符串,通过Base64解码后即可得到该图像原始二进制数据 |
131 | */ | 131 | // */ |
132 | String[] data=fileUrl.split(",");//这里fileUrl就是前台toDataURL()方法传过来的数据 | 132 | // String[] data=fileUrl.split(",");//这里fileUrl就是前台toDataURL()方法传过来的数据 |
133 | return Base64.decodeStr(data[1]); | 133 | // return Base64.decodeStr(data[1]); |
134 | } | 134 | // } |
135 | 135 | // | |
136 | /** | 136 | // /** |
137 | * 保存Base64解码后的二进制数据到文件 | 137 | // * 保存Base64解码后的二进制数据到文件 |
138 | * @param base64Str 经Base64解码后的图片原始二进制数据 | 138 | // * @param base64Str 经Base64解码后的图片原始二进制数据 |
139 | * @param path 文件路径 | 139 | // * @param path 文件路径 |
140 | */ | 140 | // */ |
141 | public static void saveImageStr(String base64Str,String path){ | 141 | // public static void saveImageStr(String base64Str,String path){ |
142 | File file=new File(path); | 142 | // File file=new File(path); |
143 | FileOutputStream outputStream=null; | 143 | // FileOutputStream outputStream=null; |
144 | try { | 144 | // try { |
145 | outputStream=new FileOutputStream(file); | 145 | // outputStream=new FileOutputStream(file); |
146 | outputStream.write(base64Str.getBytes()); | 146 | // outputStream.write(base64Str.getBytes()); |
147 | } catch (FileNotFoundException e) { | 147 | // } catch (FileNotFoundException e) { |
148 | e.printStackTrace(); | 148 | // e.printStackTrace(); |
149 | } catch (IOException e) { | 149 | // } catch (IOException e) { |
150 | e.printStackTrace(); | 150 | // e.printStackTrace(); |
151 | } finally{ | 151 | // } finally{ |
152 | closeSteam(outputStream); | 152 | // closeSteam(outputStream); |
153 | } | 153 | // } |
154 | } | 154 | // } |
155 | 155 | // | |
156 | 156 | // | |
157 | 157 | // | |
158 | } | 158 | // } | ... | ... |
1 | package com.thinkgem.jeesite.modules.reg.utils; | ||
2 | |||
3 | import java.io.File; | ||
4 | import java.io.FileNotFoundException; | ||
5 | import java.io.FileOutputStream; | ||
6 | import java.io.IOException; | ||
7 | import java.util.Base64; | ||
8 | |||
9 | |||
10 | public class Base64Util { | ||
11 | |||
12 | /** | ||
13 | * BASE64加密 | ||
14 | * | ||
15 | * @param key | ||
16 | * @return | ||
17 | * @throws Exception | ||
18 | */ | ||
19 | public static String encryptBASE64(String key) { | ||
20 | byte[] bt = key.getBytes(); | ||
21 | Base64.Encoder encoder = Base64.getEncoder(); | ||
22 | byte[] encode = encoder.encode(bt); | ||
23 | return String.valueOf(encode); | ||
24 | |||
25 | // return (new BASE64Encoder()).encodeBuffer(bt); | ||
26 | } | ||
27 | |||
28 | /** | ||
29 | * 对字符串进行Base64解码 | ||
30 | * | ||
31 | * @param s 要解码的字符串 | ||
32 | * @return 返回解码后的字符串 | ||
33 | */ | ||
34 | public static byte[] decode(String s) { | ||
35 | |||
36 | Base64.Decoder decoder = Base64.getDecoder(); | ||
37 | byte[] bytes = null; | ||
38 | // bytes = decoder.decodeBuffer(s); | ||
39 | bytes = decoder.decode(s); | ||
40 | return bytes; | ||
41 | } | ||
42 | |||
43 | /** | ||
44 | * 得到经过Base64解码的图像二进制数据 | ||
45 | */ | ||
46 | public static byte[] getImgData(String fileUrl) { | ||
47 | /* | ||
48 | * 利用canvas元素的toDataURL("image/jpeg")方法生成的图像地址格式为: | ||
49 | * 第一部分:data:image/jpeg;base64 中间一个逗号 | ||
50 | * 第二部分:一个经过base64编码的字符串,通过Base64解码后即可得到该图像原始二进制数据 | ||
51 | */ | ||
52 | //String[] data = fileUrl.split(",");// 这里fileUrl就是前台toDataURL()方法传过来的数据 | ||
53 | return Base64Util.decode(fileUrl); | ||
54 | } | ||
55 | |||
56 | /** | ||
57 | * 保存Base64解码后的二进制数据到文件 | ||
58 | * | ||
59 | * @param base64Str 经Base64解码后的图片原始二进制数据 | ||
60 | * @param path 文件路径 | ||
61 | */ | ||
62 | public static void saveImage(byte[] imageBytes, String path) { | ||
63 | File file = new File(path); | ||
64 | FileOutputStream outputStream = null; | ||
65 | try { | ||
66 | outputStream = new FileOutputStream(file); | ||
67 | outputStream.write(imageBytes); | ||
68 | } catch (FileNotFoundException e) { | ||
69 | e.printStackTrace(); | ||
70 | } catch (IOException e) { | ||
71 | e.printStackTrace(); | ||
72 | } finally { | ||
73 | closeSteam(outputStream); | ||
74 | } | ||
75 | } | ||
76 | |||
77 | /** | ||
78 | * 关闭文件输出流 | ||
79 | * | ||
80 | * @param outputStream | ||
81 | */ | ||
82 | public static void closeSteam(FileOutputStream outputStream) { | ||
83 | if (outputStream != null) { | ||
84 | try { | ||
85 | outputStream.close(); | ||
86 | } catch (IOException e) { | ||
87 | e.printStackTrace(); | ||
88 | } | ||
89 | } | ||
90 | } | ||
91 | |||
92 | /** | ||
93 | * 对字符串进行Base64解码 | ||
94 | * | ||
95 | * @param s 要解码的字符串 | ||
96 | * @return 返回解码后的字符串 | ||
97 | */ | ||
98 | public static String decodeStr(String s, String bm) { | ||
99 | Base64.Decoder decoder = Base64.getDecoder(); | ||
100 | String decoded_str = null; | ||
101 | try { | ||
102 | decoded_str = new String(decoder.decode(s), bm); | ||
103 | } catch (IOException e) { | ||
104 | e.printStackTrace(); | ||
105 | } | ||
106 | return decoded_str; | ||
107 | } | ||
108 | |||
109 | public static String decodeStr(String s) { | ||
110 | Base64.Decoder decoder = Base64.getDecoder(); | ||
111 | String decoded_str = null; | ||
112 | decoded_str = new String(decoder.decode(s)); | ||
113 | return decoded_str; | ||
114 | } | ||
115 | |||
116 | /** | ||
117 | * 得到经过Base64解码的图像二进制数据 | ||
118 | */ | ||
119 | public static String getImgDataStr(String fileUrl) { | ||
120 | /* | ||
121 | * 利用canvas元素的toDataURL("image/jpeg")方法生成的图像地址格式为: | ||
122 | * 第一部分:data:image/jpeg;base64 | ||
123 | * 中间一个逗号 | ||
124 | * 第二部分:一个经过base64编码的字符串,通过Base64解码后即可得到该图像原始二进制数据 | ||
125 | */ | ||
126 | String[] data = fileUrl.split(",");//这里fileUrl就是前台toDataURL()方法传过来的数据 | ||
127 | return Base64Util.decodeStr(data[1]); | ||
128 | } | ||
129 | |||
130 | /** | ||
131 | * 保存Base64解码后的二进制数据到文件 | ||
132 | * | ||
133 | * @param base64Str 经Base64解码后的图片原始二进制数据 | ||
134 | * @param path 文件路径 | ||
135 | */ | ||
136 | public static void saveImageStr(String base64Str, String path) { | ||
137 | File file = new File(path); | ||
138 | FileOutputStream outputStream = null; | ||
139 | try { | ||
140 | outputStream = new FileOutputStream(file); | ||
141 | outputStream.write(base64Str.getBytes()); | ||
142 | } catch (FileNotFoundException e) { | ||
143 | e.printStackTrace(); | ||
144 | } catch (IOException e) { | ||
145 | e.printStackTrace(); | ||
146 | } finally { | ||
147 | closeSteam(outputStream); | ||
148 | } | ||
149 | } | ||
150 | |||
151 | |||
152 | } |
... | @@ -8,7 +8,6 @@ import java.util.ArrayList; | ... | @@ -8,7 +8,6 @@ import java.util.ArrayList; |
8 | import java.util.Date; | 8 | import java.util.Date; |
9 | import java.util.HashMap; | 9 | import java.util.HashMap; |
10 | import java.util.List; | 10 | import java.util.List; |
11 | import java.util.Map; | ||
12 | 11 | ||
13 | import javax.servlet.http.HttpServletRequest; | 12 | import javax.servlet.http.HttpServletRequest; |
14 | import javax.servlet.http.HttpServletResponse; | 13 | import javax.servlet.http.HttpServletResponse; |
... | @@ -19,20 +18,16 @@ import org.springframework.beans.factory.annotation.Autowired; | ... | @@ -19,20 +18,16 @@ import org.springframework.beans.factory.annotation.Autowired; |
19 | import org.springframework.stereotype.Controller; | 18 | import org.springframework.stereotype.Controller; |
20 | import org.springframework.transaction.annotation.Transactional; | 19 | import org.springframework.transaction.annotation.Transactional; |
21 | import org.springframework.ui.Model; | 20 | import org.springframework.ui.Model; |
22 | import org.springframework.ui.ModelMap; | ||
23 | import org.springframework.web.bind.annotation.ModelAttribute; | 21 | import org.springframework.web.bind.annotation.ModelAttribute; |
24 | import org.springframework.web.bind.annotation.RequestMapping; | 22 | import org.springframework.web.bind.annotation.RequestMapping; |
25 | import org.springframework.web.bind.annotation.RequestParam; | 23 | import org.springframework.web.bind.annotation.RequestParam; |
26 | import org.springframework.web.bind.annotation.ResponseBody; | ||
27 | import org.springframework.web.servlet.mvc.support.RedirectAttributes; | 24 | import org.springframework.web.servlet.mvc.support.RedirectAttributes; |
28 | 25 | ||
29 | import com.sun.org.apache.bcel.internal.generic.NEW; | ||
30 | import com.thinkgem.jeesite.common.config.Global; | 26 | import com.thinkgem.jeesite.common.config.Global; |
31 | import com.thinkgem.jeesite.common.persistence.Page; | 27 | import com.thinkgem.jeesite.common.persistence.Page; |
32 | import com.thinkgem.jeesite.common.web.BaseController; | 28 | import com.thinkgem.jeesite.common.web.BaseController; |
33 | import com.thinkgem.jeesite.common.utils.DateUtils; | 29 | import com.thinkgem.jeesite.common.utils.DateUtils; |
34 | import com.thinkgem.jeesite.common.utils.StringUtils; | 30 | import com.thinkgem.jeesite.common.utils.StringUtils; |
35 | import com.thinkgem.jeesite.modules.reg.bus.entity.RegBusBtqlr; | ||
36 | import com.thinkgem.jeesite.modules.reg.entity.base.RegBaseC; | 31 | import com.thinkgem.jeesite.modules.reg.entity.base.RegBaseC; |
37 | import com.thinkgem.jeesite.modules.reg.entity.base.RegBaseFdcqxm; | 32 | import com.thinkgem.jeesite.modules.reg.entity.base.RegBaseFdcqxm; |
38 | import com.thinkgem.jeesite.modules.reg.entity.base.RegBaseH; | 33 | import com.thinkgem.jeesite.modules.reg.entity.base.RegBaseH; |
... | @@ -42,12 +37,10 @@ import com.thinkgem.jeesite.modules.reg.entity.base.RegBaseZdjbxx; | ... | @@ -42,12 +37,10 @@ import com.thinkgem.jeesite.modules.reg.entity.base.RegBaseZdjbxx; |
42 | import com.thinkgem.jeesite.modules.reg.entity.base.RegBaseZrz; | 37 | import com.thinkgem.jeesite.modules.reg.entity.base.RegBaseZrz; |
43 | import com.thinkgem.jeesite.modules.reg.entity.bus.RegBusBdcqzsdjxx; | 38 | import com.thinkgem.jeesite.modules.reg.entity.bus.RegBusBdcqzsdjxx; |
44 | import com.thinkgem.jeesite.modules.reg.entity.bus.RegBusFdcq1; | 39 | import com.thinkgem.jeesite.modules.reg.entity.bus.RegBusFdcq1; |
45 | import com.thinkgem.jeesite.modules.reg.entity.bus.RegBusGd; | ||
46 | import com.thinkgem.jeesite.modules.reg.entity.bus.RegBusJsydsyq; | 40 | import com.thinkgem.jeesite.modules.reg.entity.bus.RegBusJsydsyq; |
47 | import com.thinkgem.jeesite.modules.reg.entity.bus.RegBusQlr; | 41 | import com.thinkgem.jeesite.modules.reg.entity.bus.RegBusQlr; |
48 | import com.thinkgem.jeesite.modules.reg.entity.bus.RegBusRights; | 42 | import com.thinkgem.jeesite.modules.reg.entity.bus.RegBusRights; |
49 | import com.thinkgem.jeesite.modules.reg.entity.bus.RegBusSlsq; | 43 | import com.thinkgem.jeesite.modules.reg.entity.bus.RegBusSlsq; |
50 | import com.thinkgem.jeesite.modules.reg.entity.bus.RegBusYgdj; | ||
51 | import com.thinkgem.jeesite.modules.reg.entity.bus.RegBusYwr; | 44 | import com.thinkgem.jeesite.modules.reg.entity.bus.RegBusYwr; |
52 | import com.thinkgem.jeesite.modules.reg.service.base.RegBaseCService; | 45 | import com.thinkgem.jeesite.modules.reg.service.base.RegBaseCService; |
53 | import com.thinkgem.jeesite.modules.reg.service.base.RegBaseFdcqxmService; | 46 | import com.thinkgem.jeesite.modules.reg.service.base.RegBaseFdcqxmService; |
... | @@ -63,7 +56,6 @@ import com.thinkgem.jeesite.modules.reg.service.bus.RegBusQlrService; | ... | @@ -63,7 +56,6 @@ import com.thinkgem.jeesite.modules.reg.service.bus.RegBusQlrService; |
63 | import com.thinkgem.jeesite.modules.reg.service.bus.RegBusRightsService; | 56 | import com.thinkgem.jeesite.modules.reg.service.bus.RegBusRightsService; |
64 | import com.thinkgem.jeesite.modules.reg.service.bus.RegBusSlsqService; | 57 | import com.thinkgem.jeesite.modules.reg.service.bus.RegBusSlsqService; |
65 | import com.thinkgem.jeesite.modules.reg.service.bus.RegBusYwrService; | 58 | import com.thinkgem.jeesite.modules.reg.service.bus.RegBusYwrService; |
66 | import com.thinkgem.jeesite.modules.reg.utils.RegUtils; | ||
67 | import com.thinkgem.jeesite.modules.sys.entity.User; | 59 | import com.thinkgem.jeesite.modules.sys.entity.User; |
68 | import com.thinkgem.jeesite.modules.sys.utils.DictUtils; | 60 | import com.thinkgem.jeesite.modules.sys.utils.DictUtils; |
69 | import com.thinkgem.jeesite.modules.sys.utils.UserUtils; | 61 | import com.thinkgem.jeesite.modules.sys.utils.UserUtils; |
... | @@ -72,7 +64,7 @@ import groovy.transform.Synchronized; | ... | @@ -72,7 +64,7 @@ import groovy.transform.Synchronized; |
72 | 64 | ||
73 | /** | 65 | /** |
74 | * 房地产权(项目内多幢房屋)权属表Controller | 66 | * 房地产权(项目内多幢房屋)权属表Controller |
75 | * | 67 | * |
76 | * @author lj | 68 | * @author lj |
77 | * @version 2018-03-14 | 69 | * @version 2018-03-14 |
78 | */ | 70 | */ |
... | @@ -246,7 +238,7 @@ public class RegBusFdcq1Controller extends BaseController { | ... | @@ -246,7 +238,7 @@ public class RegBusFdcq1Controller extends BaseController { |
246 | 238 | ||
247 | /** | 239 | /** |
248 | * 房屋多幢注销登记 | 240 | * 房屋多幢注销登记 |
249 | * | 241 | * |
250 | * @param regBusFdcq1 | 242 | * @param regBusFdcq1 |
251 | * @param model | 243 | * @param model |
252 | * @param request | 244 | * @param request |
... | @@ -306,7 +298,7 @@ public class RegBusFdcq1Controller extends BaseController { | ... | @@ -306,7 +298,7 @@ public class RegBusFdcq1Controller extends BaseController { |
306 | 298 | ||
307 | /** | 299 | /** |
308 | * 房屋多幢信息保存 | 300 | * 房屋多幢信息保存 |
309 | * | 301 | * |
310 | * @param regBusFdcq1 | 302 | * @param regBusFdcq1 |
311 | * @param model | 303 | * @param model |
312 | * @param request | 304 | * @param request |
... | @@ -472,17 +464,17 @@ public class RegBusFdcq1Controller extends BaseController { | ... | @@ -472,17 +464,17 @@ public class RegBusFdcq1Controller extends BaseController { |
472 | djxx1.setDelFlag("0"); | 464 | djxx1.setDelFlag("0"); |
473 | djxx1.setIslogout("0"); | 465 | djxx1.setIslogout("0"); |
474 | List<RegBusBdcqzsdjxx> djxxList = regBusBdcqzsdjxxService.findList(djxx1); | 466 | List<RegBusBdcqzsdjxx> djxxList = regBusBdcqzsdjxxService.findList(djxx1); |
475 | 467 | ||
476 | if (djxxList != null && !djxxList.isEmpty()) { | 468 | if (djxxList != null && !djxxList.isEmpty()) { |
477 | zddjxx = djxxList.get(0); | 469 | zddjxx = djxxList.get(0); |
478 | zddjxx.setMj(regBusFdcq1.getZdmj().toString()); | 470 | zddjxx.setMj(regBusFdcq1.getZdmj().toString()); |
479 | zddjxx.setFj(regBusFdcq1.getFj()); | 471 | zddjxx.setFj(regBusFdcq1.getFj()); |
480 | regBusBdcqzsdjxxService.save(zddjxx); | 472 | regBusBdcqzsdjxxService.save(zddjxx); |
481 | } | 473 | } |
482 | 474 | ||
483 | RegBusJsydsyq jsydsyq = new RegBusJsydsyq(); | 475 | RegBusJsydsyq jsydsyq = new RegBusJsydsyq(); |
484 | jsydsyq.setBdcdyh(regBaseZdjbxx.getBdcdyh()); | 476 | jsydsyq.setBdcdyh(regBaseZdjbxx.getBdcdyh()); |
485 | jsydsyq.setDelFlag("0"); | 477 | jsydsyq.setDelFlag("0"); |
486 | jsydsyq.setQszt("1"); | 478 | jsydsyq.setQszt("1"); |
487 | List<RegBusJsydsyq> jsydsyqList = regBusJsydsyqService.findList(jsydsyq); | 479 | List<RegBusJsydsyq> jsydsyqList = regBusJsydsyqService.findList(jsydsyq); |
488 | if (jsydsyqList != null &&jsydsyqList.size() > 0) { | 480 | if (jsydsyqList != null &&jsydsyqList.size() > 0) { |
... | @@ -491,7 +483,7 @@ public class RegBusFdcq1Controller extends BaseController { | ... | @@ -491,7 +483,7 @@ public class RegBusFdcq1Controller extends BaseController { |
491 | zd_jsyd.setFj(regBusFdcq1.getFj()); | 483 | zd_jsyd.setFj(regBusFdcq1.getFj()); |
492 | regBusJsydsyqService.save(zd_jsyd); | 484 | regBusJsydsyqService.save(zd_jsyd); |
493 | } | 485 | } |
494 | 486 | ||
495 | } | 487 | } |
496 | 488 | ||
497 | RegBusQlr zjdqlr = new RegBusQlr(); | 489 | RegBusQlr zjdqlr = new RegBusQlr(); |
... | @@ -532,7 +524,7 @@ public class RegBusFdcq1Controller extends BaseController { | ... | @@ -532,7 +524,7 @@ public class RegBusFdcq1Controller extends BaseController { |
532 | djxx.setSyqx(DateUtils.formatDate(regBusFdcq1.getTdsyqssj(), "yyyy年MM月dd日") + "起" | 524 | djxx.setSyqx(DateUtils.formatDate(regBusFdcq1.getTdsyqssj(), "yyyy年MM月dd日") + "起" |
533 | + DateUtils.formatDate(regBusFdcq1.getTdsyjssj(), "yyyy年MM月dd日") + "止;"); | 525 | + DateUtils.formatDate(regBusFdcq1.getTdsyjssj(), "yyyy年MM月dd日") + "止;"); |
534 | } | 526 | } |
535 | 527 | ||
536 | djxx.setQlxz(tdqlxz + "/" + "自建房"); | 528 | djxx.setQlxz(tdqlxz + "/" + "自建房"); |
537 | //djxx.setYt(tdyt + "/住宅"); | 529 | //djxx.setYt(tdyt + "/住宅"); |
538 | djxx.setYt(tdyt +"/"+ DictUtils.getDictLabel(zrzList.get(0).getGhyt(),"reg_bus_fwyt","")); | 530 | djxx.setYt(tdyt +"/"+ DictUtils.getDictLabel(zrzList.get(0).getGhyt(),"reg_bus_fwyt","")); |
... | @@ -565,7 +557,7 @@ public class RegBusFdcq1Controller extends BaseController { | ... | @@ -565,7 +557,7 @@ public class RegBusFdcq1Controller extends BaseController { |
565 | // 修改RegBusFdcq1的zdmj,zdjbxx 的 zdmj也要变更 | 557 | // 修改RegBusFdcq1的zdmj,zdjbxx 的 zdmj也要变更 |
566 | 558 | ||
567 | RegBaseZrz regBaseZrz = new RegBaseZrz(); | 559 | RegBaseZrz regBaseZrz = new RegBaseZrz(); |
568 | RegBaseZdjbxx zdjbxx = new RegBaseZdjbxx(); | 560 | RegBaseZdjbxx zdjbxx = new RegBaseZdjbxx(); |
569 | regBaseZrz.setXmid(regBusFdcq1.getXmid()); | 561 | regBaseZrz.setXmid(regBusFdcq1.getXmid()); |
570 | List<RegBaseZrz> zrzList = regBaseZrzService.findList(regBaseZrz); | 562 | List<RegBaseZrz> zrzList = regBaseZrzService.findList(regBaseZrz); |
571 | zddm = zrzList.get(0).getZddm(); | 563 | zddm = zrzList.get(0).getZddm(); |
... | @@ -586,7 +578,7 @@ public class RegBusFdcq1Controller extends BaseController { | ... | @@ -586,7 +578,7 @@ public class RegBusFdcq1Controller extends BaseController { |
586 | zdjb.setBz(regBusFdcq1.getFj()); | 578 | zdjb.setBz(regBusFdcq1.getFj()); |
587 | //regBaseZdjbxxService.update(zdjb); | 579 | //regBaseZdjbxxService.update(zdjb); |
588 | } | 580 | } |
589 | 581 | ||
590 | RegBusBdcqzsdjxx djxx1 = new RegBusBdcqzsdjxx(); | 582 | RegBusBdcqzsdjxx djxx1 = new RegBusBdcqzsdjxx(); |
591 | djxx1.setBdcdyh(zdjb.getBdcdyh()); | 583 | djxx1.setBdcdyh(zdjb.getBdcdyh()); |
592 | djxx1.setDelFlag("0"); | 584 | djxx1.setDelFlag("0"); |
... | @@ -598,10 +590,10 @@ public class RegBusFdcq1Controller extends BaseController { | ... | @@ -598,10 +590,10 @@ public class RegBusFdcq1Controller extends BaseController { |
598 | zddjxx.setFj(regBusFdcq1.getFj()); | 590 | zddjxx.setFj(regBusFdcq1.getFj()); |
599 | regBusBdcqzsdjxxService.save(zddjxx); | 591 | regBusBdcqzsdjxxService.save(zddjxx); |
600 | } | 592 | } |
601 | 593 | ||
602 | RegBusJsydsyq jsydsyq = new RegBusJsydsyq(); | 594 | RegBusJsydsyq jsydsyq = new RegBusJsydsyq(); |
603 | jsydsyq.setBdcdyh(djxx1.getBdcdyh()); | 595 | jsydsyq.setBdcdyh(djxx1.getBdcdyh()); |
604 | jsydsyq.setDelFlag("0"); | 596 | jsydsyq.setDelFlag("0"); |
605 | jsydsyq.setQszt("1"); | 597 | jsydsyq.setQszt("1"); |
606 | List<RegBusJsydsyq> jsydsyqList = regBusJsydsyqService.findList(jsydsyq); | 598 | List<RegBusJsydsyq> jsydsyqList = regBusJsydsyqService.findList(jsydsyq); |
607 | if (jsydsyqList != null &&jsydsyqList.size() > 0) { | 599 | if (jsydsyqList != null &&jsydsyqList.size() > 0) { |
... | @@ -693,7 +685,7 @@ public class RegBusFdcq1Controller extends BaseController { | ... | @@ -693,7 +685,7 @@ public class RegBusFdcq1Controller extends BaseController { |
693 | 685 | ||
694 | /** | 686 | /** |
695 | * 房屋多幢注销信息保存 | 687 | * 房屋多幢注销信息保存 |
696 | * | 688 | * |
697 | * @param regBusFdcq1 | 689 | * @param regBusFdcq1 |
698 | * @param model | 690 | * @param model |
699 | * @param request | 691 | * @param request |
... | @@ -814,7 +806,7 @@ public class RegBusFdcq1Controller extends BaseController { | ... | @@ -814,7 +806,7 @@ public class RegBusFdcq1Controller extends BaseController { |
814 | 806 | ||
815 | /** | 807 | /** |
816 | * 数据启用前的验证 | 808 | * 数据启用前的验证 |
817 | * | 809 | * |
818 | * @param request | 810 | * @param request |
819 | * @return | 811 | * @return |
820 | */ | 812 | */ |
... | @@ -835,16 +827,16 @@ public class RegBusFdcq1Controller extends BaseController { | ... | @@ -835,16 +827,16 @@ public class RegBusFdcq1Controller extends BaseController { |
835 | // } | 827 | // } |
836 | // return modelMap; | 828 | // return modelMap; |
837 | // } | 829 | // } |
838 | 830 | ||
839 | 831 | ||
840 | /*** | 832 | /*** |
841 | * @Description: 多幢房屋权属变更439、更正619 | 833 | * @Description: 多幢房屋权属变更439、更正619 |
842 | * @param @param regBusFdcq1 | 834 | * @param @param regBusFdcq1 |
843 | * @param @param model | 835 | * @param @param model |
844 | * @param @param request | 836 | * @param @param request |
845 | * @param @param response | 837 | * @param @param response |
846 | * @param @return 设定文件 | 838 | * @param @return 设定文件 |
847 | * @return String 返回类型 | 839 | * @return String 返回类型 |
848 | * @throws | 840 | * @throws |
849 | */ | 841 | */ |
850 | @RequestMapping(value = "dzHousePropertyForm") | 842 | @RequestMapping(value = "dzHousePropertyForm") |
... | @@ -887,7 +879,7 @@ public class RegBusFdcq1Controller extends BaseController { | ... | @@ -887,7 +879,7 @@ public class RegBusFdcq1Controller extends BaseController { |
887 | } | 879 | } |
888 | } | 880 | } |
889 | } | 881 | } |
890 | 882 | ||
891 | if(djlx.equals("619")){//更正登记 | 883 | if(djlx.equals("619")){//更正登记 |
892 | regBusFdcq1.setDjlx(DictUtils.getDictValue("更正登记", "reg_bus_djlx",""));//登记类型 | 884 | regBusFdcq1.setDjlx(DictUtils.getDictValue("更正登记", "reg_bus_djlx",""));//登记类型 |
893 | }else {//变更登记439 | 885 | }else {//变更登记439 |
... | @@ -907,7 +899,7 @@ public class RegBusFdcq1Controller extends BaseController { | ... | @@ -907,7 +899,7 @@ public class RegBusFdcq1Controller extends BaseController { |
907 | zrz = zrzlist.get(0); | 899 | zrz = zrzlist.get(0); |
908 | } | 900 | } |
909 | } | 901 | } |
910 | 902 | ||
911 | Page<RegBaseZrz> fwpage = new Page<RegBaseZrz>(); | 903 | Page<RegBaseZrz> fwpage = new Page<RegBaseZrz>(); |
912 | List<RegBaseZrz> fwlist = new ArrayList<RegBaseZrz>(); | 904 | List<RegBaseZrz> fwlist = new ArrayList<RegBaseZrz>(); |
913 | Page<RegBusQlr> qlrpage = new Page<RegBusQlr>(); | 905 | Page<RegBusQlr> qlrpage = new Page<RegBusQlr>(); |
... | @@ -923,7 +915,7 @@ public class RegBusFdcq1Controller extends BaseController { | ... | @@ -923,7 +915,7 @@ public class RegBusFdcq1Controller extends BaseController { |
923 | RegBaseZrz regBaseZrz = zrzlist.get(m); | 915 | RegBaseZrz regBaseZrz = zrzlist.get(m); |
924 | fwlist.add(regBaseZrz); | 916 | fwlist.add(regBaseZrz); |
925 | scjzmj = scjzmj + regBaseZrz.getScjzmj(); | 917 | scjzmj = scjzmj + regBaseZrz.getScjzmj(); |
926 | 918 | ||
927 | } | 919 | } |
928 | RegBusQlr Qlr = new RegBusQlr(); | 920 | RegBusQlr Qlr = new RegBusQlr(); |
929 | if(StringUtils.isNotBlank(optype)){ | 921 | if(StringUtils.isNotBlank(optype)){ |
... | @@ -940,7 +932,7 @@ public class RegBusFdcq1Controller extends BaseController { | ... | @@ -940,7 +932,7 @@ public class RegBusFdcq1Controller extends BaseController { |
940 | qlrlist.add(Qlr); | 932 | qlrlist.add(Qlr); |
941 | } | 933 | } |
942 | } | 934 | } |
943 | 935 | ||
944 | BigDecimal scjzmjbd = new BigDecimal(scjzmj); | 936 | BigDecimal scjzmjbd = new BigDecimal(scjzmj); |
945 | scjzmj = scjzmjbd.setScale(3, BigDecimal.ROUND_HALF_UP).doubleValue(); | 937 | scjzmj = scjzmjbd.setScale(3, BigDecimal.ROUND_HALF_UP).doubleValue(); |
946 | /*BigDecimal fttdmjbd = new BigDecimal(fttdmj); | 938 | /*BigDecimal fttdmjbd = new BigDecimal(fttdmj); |
... | @@ -976,13 +968,13 @@ public class RegBusFdcq1Controller extends BaseController { | ... | @@ -976,13 +968,13 @@ public class RegBusFdcq1Controller extends BaseController { |
976 | if (StringUtils.isNotBlank(optype)) { | 968 | if (StringUtils.isNotBlank(optype)) { |
977 | model.addAttribute("optype", optype); | 969 | model.addAttribute("optype", optype); |
978 | } | 970 | } |
979 | 971 | ||
980 | model.addAttribute("YSDM", "6002010210"); | 972 | model.addAttribute("YSDM", "6002010210"); |
981 | regBusFdcq1.setYwh(ywh); | 973 | regBusFdcq1.setYwh(ywh); |
982 | model.addAttribute("regBusFdcq1", regBusFdcq1); | 974 | model.addAttribute("regBusFdcq1", regBusFdcq1); |
983 | return "modules/reg/bus/change/houseviews/regBusFdcq1QSPropertyForm"; | 975 | return "modules/reg/bus/change/houseviews/regBusFdcq1QSPropertyForm"; |
984 | } | 976 | } |
985 | 977 | ||
986 | /* | 978 | /* |
987 | * 多幢房屋权属变更439、更正639save | 979 | * 多幢房屋权属变更439、更正639save |
988 | */ | 980 | */ |
... | @@ -1007,10 +999,10 @@ public class RegBusFdcq1Controller extends BaseController { | ... | @@ -1007,10 +999,10 @@ public class RegBusFdcq1Controller extends BaseController { |
1007 | }else{ | 999 | }else{ |
1008 | map.put("fdcjyjg",null); | 1000 | map.put("fdcjyjg",null); |
1009 | } | 1001 | } |
1010 | map.put("djyy",regBusFdcq1.getDjyy()); | 1002 | map.put("djyy",regBusFdcq1.getDjyy()); |
1011 | map.put("fj",regBusFdcq1.getFj()); | 1003 | map.put("fj",regBusFdcq1.getFj()); |
1012 | map.put("ywh",ywh); | 1004 | map.put("ywh",ywh); |
1013 | 1005 | ||
1014 | RegBusBdcqzsdjxx regBusBdcqzsdjxx = new RegBusBdcqzsdjxx(); | 1006 | RegBusBdcqzsdjxx regBusBdcqzsdjxx = new RegBusBdcqzsdjxx(); |
1015 | regBusBdcqzsdjxx.setYwh(ywh); | 1007 | regBusBdcqzsdjxx.setYwh(ywh); |
1016 | regBusBdcqzsdjxx.setIslogout("0"); | 1008 | regBusBdcqzsdjxx.setIslogout("0"); |
... | @@ -1019,12 +1011,12 @@ public class RegBusFdcq1Controller extends BaseController { | ... | @@ -1019,12 +1011,12 @@ public class RegBusFdcq1Controller extends BaseController { |
1019 | for (int i = 0; i < findList2.size(); i++) { | 1011 | for (int i = 0; i < findList2.size(); i++) { |
1020 | regBusBdcqzsdjxx = findList2.get(i); | 1012 | regBusBdcqzsdjxx = findList2.get(i); |
1021 | if(null != regBusFdcq1.getTdsyqssj() && null != regBusFdcq1.getTdsyjssj()){ | 1013 | if(null != regBusFdcq1.getTdsyqssj() && null != regBusFdcq1.getTdsyjssj()){ |
1022 | regBusBdcqzsdjxx.setSyqx(DateUtils.formatDate(regBusFdcq1.getTdsyqssj(), "yyyy年MM月dd日") + "起" | 1014 | regBusBdcqzsdjxx.setSyqx(DateUtils.formatDate(regBusFdcq1.getTdsyqssj(), "yyyy年MM月dd日") + "起" |
1023 | + DateUtils.formatDate(regBusFdcq1.getTdsyjssj(),"yyyy年MM月dd日")+"止;"); | 1015 | + DateUtils.formatDate(regBusFdcq1.getTdsyjssj(),"yyyy年MM月dd日")+"止;"); |
1024 | } | 1016 | } |
1025 | regBusBdcqzsdjxx.setQllx(regBusFdcq1.getQllx()); | 1017 | regBusBdcqzsdjxx.setQllx(regBusFdcq1.getQllx()); |
1026 | regBusBdcqzsdjxx.setFj(regBusFdcq1.getFj()); | 1018 | regBusBdcqzsdjxx.setFj(regBusFdcq1.getFj()); |
1027 | StringBuilder sb = new StringBuilder(); | 1019 | StringBuilder sb = new StringBuilder(); |
1028 | if(regBusFdcq1.getFdcjyjg() != null){ | 1020 | if(regBusFdcq1.getFdcjyjg() != null){ |
1029 | regBusBdcqzsdjxx.setHbjk(Double.toString(regBusFdcq1.getFdcjyjg())); | 1021 | regBusBdcqzsdjxx.setHbjk(Double.toString(regBusFdcq1.getFdcjyjg())); |
1030 | } | 1022 | } |
... | @@ -1053,7 +1045,7 @@ public class RegBusFdcq1Controller extends BaseController { | ... | @@ -1053,7 +1045,7 @@ public class RegBusFdcq1Controller extends BaseController { |
1053 | if(regBusFdcq1.getFj() == null){ | 1045 | if(regBusFdcq1.getFj() == null){ |
1054 | regBusFdcq1.setFj(""); | 1046 | regBusFdcq1.setFj(""); |
1055 | } | 1047 | } |
1056 | 1048 | ||
1057 | RegBusBdcqzsdjxx regBusBdcqzsdjxx = new RegBusBdcqzsdjxx(); | 1049 | RegBusBdcqzsdjxx regBusBdcqzsdjxx = new RegBusBdcqzsdjxx(); |
1058 | RegBaseZdjbxx regBaseZdjbxx = new RegBaseZdjbxx(); | 1050 | RegBaseZdjbxx regBaseZdjbxx = new RegBaseZdjbxx(); |
1059 | regBaseZdjbxx.setZddm(regBusFdcq1.getBdcdyh().substring(0, 19)); | 1051 | regBaseZdjbxx.setZddm(regBusFdcq1.getBdcdyh().substring(0, 19)); |
... | @@ -1076,7 +1068,7 @@ public class RegBusFdcq1Controller extends BaseController { | ... | @@ -1076,7 +1068,7 @@ public class RegBusFdcq1Controller extends BaseController { |
1076 | regBusBdcqzsdjxx.setBdcdyh(regBusFdcq1.getBdcdyh()); | 1068 | regBusBdcqzsdjxx.setBdcdyh(regBusFdcq1.getBdcdyh()); |
1077 | regBusBdcqzsdjxx.setDelFlag("0"); | 1069 | regBusBdcqzsdjxx.setDelFlag("0"); |
1078 | regBusBdcqzsdjxx.setIslogout("0"); | 1070 | regBusBdcqzsdjxx.setIslogout("0"); |
1079 | 1071 | ||
1080 | List<RegBusBdcqzsdjxx> djxxList = regBusBdcqzsdjxxService.findList(regBusBdcqzsdjxx); | 1072 | List<RegBusBdcqzsdjxx> djxxList = regBusBdcqzsdjxxService.findList(regBusBdcqzsdjxx); |
1081 | if (djxxList != null && !djxxList.isEmpty()) { | 1073 | if (djxxList != null && !djxxList.isEmpty()) { |
1082 | regBusBdcqzsdjxx = djxxList.get(0); | 1074 | regBusBdcqzsdjxx = djxxList.get(0); |
... | @@ -1113,7 +1105,7 @@ public class RegBusFdcq1Controller extends BaseController { | ... | @@ -1113,7 +1105,7 @@ public class RegBusFdcq1Controller extends BaseController { |
1113 | }else { | 1105 | }else { |
1114 | fwszc = fwszc + regBaseH.getBeginc() + "-" + regBaseH.getEndc() + "层/"; | 1106 | fwszc = fwszc + regBaseH.getBeginc() + "-" + regBaseH.getEndc() + "层/"; |
1115 | } | 1107 | } |
1116 | 1108 | ||
1117 | } | 1109 | } |
1118 | if (regBaseZrzList.size() - i > 1) { | 1110 | if (regBaseZrzList.size() - i > 1) { |
1119 | fwjg = fwjg + DictUtils.getDictLabel(zrz.getFwjg(), "reg_bus_fwjg", "") + "/"; | 1111 | fwjg = fwjg + DictUtils.getDictLabel(zrz.getFwjg(), "reg_bus_fwjg", "") + "/"; |
... | @@ -1189,8 +1181,8 @@ public class RegBusFdcq1Controller extends BaseController { | ... | @@ -1189,8 +1181,8 @@ public class RegBusFdcq1Controller extends BaseController { |
1189 | regBusFdcq1tmp1.setQszt("0");//临时 | 1181 | regBusFdcq1tmp1.setQszt("0");//临时 |
1190 | regBusFdcq1Service.save(regBusFdcq1tmp1); | 1182 | regBusFdcq1Service.save(regBusFdcq1tmp1); |
1191 | } | 1183 | } |
1192 | 1184 | ||
1193 | 1185 | ||
1194 | RegBusYwr regBusYwr = new RegBusYwr(); | 1186 | RegBusYwr regBusYwr = new RegBusYwr(); |
1195 | regBusYwr.setYwh(oldywh); | 1187 | regBusYwr.setYwh(oldywh); |
1196 | regBusYwr.setBdcdyh(bdcdyh); | 1188 | regBusYwr.setBdcdyh(bdcdyh); |
... | @@ -1207,21 +1199,21 @@ public class RegBusFdcq1Controller extends BaseController { | ... | @@ -1207,21 +1199,21 @@ public class RegBusFdcq1Controller extends BaseController { |
1207 | } | 1199 | } |
1208 | } | 1200 | } |
1209 | //} | 1201 | //} |
1210 | 1202 | ||
1211 | addMessage(redirectAttributes, "保存多幢房屋属性所有权变更信息成功"); | 1203 | addMessage(redirectAttributes, "保存多幢房屋属性所有权变更信息成功"); |
1212 | return "redirect:" + Global.getAdminPath() + "/reg/bus/regBusFdcq1/list?ywh=" + ywh + "&WO=1&optype="+optype+"&DJLX="+djlx; | 1204 | return "redirect:" + Global.getAdminPath() + "/reg/bus/regBusFdcq1/list?ywh=" + ywh + "&WO=1&optype="+optype+"&DJLX="+djlx; |
1213 | } | 1205 | } |
1214 | 1206 | ||
1215 | 1207 | ||
1216 | /*** | 1208 | /*** |
1217 | * @Title: nextHousePropertyForm | 1209 | * @Title: nextHousePropertyForm |
1218 | * @Description: 房地产权(项目内多幢房屋)物理变更FORM | 1210 | * @Description: 房地产权(项目内多幢房屋)物理变更FORM |
1219 | * @param @param regBusFdcq1 | 1211 | * @param @param regBusFdcq1 |
1220 | * @param @param model | 1212 | * @param @param model |
1221 | * @param @param request | 1213 | * @param @param request |
1222 | * @param @param response | 1214 | * @param @param response |
1223 | * @param @return 设定文件 | 1215 | * @param @return 设定文件 |
1224 | * @return String 返回类型 | 1216 | * @return String 返回类型 |
1225 | * @throws | 1217 | * @throws |
1226 | */ | 1218 | */ |
1227 | @RequestMapping(value = "dznextHousePropertyForm") | 1219 | @RequestMapping(value = "dznextHousePropertyForm") |
... | @@ -1266,19 +1258,19 @@ public class RegBusFdcq1Controller extends BaseController { | ... | @@ -1266,19 +1258,19 @@ public class RegBusFdcq1Controller extends BaseController { |
1266 | //regBaseH = regBaseHService.get(hid); | 1258 | //regBaseH = regBaseHService.get(hid); |
1267 | bdcdyh = regBusFdcq1.getBdcdyh(); | 1259 | bdcdyh = regBusFdcq1.getBdcdyh(); |
1268 | //房屋信息 里面的 坐落等 | 1260 | //房屋信息 里面的 坐落等 |
1269 | 1261 | ||
1270 | regBusFdcq1.setDjyy(null); | 1262 | regBusFdcq1.setDjyy(null); |
1271 | regBusFdcq1.setFj(null); | 1263 | regBusFdcq1.setFj(null); |
1272 | regBusFdcq1.setDbr(null); | 1264 | regBusFdcq1.setDbr(null); |
1273 | regBusFdcq1.setDjsj(null); | 1265 | regBusFdcq1.setDjsj(null); |
1274 | regBusFdcq1.setDjjg(null); | 1266 | regBusFdcq1.setDjjg(null); |
1275 | regBusFdcq1.setBdcqzh(null); | 1267 | regBusFdcq1.setBdcqzh(null); |
1276 | 1268 | ||
1277 | if(djlx.equals("639")){//更正登记 | 1269 | if(djlx.equals("639")){//更正登记 |
1278 | regBusFdcq1.setDjlx(DictUtils.getDictValue("更正登记", "reg_bus_djlx",""));//登记类型 | 1270 | regBusFdcq1.setDjlx(DictUtils.getDictValue("更正登记", "reg_bus_djlx",""));//登记类型 |
1279 | }else {//变更登记439 | 1271 | }else {//变更登记439 |
1280 | regBusFdcq1.setDjlx(DictUtils.getDictValue("变更登记", "reg_bus_djlx",""));//登记类型 | 1272 | regBusFdcq1.setDjlx(DictUtils.getDictValue("变更登记", "reg_bus_djlx",""));//登记类型 |
1281 | } | 1273 | } |
1282 | } | 1274 | } |
1283 | String isReonly = ""; | 1275 | String isReonly = ""; |
1284 | RegBaseZdjbxx regBaseZdjbxx = regBaseZdjbxxService.getdy(regBusFdcq1.getBdcdyh().substring(0, 19)); | 1276 | RegBaseZdjbxx regBaseZdjbxx = regBaseZdjbxxService.getdy(regBusFdcq1.getBdcdyh().substring(0, 19)); |
... | @@ -1311,17 +1303,17 @@ public class RegBusFdcq1Controller extends BaseController { | ... | @@ -1311,17 +1303,17 @@ public class RegBusFdcq1Controller extends BaseController { |
1311 | qlrpage.setList(qlrlist); | 1303 | qlrpage.setList(qlrlist); |
1312 | model.addAttribute("qlrpage", qlrpage);//返回选择后的房屋列表 | 1304 | model.addAttribute("qlrpage", qlrpage);//返回选择后的房屋列表 |
1313 | } | 1305 | } |
1314 | 1306 | ||
1315 | RegBaseH h = new RegBaseH(); | 1307 | RegBaseH h = new RegBaseH(); |
1316 | h.setBdcdyh(bdcdyh.substring(0, 20)); | 1308 | h.setBdcdyh(bdcdyh.substring(0, 20)); |
1317 | fwlist = regBaseHService.findList(h); | 1309 | fwlist = regBaseHService.findList(h); |
1318 | //把选择后的房屋信息填入list中 | 1310 | //把选择后的房屋信息填入list中 |
1319 | 1311 | ||
1320 | fwpage.setList(fwlist); | 1312 | fwpage.setList(fwlist); |
1321 | model.addAttribute("fwpage", fwpage);///返回选择后的房屋列表 | 1313 | model.addAttribute("fwpage", fwpage);///返回选择后的房屋列表 |
1322 | 1314 | ||
1323 | regBusFdcq1.setBdcdyh(bdcdyh);//不动产单元号 | 1315 | regBusFdcq1.setBdcdyh(bdcdyh);//不动产单元号 |
1324 | 1316 | ||
1325 | // 传递要素代码 | 1317 | // 传递要素代码 |
1326 | if (StringUtils.isNotBlank(ywh)) { | 1318 | if (StringUtils.isNotBlank(ywh)) { |
1327 | model.addAttribute("YWH",ywh); | 1319 | model.addAttribute("YWH",ywh); |
... | @@ -1356,7 +1348,7 @@ public class RegBusFdcq1Controller extends BaseController { | ... | @@ -1356,7 +1348,7 @@ public class RegBusFdcq1Controller extends BaseController { |
1356 | model.addAttribute("regBusFdcq1", regBusFdcq1); | 1348 | model.addAttribute("regBusFdcq1", regBusFdcq1); |
1357 | return "modules/reg/bus/change/houseviews/regBusFdcq1PropertyForm"; | 1349 | return "modules/reg/bus/change/houseviews/regBusFdcq1PropertyForm"; |
1358 | } | 1350 | } |
1359 | 1351 | ||
1360 | /* | 1352 | /* |
1361 | * 房屋所有权物理变更save | 1353 | * 房屋所有权物理变更save |
1362 | */ | 1354 | */ |
... | @@ -1377,7 +1369,7 @@ public class RegBusFdcq1Controller extends BaseController { | ... | @@ -1377,7 +1369,7 @@ public class RegBusFdcq1Controller extends BaseController { |
1377 | } | 1369 | } |
1378 | regBusFdcq1.setBdcdyh(regBusFdcq1.getBdcdyh().substring(0,20)+"99990001"); | 1370 | regBusFdcq1.setBdcdyh(regBusFdcq1.getBdcdyh().substring(0,20)+"99990001"); |
1379 | if(StringUtils.isNotBlank(optype)){ | 1371 | if(StringUtils.isNotBlank(optype)){ |
1380 | 1372 | ||
1381 | RegBusBdcqzsdjxx regBusBdcqzsdjxxtmp = new RegBusBdcqzsdjxx(); | 1373 | RegBusBdcqzsdjxx regBusBdcqzsdjxxtmp = new RegBusBdcqzsdjxx(); |
1382 | regBusBdcqzsdjxxtmp.setYwh(regBusFdcq1.getYwh()); | 1374 | regBusBdcqzsdjxxtmp.setYwh(regBusFdcq1.getYwh()); |
1383 | regBusBdcqzsdjxxtmp.setBdcdyh(regBusFdcq1.getBdcdyh()); | 1375 | regBusBdcqzsdjxxtmp.setBdcdyh(regBusFdcq1.getBdcdyh()); |
... | @@ -1389,7 +1381,7 @@ public class RegBusFdcq1Controller extends BaseController { | ... | @@ -1389,7 +1381,7 @@ public class RegBusFdcq1Controller extends BaseController { |
1389 | regBusBdcqzsdjxxtmp.setMj(zjzmj); | 1381 | regBusBdcqzsdjxxtmp.setMj(zjzmj); |
1390 | regBusBdcqzsdjxxtmp.setZl(regBaseH.getZl()); | 1382 | regBusBdcqzsdjxxtmp.setZl(regBaseH.getZl()); |
1391 | if(null != regBusFdcq1.getTdsyqssj() && null != regBusFdcq1.getTdsyjssj()){ | 1383 | if(null != regBusFdcq1.getTdsyqssj() && null != regBusFdcq1.getTdsyjssj()){ |
1392 | regBusBdcqzsdjxxtmp.setSyqx(DateUtils.formatDate(regBusFdcq1.getTdsyqssj(), "yyyy年MM月dd日") + "起" | 1384 | regBusBdcqzsdjxxtmp.setSyqx(DateUtils.formatDate(regBusFdcq1.getTdsyqssj(), "yyyy年MM月dd日") + "起" |
1393 | + DateUtils.formatDate(regBusFdcq1.getTdsyjssj(),"yyyy年MM月dd日")+"止;"); | 1385 | + DateUtils.formatDate(regBusFdcq1.getTdsyjssj(),"yyyy年MM月dd日")+"止;"); |
1394 | } | 1386 | } |
1395 | String fwqlxz = DictUtils.getDictLabel(regBaseH.getFwxz(), "reg_bus_fwxz","");//房屋权力性质 | 1387 | String fwqlxz = DictUtils.getDictLabel(regBaseH.getFwxz(), "reg_bus_fwxz","");//房屋权力性质 |
... | @@ -1408,7 +1400,7 @@ public class RegBusFdcq1Controller extends BaseController { | ... | @@ -1408,7 +1400,7 @@ public class RegBusFdcq1Controller extends BaseController { |
1408 | regBusBdcqzsdjxxtmp.setQlxz(tdqlxz+"/"+fwqlxz);//批文号 | 1400 | regBusBdcqzsdjxxtmp.setQlxz(tdqlxz+"/"+fwqlxz);//批文号 |
1409 | regBusBdcqzsdjxxtmp.setFj(regBusFdcq1.getFj()); | 1401 | regBusBdcqzsdjxxtmp.setFj(regBusFdcq1.getFj()); |
1410 | String sb = ""; | 1402 | String sb = ""; |
1411 | 1403 | ||
1412 | if(regBusFdcq1.getFdcjyjg() != null){ | 1404 | if(regBusFdcq1.getFdcjyjg() != null){ |
1413 | regBusBdcqzsdjxxtmp.setHbjk(Double.toString(regBusFdcq1.getFdcjyjg())); | 1405 | regBusBdcqzsdjxxtmp.setHbjk(Double.toString(regBusFdcq1.getFdcjyjg())); |
1414 | } | 1406 | } |
... | @@ -1464,14 +1456,14 @@ public class RegBusFdcq1Controller extends BaseController { | ... | @@ -1464,14 +1456,14 @@ public class RegBusFdcq1Controller extends BaseController { |
1464 | DateUtils.formatDate(regBusFdcq1.getTdsyjssj(),"yyyy年MM月dd日")+"止;"); | 1456 | DateUtils.formatDate(regBusFdcq1.getTdsyjssj(),"yyyy年MM月dd日")+"止;"); |
1465 | } | 1457 | } |
1466 | String sb = ""; | 1458 | String sb = ""; |
1467 | 1459 | ||
1468 | if(regBusFdcq1.getFdcjyjg() != null){ | 1460 | if(regBusFdcq1.getFdcjyjg() != null){ |
1469 | regBusBdcqzsdjxxNew.setHbjk(Double.toString(regBusFdcq1.getFdcjyjg())); | 1461 | regBusBdcqzsdjxxNew.setHbjk(Double.toString(regBusFdcq1.getFdcjyjg())); |
1470 | } | 1462 | } |
1471 | regBusBdcqzsdjxxNew.setQlqtzk(sb.toString()); | 1463 | regBusBdcqzsdjxxNew.setQlqtzk(sb.toString()); |
1472 | RegBaseC regBaseC = regBaseCService.get(regBaseH.getCid()); | 1464 | RegBaseC regBaseC = regBaseCService.get(regBaseH.getCid()); |
1473 | RegBaseZrz regBaseZrz = regBaseZrzService.get(regBaseC.getZid()); | 1465 | RegBaseZrz regBaseZrz = regBaseZrzService.get(regBaseC.getZid()); |
1474 | regBusBdcqzsdjxxNew.setZddm(regBaseZrz.getZddm());//宗地代码 | 1466 | regBusBdcqzsdjxxNew.setZddm(regBaseZrz.getZddm());//宗地代码 |
1475 | RegBaseZdjbxx regBaseZdjbxx = new RegBaseZdjbxx(); | 1467 | RegBaseZdjbxx regBaseZdjbxx = new RegBaseZdjbxx(); |
1476 | regBaseZdjbxx.setZddm(regBaseZrz.getZddm()); | 1468 | regBaseZdjbxx.setZddm(regBaseZrz.getZddm()); |
1477 | regBaseZdjbxx.setIslogout("0"); | 1469 | regBaseZdjbxx.setIslogout("0"); |
... | @@ -1486,18 +1478,18 @@ public class RegBusFdcq1Controller extends BaseController { | ... | @@ -1486,18 +1478,18 @@ public class RegBusFdcq1Controller extends BaseController { |
1486 | regBusBdcqzsdjxxNew.setYt(tdyt+"/"+fwyt);// 用途 | 1478 | regBusBdcqzsdjxxNew.setYt(tdyt+"/"+fwyt);// 用途 |
1487 | regBusBdcqzsdjxxNew.setQlxz(tdqlxz+"/"+fwqlxz);//批文号 | 1479 | regBusBdcqzsdjxxNew.setQlxz(tdqlxz+"/"+fwqlxz);//批文号 |
1488 | regBusBdcqzsdjxxService.save(regBusBdcqzsdjxxNew); | 1480 | regBusBdcqzsdjxxService.save(regBusBdcqzsdjxxNew); |
1489 | 1481 | ||
1490 | //将特有房屋信息 插入到房屋产权信息中 | 1482 | //将特有房屋信息 插入到房屋产权信息中 |
1491 | regBusFdcq1.setFdzl(regBaseH.getZl()); | 1483 | regBusFdcq1.setFdzl(regBaseH.getZl()); |
1492 | 1484 | ||
1493 | regBusFdcq1.setDytdmj(regBaseH.getDytdmj()); | 1485 | regBusFdcq1.setDytdmj(regBaseH.getDytdmj()); |
1494 | regBusFdcq1.setFttdmj(regBaseH.getFttdmj()); | 1486 | regBusFdcq1.setFttdmj(regBaseH.getFttdmj()); |
1495 | 1487 | ||
1496 | regBusFdcq1.setId(null); | 1488 | regBusFdcq1.setId(null); |
1497 | 1489 | ||
1498 | regBusFdcq1.setQszt("0");//临时 | 1490 | regBusFdcq1.setQszt("0");//临时 |
1499 | regBusFdcq1Service.save(regBusFdcq1); | 1491 | regBusFdcq1Service.save(regBusFdcq1); |
1500 | 1492 | ||
1501 | RegBusQlr regBusQlr = new RegBusQlr(); | 1493 | RegBusQlr regBusQlr = new RegBusQlr(); |
1502 | regBusQlr.setYwh(oldywh); | 1494 | regBusQlr.setYwh(oldywh); |
1503 | List<RegBusQlr> findListSxh = regBusQlrService.findListSxh(regBusQlr); | 1495 | List<RegBusQlr> findListSxh = regBusQlrService.findListSxh(regBusQlr); |
... | @@ -1526,11 +1518,11 @@ public class RegBusFdcq1Controller extends BaseController { | ... | @@ -1526,11 +1518,11 @@ public class RegBusFdcq1Controller extends BaseController { |
1526 | } | 1518 | } |
1527 | } | 1519 | } |
1528 | } | 1520 | } |
1529 | 1521 | ||
1530 | addMessage(redirectAttributes, "保存房地产权(项目内多幢房屋)变更信息成功"); | 1522 | addMessage(redirectAttributes, "保存房地产权(项目内多幢房屋)变更信息成功"); |
1531 | return "redirect:" + Global.getAdminPath() + "/reg/bus/regBusFdcq1/list?ywh=" + ywh + "&WO=1&optype="+optype+"&DJLX="+djlx; | 1523 | return "redirect:" + Global.getAdminPath() + "/reg/bus/regBusFdcq1/list?ywh=" + ywh + "&WO=1&optype="+optype+"&DJLX="+djlx; |
1532 | } | 1524 | } |
1533 | 1525 | ||
1534 | @RequiresPermissions("reg:bus:regBusFdcq1:view") | 1526 | @RequiresPermissions("reg:bus:regBusFdcq1:view") |
1535 | @RequestMapping(value = "dzzydjlist") | 1527 | @RequestMapping(value = "dzzydjlist") |
1536 | public String dzzydjlist(RegBusFdcq1 regBusFdcq1, HttpServletRequest request, HttpServletResponse response, Model model) { | 1528 | public String dzzydjlist(RegBusFdcq1 regBusFdcq1, HttpServletRequest request, HttpServletResponse response, Model model) { |
... | @@ -1564,11 +1556,11 @@ public class RegBusFdcq1Controller extends BaseController { | ... | @@ -1564,11 +1556,11 @@ public class RegBusFdcq1Controller extends BaseController { |
1564 | } | 1556 | } |
1565 | RegBusFdcq1 Fdcq2 = new RegBusFdcq1(); | 1557 | RegBusFdcq1 Fdcq2 = new RegBusFdcq1(); |
1566 | Fdcq2.setYwh(request.getParameter("ywh")); | 1558 | Fdcq2.setYwh(request.getParameter("ywh")); |
1567 | Page<RegBusFdcq1> page = regBusFdcq1Service.findPage(new Page<RegBusFdcq1>(request, response), Fdcq2); | 1559 | Page<RegBusFdcq1> page = regBusFdcq1Service.findPage(new Page<RegBusFdcq1>(request, response), Fdcq2); |
1568 | model.addAttribute("page", page); | 1560 | model.addAttribute("page", page); |
1569 | return "modules/reg/bus/regBusFdcq1zydjList"; | 1561 | return "modules/reg/bus/regBusFdcq1zydjList"; |
1570 | } | 1562 | } |
1571 | 1563 | ||
1572 | /** | 1564 | /** |
1573 | * @param多幢房屋转移登记Form表单 | 1565 | * @param多幢房屋转移登记Form表单 |
1574 | * @param model | 1566 | * @param model |
... | @@ -1660,7 +1652,7 @@ public class RegBusFdcq1Controller extends BaseController { | ... | @@ -1660,7 +1652,7 @@ public class RegBusFdcq1Controller extends BaseController { |
1660 | fdcq1.setDjyy("转移登记"); | 1652 | fdcq1.setDjyy("转移登记"); |
1661 | } | 1653 | } |
1662 | } | 1654 | } |
1663 | 1655 | ||
1664 | //权利人信息列表 | 1656 | //权利人信息列表 |
1665 | Page<RegBusQlr> qlrpage = new Page<RegBusQlr>(); | 1657 | Page<RegBusQlr> qlrpage = new Page<RegBusQlr>(); |
1666 | List<RegBusQlr> qlrlist = new ArrayList<RegBusQlr>(); | 1658 | List<RegBusQlr> qlrlist = new ArrayList<RegBusQlr>(); |
... | @@ -1696,7 +1688,7 @@ public class RegBusFdcq1Controller extends BaseController { | ... | @@ -1696,7 +1688,7 @@ public class RegBusFdcq1Controller extends BaseController { |
1696 | fdcq1.setFdzl(ygfdc.getFdzl()); | 1688 | fdcq1.setFdzl(ygfdc.getFdzl()); |
1697 | } | 1689 | } |
1698 | } | 1690 | } |
1699 | 1691 | ||
1700 | //由宗地代码获取宗地信息,确保宗地代码在库里有值时才取宗地信息里的值 | 1692 | //由宗地代码获取宗地信息,确保宗地代码在库里有值时才取宗地信息里的值 |
1701 | RegBaseZdjbxx regBaseZdjbxx = new RegBaseZdjbxx(); | 1693 | RegBaseZdjbxx regBaseZdjbxx = new RegBaseZdjbxx(); |
1702 | regBaseZdjbxx.setZddm(regBaseZrz.getZddm()); | 1694 | regBaseZdjbxx.setZddm(regBaseZrz.getZddm()); |
... | @@ -1719,7 +1711,7 @@ public class RegBusFdcq1Controller extends BaseController { | ... | @@ -1719,7 +1711,7 @@ public class RegBusFdcq1Controller extends BaseController { |
1719 | fdcq1sc = fdclistsc.get(0); | 1711 | fdcq1sc = fdclistsc.get(0); |
1720 | } | 1712 | } |
1721 | fdcq1.setBdcdyh(bdcdyh); | 1713 | fdcq1.setBdcdyh(bdcdyh); |
1722 | 1714 | ||
1723 | fdcq1.setTdsyqr(regBaseZdjbxx.getQlrxm()); | 1715 | fdcq1.setTdsyqr(regBaseZdjbxx.getQlrxm()); |
1724 | } | 1716 | } |
1725 | fdcq1.setFj(regBusBdcqzsdjxxOld.getFj()); | 1717 | fdcq1.setFj(regBusBdcqzsdjxxOld.getFj()); |
... | @@ -1740,7 +1732,7 @@ public class RegBusFdcq1Controller extends BaseController { | ... | @@ -1740,7 +1732,7 @@ public class RegBusFdcq1Controller extends BaseController { |
1740 | model.addAttribute("regBusFdcq1", fdcq1); | 1732 | model.addAttribute("regBusFdcq1", fdcq1); |
1741 | return "modules/reg/bus/regBusFdcq1GuidezydjForm"; | 1733 | return "modules/reg/bus/regBusFdcq1GuidezydjForm"; |
1742 | } | 1734 | } |
1743 | 1735 | ||
1744 | /** | 1736 | /** |
1745 | * 多幢房屋转移保存 | 1737 | * 多幢房屋转移保存 |
1746 | * @param regBusFdcq1 | 1738 | * @param regBusFdcq1 |
... | @@ -1759,16 +1751,16 @@ public class RegBusFdcq1Controller extends BaseController { | ... | @@ -1759,16 +1751,16 @@ public class RegBusFdcq1Controller extends BaseController { |
1759 | RegBusBdcqzsdjxx Bdcqzsdjxx = new RegBusBdcqzsdjxx(); | 1751 | RegBusBdcqzsdjxx Bdcqzsdjxx = new RegBusBdcqzsdjxx(); |
1760 | Bdcqzsdjxx.setYwh(ywh); | 1752 | Bdcqzsdjxx.setYwh(ywh); |
1761 | regBusBdcqzsdjxxService.deletezyyg(Bdcqzsdjxx); | 1753 | regBusBdcqzsdjxxService.deletezyyg(Bdcqzsdjxx); |
1762 | 1754 | ||
1763 | RegBusFdcq1 fdcq = new RegBusFdcq1(); | 1755 | RegBusFdcq1 fdcq = new RegBusFdcq1(); |
1764 | fdcq.setYwh(ywh); | 1756 | fdcq.setYwh(ywh); |
1765 | regBusFdcq1Service.deletefdcq1(fdcq); | 1757 | regBusFdcq1Service.deletefdcq1(fdcq); |
1766 | 1758 | ||
1767 | RegBusYwr ywr1 = new RegBusYwr(); | 1759 | RegBusYwr ywr1 = new RegBusYwr(); |
1768 | ywr1.setYwh(ywh); | 1760 | ywr1.setYwh(ywh); |
1769 | regBusYwrService.deleteywr(ywr1); | 1761 | regBusYwrService.deleteywr(ywr1); |
1770 | } | 1762 | } |
1771 | 1763 | ||
1772 | //通过id首先获取旧的信息,也就是已选择登记的信息 | 1764 | //通过id首先获取旧的信息,也就是已选择登记的信息 |
1773 | RegBusBdcqzsdjxx regBusBdcqzsdjxxOld = new RegBusBdcqzsdjxx(); | 1765 | RegBusBdcqzsdjxx regBusBdcqzsdjxxOld = new RegBusBdcqzsdjxx(); |
1774 | regBusBdcqzsdjxxOld = regBusBdcqzsdjxxService.get(jid); | 1766 | regBusBdcqzsdjxxOld = regBusBdcqzsdjxxService.get(jid); |
... | @@ -1790,7 +1782,7 @@ public class RegBusFdcq1Controller extends BaseController { | ... | @@ -1790,7 +1782,7 @@ public class RegBusFdcq1Controller extends BaseController { |
1790 | } | 1782 | } |
1791 | } | 1783 | } |
1792 | } | 1784 | } |
1793 | 1785 | ||
1794 | //在新建一个对象用来插入一条变更后的新的信息 | 1786 | //在新建一个对象用来插入一条变更后的新的信息 |
1795 | RegBusBdcqzsdjxx regBusBdcqzsdjxxNew = new RegBusBdcqzsdjxx(); | 1787 | RegBusBdcqzsdjxx regBusBdcqzsdjxxNew = new RegBusBdcqzsdjxx(); |
1796 | RegBusFdcq1 fdc = new RegBusFdcq1(); | 1788 | RegBusFdcq1 fdc = new RegBusFdcq1(); |
... | @@ -1812,7 +1804,7 @@ public class RegBusFdcq1Controller extends BaseController { | ... | @@ -1812,7 +1804,7 @@ public class RegBusFdcq1Controller extends BaseController { |
1812 | if(djxxzhList.size() > 0){ | 1804 | if(djxxzhList.size() > 0){ |
1813 | djxxzh = djxxzhList.get(0); | 1805 | djxxzh = djxxzhList.get(0); |
1814 | } | 1806 | } |
1815 | 1807 | ||
1816 | regBusBdcqzsdjxxNew.setQlxz(regBusBdcqzsdjxxOld.getQlxz()); | 1808 | regBusBdcqzsdjxxNew.setQlxz(regBusBdcqzsdjxxOld.getQlxz()); |
1817 | if(fdc.getTdsyjssj() != null && fdc.getTdsyqssj() != null){ | 1809 | if(fdc.getTdsyjssj() != null && fdc.getTdsyqssj() != null){ |
1818 | regBusBdcqzsdjxxNew.setSyqx(com.thinkgem.jeesite.common.utils.DateUtils.formatDate(fdc.getTdsyqssj(), "yyyy年MM月dd日") + "起" + | 1810 | regBusBdcqzsdjxxNew.setSyqx(com.thinkgem.jeesite.common.utils.DateUtils.formatDate(fdc.getTdsyqssj(), "yyyy年MM月dd日") + "起" + |
... | @@ -1866,9 +1858,9 @@ public class RegBusFdcq1Controller extends BaseController { | ... | @@ -1866,9 +1858,9 @@ public class RegBusFdcq1Controller extends BaseController { |
1866 | } | 1858 | } |
1867 | regBusYwrService.save(ywrxx); | 1859 | regBusYwrService.save(ywrxx); |
1868 | } | 1860 | } |
1869 | } | 1861 | } |
1870 | 1862 | ||
1871 | 1863 | ||
1872 | //查询当前权利人及土地使用权人 | 1864 | //查询当前权利人及土地使用权人 |
1873 | RegBusQlr regBusQlrnew = new RegBusQlr(); | 1865 | RegBusQlr regBusQlrnew = new RegBusQlr(); |
1874 | String tdqlr = ""; | 1866 | String tdqlr = ""; |
... | @@ -1882,7 +1874,7 @@ public class RegBusFdcq1Controller extends BaseController { | ... | @@ -1882,7 +1874,7 @@ public class RegBusFdcq1Controller extends BaseController { |
1882 | } | 1874 | } |
1883 | } | 1875 | } |
1884 | fdc.setQllx(qllx); | 1876 | fdc.setQllx(qllx); |
1885 | 1877 | ||
1886 | regBusFdcq1Service.save(fdc); | 1878 | regBusFdcq1Service.save(fdc); |
1887 | regBusBdcqzsdjxxNew.setRights("1"); | 1879 | regBusBdcqzsdjxxNew.setRights("1"); |
1888 | regBusBdcqzsdjxxNew.setBdcdyh(regBusBdcqzsdjxxOld.getBdcdyh()); | 1880 | regBusBdcqzsdjxxNew.setBdcdyh(regBusBdcqzsdjxxOld.getBdcdyh()); |
... | @@ -1894,11 +1886,11 @@ public class RegBusFdcq1Controller extends BaseController { | ... | @@ -1894,11 +1886,11 @@ public class RegBusFdcq1Controller extends BaseController { |
1894 | regBusBdcqzsdjxxNew.setJccf(regBusBdcqzsdjxxOld.getJccf()); | 1886 | regBusBdcqzsdjxxNew.setJccf(regBusBdcqzsdjxxOld.getJccf()); |
1895 | regBusBdcqzsdjxxNew.setFj(regBusFdcq1.getFj()); | 1887 | regBusBdcqzsdjxxNew.setFj(regBusFdcq1.getFj()); |
1896 | 1888 | ||
1897 | 1889 | ||
1898 | regBusBdcqzsdjxxNew.setQlqtzk(regBusBdcqzsdjxxOld.getQlqtzk()); | 1890 | regBusBdcqzsdjxxNew.setQlqtzk(regBusBdcqzsdjxxOld.getQlqtzk()); |
1899 | regBusBdcqzsdjxxNew.setMj(regBusBdcqzsdjxxOld.getMj()); | 1891 | regBusBdcqzsdjxxNew.setMj(regBusBdcqzsdjxxOld.getMj()); |
1900 | 1892 | ||
1901 | 1893 | ||
1902 | regBusBdcqzsdjxxNew.setJcdydjxx(regBusBdcqzsdjxxOld.getJcdydjxx()); | 1894 | regBusBdcqzsdjxxNew.setJcdydjxx(regBusBdcqzsdjxxOld.getJcdydjxx()); |
1903 | regBusBdcqzsdjxxNew.setQllx(qllx); | 1895 | regBusBdcqzsdjxxNew.setQllx(qllx); |
1904 | //变更宗地用途 | 1896 | //变更宗地用途 |
... | @@ -1908,11 +1900,11 @@ public class RegBusFdcq1Controller extends BaseController { | ... | @@ -1908,11 +1900,11 @@ public class RegBusFdcq1Controller extends BaseController { |
1908 | //变更宗地坐落 | 1900 | //变更宗地坐落 |
1909 | regBusBdcqzsdjxxNew.setZl(regBusBdcqzsdjxxOld.getZl()); | 1901 | regBusBdcqzsdjxxNew.setZl(regBusBdcqzsdjxxOld.getZl()); |
1910 | regBusBdcqzsdjxxNew.setOldid(regBusBdcqzsdjxxOld.getId()); | 1902 | regBusBdcqzsdjxxNew.setOldid(regBusBdcqzsdjxxOld.getId()); |
1911 | 1903 | ||
1912 | /** | 1904 | /** |
1913 | 0 未登记状态 1 初始登记状态 2 变更登记状态 | 1905 | 0 未登记状态 1 初始登记状态 2 变更登记状态 |
1914 | 3 转移登记状态 4 预告登记状态 5 异议登记状态 | 1906 | 3 转移登记状态 4 预告登记状态 5 异议登记状态 |
1915 | 6 更正登记状态 7 查封登记状态 8 注销登记状态 | 1907 | 6 更正登记状态 7 查封登记状态 8 注销登记状态 |
1916 | 99 其他登记状态 | 1908 | 99 其他登记状态 |
1917 | */ | 1909 | */ |
1918 | regBusBdcqzsdjxxNew.setStatus("3"); | 1910 | regBusBdcqzsdjxxNew.setStatus("3"); |
... | @@ -1933,9 +1925,9 @@ public class RegBusFdcq1Controller extends BaseController { | ... | @@ -1933,9 +1925,9 @@ public class RegBusFdcq1Controller extends BaseController { |
1933 | regBusBdcqzsdjxxService.save(regBusBdcqzsdjxxNew); | 1925 | regBusBdcqzsdjxxService.save(regBusBdcqzsdjxxNew); |
1934 | return "redirect:" + Global.getAdminPath() + "/reg/bus/regBusFdcq1/dzzydjlist?ywh=" + ywh + "&WO=1"; | 1926 | return "redirect:" + Global.getAdminPath() + "/reg/bus/regBusFdcq1/dzzydjlist?ywh=" + ywh + "&WO=1"; |
1935 | } | 1927 | } |
1936 | 1928 | ||
1937 | 1929 | ||
1938 | 1930 | ||
1939 | /** | 1931 | /** |
1940 | * @param 注销Form表单 | 1932 | * @param 注销Form表单 |
1941 | * @param model | 1933 | * @param model |
... | @@ -1953,7 +1945,7 @@ public class RegBusFdcq1Controller extends BaseController { | ... | @@ -1953,7 +1945,7 @@ public class RegBusFdcq1Controller extends BaseController { |
1953 | String wo = request.getParameter("WO"); | 1945 | String wo = request.getParameter("WO"); |
1954 | String ids = request.getParameter("ids"); | 1946 | String ids = request.getParameter("ids"); |
1955 | String[] idList = ids.split(";"); | 1947 | String[] idList = ids.split(";"); |
1956 | 1948 | ||
1957 | if(StringUtils.isNotBlank(optype)){//更新 | 1949 | if(StringUtils.isNotBlank(optype)){//更新 |
1958 | regBusFdcq1 = regBusFdcq1Service.get(ids); | 1950 | regBusFdcq1 = regBusFdcq1Service.get(ids); |
1959 | ywh = regBusFdcq1.getYwh(); | 1951 | ywh = regBusFdcq1.getYwh(); |
... | @@ -1978,7 +1970,7 @@ public class RegBusFdcq1Controller extends BaseController { | ... | @@ -1978,7 +1970,7 @@ public class RegBusFdcq1Controller extends BaseController { |
1978 | } | 1970 | } |
1979 | if(idList.length > 1){ | 1971 | if(idList.length > 1){ |
1980 | regBusFdcq1.setBdcdyh("");//多条 不显示 | 1972 | regBusFdcq1.setBdcdyh("");//多条 不显示 |
1981 | 1973 | ||
1982 | regBusFdcq1.setDytdmj(null); | 1974 | regBusFdcq1.setDytdmj(null); |
1983 | regBusFdcq1.setFttdmj(null); | 1975 | regBusFdcq1.setFttdmj(null); |
1984 | regBusFdcq1.setFdzl("详见: 房屋信息");//多条详见房屋列表 | 1976 | regBusFdcq1.setFdzl("详见: 房屋信息");//多条详见房屋列表 |
... | @@ -1988,19 +1980,19 @@ public class RegBusFdcq1Controller extends BaseController { | ... | @@ -1988,19 +1980,19 @@ public class RegBusFdcq1Controller extends BaseController { |
1988 | regBusFdcq1.setDbr(""); //登簿人 | 1980 | regBusFdcq1.setDbr(""); //登簿人 |
1989 | regBusFdcq1.setDjsj(null);//登记时间 | 1981 | regBusFdcq1.setDjsj(null);//登记时间 |
1990 | regBusFdcq1.setDjlx(DictUtils.getDictValue("注销登记", "reg_bus_djlx",""));//登记类型 | 1982 | regBusFdcq1.setDjlx(DictUtils.getDictValue("注销登记", "reg_bus_djlx",""));//登记类型 |
1991 | 1983 | ||
1992 | } | 1984 | } |
1993 | } | 1985 | } |
1994 | 1986 | ||
1995 | Page<RegBaseH> fwpage = new Page<RegBaseH>(); | 1987 | Page<RegBaseH> fwpage = new Page<RegBaseH>(); |
1996 | RegBaseH h = new RegBaseH(); | 1988 | RegBaseH h = new RegBaseH(); |
1997 | h.setBdcdyh(regBusFdcq1.getBdcdyh().substring(0, 19)); | 1989 | h.setBdcdyh(regBusFdcq1.getBdcdyh().substring(0, 19)); |
1998 | 1990 | ||
1999 | List<RegBaseH> fwlist = regBaseHService.findList(h); | 1991 | List<RegBaseH> fwlist = regBaseHService.findList(h); |
2000 | 1992 | ||
2001 | fwpage.setList(fwlist); | 1993 | fwpage.setList(fwlist); |
2002 | model.addAttribute("fwpage", fwpage);//返回选择后的房屋列表 | 1994 | model.addAttribute("fwpage", fwpage);//返回选择后的房屋列表 |
2003 | 1995 | ||
2004 | // 传递要素代码 | 1996 | // 传递要素代码 |
2005 | if (StringUtils.isNotBlank(ywh)) { | 1997 | if (StringUtils.isNotBlank(ywh)) { |
2006 | model.addAttribute("YWH",ywh); | 1998 | model.addAttribute("YWH",ywh); |
... | @@ -2022,7 +2014,7 @@ public class RegBusFdcq1Controller extends BaseController { | ... | @@ -2022,7 +2014,7 @@ public class RegBusFdcq1Controller extends BaseController { |
2022 | model.addAttribute("regBusFdcq1", regBusFdcq1); | 2014 | model.addAttribute("regBusFdcq1", regBusFdcq1); |
2023 | return "modules/reg/bus/dzzxnextForm"; | 2015 | return "modules/reg/bus/dzzxnextForm"; |
2024 | } | 2016 | } |
2025 | 2017 | ||
2026 | /** | 2018 | /** |
2027 | * 多幢房屋所有权注销保存方法 | 2019 | * 多幢房屋所有权注销保存方法 |
2028 | * @param regBusFdcq1 | 2020 | * @param regBusFdcq1 |
... | @@ -2073,7 +2065,7 @@ public class RegBusFdcq1Controller extends BaseController { | ... | @@ -2073,7 +2065,7 @@ public class RegBusFdcq1Controller extends BaseController { |
2073 | regBusBdcqzsdjxxNew.setDydjxx(temp.getDydjxx());//抵押登记信息 为空 | 2065 | regBusBdcqzsdjxxNew.setDydjxx(temp.getDydjxx());//抵押登记信息 为空 |
2074 | regBusBdcqzsdjxxNew.setFj(regBusFdcq1.getFj()); | 2066 | regBusBdcqzsdjxxNew.setFj(regBusFdcq1.getFj()); |
2075 | regBusBdcqzsdjxxNew.setDydjxx("");//登记信息 | 2067 | regBusBdcqzsdjxxNew.setDydjxx("");//登记信息 |
2076 | 2068 | ||
2077 | regBusBdcqzsdjxxNew.setStatus("18");//抵押状态 | 2069 | regBusBdcqzsdjxxNew.setStatus("18");//抵押状态 |
2078 | regBusBdcqzsdjxxNew.setIsfdsj(Integer.valueOf("0")); | 2070 | regBusBdcqzsdjxxNew.setIsfdsj(Integer.valueOf("0")); |
2079 | regBusBdcqzsdjxxNew.setGyqk(temp.getGyqk());//共有情况 | 2071 | regBusBdcqzsdjxxNew.setGyqk(temp.getGyqk());//共有情况 |
... | @@ -2100,14 +2092,14 @@ public class RegBusFdcq1Controller extends BaseController { | ... | @@ -2100,14 +2092,14 @@ public class RegBusFdcq1Controller extends BaseController { |
2100 | // regBusBdcqzsdjxxService.deleteygdyxx(regBusBdcqzsdjxxNew); | 2092 | // regBusBdcqzsdjxxService.deleteygdyxx(regBusBdcqzsdjxxNew); |
2101 | // } | 2093 | // } |
2102 | regBusBdcqzsdjxxService.save(regBusBdcqzsdjxxNew); | 2094 | regBusBdcqzsdjxxService.save(regBusBdcqzsdjxxNew); |
2103 | 2095 | ||
2104 | //将特有房屋信息 插入到房屋产权信息中 | 2096 | //将特有房屋信息 插入到房屋产权信息中 |
2105 | regBusFdcq1.setYwh(temp.getYwh()); | 2097 | regBusFdcq1.setYwh(temp.getYwh()); |
2106 | regBusFdcq1.setBdcdyh(temp.getBdcdyh()); | 2098 | regBusFdcq1.setBdcdyh(temp.getBdcdyh()); |
2107 | //regBusFdcq1.setDjlx(null); | 2099 | //regBusFdcq1.setDjlx(null); |
2108 | List<RegBusFdcq1> listfdcq1 = regBusFdcq1Service.findList(regBusFdcq1); | 2100 | List<RegBusFdcq1> listfdcq1 = regBusFdcq1Service.findList(regBusFdcq1); |
2109 | if(listfdcq1.size() > 0){ | 2101 | if(listfdcq1.size() > 0){ |
2110 | 2102 | ||
2111 | String djyy = regBusFdcq1.getDjyy(); | 2103 | String djyy = regBusFdcq1.getDjyy(); |
2112 | String fj = regBusFdcq1.getFj(); | 2104 | String fj = regBusFdcq1.getFj(); |
2113 | String djdl = regBusFdcq1.getDjlx(); | 2105 | String djdl = regBusFdcq1.getDjlx(); |
... | @@ -2150,8 +2142,8 @@ public class RegBusFdcq1Controller extends BaseController { | ... | @@ -2150,8 +2142,8 @@ public class RegBusFdcq1Controller extends BaseController { |
2150 | } | 2142 | } |
2151 | } | 2143 | } |
2152 | } | 2144 | } |
2153 | 2145 | ||
2154 | addMessage(redirectAttributes, "注销房屋所有权信息成功"); | 2146 | addMessage(redirectAttributes, "注销房屋所有权信息成功"); |
2155 | return "redirect:" + Global.getAdminPath() + "/reg/bus/regBusFdcq1/list?ywh=" + ywh + "&WO=1&optype="+optype+"&DJLX="+djlx; | 2147 | return "redirect:" + Global.getAdminPath() + "/reg/bus/regBusFdcq1/list?ywh=" + ywh + "&WO=1&optype="+optype+"&DJLX="+djlx; |
2156 | } | 2148 | } |
2157 | } | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
2149 | } | ... | ... |
... | @@ -6,6 +6,7 @@ import java.io.FileOutputStream; | ... | @@ -6,6 +6,7 @@ import java.io.FileOutputStream; |
6 | import java.io.IOException; | 6 | import java.io.IOException; |
7 | import java.io.OutputStream; | 7 | import java.io.OutputStream; |
8 | import java.util.ArrayList; | 8 | import java.util.ArrayList; |
9 | import java.util.Base64; | ||
9 | import java.util.List; | 10 | import java.util.List; |
10 | 11 | ||
11 | import javax.imageio.ImageIO; | 12 | import javax.imageio.ImageIO; |
... | @@ -27,214 +28,212 @@ import com.thinkgem.jeesite.modules.reg.entity.bus.RegBusSlsq; | ... | @@ -27,214 +28,212 @@ import com.thinkgem.jeesite.modules.reg.entity.bus.RegBusSlsq; |
27 | import com.thinkgem.jeesite.modules.reg.service.bus.RegBusQlrService; | 28 | import com.thinkgem.jeesite.modules.reg.service.bus.RegBusQlrService; |
28 | import com.thinkgem.jeesite.modules.reg.service.bus.RegBusSlsqService; | 29 | import com.thinkgem.jeesite.modules.reg.service.bus.RegBusSlsqService; |
29 | 30 | ||
30 | import sun.misc.BASE64Decoder; | ||
31 | |||
32 | 31 | ||
33 | @Controller | 32 | @Controller |
34 | @RequestMapping(value = "${adminPath}/reg/bus/uploadExamPic") | 33 | @RequestMapping(value = "${adminPath}/reg/bus/uploadExamPic") |
35 | public class uploadExamPicController extends BaseController{ | 34 | public class uploadExamPicController extends BaseController { |
36 | @Autowired | 35 | @Autowired |
37 | private RegBusSlsqService regBusSlsqService; | 36 | private RegBusSlsqService regBusSlsqService; |
38 | @Autowired | 37 | @Autowired |
39 | private RegBusQlrService regBusQlrService; | 38 | private RegBusQlrService regBusQlrService; |
40 | 39 | ||
41 | @RequestMapping(value = "scanss") | 40 | @RequestMapping(value = "scanss") |
42 | public String scanss(RegBusSlsq regBusSlsq,HttpServletRequest request, HttpServletResponse response, Model model) { | 41 | public String scanss(RegBusSlsq regBusSlsq, HttpServletRequest request, HttpServletResponse response, Model model) { |
43 | String picywh = request.getParameter("ywh"); | 42 | String picywh = request.getParameter("ywh"); |
44 | List<String> listpic = new ArrayList<String>(); | 43 | List<String> listpic = new ArrayList<String>(); |
45 | if(StringUtils.isNotBlank(picywh)){ | 44 | if (StringUtils.isNotBlank(picywh)) { |
46 | String Path = Global.getPictures()+ picywh + "/"; | 45 | String Path = Global.getPictures() + picywh + "/"; |
47 | File file = new File(Path); | 46 | File file = new File(Path); |
48 | if(file.exists()){ | 47 | if (file.exists()) { |
49 | File[] files = file.listFiles(); | 48 | File[] files = file.listFiles(); |
50 | if(files.length > 0){ | 49 | if (files.length > 0) { |
51 | for (File file2 : files) { | 50 | for (File file2 : files) { |
52 | String absoltpath = (file2.getAbsolutePath()).replaceAll("\\\\", "/"); | 51 | String absoltpath = (file2.getAbsolutePath()).replaceAll("\\\\", "/"); |
53 | listpic.add(picywh+"/"+file2.getName()); | 52 | listpic.add(picywh + "/" + file2.getName()); |
54 | logger.info(file2.getName()); | 53 | logger.info(file2.getName()); |
55 | } | 54 | } |
56 | } | 55 | } |
57 | } | 56 | } |
58 | } | 57 | } |
59 | Double data = Math.random(); | 58 | Double data = Math.random(); |
60 | model.addAttribute("math", data); | 59 | model.addAttribute("math", data); |
61 | model.addAttribute("taskkey",request.getParameter("picid")); | 60 | model.addAttribute("taskkey", request.getParameter("picid")); |
62 | model.addAttribute("ywh", picywh); | 61 | model.addAttribute("ywh", picywh); |
63 | model.addAttribute("listpic",listpic); | 62 | model.addAttribute("listpic", listpic); |
64 | return "modules/reg/bus/dialog/scanss"; | 63 | return "modules/reg/bus/dialog/scanss"; |
65 | } | 64 | } |
66 | 65 | ||
67 | @RequestMapping(value = "scan") | 66 | @RequestMapping(value = "scan") |
68 | public String scan(RegBusSlsq regBusSlsq, HttpServletRequest request, HttpServletResponse response, Model model) { | 67 | public String scan(RegBusSlsq regBusSlsq, HttpServletRequest request, HttpServletResponse response, Model model) { |
69 | String ywh = request.getParameter("ywh"); | 68 | String ywh = request.getParameter("ywh"); |
70 | model.addAttribute("ywh", ywh); | 69 | model.addAttribute("ywh", ywh); |
71 | return "modules/reg/bus/dialog/scan"; | 70 | return "modules/reg/bus/dialog/scan"; |
72 | } | 71 | } |
73 | @RequestMapping(value = "uploadPic") | 72 | |
74 | public void uploadPic(HttpServletRequest request,Model model,HttpServletResponse response) throws IOException{ | 73 | @RequestMapping(value = "uploadPic") |
75 | String ywh = request.getParameter("ywh"); | 74 | public void uploadPic(HttpServletRequest request, Model model, HttpServletResponse response) throws IOException { |
76 | String sxh = request.getParameter("sxh"); | 75 | String ywh = request.getParameter("ywh"); |
77 | String dirpic = Global.getPictures()+ywh; | 76 | String sxh = request.getParameter("sxh"); |
78 | //String savePath = "F:/images/"; | 77 | String dirpic = Global.getPictures() + ywh; |
79 | File filedir = new File(dirpic); | 78 | //String savePath = "F:/images/"; |
80 | String savePath = ""; | 79 | File filedir = new File(dirpic); |
81 | if(filedir.isDirectory()){ | 80 | String savePath = ""; |
82 | savePath = dirpic + "/"; | 81 | if (filedir.isDirectory()) { |
83 | }else{ | 82 | savePath = dirpic + "/"; |
84 | filedir.mkdir(); | 83 | } else { |
85 | savePath = dirpic +"/"; | 84 | filedir.mkdir(); |
86 | } | 85 | savePath = dirpic + "/"; |
87 | File tmp_path = new File(savePath); | 86 | } |
88 | tmp_path.mkdirs(); | 87 | File tmp_path = new File(savePath); |
89 | System.out.println("照片数据保存路径:" + savePath); | 88 | tmp_path.mkdirs(); |
90 | int num = 100; | 89 | System.out.println("照片数据保存路径:" + savePath); |
91 | //权利人人像比对是传递顺序号 | 90 | int num = 100; |
92 | if(StringUtils.isNotBlank(sxh)) { | 91 | //权利人人像比对是传递顺序号 |
93 | num = Integer.parseInt(sxh); | 92 | if (StringUtils.isNotBlank(sxh)) { |
94 | } | 93 | num = Integer.parseInt(sxh); |
95 | String picname= Integer.toString(num); | 94 | } |
96 | picname = ywh + "-"+picname+".jpg"; | 95 | String picname = Integer.toString(num); |
97 | File file_txt = new File(savePath+picname); | 96 | picname = ywh + "-" + picname + ".jpg"; |
98 | if(StringUtils.isBlank(sxh)) { | 97 | File file_txt = new File(savePath + picname); |
99 | do{//业务拍照 | 98 | if (StringUtils.isBlank(sxh)) { |
100 | num = num+1; | 99 | do {//业务拍照 |
101 | picname= Integer.toString(num); | 100 | num = num + 1; |
102 | picname = ywh + "-"+ picname+".jpg"; | 101 | picname = Integer.toString(num); |
103 | file_txt = new File(savePath+picname); | 102 | picname = ywh + "-" + picname + ".jpg"; |
104 | }while(file_txt.exists()); | 103 | file_txt = new File(savePath + picname); |
105 | }else {//人像比对拍照 | 104 | } while (file_txt.exists()); |
106 | picname= Integer.toString(num); | 105 | } else {//人像比对拍照 |
107 | picname = ywh + "-"+ picname+".jpg"; | 106 | picname = Integer.toString(num); |
108 | file_txt = new File(savePath+picname); | 107 | picname = ywh + "-" + picname + ".jpg"; |
109 | } | 108 | file_txt = new File(savePath + picname); |
110 | 109 | } | |
111 | model.addAttribute("pic",picname); | 110 | |
112 | String image = request.getParameter("image");//240 | 111 | model.addAttribute("pic", picname); |
113 | String type = request.getParameter("val");//240 | 112 | String image = request.getParameter("image");//240 |
114 | if(null!=image && !"".equals(image)){//防止没有拍照直接保存产生的空指针的错误 | 113 | String type = request.getParameter("val");//240 |
115 | String width = request.getParameter("w");//320 | 114 | if (null != image && !"".equals(image)) {//防止没有拍照直接保存产生的空指针的错误 |
116 | String height = request.getParameter("h");//240 | 115 | String width = request.getParameter("w");//320 |
117 | int w = Integer.parseInt(width); | 116 | String height = request.getParameter("h");//240 |
118 | int h = Integer.parseInt(height); | 117 | int w = Integer.parseInt(width); |
119 | OutputStream out = null; | 118 | int h = Integer.parseInt(height); |
120 | if (null!=type &&"pixel".equals(type)) {//Trident | 119 | OutputStream out = null; |
121 | try { | 120 | if (null != type && "pixel".equals(type)) {//Trident |
122 | BufferedImage bf = new BufferedImage(w, h, BufferedImage.TYPE_INT_RGB); | 121 | try { |
123 | String[] rows = image.split("\\|"); | 122 | BufferedImage bf = new BufferedImage(w, h, BufferedImage.TYPE_INT_RGB); |
124 | for (int i = 0; i < rows.length; i++) { | 123 | String[] rows = image.split("\\|"); |
125 | String[] col = rows[i].split(";"); | 124 | for (int i = 0; i < rows.length; i++) { |
126 | for (int j = 0; j < col.length; j++) { | 125 | String[] col = rows[i].split(";"); |
127 | int data = Integer.parseInt(col[j], 10); | 126 | for (int j = 0; j < col.length; j++) { |
128 | bf.setRGB(j, i, data); | 127 | int data = Integer.parseInt(col[j], 10); |
129 | } | 128 | bf.setRGB(j, i, data); |
130 | } | 129 | } |
131 | File picPath = new File(savePath); | 130 | } |
132 | if (!picPath.exists()) { | 131 | File picPath = new File(savePath); |
133 | picPath.mkdirs(); | 132 | if (!picPath.exists()) { |
134 | } | 133 | picPath.mkdirs(); |
135 | ImageIO.write(bf, "jpg", file_txt); | 134 | } |
136 | } catch (Exception e) { | 135 | ImageIO.write(bf, "jpg", file_txt); |
137 | e.printStackTrace(); | 136 | } catch (Exception e) { |
138 | } | 137 | e.printStackTrace(); |
139 | } else {//WebKit | 138 | } |
140 | try { | 139 | } else {//WebKit |
141 | byte[] bytes = null; | 140 | try { |
142 | String imageStr = null; | 141 | byte[] bytes = null; |
143 | //Base64解码并生成图片 | 142 | String imageStr = null; |
144 | //替换头 | 143 | //Base64解码并生成图片 |
145 | imageStr = image.replace("data:image/png;base64,", "").trim(); | 144 | //替换头 |
145 | imageStr = image.replace("data:image/png;base64,", "").trim(); | ||
146 | /*if (null != image) { | 146 | /*if (null != image) { |
147 | image = image.substring(image.indexOf(",") + 1); | 147 | image = image.substring(image.indexOf(",") + 1); |
148 | }*/ | 148 | }*/ |
149 | // Base64解码 | 149 | // Base64解码 |
150 | bytes = new BASE64Decoder().decodeBuffer(imageStr); | 150 | // bytes = new BASE64Decoder().decodeBuffer(imageStr); |
151 | for (int i = 0; i < bytes.length; ++i) { | 151 | bytes = Base64.getDecoder().decode(imageStr); |
152 | if (bytes[i] < 0) {// 调整异常数据 | 152 | for (int i = 0; i < bytes.length; ++i) { |
153 | bytes[i] += 256; | 153 | if (bytes[i] < 0) {// 调整异常数据 |
154 | } | 154 | bytes[i] += 256; |
155 | } | 155 | } |
156 | if (!file_txt.exists()) { | 156 | } |
157 | file_txt.createNewFile(); | 157 | if (!file_txt.exists()) { |
158 | }else{ | 158 | file_txt.createNewFile(); |
159 | file_txt.delete(); | 159 | } else { |
160 | file_txt.createNewFile(); | 160 | file_txt.delete(); |
161 | } | 161 | file_txt.createNewFile(); |
162 | // 生成jpeg图片 | 162 | } |
163 | out = new FileOutputStream(file_txt.getAbsoluteFile()); | 163 | // 生成jpeg图片 |
164 | out.write(bytes); | 164 | out = new FileOutputStream(file_txt.getAbsoluteFile()); |
165 | } catch (Exception e) { | 165 | out.write(bytes); |
166 | e.printStackTrace(); | 166 | } catch (Exception e) { |
167 | }finally{ | 167 | e.printStackTrace(); |
168 | if(null!=out){ | 168 | } finally { |
169 | out.flush(); | 169 | if (null != out) { |
170 | out.close(); | 170 | out.flush(); |
171 | } | 171 | out.close(); |
172 | } | 172 | } |
173 | } | 173 | } |
174 | }else{ | 174 | } |
175 | System.out.println("图像为空"); | 175 | } else { |
176 | } | 176 | System.out.println("图像为空"); |
177 | 177 | } | |
178 | //人像比对附件保存后直接更新权利人字段 | 178 | |
179 | if(StringUtils.isNotBlank(sxh)) { | 179 | //人像比对附件保存后直接更新权利人字段 |
180 | String tpbm = image.replace("data:image/png;base64,", "").trim(); | 180 | if (StringUtils.isNotBlank(sxh)) { |
181 | RegBusQlr regBusQlr = regBusQlrService.findByPic(ywh,sxh); | 181 | String tpbm = image.replace("data:image/png;base64,", "").trim(); |
182 | regBusQlr.setTpbm(tpbm); | 182 | RegBusQlr regBusQlr = regBusQlrService.findByPic(ywh, sxh); |
183 | regBusQlr.setPic(ywh+"/"+picname); | 183 | regBusQlr.setTpbm(tpbm); |
184 | regBusQlrService.save(regBusQlr); | 184 | regBusQlr.setPic(ywh + "/" + picname); |
185 | } | 185 | regBusQlrService.save(regBusQlr); |
186 | } | 186 | } |
187 | 187 | } | |
188 | @RequestMapping(value = "delpho") | 188 | |
189 | public String delpho(HttpServletRequest request,Model model,HttpServletResponse response) throws IOException{ | 189 | @RequestMapping(value = "delpho") |
190 | String picpath = Global.getPictures(); | 190 | public String delpho(HttpServletRequest request, Model model, HttpServletResponse response) throws IOException { |
191 | String realpath = picpath + request.getParameter("picname"); | 191 | String picpath = Global.getPictures(); |
192 | File file =new File(realpath); | 192 | String realpath = picpath + request.getParameter("picname"); |
193 | if(file.exists()){ | 193 | File file = new File(realpath); |
194 | file.delete(); | 194 | if (file.exists()) { |
195 | } | 195 | file.delete(); |
196 | String sxh = request.getParameter("sxh"); | 196 | } |
197 | String ywh = request.getParameter("ywh"); | 197 | String sxh = request.getParameter("sxh"); |
198 | if(StringUtils.isBlank(sxh)) { | 198 | String ywh = request.getParameter("ywh"); |
199 | 199 | if (StringUtils.isBlank(sxh)) { | |
200 | return "redirect:"+Global.getAdminPath()+"/reg/bus/uploadExamPic/scanss?ywh="+ request.getParameter("ywh")+"&picid="+request.getParameter("picid"); | 200 | |
201 | }else { | 201 | return "redirect:" + Global.getAdminPath() + "/reg/bus/uploadExamPic/scanss?ywh=" + request.getParameter("ywh") + "&picid=" + request.getParameter("picid"); |
202 | RegBusQlr regBusQlr = regBusQlrService.findByPic(ywh,sxh); | 202 | } else { |
203 | regBusQlr.setTpbm(null); | 203 | RegBusQlr regBusQlr = regBusQlrService.findByPic(ywh, sxh); |
204 | regBusQlr.setPic(null); | 204 | regBusQlr.setTpbm(null); |
205 | regBusQlrService.save(regBusQlr); | 205 | regBusQlr.setPic(null); |
206 | return "redirect:"+Global.getAdminPath()+"/reg/bus/regBusQlr/rxbdForm?ywh="+ request.getParameter("ywh"); | 206 | regBusQlrService.save(regBusQlr); |
207 | 207 | return "redirect:" + Global.getAdminPath() + "/reg/bus/regBusQlr/rxbdForm?ywh=" + request.getParameter("ywh"); | |
208 | } | 208 | |
209 | } | 209 | } |
210 | 210 | } | |
211 | @RequestMapping(value = "delphodir") | 211 | |
212 | public String delphodir(HttpServletRequest request,Model model,HttpServletResponse response) throws IOException{ | 212 | @RequestMapping(value = "delphodir") |
213 | //删除照片 | 213 | public String delphodir(HttpServletRequest request, Model model, HttpServletResponse response) throws IOException { |
214 | String picpath = Global.getPictures(); | 214 | //删除照片 |
215 | String dirpath = picpath + request.getParameter("ywh"); | 215 | String picpath = Global.getPictures(); |
216 | System.out.println(dirpath); | 216 | String dirpath = picpath + request.getParameter("ywh"); |
217 | File filedir = new File(dirpath); | 217 | System.out.println(dirpath); |
218 | if(filedir.isDirectory()){ | 218 | File filedir = new File(dirpath); |
219 | File[] filelist = filedir.listFiles(); | 219 | if (filedir.isDirectory()) { |
220 | for(int i = 0;i<filelist.length;i++){ | 220 | File[] filelist = filedir.listFiles(); |
221 | filelist[i].delete(); | 221 | for (int i = 0; i < filelist.length; i++) { |
222 | } | 222 | filelist[i].delete(); |
223 | filedir.delete(); | 223 | } |
224 | } | 224 | filedir.delete(); |
225 | return "redirect:"+ adminPath + "/act/task/todo/"; | 225 | } |
226 | return "redirect:" + adminPath + "/act/task/todo/"; | ||
227 | } | ||
228 | |||
229 | |||
230 | //-----------------------------------------人像比对--------------------------------------------------- | ||
231 | @RequestMapping(value = "rxbdscan") | ||
232 | public String rxbdscan(RegBusSlsq regBusSlsq, HttpServletRequest request, HttpServletResponse response, Model model) { | ||
233 | String ywh = request.getParameter("ywh"); | ||
234 | String sxh = request.getParameter("sxh"); | ||
235 | model.addAttribute("sxh", sxh); | ||
236 | model.addAttribute("ywh", ywh); | ||
237 | return "modules/reg/bus/dialog/rxbdscan"; | ||
238 | } | ||
226 | } | 239 | } |
227 | |||
228 | |||
229 | |||
230 | |||
231 | //-----------------------------------------人像比对--------------------------------------------------- | ||
232 | @RequestMapping(value = "rxbdscan") | ||
233 | public String rxbdscan(RegBusSlsq regBusSlsq, HttpServletRequest request, HttpServletResponse response, Model model) { | ||
234 | String ywh = request.getParameter("ywh"); | ||
235 | String sxh = request.getParameter("sxh"); | ||
236 | model.addAttribute("sxh", sxh); | ||
237 | model.addAttribute("ywh", ywh); | ||
238 | return "modules/reg/bus/dialog/rxbdscan"; | ||
239 | } | ||
240 | } | ||
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
... | @@ -34,10 +34,10 @@ jdbc.password=odm | ... | @@ -34,10 +34,10 @@ jdbc.password=odm |
34 | reg.areacode=610702 | 34 | reg.areacode=610702 |
35 | 35 | ||
36 | reg.pictures=D:/picture/ | 36 | reg.pictures=D:/picture/ |
37 | 37 | ||
38 | ## 是否测试环境 正式部署需要修改false | 38 | ## 是否测试环境 正式部署需要修改false |
39 | reg.test=true | 39 | reg.test=true |
40 | 40 | ||
41 | reg.titleurl = http://127.0.0.1:8222/title | 41 | reg.titleurl = http://127.0.0.1:8222/title |
42 | 42 | ||
43 | 43 | ||
... | @@ -49,7 +49,7 @@ reg.ycsl.url=http://172.16.56.36/api/ycxt/ | ... | @@ -49,7 +49,7 @@ reg.ycsl.url=http://172.16.56.36/api/ycxt/ |
49 | reg.ywh.new=true | 49 | reg.ywh.new=true |
50 | reg.xq=false | 50 | reg.xq=false |
51 | 51 | ||
52 | 52 | ||
53 | odm_Si_Url=http://172.16.56.36/platSi/si_inter/1/ | 53 | odm_Si_Url=http://172.16.56.36/platSi/si_inter/1/ |
54 | reg.inter.username=test | 54 | reg.inter.username=test |
55 | reg.inter.password=test | 55 | reg.inter.password=test |
... | @@ -160,10 +160,36 @@ userfiles.basedir=F:/ | ... | @@ -160,10 +160,36 @@ userfiles.basedir=F:/ |
160 | 160 | ||
161 | #\u5de5\u7a0b\u8def\u5f84\uff0c\u5728\u4ee3\u7801\u751f\u6210\u65f6\u83b7\u53d6\u4e0d\u5230\u5de5\u7a0b\u8def\u5f84\u65f6\uff0c\u53ef\u518d\u6b64\u6307\u5b9a\u7edd\u5bf9\u8def\u5f84\u3002 | 161 | #\u5de5\u7a0b\u8def\u5f84\uff0c\u5728\u4ee3\u7801\u751f\u6210\u65f6\u83b7\u53d6\u4e0d\u5230\u5de5\u7a0b\u8def\u5f84\u65f6\uff0c\u53ef\u518d\u6b64\u6307\u5b9a\u7edd\u5bf9\u8def\u5f84\u3002 |
162 | #projectPath=D\:\\workspace\\jeesite | 162 | #projectPath=D\:\\workspace\\jeesite |
163 | 163 | ||
164 | webServiceUrl=http\://172.16.56.8\:80/jg_plat/services/eventService?wsdl | 164 | webServiceUrl=http\://172.16.56.8\:80/jg_plat/services/eventService?wsdl |
165 | #webServiceUrl=http\://localhost\:8080/ODM/services/eventService?wsdl | 165 | #webServiceUrl=http\://localhost\:8080/ODM/services/eventService?wsdl |
166 | secretKey=d85a9de7a3d440589e3c2a5d838f0e30 | 166 | secretKey=d85a9de7a3d440589e3c2a5d838f0e30 |
167 | appId=8fc79f05fc3442f8949a86c3ea379404 | 167 | appId=8fc79f05fc3442f8949a86c3ea379404 |
168 | taxUrl=http://172.16.56.10:8020/dfdc/api/wsqk.bs | 168 | taxUrl=http://172.16.56.10:8020/dfdc/api/wsqk.bs |
169 | |||
... | \ No newline at end of file | ... | \ No newline at end of file |
169 | |||
170 | #契约锁是否正式环境 | ||
171 | eci.flag=false | ||
172 | |||
173 | #契约锁开发环境 | ||
174 | eci.test.host=http://172.16.56.41:9182 | ||
175 | eci.test.AppToken=QMaR2FKZM9 | ||
176 | eci.test.AppSecret=LzbLwgdIAq75avbsfXTRDQBizCl8cN | ||
177 | #测试环境用印流程ID | ||
178 | eci.test.bdcdjzmlc=2890537670326468622 | ||
179 | eci.test.bdcqzslc=2890537800123400234 | ||
180 | eci.test.bdccxzmlc=2890869716009730280 | ||
181 | #测试环境电子印章ID | ||
182 | eci.test.zzzyz=2890537558074310661 | ||
183 | eci.test.dacxzyz=2890870038996304134 | ||
184 | |||
185 | #契约锁正式环境 | ||
186 | eci.prod.host=http://172.16.56.6:9182 | ||
187 | eci.prod.AppToken=lv2M681jcM | ||
188 | eci.prod.AppSecret=mZWAKA2p7vvnTZMNuUKRHaCL3LTgHA | ||
189 | #正式环境用印流程ID | ||
190 | eci.prod.bdcdjzmlc=2905681381004489569 | ||
191 | eci.prod.bdcqzslc=2905684509636506505 | ||
192 | eci.prod.bdccxzmlc=2905680925373051715 | ||
193 | #正式环境电子印章ID | ||
194 | eci.prod.zzzyz=2905705558864376593 | ||
195 | eci.prod.dacxzyz=2905708166068908859 | ... | ... |
1 | <?xml version="1.0" encoding="UTF-8" ?> | ||
2 | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > | ||
3 | <mapper namespace="com.thinkgem.jeesite.modules.eci.dao.ElecLicenseInfoDao"> | ||
4 | <select id="getContractIdIsNull" resultType="com.thinkgem.jeesite.modules.eci.entity.ElecLicenseInfo"> | ||
5 | select * | ||
6 | from ELEC_LICENSE_INFO | ||
7 | where CONTRACT_ID is null | ||
8 | </select> | ||
9 | |||
10 | <select id="getDocumentIdIsNull" resultType="com.thinkgem.jeesite.modules.eci.entity.ElecLicenseInfo"> | ||
11 | select * | ||
12 | from ELEC_LICENSE_INFO | ||
13 | where DOCUMENT_ID is null | ||
14 | </select> | ||
15 | |||
16 | <update id="updateDocumentId"> | ||
17 | update ELEC_LICENSE_INFO | ||
18 | set DOCUMENT_ID = #{documentId,jdbcType=BIGINT} | ||
19 | where BIZ_ID = #{bizId,jdbcType=VARCHAR} | ||
20 | </update> | ||
21 | |||
22 | <select id="getWaitForDownload" resultType="com.thinkgem.jeesite.modules.eci.entity.ElecLicenseInfo"> | ||
23 | select * | ||
24 | from ELEC_LICENSE_INFO | ||
25 | where DOCUMENT_ID is not null | ||
26 | and SFXZ = '2' | ||
27 | </select> | ||
28 | |||
29 | <update id="updateOfdWjdz"> | ||
30 | update ELEC_LICENSE_INFO | ||
31 | set OFD_WJDZ = #{ofdPath,jdbcType=VARCHAR}, | ||
32 | SFXZ = '1' | ||
33 | where BIZ_ID = #{bizId,jdbcType=VARCHAR} | ||
34 | </update> | ||
35 | |||
36 | <select id="getWaitForConvert" resultType="com.thinkgem.jeesite.modules.eci.entity.ElecLicenseInfo"> | ||
37 | select * | ||
38 | from ELEC_LICENSE_INFO | ||
39 | where SFXZ = '1' | ||
40 | and SFZH = '2' | ||
41 | </select> | ||
42 | |||
43 | <update id="updateContractIdAndStatus"> | ||
44 | update ELEC_LICENSE_INFO | ||
45 | set TJCS = #{waitForCreateContract.tjcs,jdbcType=VARCHAR}, | ||
46 | CONTRACT_ID = #{waitForCreateContract.contractId,jdbcType=BIGINT}, | ||
47 | FHJG = #{waitForCreateContract.fhjg,jdbcType=VARCHAR}, | ||
48 | SFXZ = #{waitForCreateContract.sfxz,jdbcType=VARCHAR}, | ||
49 | SFZH=#{waitForCreateContract.sfzh,jdbcType=VARCHAR} | ||
50 | where BIZ_ID = #{waitForCreateContract.bizId,jdbcType=VARCHAR} | ||
51 | </update> | ||
52 | </mapper> |
-
Please register or sign in to post a comment