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
09d292bb
Commit
09d292bb
authored
Jul 15, 2020
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
门店查询支持多个门店控件id聚合
parent
1517c70a
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
11 additions
and
9 deletions
+11
-9
StoreGroupApiService.java
...main/java/com/gic/store/service/StoreGroupApiService.java
+1
-1
TabStoreGroupMapper.java
...in/java/com/gic/store/dao/mapper/TabStoreGroupMapper.java
+2
-1
StoreGroupService.java
...rc/main/java/com/gic/store/service/StoreGroupService.java
+1
-1
StoreGroupServiceImpl.java
...ava/com/gic/store/service/impl/StoreGroupServiceImpl.java
+2
-2
StoreGroupApiServiceImpl.java
...ic/store/service/outer/impl/StoreGroupApiServiceImpl.java
+2
-2
TabStoreGroupMapper.xml
...service/src/main/resources/mapper/TabStoreGroupMapper.xml
+3
-2
No files found.
gic-store-api/src/main/java/com/gic/store/service/StoreGroupApiService.java
View file @
09d292bb
...
...
@@ -174,5 +174,5 @@ public interface StoreGroupApiService {
* @return
*/
ServiceResponse
<
Page
<
StoreGroupDTO
>>
pageStoreGroupByIds
(
List
<
Integer
>
storeGroupIdList
,
Integer
enterpriseId
,
Integer
level
,
Integer
pageSize
,
Integer
pageNum
);
Integer
parentId
,
Integer
pageSize
,
Integer
pageNum
);
}
gic-store-service/src/main/java/com/gic/store/dao/mapper/TabStoreGroupMapper.java
View file @
09d292bb
...
...
@@ -134,5 +134,5 @@ public interface TabStoreGroupMapper {
Page
<
TabStoreGroup
>
pageStoreGroupByIds
(
@Param
(
"storeGroupIdList"
)
List
<
Integer
>
storeGroupIdList
,
@Param
(
"enterpriseId"
)
Integer
enterpriseId
,
@Param
(
"
level"
)
Integer
level
);
@Param
(
"
parentId"
)
Integer
parentId
);
}
\ No newline at end of file
gic-store-service/src/main/java/com/gic/store/service/StoreGroupService.java
View file @
09d292bb
...
...
@@ -196,5 +196,5 @@ public interface StoreGroupService {
List
<
TabStoreGroup
>
listStoreGroupByIds
(
List
<
Integer
>
storeGroupIdList
,
Integer
enterpriseId
,
Integer
level
);
Page
<
TabStoreGroup
>
pageStoreGroupByIds
(
List
<
Integer
>
storeGroupIdList
,
Integer
enterpriseId
,
Integer
level
);
Page
<
TabStoreGroup
>
pageStoreGroupByIds
(
List
<
Integer
>
storeGroupIdList
,
Integer
enterpriseId
,
Integer
parentId
);
}
gic-store-service/src/main/java/com/gic/store/service/impl/StoreGroupServiceImpl.java
View file @
09d292bb
...
...
@@ -165,8 +165,8 @@ public class StoreGroupServiceImpl implements StoreGroupService{
}
@Override
public
Page
<
TabStoreGroup
>
pageStoreGroupByIds
(
List
<
Integer
>
storeGroupIdList
,
Integer
enterpriseId
,
Integer
level
){
return
this
.
tabStoreGroupMapper
.
pageStoreGroupByIds
(
storeGroupIdList
,
enterpriseId
,
level
);
public
Page
<
TabStoreGroup
>
pageStoreGroupByIds
(
List
<
Integer
>
storeGroupIdList
,
Integer
enterpriseId
,
Integer
parentId
){
return
this
.
tabStoreGroupMapper
.
pageStoreGroupByIds
(
storeGroupIdList
,
enterpriseId
,
parentId
);
}
}
gic-store-service/src/main/java/com/gic/store/service/outer/impl/StoreGroupApiServiceImpl.java
View file @
09d292bb
...
...
@@ -366,9 +366,9 @@ public class StoreGroupApiServiceImpl implements StoreGroupApiService {
@Override
public
ServiceResponse
<
Page
<
StoreGroupDTO
>>
pageStoreGroupByIds
(
List
<
Integer
>
storeGroupIdList
,
Integer
enterpriseId
,
Integer
level
,
Integer
pageSize
,
Integer
pageNum
)
{
Integer
parentId
,
Integer
pageSize
,
Integer
pageNum
)
{
PageHelper
.
startPage
(
pageNum
,
pageSize
);
com
.
github
.
pagehelper
.
Page
<
TabStoreGroup
>
tabStoreGroups
=
this
.
storeGroupService
.
pageStoreGroupByIds
(
storeGroupIdList
,
enterpriseId
,
level
);
com
.
github
.
pagehelper
.
Page
<
TabStoreGroup
>
tabStoreGroups
=
this
.
storeGroupService
.
pageStoreGroupByIds
(
storeGroupIdList
,
enterpriseId
,
parentId
);
Page
<
StoreGroupDTO
>
storeGroupDTOPage
=
PageHelperUtils
.
changePageHelperToCurrentPage
(
tabStoreGroups
,
StoreGroupDTO
.
class
);
return
ServiceResponse
.
success
(
storeGroupDTOPage
);
}
...
...
gic-store-service/src/main/resources/mapper/TabStoreGroupMapper.xml
View file @
09d292bb
...
...
@@ -287,8 +287,8 @@
#{item}
</foreach>
</if>
<if
test=
"
level
!= null"
>
and
group_level = #{level
}
<if
test=
"
parentId
!= null"
>
and
parent_store_group_id = #{parentId
}
</if>
</select>
</mapper>
\ No newline at end of file
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