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
胡园园
yanxuan-qc-change-system
Commits
94eb753c
Commit
94eb753c
authored
Dec 02, 2022
by
jx-art
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
逻辑判断修改
parent
2f841eca
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
10 deletions
+5
-10
InteriorChangeConfigService.java
...nxuan/change/biz/service/InteriorChangeConfigService.java
+0
-0
InteriorChangeConfigServiceImpl.java
...nge/biz/service/impl/InteriorChangeConfigServiceImpl.java
+5
-10
No files found.
yanxuan-qc-change-system-biz/src/main/java/com/netease/mail/yanxuan/change/biz/service/InteriorChangeConfigService.java
View file @
94eb753c
yanxuan-qc-change-system-biz/src/main/java/com/netease/mail/yanxuan/change/biz/service/impl/InteriorChangeConfigServiceImpl.java
View file @
94eb753c
...
...
@@ -218,6 +218,9 @@ public class InteriorChangeConfigServiceImpl implements InteriorChangeConfigServ
@Override
public
Map
<
Long
,
ChangeGoodsPrincipalPO
>
queryGoodsPrincipalInfo
(
List
<
Long
>
itemIds
){
Map
<
Long
,
ChangeGoodsPrincipalPO
>
map
=
new
HashMap
<>();
for
(
Long
itemId
:
itemIds
){
map
.
put
(
itemId
,
new
ChangeGoodsPrincipalPO
());
}
//商品BU
String
functionary
=
itemcenterApiRpcService
.
getDetail
(
itemIds
);
logger
.
error
(
"请求商品BU结果"
+
functionary
);
...
...
@@ -250,7 +253,7 @@ public class InteriorChangeConfigServiceImpl implements InteriorChangeConfigServ
}
/**
*
*
请求数据解析以及装载
* @param type 1:BU 2:计划
* @param map
* @param response
...
...
@@ -262,12 +265,7 @@ public class InteriorChangeConfigServiceImpl implements InteriorChangeConfigServ
throw
ExceptionFactory
.
createBiz
(
ResponseCode
.
OPERATOR_NOT_EXIST
);
}
for
(
String
rpc
:
rpcMap
.
keySet
()){
ChangeGoodsPrincipalPO
goodsRpc
;
if
(
map
.
containsKey
(
Long
.
parseLong
(
rpc
))){
goodsRpc
=
map
.
get
(
Long
.
parseLong
(
rpc
));
}
else
{
goodsRpc
=
new
ChangeGoodsPrincipalPO
();
}
ChangeGoodsPrincipalPO
goodsRpc
=
map
.
get
(
Long
.
parseLong
(
rpc
));
if
(
type
==
1
){
goodsRpc
.
setFunctionaryName
(
rpcMap
.
get
(
rpc
).
get
(
"uid"
).
toString
());
goodsRpc
.
setFunctionaryEmail
(
rpcMap
.
get
(
rpc
).
get
(
"name"
).
toString
());
...
...
@@ -275,9 +273,6 @@ public class InteriorChangeConfigServiceImpl implements InteriorChangeConfigServ
goodsRpc
.
setGoodsProjectName
(
rpcMap
.
get
(
rpc
).
get
(
"uid"
).
toString
());
goodsRpc
.
setGoodsProjectEmail
(
rpcMap
.
get
(
rpc
).
get
(
"name"
).
toString
());
}
if
(!
map
.
containsKey
(
Long
.
parseLong
(
rpc
))){
map
.
put
(
Long
.
parseLong
(
rpc
),
goodsRpc
);
}
}
}
...
...
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