Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-webapp-plug
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
base_platform_enterprise
gic-webapp-plug
Commits
be5315fb
Commit
be5315fb
authored
Aug 30, 2019
by
何文超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增scenecode
parent
b843b0e7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
GoodsDomainController.java
.../gic/plug/web/controller/goods/GoodsDomainController.java
+7
-0
GoodsChannelVO.java
src/main/java/com/gic/plug/web/vo/goods/GoodsChannelVO.java
+10
-0
No files found.
src/main/java/com/gic/plug/web/controller/goods/GoodsDomainController.java
View file @
be5315fb
...
...
@@ -20,11 +20,17 @@ public class GoodsDomainController {
private
static
Map
<
String
,
String
>
channelCodeAndName
;
private
static
Map
<
String
,
String
>
channelCodeAndScene
;
static
{
channelCodeAndName
=
new
HashMap
<>();
channelCodeAndName
.
put
(
Constant
.
CHANNEL_CODE_ERP
,
"ERP"
);
channelCodeAndName
.
put
(
Constant
.
CHANNEL_CODE_WEIMOB
,
"微盟"
);
channelCodeAndName
.
put
(
Constant
.
CHANNEL_CODE_MALL
,
"GIC微商城"
);
channelCodeAndScene
=
new
HashMap
<>();
channelCodeAndScene
.
put
(
Constant
.
CHANNEL_CODE_ERP
,
"erp_goods"
);
channelCodeAndScene
.
put
(
Constant
.
CHANNEL_CODE_WEIMOB
,
"weimo_goods"
);
channelCodeAndScene
.
put
(
Constant
.
CHANNEL_CODE_MALL
,
"GIC微商城"
);
}
@Autowired
...
...
@@ -61,6 +67,7 @@ public class GoodsDomainController {
GoodsChannelVO
goodsChannelVO
=
new
GoodsChannelVO
();
goodsChannelVO
.
setChannelCode
(
entry
.
getKey
());
goodsChannelVO
.
setChannelName
(
channelCodeAndName
.
get
(
entry
.
getKey
()));
goodsChannelVO
.
setSceneCode
(
channelCodeAndScene
.
get
(
entry
.
getKey
()));
goodsChannelVO
.
setGoodsDomainList
(
new
ArrayList
<>());
for
(
GoodsDomainDTO
goodsDomainDTO
:
entry
.
getValue
())
{
GoodsDomainVO
goodsDomainVO
=
new
GoodsDomainVO
();
...
...
src/main/java/com/gic/plug/web/vo/goods/GoodsChannelVO.java
View file @
be5315fb
...
...
@@ -8,6 +8,8 @@ public class GoodsChannelVO {
private
String
channelName
;
private
String
sceneCode
;
private
List
<
GoodsDomainVO
>
goodsDomainList
;
public
String
getChannelCode
()
{
...
...
@@ -33,4 +35,12 @@ public class GoodsChannelVO {
public
void
setGoodsDomainList
(
List
<
GoodsDomainVO
>
goodsDomainList
)
{
this
.
goodsDomainList
=
goodsDomainList
;
}
public
String
getSceneCode
()
{
return
sceneCode
;
}
public
void
setSceneCode
(
String
sceneCode
)
{
this
.
sceneCode
=
sceneCode
;
}
}
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