首次提交
Showing
5 changed files
with
168 additions
and
76 deletions
... | @@ -25,6 +25,9 @@ public class EciHttpUtil { | ... | @@ -25,6 +25,9 @@ public class EciHttpUtil { |
25 | @Value("${app.hostUrl}") | 25 | @Value("${app.hostUrl}") |
26 | private String hostUrl; | 26 | private String hostUrl; |
27 | 27 | ||
28 | @Value("${app.eciPath}") | ||
29 | private String eciPath; | ||
30 | |||
28 | 31 | ||
29 | 32 | ||
30 | 33 | ||
... | @@ -170,7 +173,7 @@ public class EciHttpUtil { | ... | @@ -170,7 +173,7 @@ public class EciHttpUtil { |
170 | in =conn.getInputStream(); | 173 | in =conn.getInputStream(); |
171 | SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy"); | 174 | SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy"); |
172 | String dateDir = simpleDateFormat.format(new Date()); | 175 | String dateDir = simpleDateFormat.format(new Date()); |
173 | File savePath = new File("E:\\ECI\\"+areacode+"\\"+ htlx+dateDir+bh); | 176 | File savePath = new File(eciPath+"ECI\\"+areacode+"\\"+ htlx+dateDir+bh); |
174 | if (!savePath.exists()) { | 177 | if (!savePath.exists()) { |
175 | savePath.mkdirs(); | 178 | savePath.mkdirs(); |
176 | } | 179 | } | ... | ... |
... | @@ -49,6 +49,9 @@ public class EciServiceImpl extends ServiceImpl<ElecLicenseInfoMapper, ElecLicen | ... | @@ -49,6 +49,9 @@ public class EciServiceImpl extends ServiceImpl<ElecLicenseInfoMapper, ElecLicen |
49 | @Value("${app.areacode}") | 49 | @Value("${app.areacode}") |
50 | private String areacode; | 50 | private String areacode; |
51 | 51 | ||
52 | @Value("${app.eciPath}") | ||
53 | private String eciPath; | ||
54 | |||
52 | @Autowired | 55 | @Autowired |
53 | private RegBusBdcqzsdjxxMapper regBusBdcqzsdjxxMapper; | 56 | private RegBusBdcqzsdjxxMapper regBusBdcqzsdjxxMapper; |
54 | @Autowired | 57 | @Autowired |
... | @@ -427,7 +430,7 @@ public class EciServiceImpl extends ServiceImpl<ElecLicenseInfoMapper, ElecLicen | ... | @@ -427,7 +430,7 @@ public class EciServiceImpl extends ServiceImpl<ElecLicenseInfoMapper, ElecLicen |
427 | String htlx=waitForConvert.getHtlx(); | 430 | String htlx=waitForConvert.getHtlx(); |
428 | SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy"); | 431 | SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy"); |
429 | String dateDir = simpleDateFormat.format(new Date()); | 432 | String dateDir = simpleDateFormat.format(new Date()); |
430 | String url=ofdToImg(ofdPath,"E:\\ECI\\"+areacode+"\\"+ htlx+dateDir+bh+"\\",id); | 433 | String url=ofdToImg(ofdPath,eciPath+"ECI\\"+areacode+"\\"+ htlx+dateDir+bh+"\\",id); |
431 | if(StringUtils.isNotBlank(url)){ | 434 | if(StringUtils.isNotBlank(url)){ |
432 | waitForConvert.setSfzh("1"); | 435 | waitForConvert.setSfzh("1"); |
433 | waitForConvert.setJpgWjdz(url); | 436 | waitForConvert.setJpgWjdz(url); |
... | @@ -514,12 +517,16 @@ public class EciServiceImpl extends ServiceImpl<ElecLicenseInfoMapper, ElecLicen | ... | @@ -514,12 +517,16 @@ public class EciServiceImpl extends ServiceImpl<ElecLicenseInfoMapper, ElecLicen |
514 | qlqtzk=qlqtzk.substring(qlqtzk.indexOf(";")+1); | 517 | qlqtzk=qlqtzk.substring(qlqtzk.indexOf(";")+1); |
515 | } | 518 | } |
516 | String[] qlzkInfo = qlqtzk.split(";"); | 519 | String[] qlzkInfo = qlqtzk.split(";"); |
520 | if("1003".equals(map.get("DJLX")) || "1004".equals(map.get("DJLX"))){ | ||
521 | qlqtzk=qlzkInfo[0]+";"+qlzkInfo[1]+";"+qlzkInfo[2]+";"+qlzkInfo[3]+";"+qlzkInfo[4]+";"+qlzkInfo[5]+";"+qlzkInfo[6]+";共有情况: " + hashMap.get("GYQK"); | ||
522 | }else{ | ||
517 | for (int j = 0; j < qlzkInfo.length; j++) { | 523 | for (int j = 0; j < qlzkInfo.length; j++) { |
518 | if (qlzkInfo[j].contains("共有情况")) { | 524 | if (qlzkInfo[j].contains("共有情况")) { |
519 | qlzkInfo[j] = "共有情况: " + hashMap.get("GYQK"); | 525 | qlzkInfo[j] = "共有情况: " + hashMap.get("GYQK"); |
520 | } | 526 | } |
521 | } | 527 | } |
522 | qlqtzk=StringUtils.join(qlzkInfo, ";"); | 528 | qlqtzk=StringUtils.join(qlzkInfo, ";"); |
529 | } | ||
523 | if (arrList != null && arrList.size() > 0) { | 530 | if (arrList != null && arrList.size() > 0) { |
524 | hashMap.put("QLQTZK", qlqtzk + ";共有人:" + gyr); | 531 | hashMap.put("QLQTZK", qlqtzk + ";共有人:" + gyr); |
525 | } else { | 532 | } else { |
... | @@ -572,12 +579,16 @@ public class EciServiceImpl extends ServiceImpl<ElecLicenseInfoMapper, ElecLicen | ... | @@ -572,12 +579,16 @@ public class EciServiceImpl extends ServiceImpl<ElecLicenseInfoMapper, ElecLicen |
572 | qlqtzk=qlqtzk.substring(qlqtzk.indexOf(";")+1); | 579 | qlqtzk=qlqtzk.substring(qlqtzk.indexOf(";")+1); |
573 | } | 580 | } |
574 | String[] qlzkInfo = qlqtzk.split(";"); | 581 | String[] qlzkInfo = qlqtzk.split(";"); |
582 | if("1003".equals(map.get("DJLX")) || "1004".equals(map.get("DJLX"))){ | ||
583 | qlqtzk=qlzkInfo[0]+";"+qlzkInfo[1]+";"+qlzkInfo[2]+";"+qlzkInfo[3]+";"+qlzkInfo[4]+";"+qlzkInfo[5]+";"+qlzkInfo[6]+";共有情况: " + hashMap.get("GYQK"); | ||
584 | }else{ | ||
575 | for (int j = 0; j < qlzkInfo.length; j++) { | 585 | for (int j = 0; j < qlzkInfo.length; j++) { |
576 | if (qlzkInfo[j].contains("共有情况")) { | 586 | if (qlzkInfo[j].contains("共有情况")) { |
577 | qlzkInfo[j] = "共有情况: " + hashMap.get("GYQK"); | 587 | qlzkInfo[j] = "共有情况: " + hashMap.get("GYQK"); |
578 | } | 588 | } |
579 | } | 589 | } |
580 | qlqtzk=StringUtils.join(qlzkInfo, ";"); | 590 | qlqtzk=StringUtils.join(qlzkInfo, ";"); |
591 | } | ||
581 | if (arrList != null && arrList.size() > 0) { | 592 | if (arrList != null && arrList.size() > 0) { |
582 | hashMap.put("QLQTZK", qlqtzk + ";共有人:" + gyr); | 593 | hashMap.put("QLQTZK", qlqtzk + ";共有人:" + gyr); |
583 | } else { | 594 | } else { | ... | ... |
src/main/resources/application-dev.yaml
0 → 100644
1 | server: | ||
2 | port: 8011 | ||
3 | servlet: | ||
4 | session: | ||
5 | timeout: 43200 | ||
6 | |||
7 | spring: | ||
8 | servlet: | ||
9 | multipart: | ||
10 | maxFileSize: 10MB | ||
11 | maxRequestSize: 10MB | ||
12 | application: | ||
13 | name: hzbdcsyn | ||
14 | jackson: | ||
15 | time-zone: GMT+8 | ||
16 | date-format: yyyy-MM-dd HH:mm:ss | ||
17 | default-property-inclusion: always | ||
18 | datasource: | ||
19 | dynamic: | ||
20 | primary: master | ||
21 | datasource: | ||
22 | master: | ||
23 | url: jdbc:oracle:thin:@172.16.56.4:1521:ODM | ||
24 | driver-class-name: oracle.jdbc.driver.OracleDriver | ||
25 | username: regs | ||
26 | password: root1234 | ||
27 | |||
28 | mybatis-plus: | ||
29 | mapper-locations: classpath:mapper/**/*.xml | ||
30 | typeAliasesPackage: com.pashanhoo | ||
31 | global-config: | ||
32 | #涓婚敭绫诲瀷 0:"鏁版嵁搴揑D鑷", 1:"鐢ㄦ埛杈撳叆ID",2:"鍏ㄥ眬鍞竴ID (鏁板瓧绫诲瀷鍞竴ID)", 3:"鍏ㄥ眬鍞竴ID UUID"; | ||
33 | id-type: 2 | ||
34 | #瀛楁绛栫暐 0:"蹇界暐鍒ゆ柇",1:"闈� NULL 鍒ゆ柇"),2:"闈炵┖鍒ゆ柇" | ||
35 | field-strategy: 1 | ||
36 | #椹煎嘲涓嬪垝绾胯浆鎹� | ||
37 | db-column-underline: true | ||
38 | #鍒锋柊mapper 璋冭瘯绁炲櫒 | ||
39 | refresh-mapper: true | ||
40 | #鏁版嵁搴撳ぇ鍐欎笅鍒掔嚎杞崲 | ||
41 | #capital-mode: true | ||
42 | #搴忓垪鎺ュ彛瀹炵幇绫婚厤缃� | ||
43 | #key-generator: com.baomidou.springboot.xxx | ||
44 | #閫昏緫鍒犻櫎閰嶇疆 | ||
45 | logic-delete-value: -1 | ||
46 | logic-not-delete-0: 0 | ||
47 | #鑷畾涔夊~鍏呯瓥鐣ユ帴鍙e疄鐜� | ||
48 | #meta-object-handler: com.baomidou.springboot.xxx | ||
49 | #鑷畾涔塖QL娉ㄥ叆鍣� | ||
50 | # sql-injector: com.baomidou.mybatisplus.mapper.LogicSqlInjector | ||
51 | configuration: | ||
52 | map-underscore-to-camel-case: true | ||
53 | cache-enabled: false | ||
54 | call-setters-on-nulls: true | ||
55 | log-impl: org.apache.ibatis.logging.stdout.StdOutImpl | ||
56 | app: | ||
57 | hostUrl: http://172.16.56.60:9182 | ||
58 | bdcdjzmlc: 2905681381004489569 | ||
59 | bdcqzslc: 2905684509636506505 | ||
60 | AppToken: lv2M681jcM | ||
61 | AppSecret: mZWAKA2p7vvnTZMNuUKRHaCL3LTgHA | ||
62 | areacode: 610702 | ||
63 | eciPath: F:\ | ||
64 | |||
65 | |||
66 | management: | ||
67 | endpoints: | ||
68 | web: | ||
69 | exposure: | ||
70 | include: "*" | ||
71 | |||
72 | logging: | ||
73 | config: "classpath:logback-spring.xml" | ||
74 | |||
75 |
src/main/resources/application-test.yaml
0 → 100644
1 | server: | ||
2 | port: 8012 | ||
3 | servlet: | ||
4 | session: | ||
5 | timeout: 43200 | ||
6 | |||
7 | spring: | ||
8 | servlet: | ||
9 | multipart: | ||
10 | maxFileSize: 10MB | ||
11 | maxRequestSize: 10MB | ||
12 | application: | ||
13 | name: hzbdcsyn | ||
14 | jackson: | ||
15 | time-zone: GMT+8 | ||
16 | date-format: yyyy-MM-dd HH:mm:ss | ||
17 | default-property-inclusion: always | ||
18 | datasource: | ||
19 | dynamic: | ||
20 | primary: master | ||
21 | datasource: | ||
22 | master: | ||
23 | url: jdbc:oracle:thin:@172.16.56.21:1521:orcl | ||
24 | driver-class-name: oracle.jdbc.driver.OracleDriver | ||
25 | username: regs | ||
26 | password: root1234 | ||
27 | |||
28 | mybatis-plus: | ||
29 | mapper-locations: classpath:mapper/**/*.xml | ||
30 | typeAliasesPackage: com.pashanhoo | ||
31 | global-config: | ||
32 | #涓婚敭绫诲瀷 0:"鏁版嵁搴揑D鑷", 1:"鐢ㄦ埛杈撳叆ID",2:"鍏ㄥ眬鍞竴ID (鏁板瓧绫诲瀷鍞竴ID)", 3:"鍏ㄥ眬鍞竴ID UUID"; | ||
33 | id-type: 2 | ||
34 | #瀛楁绛栫暐 0:"蹇界暐鍒ゆ柇",1:"闈� NULL 鍒ゆ柇"),2:"闈炵┖鍒ゆ柇" | ||
35 | field-strategy: 1 | ||
36 | #椹煎嘲涓嬪垝绾胯浆鎹� | ||
37 | db-column-underline: true | ||
38 | #鍒锋柊mapper 璋冭瘯绁炲櫒 | ||
39 | refresh-mapper: true | ||
40 | #鏁版嵁搴撳ぇ鍐欎笅鍒掔嚎杞崲 | ||
41 | #capital-mode: true | ||
42 | #搴忓垪鎺ュ彛瀹炵幇绫婚厤缃� | ||
43 | #key-generator: com.baomidou.springboot.xxx | ||
44 | #閫昏緫鍒犻櫎閰嶇疆 | ||
45 | logic-delete-value: -1 | ||
46 | logic-not-delete-0: 0 | ||
47 | #鑷畾涔夊~鍏呯瓥鐣ユ帴鍙e疄鐜� | ||
48 | #meta-object-handler: com.baomidou.springboot.xxx | ||
49 | #鑷畾涔塖QL娉ㄥ叆鍣� | ||
50 | # sql-injector: com.baomidou.mybatisplus.mapper.LogicSqlInjector | ||
51 | configuration: | ||
52 | map-underscore-to-camel-case: true | ||
53 | cache-enabled: false | ||
54 | call-setters-on-nulls: true | ||
55 | log-impl: org.apache.ibatis.logging.stdout.StdOutImpl | ||
56 | app: | ||
57 | hostUrl: http://172.16.56.41:9182 | ||
58 | bdcdjzmlc: 2890537670326468622 | ||
59 | bdcqzslc: 2890537800123400234 | ||
60 | AppToken: OAduCx5qJD | ||
61 | AppSecret: DifsZNwDnamuRh9jS0gSOTJFvmmKtT | ||
62 | areacode: 610702 | ||
63 | eciPath: E:\ | ||
64 | |||
65 | |||
66 | management: | ||
67 | endpoints: | ||
68 | web: | ||
69 | exposure: | ||
70 | include: "*" | ||
71 | |||
72 | logging: | ||
73 | config: "classpath:logback-spring.xml" | ||
74 | |||
75 |
1 | server: | ||
2 | port: 8011 | ||
3 | servlet: | ||
4 | session: | ||
5 | timeout: 43200 | ||
6 | |||
7 | spring: | 1 | spring: |
8 | servlet: | 2 | profiles: |
9 | multipart: | 3 | active: test |
10 | maxFileSize: 10MB | ||
11 | maxRequestSize: 10MB | ||
12 | application: | ||
13 | name: hzbdcsyn | ||
14 | jackson: | ||
15 | time-zone: GMT+8 | ||
16 | date-format: yyyy-MM-dd HH:mm:ss | ||
17 | default-property-inclusion: always | ||
18 | datasource: | ||
19 | dynamic: | ||
20 | primary: master | ||
21 | datasource: | ||
22 | master: | ||
23 | #url: jdbc:oracle:thin:@172.16.56.4:1521:ODM | ||
24 | url: jdbc:oracle:thin:@172.16.56.21:1521:orcl | ||
25 | driver-class-name: oracle.jdbc.driver.OracleDriver | ||
26 | username: regs | ||
27 | password: root1234 | ||
28 | |||
29 | mybatis-plus: | ||
30 | mapper-locations: classpath:mapper/**/*.xml | ||
31 | typeAliasesPackage: com.pashanhoo | ||
32 | global-config: | ||
33 | #主键类型 0:"数据库ID自增", 1:"用户输入ID",2:"全局唯一ID (数字类型唯一ID)", 3:"全局唯一ID UUID"; | ||
34 | id-type: 2 | ||
35 | #字段策略 0:"忽略判断",1:"非 NULL 判断"),2:"非空判断" | ||
36 | field-strategy: 1 | ||
37 | #驼峰下划线转换 | ||
38 | db-column-underline: true | ||
39 | #刷新mapper 调试神器 | ||
40 | refresh-mapper: true | ||
41 | #数据库大写下划线转换 | ||
42 | #capital-mode: true | ||
43 | #序列接口实现类配置 | ||
44 | #key-generator: com.baomidou.springboot.xxx | ||
45 | #逻辑删除配置 | ||
46 | logic-delete-value: -1 | ||
47 | logic-not-delete-0: 0 | ||
48 | #自定义填充策略接口实现 | ||
49 | #meta-object-handler: com.baomidou.springboot.xxx | ||
50 | #自定义SQL注入器 | ||
51 | # sql-injector: com.baomidou.mybatisplus.mapper.LogicSqlInjector | ||
52 | configuration: | ||
53 | map-underscore-to-camel-case: true | ||
54 | cache-enabled: false | ||
55 | call-setters-on-nulls: true | ||
56 | log-impl: org.apache.ibatis.logging.stdout.StdOutImpl | ||
57 | app: | ||
58 | hostUrl: http://172.16.56.41:9182 | ||
59 | bdcdjzmlc: 2890537670326468622 | ||
60 | bdcqzslc: 2890537800123400234 | ||
61 | AppToken: OAduCx5qJD | ||
62 | AppSecret: DifsZNwDnamuRh9jS0gSOTJFvmmKtT | ||
63 | areacode: 610702 | ||
64 | |||
65 | |||
66 | management: | ||
67 | endpoints: | ||
68 | web: | ||
69 | exposure: | ||
70 | include: "*" | ||
71 | |||
72 | logging: | ||
73 | config: "classpath:logback-spring.xml" | ||
74 | |||
75 | ... | ... |
-
Please register or sign in to post a comment