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
91351f30
Commit
91351f30
authored
Jun 28, 2019
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
门店分组
parent
373d4388
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
StoreGroupConstant.java
.../main/java/com/gic/store/constant/StoreGroupConstant.java
+5
-0
StoreGroupApiServiceImpl.java
...com/gic/store/service/outer/StoreGroupApiServiceImpl.java
+3
-0
No files found.
gic-store-api/src/main/java/com/gic/store/constant/StoreGroupConstant.java
View file @
91351f30
...
...
@@ -15,6 +15,11 @@ public class StoreGroupConstant {
*/
public
final
static
int
ALL_STORE_LEVEL
=
0
;
/**
* 分组最后一级
*/
public
final
static
int
LAST_STORE_GROUP_LEVEL
=
6
;
/**
* 排序,上移
...
...
gic-store-service/src/main/java/com/gic/store/service/outer/StoreGroupApiServiceImpl.java
View file @
91351f30
...
...
@@ -38,6 +38,9 @@ public class StoreGroupApiServiceImpl implements StoreGroupApiService{
if
(
groupLevel
<
StoreGroupConstant
.
ALL_STORE_LEVEL
)
{
throw
new
StoreGroupException
(
StoreGroupErrorEnum
.
GroupLevelError
.
getCode
(),
StoreGroupErrorEnum
.
GroupLevelError
.
getMessage
());
}
if
(
groupLevel
>
StoreGroupConstant
.
LAST_STORE_GROUP_LEVEL
)
{
throw
new
StoreGroupException
(
StoreGroupErrorEnum
.
GroupLevelError
.
getCode
(),
StoreGroupErrorEnum
.
GroupLevelError
.
getMessage
());
}
//所有门店的父级ID为0
if
(
groupLevel
==
StoreGroupConstant
.
ALL_STORE_LEVEL
)
{
TabStoreGroup
allStoreGroup
=
tabStoreGroupMapper
.
selectAllStoreGroup
(
storeGroupDTO
.
getEnterpriseId
(),
StoreGroupConstant
.
ALL_STORE_LEVEL
);
...
...
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