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
356b9b51
Commit
356b9b51
authored
Dec 07, 2022
by
“zcwang”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add: mock数据
parent
9f384e00
Pipeline
#43425
passed with stages
in 1 minute 34 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
6 deletions
+13
-6
AppConfig.java
...com/netease/mail/yanxuan/change/biz/config/AppConfig.java
+7
-0
InteriorChangeConfigServiceImpl.java
...nge/biz/service/impl/InteriorChangeConfigServiceImpl.java
+6
-6
No files found.
yanxuan-qc-change-system-biz/src/main/java/com/netease/mail/yanxuan/change/biz/config/AppConfig.java
View file @
356b9b51
...
...
@@ -32,4 +32,10 @@ public class AppConfig {
@Value
(
"${testEmail:A@163.com}"
)
private
String
testEmail
;
@Value
(
"${change.goods.principal.name:aaa}"
)
private
String
defaultName
;
@Value
(
"${change.goods.principal.email:grp.gyhtest1001@corp.netease.com}"
)
private
String
defaultEmail
;
}
\ No newline at end of file
yanxuan-qc-change-system-biz/src/main/java/com/netease/mail/yanxuan/change/biz/service/impl/InteriorChangeConfigServiceImpl.java
View file @
356b9b51
...
...
@@ -18,6 +18,7 @@ import org.springframework.util.Assert;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.netease.mail.yanxuan.change.biz.config.AppConfig
;
import
com.netease.mail.yanxuan.change.biz.meta.exception.ExceptionFactory
;
import
com.netease.mail.yanxuan.change.biz.service.InteriorChangeConfigService
;
import
com.netease.mail.yanxuan.change.biz.service.change.ChangeConfigService
;
...
...
@@ -70,10 +71,8 @@ public class InteriorChangeConfigServiceImpl implements InteriorChangeConfigServ
@Autowired
private
FlowRpcSupplierSendService
supplierSendService
;
@Value
(
"${change.goods.principal.name}"
)
private
String
defaultName
;
@Value
(
"${change.goods.principal.email}"
)
private
String
defaultEmail
;
@Autowired
private
AppConfig
appConfig
;
/**
* 接口不完整,关于商品的查询已经完成 供应商查询不完整接口已对接 具体返回值接口测试未完成
...
...
@@ -246,8 +245,6 @@ public class InteriorChangeConfigServiceImpl implements InteriorChangeConfigServ
@Override
public
Map
<
Long
,
ChangeGoodsPrincipalPO
>
queryGoodsPrincipalInfo
(
List
<
Long
>
itemIds
){
Map
<
Long
,
ChangeGoodsPrincipalPO
>
map
=
new
HashMap
<>();
System
.
out
.
println
(
defaultName
);
System
.
out
.
println
(
defaultEmail
);
for
(
Long
itemId
:
itemIds
){
map
.
put
(
itemId
,
new
ChangeGoodsPrincipalPO
());
}
...
...
@@ -348,6 +345,9 @@ public class InteriorChangeConfigServiceImpl implements InteriorChangeConfigServ
* @param goodsRpc
*/
private
void
goodsRpc
(
Integer
type
,
String
uid
,
ChangeGoodsPrincipalPO
goodsRpc
){
// todo:mock数据
String
defaultName
=
appConfig
.
getDefaultName
();
String
defaultEmail
=
appConfig
.
getDefaultEmail
();
if
(
uid
==
null
){
switch
(
type
){
case
1
:
...
...
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