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
66012163
Commit
66012163
authored
Sep 10, 2019
by
何文超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新展现
parent
1d1c8edd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
18 deletions
+3
-18
GoodsDomainController.java
.../gic/plug/web/controller/goods/GoodsDomainController.java
+3
-18
No files found.
src/main/java/com/gic/plug/web/controller/goods/GoodsDomainController.java
View file @
66012163
...
...
@@ -18,21 +18,6 @@ import com.gic.plug.web.vo.goods.GoodsDomainVO;
@RestController
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
private
GoodsDomainApiService
goodsDomainApiService
;
...
...
@@ -45,7 +30,7 @@ public class GoodsDomainController {
*/
@RequestMapping
(
"/get-all-goods-domain-list"
)
private
RestResponse
getAllGoodsDomianListWith
()
{
ServiceResponse
<
List
<
GoodsDomainDTO
>>
serviceResponse
=
goodsDomainApiService
.
listAll
(
Constant
.
TEST_ENTERPRISE_ID
);
ServiceResponse
<
List
<
GoodsDomainDTO
>>
serviceResponse
=
goodsDomainApiService
.
listAll
(
Constant
.
TEST_ENTERPRISE_ID
,
null
);
if
(!
serviceResponse
.
isSuccess
())
{
return
RestResponse
.
failure
(
serviceResponse
.
getCode
(),
serviceResponse
.
getMessage
());
}
...
...
@@ -66,8 +51,8 @@ public class GoodsDomainController {
for
(
Map
.
Entry
<
String
,
List
<
GoodsDomainDTO
>>
entry
:
map
.
entrySet
())
{
GoodsChannelVO
goodsChannelVO
=
new
GoodsChannelVO
();
goodsChannelVO
.
setChannelCode
(
entry
.
getKey
());
goodsChannelVO
.
setChannelName
(
channelCodeAndName
.
get
(
entry
.
getKey
()));
goodsChannelVO
.
setSceneCode
(
channelCodeAndScene
.
get
(
entry
.
getKey
()));
goodsChannelVO
.
setChannelName
(
Constant
.
CHANNEL_CODE_AND_NAME
.
get
(
entry
.
getKey
()));
goodsChannelVO
.
setSceneCode
(
Constant
.
CHANNEL_CODE_AND_SCENE
.
get
(
entry
.
getKey
()));
goodsChannelVO
.
setGoodsDomainList
(
new
ArrayList
<>());
for
(
GoodsDomainDTO
goodsDomainDTO
:
entry
.
getValue
())
{
GoodsDomainVO
goodsDomainVO
=
new
GoodsDomainVO
();
...
...
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