Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
Project
Project
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
fangxinjiang
yifu-mvp
Commits
44a2f7ba
Commit
44a2f7ba
authored
May 20, 2024
by
hongguangwu
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop'
parents
50e065a0
1cfeee1f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
SocialConfig.java
...m/yifu/cloud/plus/v1/yifu/social/config/SocialConfig.java
+11
-3
No files found.
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/config/SocialConfig.java
View file @
44a2f7ba
...
...
@@ -30,6 +30,7 @@ import java.io.IOException;
import
java.nio.charset.StandardCharsets
;
import
java.security.MessageDigest
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.concurrent.TimeUnit
;
...
...
@@ -175,9 +176,16 @@ public class SocialConfig {
if
(!
"200"
.
equals
(
code
))
{
throw
new
CheckedException
(
"获取社保士兵【可执行的设备接口】失败,code="
+
code
);
}
JSONArray
dataArr
=
(
JSONArray
)
bodyObject
.
get
(
"data"
);
if
(
dataArr
!=
null
&&
!
dataArr
.
isEmpty
())
{
terminalId
=
((
JSONObject
)
dataArr
.
get
(
0
)).
getString
(
"value"
);
List
<
HashMap
>
dataList
=
JSON
.
parseArray
(
bodyObject
.
getString
(
"data"
),
HashMap
.
class
);
String
label
;
if
(
dataList
!=
null
&&
!
dataList
.
isEmpty
())
{
for
(
HashMap
data
:
dataList
)
{
terminalId
=
String
.
valueOf
(
data
.
get
(
"value"
));
label
=
String
.
valueOf
(
data
.
get
(
"label"
));
if
(
Common
.
isNotNull
(
label
)
&&
label
.
contains
(
"空闲"
))
{
break
;
}
}
}
}
if
(
Common
.
isEmpty
(
terminalId
))
{
...
...
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