Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-store
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-store
Commits
57ddaa58
Commit
57ddaa58
authored
Jun 27, 2019
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
门店类型门店状态
parent
363a099d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
3 deletions
+16
-3
StoreDictApiServiceImpl.java
.../com/gic/store/service/outer/StoreDictApiServiceImpl.java
+13
-3
StoreDictController.java
...ava/com/gic/store/web/controller/StoreDictController.java
+3
-0
No files found.
gic-store-service/src/main/java/com/gic/store/service/outer/StoreDictApiServiceImpl.java
View file @
57ddaa58
...
...
@@ -72,7 +72,7 @@ public class StoreDictApiServiceImpl implements StoreDictApiService {
if
(
enterpriseId
==
null
||
storeStatusArr
==
null
||
(
storeStatusArr
!=
null
&&
storeStatusArr
.
length
==
0
)){
return
ServiceResponse
.
failure
(
ErrorCode
.
ERR_2
.
getCode
(),
ErrorCode
.
ERR_2
.
getMsg
());
}
List
<
String
>
listSelected
=
this
.
storeDictService
.
listStore
Type
(
enterpriseId
);
List
<
String
>
listSelected
=
this
.
storeDictService
.
listStore
Status
(
enterpriseId
);
for
(
String
storeStatus
:
storeStatusArr
){
boolean
isExist
=
false
;
for
(
String
s
:
listSelected
){
...
...
@@ -95,7 +95,12 @@ public class StoreDictApiServiceImpl implements StoreDictApiService {
List
<
StoreDictDTO
>
result
=
new
ArrayList
<>();
List
<
BizdictDTO
>
list
=
this
.
bizdictService
.
treeByCategoryCode
(
type
);
if
(
CollectionUtils
.
isNotEmpty
(
list
)){
List
<
String
>
listSelected
=
this
.
storeDictService
.
listStoreType
(
enterpriseId
);
List
<
String
>
listSelected
=
new
ArrayList
<>();
if
(
"storeType"
.
equals
(
type
)){
listSelected
=
this
.
storeDictService
.
listStoreType
(
enterpriseId
);
}
else
{
listSelected
=
this
.
storeDictService
.
listStoreStatus
(
enterpriseId
);
}
for
(
BizdictDTO
bizdictDTO
:
list
){
StoreDictDTO
dictDTO
=
new
StoreDictDTO
();
dictDTO
.
setEnterpriseId
(
enterpriseId
);
...
...
@@ -116,7 +121,12 @@ public class StoreDictApiServiceImpl implements StoreDictApiService {
List
<
StoreDictDTO
>
result
=
new
ArrayList
<>();
List
<
BizdictDTO
>
list
=
this
.
bizdictService
.
treeByCategoryCode
(
type
);
if
(
CollectionUtils
.
isNotEmpty
(
list
)){
List
<
String
>
listSelected
=
this
.
storeDictService
.
listStoreType
(
enterpriseId
);
List
<
String
>
listSelected
=
new
ArrayList
<>();
if
(
"storeType"
.
equals
(
type
)){
listSelected
=
this
.
storeDictService
.
listStoreType
(
enterpriseId
);
}
else
{
listSelected
=
this
.
storeDictService
.
listStoreStatus
(
enterpriseId
);
}
for
(
BizdictDTO
bizdictDTO
:
list
){
for
(
String
s
:
listSelected
){
if
(
s
.
equals
(
bizdictDTO
.
getValueContent
())){
...
...
gic-store-web/src/main/java/com/gic/store/web/controller/StoreDictController.java
View file @
57ddaa58
...
...
@@ -8,6 +8,8 @@ import com.gic.store.service.StoreDictApiService;
import
com.gic.store.utils.ErrorCode
;
import
com.gic.store.web.vo.StoreDictVO
;
import
org.apache.commons.lang.StringUtils
;
import
org.apache.log4j.LogManager
;
import
org.apache.log4j.Logger
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.web.bind.annotation.RequestMapping
;
...
...
@@ -17,6 +19,7 @@ import java.util.List;
@Controller
public
class
StoreDictController
{
private
Logger
logger
=
LogManager
.
getLogger
(
StoreDictController
.
class
);
@Autowired
private
StoreDictApiService
storeDictApiService
;
...
...
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