Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xzxt-api-report
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
雷紫添
xzxt-api-report
Commits
7c377f43
Commit
7c377f43
authored
Apr 26, 2023
by
wang_jiaxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
法律文书入库
parent
55b99cb1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
src/main/java/com/founder/flwshq/service/impl/FlwsHqServiceImpl.java
+2
-2
src/main/java/com/founder/util/HttpUtil.java
+2
-0
No files found.
src/main/java/com/founder/flwshq/service/impl/FlwsHqServiceImpl.java
View file @
7c377f43
...
...
@@ -77,11 +77,11 @@ public class FlwsHqServiceImpl implements FlwsHqService {
private
void
extracted
(
String
url
,
AtomicInteger
cgsl
,
AtomicInteger
sbsl
,
AtomicInteger
dscsl
,
List
<
TbStAsjFlws
>
flwsList
)
{
flwsList
.
stream
().
parallel
().
forEach
(
flws
->
{
// System.out.println(jsonStr);
try
{
String
jsonStr
=
HttpUtil
.
doGet
(
url
+
"?anjianbianhao="
+
flws
.
getAsjbh
()
+
"&renyuanbianhao="
+
(
StringUtils
.
isEmpty
(
flws
.
getRybh
())
?
"00000000000000000000000"
:
flws
.
getRybh
())
+
"&wslb="
+
getFlwsdm
(
flws
.
getWslb
()));
// System.out.println(jsonStr);
try
{
JSONObject
jsonObject
=
JSON
.
parseObject
(
jsonStr
);
String
code
=
jsonObject
.
getString
(
"code"
);
// System.out.println("code==========" + code);
...
...
src/main/java/com/founder/util/HttpUtil.java
View file @
7c377f43
...
...
@@ -57,6 +57,8 @@ public class HttpUtil {
CloseableHttpClient
httpClient
=
HttpClients
.
custom
()
.
setConnectionManager
(
cm
).
build
();
HttpGet
httpget
=
new
HttpGet
(
url
);
RequestConfig
requestConfig
=
RequestConfig
.
custom
().
setConnectTimeout
(
5000
).
setConnectionRequestTimeout
(
5000
).
setSocketTimeout
(
5000
).
build
();
httpget
.
setConfig
(
requestConfig
);
String
responseStr
=
""
;
try
{
responseStr
=
getResponseStr
(
httpClient
.
execute
(
httpget
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment