电子证照接口,实体,请求
Showing
41 changed files
with
3730 additions
and
298 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> |
This diff is collapsed.
Click to expand it.
... | @@ -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 | } |
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
... | @@ -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