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
0edb048f
Commit
0edb048f
authored
Aug 21, 2020
by
zhiwj
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/developer' into developer
parents
6a312358
2d43f52b
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
0 deletions
+22
-0
StoreGroupApiService.java
...main/java/com/gic/store/service/StoreGroupApiService.java
+2
-0
StoreGroupService.java
...rc/main/java/com/gic/store/service/StoreGroupService.java
+2
-0
StoreGroupServiceImpl.java
...ava/com/gic/store/service/impl/StoreGroupServiceImpl.java
+9
-0
StoreGroupApiServiceImpl.java
...ic/store/service/outer/impl/StoreGroupApiServiceImpl.java
+6
-0
TabStoreGroupMapper.xml
...service/src/main/resources/mapper/TabStoreGroupMapper.xml
+3
-0
No files found.
gic-store-api/src/main/java/com/gic/store/service/StoreGroupApiService.java
View file @
0edb048f
...
...
@@ -175,4 +175,6 @@ public interface StoreGroupApiService {
*/
ServiceResponse
<
Page
<
StoreGroupDTO
>>
pageStoreGroupByIds
(
List
<
Integer
>
storeGroupIdList
,
Integer
enterpriseId
,
Integer
parentId
,
String
search
,
Integer
pageSize
,
Integer
pageNum
);
ServiceResponse
<
List
<
StoreGroupDTO
>>
listChildrenStoreGroup
(
Integer
enterpriseId
,
Integer
parentStoreGroupId
);
}
gic-store-service/src/main/java/com/gic/store/service/StoreGroupService.java
View file @
0edb048f
...
...
@@ -197,4 +197,6 @@ public interface StoreGroupService {
List
<
TabStoreGroup
>
listStoreGroupByIds
(
List
<
Integer
>
storeGroupIdList
,
Integer
enterpriseId
,
Integer
level
);
Page
<
TabStoreGroup
>
pageStoreGroupByIds
(
List
<
Integer
>
storeGroupIdList
,
Integer
enterpriseId
,
Integer
parentId
,
String
search
);
List
<
TabStoreGroup
>
listChildrenStoreGroup
(
Integer
enterpriseId
,
Integer
parentStoreGroupId
);
}
gic-store-service/src/main/java/com/gic/store/service/impl/StoreGroupServiceImpl.java
View file @
0edb048f
...
...
@@ -169,4 +169,13 @@ public class StoreGroupServiceImpl implements StoreGroupService{
return
this
.
tabStoreGroupMapper
.
pageStoreGroupByIds
(
storeGroupIdList
,
enterpriseId
,
parentId
,
search
);
}
@Override
public
List
<
TabStoreGroup
>
listChildrenStoreGroup
(
Integer
enterpriseId
,
Integer
parentStoreGroupId
)
{
TabStoreGroup
param
=
new
TabStoreGroup
();
param
.
setEnterpriseId
(
enterpriseId
);
param
.
setParentStoreGroupId
(
parentStoreGroupId
);
List
<
TabStoreGroup
>
tabStoreGroupList
=
tabStoreGroupMapper
.
listStoreGroup
(
param
);
return
tabStoreGroupList
;
}
}
gic-store-service/src/main/java/com/gic/store/service/outer/impl/StoreGroupApiServiceImpl.java
View file @
0edb048f
...
...
@@ -373,6 +373,12 @@ public class StoreGroupApiServiceImpl implements StoreGroupApiService {
return
ServiceResponse
.
success
(
storeGroupDTOPage
);
}
@Override
public
ServiceResponse
<
List
<
StoreGroupDTO
>>
listChildrenStoreGroup
(
Integer
enterpriseId
,
Integer
parentStoreGroupId
)
{
List
<
TabStoreGroup
>
list
=
this
.
storeGroupService
.
listChildrenStoreGroup
(
enterpriseId
,
parentStoreGroupId
);
return
ServiceResponse
.
success
(
EntityUtil
.
changeEntityListByJSON
(
StoreGroupDTO
.
class
,
list
));
}
/**
* 刷新缓存,删除缓存
* @param storeGroupId
...
...
gic-store-service/src/main/resources/mapper/TabStoreGroupMapper.xml
View file @
0edb048f
...
...
@@ -179,6 +179,9 @@
<if
test=
"groupLevel != null and groupLevel != '' "
>
and group_level = #{groupLevel}
</if>
<if
test=
"parentStoreGroupId !=null and parentStoreGroupId != ''"
>
and parent_store_group_id = #{parentStoreGroupId}
</if>
order by group_level, sort
</select>
...
...
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