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
5360b06c
Commit
5360b06c
authored
Jul 08, 2019
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
查询未分组门店分组接口
parent
81b640af
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
0 deletions
+31
-0
TabStoreGroupMapper.java
...in/java/com/gic/store/dao/mapper/TabStoreGroupMapper.java
+9
-0
StoreGroupService.java
...rc/main/java/com/gic/store/service/StoreGroupService.java
+7
-0
StoreGroupServiceImpl.java
...ava/com/gic/store/service/impl/StoreGroupServiceImpl.java
+5
-0
TabStoreGroupMapper.xml
...service/src/main/resources/mapper/TabStoreGroupMapper.xml
+10
-0
No files found.
gic-store-service/src/main/java/com/gic/store/dao/mapper/TabStoreGroupMapper.java
View file @
5360b06c
...
...
@@ -118,4 +118,12 @@ public interface TabStoreGroupMapper {
int
isRepeatName
(
@Param
(
"storeGroupName"
)
String
storeGroupName
,
@Param
(
"storeGroupId"
)
Integer
storeGroupId
,
@Param
(
"enterpriseId"
)
Integer
enterpriseId
);
TabStoreGroup
getStoreGroupByName
(
@Param
(
"storeGroupName"
)
String
storeGroupName
,
@Param
(
"enterpriseId"
)
Integer
enterpriseId
);
/**
* 查询未分组门店 分组数据
* @param enterpriseId
* @return
*/
TabStoreGroup
selectUnGroupedStore
(
@Param
(
"enterpriseId"
)
Integer
enterpriseId
);
}
\ No newline at end of file
gic-store-service/src/main/java/com/gic/store/service/StoreGroupService.java
View file @
5360b06c
...
...
@@ -31,4 +31,11 @@ public interface StoreGroupService {
* @param storeGroupId
*/
void
updateSort
(
Integer
sort
,
Integer
storeGroupId
);
/**
* 查询未分组门店 分组
* @param enterpriseId
* @return
*/
TabStoreGroup
selectUnGroupedStore
(
Integer
enterpriseId
);
}
gic-store-service/src/main/java/com/gic/store/service/impl/StoreGroupServiceImpl.java
View file @
5360b06c
...
...
@@ -69,4 +69,9 @@ public class StoreGroupServiceImpl implements StoreGroupService{
record
.
setSort
(
sort
);
tabStoreGroupMapper
.
updateByPrimaryKeySelective
(
record
);
}
@Override
public
TabStoreGroup
selectUnGroupedStore
(
Integer
enterpriseId
)
{
return
tabStoreGroupMapper
.
selectUnGroupedStore
(
enterpriseId
);
}
}
gic-store-service/src/main/resources/mapper/TabStoreGroupMapper.xml
View file @
5360b06c
...
...
@@ -249,4 +249,13 @@
tab_store_group where status = 1 and enterprise_id = #{enterpriseId} and store_group_name = #{storeGroupName}
limit 1
</select>
<select
id=
"selectUnGroupedStore"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from
tab_store_group where status = 1 and enterprise_id = #{enterpriseId} and is_default = 1 and group_level = 1
limit 1
</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