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
35873a87
Commit
35873a87
authored
Dec 07, 2022
by
“zcwang”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add: 查询负责人兜底
parent
356b9b51
Pipeline
#43426
passed with stages
in 1 minute 34 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
5 deletions
+16
-5
InteriorChangeConfigServiceImpl.java
...nge/biz/service/impl/InteriorChangeConfigServiceImpl.java
+16
-5
No files found.
yanxuan-qc-change-system-biz/src/main/java/com/netease/mail/yanxuan/change/biz/service/impl/InteriorChangeConfigServiceImpl.java
View file @
35873a87
...
@@ -295,15 +295,26 @@ public class InteriorChangeConfigServiceImpl implements InteriorChangeConfigServ
...
@@ -295,15 +295,26 @@ public class InteriorChangeConfigServiceImpl implements InteriorChangeConfigServ
Assert
.
isTrue
(
StringUtils
.
isNotBlank
(
changeItems
),
"变更负责人为商品时,商品列表不可为空"
);
Assert
.
isTrue
(
StringUtils
.
isNotBlank
(
changeItems
),
"变更负责人为商品时,商品列表不可为空"
);
List
<
ItemVO
>
itemVOS
=
JSON
.
parseArray
(
changeItems
,
ItemVO
.
class
);
List
<
ItemVO
>
itemVOS
=
JSON
.
parseArray
(
changeItems
,
ItemVO
.
class
);
List
<
Long
>
itemIdList
=
itemVOS
.
stream
().
map
(
ItemVO:
:
getItemId
).
collect
(
Collectors
.
toList
());
List
<
Long
>
itemIdList
=
itemVOS
.
stream
().
map
(
ItemVO:
:
getItemId
).
collect
(
Collectors
.
toList
());
GoodsResponseRpc
goodsResponseRpc
=
queryGoodsCommander
(
changeCommanderEnum
,
itemIdList
,
changeExecUser
);
commanderResponse
.
setEmail
(
goodsResponseRpc
.
getEmail
());
try
{
GoodsResponseRpc
goodsResponseRpc
=
queryGoodsCommander
(
changeCommanderEnum
,
itemIdList
,
changeExecUser
);
commanderResponse
.
setEmail
(
goodsResponseRpc
.
getEmail
());
}
catch
(
Exception
e
)
{
log
.
error
(
"[queryGoodsCommander] error,e{}"
,
e
);
commanderResponse
.
setEmail
(
appConfig
.
getDefaultEmail
());
}
break
;
break
;
case
SUPPLIERS_ASSOCIATED:
case
SUPPLIERS_ASSOCIATED:
String
changeSupplier
=
req
.
getChangeSupplier
();
String
changeSupplier
=
req
.
getChangeSupplier
();
Assert
.
isTrue
(
StringUtils
.
isNotBlank
(
changeSupplier
),
"变更负责人为商品时,商品列表不可为空"
);
Assert
.
isTrue
(
StringUtils
.
isNotBlank
(
changeSupplier
),
"变更负责人为商品时,商品列表不可为空"
);
GoodsResponseRpc
supplierResponseRpc
=
queryChangeSupplier
(
changeCommanderEnum
,
try
{
changeSupplier
,
changeExecUser
);
GoodsResponseRpc
supplierResponseRpc
=
queryChangeSupplier
(
changeCommanderEnum
,
commanderResponse
.
setEmail
(
supplierResponseRpc
.
getEmail
());
changeSupplier
,
changeExecUser
);
commanderResponse
.
setEmail
(
supplierResponseRpc
.
getEmail
());
}
catch
(
Exception
e
)
{
log
.
error
(
"[queryChangeSupplier] error,e{}"
,
e
);
commanderResponse
.
setEmail
(
appConfig
.
getDefaultEmail
());
}
break
;
break
;
default
:
default
:
throw
ExceptionFactory
.
createBiz
(
ResponseCode
.
COMMANDER_TYPE_NOT_EXIST
,
"变更负责人类型错误"
);
throw
ExceptionFactory
.
createBiz
(
ResponseCode
.
COMMANDER_TYPE_NOT_EXIST
,
"变更负责人类型错误"
);
...
...
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