Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yanxuan-qc-change-system
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
yx-qc-change-flow
yanxuan-qc-change-system
Commits
5eddb67e
Commit
5eddb67e
authored
Jun 16, 2026
by
王志超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 合规负责人接口异常时走兜底
parent
62a9f2b6
Pipeline
#92864
passed with stages
in 2 minutes 15 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
20 deletions
+33
-20
InteriorChangeConfigServiceImpl.java
...nge/biz/service/impl/InteriorChangeConfigServiceImpl.java
+33
-20
No files found.
yanxuan-qc-change-system-biz/src/main/java/com/netease/mail/yanxuan/change/biz/service/impl/InteriorChangeConfigServiceImpl.java
View file @
5eddb67e
...
@@ -228,17 +228,24 @@ public class InteriorChangeConfigServiceImpl implements InteriorChangeConfigServ
...
@@ -228,17 +228,24 @@ public class InteriorChangeConfigServiceImpl implements InteriorChangeConfigServ
}
}
}
else
if
(
ChangePrincipalEnum
.
COMPLIANCE
.
getName
().
equals
(
commander
))
{
}
else
if
(
ChangePrincipalEnum
.
COMPLIANCE
.
getName
().
equals
(
commander
))
{
for
(
Long
goods:
goodsInfos
)
{
for
(
Long
goods:
goodsInfos
)
{
String
detail
=
qcApiRpcService
.
getQaUserListByItemId
(
goods
.
intValue
());
try
{
logger
.
info
(
"[queryGoodsCommander] compliance:{}"
,
detail
);
String
detail
=
qcApiRpcService
.
getQaUserListByItemId
(
goods
.
intValue
());
JSONObject
jsonObject
=
JSONObject
.
parseObject
(
detail
);
logger
.
info
(
"[queryGoodsCommander] compliance:{}"
,
detail
);
List
<
JSONObject
>
qaUserList
=
JSONObject
.
parseArray
(
jsonObject
.
getString
(
"data"
),
JSONObject
.
class
);
JSONObject
jsonObject
=
JSONObject
.
parseObject
(
detail
);
if
(
CollectionUtils
.
isNotEmpty
(
qaUserList
))
{
if
(
jsonObject
!=
null
)
{
for
(
JSONObject
qaUser:
qaUserList
)
{
List
<
JSONObject
>
qaUserList
=
JSONObject
.
parseArray
(
jsonObject
.
getString
(
"data"
),
GoodsResponseRpc
rpc
=
new
GoodsResponseRpc
();
JSONObject
.
class
);
rpc
.
setEmail
(
qaUser
.
getString
(
"uid"
));
if
(
CollectionUtils
.
isNotEmpty
(
qaUserList
))
{
rpc
.
setName
(
qaUser
.
getString
(
"userName"
));
for
(
JSONObject
qaUser:
qaUserList
)
{
emails
.
add
(
rpc
);
GoodsResponseRpc
rpc
=
new
GoodsResponseRpc
();
rpc
.
setEmail
(
qaUser
.
getString
(
"uid"
));
rpc
.
setName
(
qaUser
.
getString
(
"userName"
));
emails
.
add
(
rpc
);
}
}
}
}
}
catch
(
Exception
e
)
{
logger
.
error
(
"[queryGoodsCommander] compliance error, itemId:{}"
,
goods
,
e
);
}
}
}
}
}
}
...
@@ -405,16 +412,22 @@ public class InteriorChangeConfigServiceImpl implements InteriorChangeConfigServ
...
@@ -405,16 +412,22 @@ public class InteriorChangeConfigServiceImpl implements InteriorChangeConfigServ
}
}
//合规
//合规
for
(
Long
itemId:
itemIds
)
{
for
(
Long
itemId:
itemIds
)
{
String
compliance
=
qcApiRpcService
.
getQaUserListByItemId
(
itemId
.
intValue
());
try
{
logger
.
info
(
"[queryGoodsPrincipalInfo] compliance:{}"
,
compliance
);
String
compliance
=
qcApiRpcService
.
getQaUserListByItemId
(
itemId
.
intValue
());
JSONObject
jsonObject1
=
JSONObject
.
parseObject
(
compliance
);
logger
.
info
(
"[queryGoodsPrincipalInfo] compliance:{}"
,
compliance
);
List
<
JSONObject
>
qaUserList
=
JSONObject
.
parseArray
(
jsonObject1
.
getString
(
"data"
),
JSONObject
.
class
);
JSONObject
jsonObject1
=
JSONObject
.
parseObject
(
compliance
);
if
(
CollectionUtils
.
isNotEmpty
(
qaUserList
))
{
List
<
JSONObject
>
qaUserList
=
jsonObject1
==
null
?
null
JSONObject
qaUser
=
qaUserList
.
get
(
0
);
:
JSONObject
.
parseArray
(
jsonObject1
.
getString
(
"data"
),
JSONObject
.
class
);
map
.
get
(
itemId
).
setGoodsComplianceName
(
qaUser
.
getString
(
"userName"
));
if
(
CollectionUtils
.
isNotEmpty
(
qaUserList
))
{
map
.
get
(
itemId
).
setGoodsComplianceEmail
(
qaUser
.
getString
(
"uid"
));
JSONObject
qaUser
=
qaUserList
.
get
(
0
);
goodsRpc
(
ChangePrincipalEnum
.
COMPLIANCE
.
getType
(),
qaUser
.
getString
(
"uid"
),
map
.
get
(
itemId
));
map
.
get
(
itemId
).
setGoodsComplianceName
(
qaUser
.
getString
(
"userName"
));
}
else
{
map
.
get
(
itemId
).
setGoodsComplianceEmail
(
qaUser
.
getString
(
"uid"
));
goodsRpc
(
ChangePrincipalEnum
.
COMPLIANCE
.
getType
(),
qaUser
.
getString
(
"uid"
),
map
.
get
(
itemId
));
}
else
{
goodsRpc
(
ChangePrincipalEnum
.
COMPLIANCE
.
getType
(),
null
,
map
.
get
(
itemId
));
}
}
catch
(
Exception
e
)
{
logger
.
error
(
"[queryGoodsPrincipalInfo] compliance error, itemId:{}"
,
itemId
,
e
);
goodsRpc
(
ChangePrincipalEnum
.
COMPLIANCE
.
getType
(),
null
,
map
.
get
(
itemId
));
goodsRpc
(
ChangePrincipalEnum
.
COMPLIANCE
.
getType
(),
null
,
map
.
get
(
itemId
));
}
}
}
}
...
...
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