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
7f106c95
Commit
7f106c95
authored
Jul 03, 2019
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
根据名称和企业ID,查询分组数据
parent
890c5bf9
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
52 additions
and
0 deletions
+52
-0
TabStoreGroupMapper.java
...in/java/com/gic/store/dao/mapper/TabStoreGroupMapper.java
+3
-0
StoreGroupService.java
...rc/main/java/com/gic/store/service/StoreGroupService.java
+18
-0
StoreGroupServiceImpl.java
...ava/com/gic/store/service/impl/StoreGroupServiceImpl.java
+22
-0
TabStoreGroupMapper.xml
...service/src/main/resources/mapper/TabStoreGroupMapper.xml
+9
-0
No files found.
gic-store-service/src/main/java/com/gic/store/dao/mapper/TabStoreGroupMapper.java
View file @
7f106c95
...
...
@@ -116,4 +116,6 @@ public interface TabStoreGroupMapper {
int
countByParentId
(
@Param
(
"parentId"
)
Integer
parentId
);
int
isRepeatName
(
@Param
(
"storeGroupName"
)
String
storeGroupName
,
@Param
(
"storeGroupId"
)
Integer
storeGroupId
,
@Param
(
"enterpriseId"
)
Integer
enterpriseId
);
TabStoreGroup
getStoreGroupByName
(
@Param
(
"storeGroupName"
)
String
storeGroupName
,
@Param
(
"enterpriseId"
)
Integer
enterpriseId
);
}
\ No newline at end of file
gic-store-service/src/main/java/com/gic/store/service/StoreGroupService.java
0 → 100644
View file @
7f106c95
package
com
.
gic
.
store
.
service
;
import
com.gic.store.entity.TabStoreGroup
;
/**
* @author guojx
* @date 2019/7/3 2:16 PM
*/
public
interface
StoreGroupService
{
/**
* 根据名称查询分组
* @param storeGroupName
* @param enterpriseId
* @return
*/
TabStoreGroup
getStoreGroupByName
(
String
storeGroupName
,
Integer
enterpriseId
);
}
gic-store-service/src/main/java/com/gic/store/service/impl/StoreGroupServiceImpl.java
0 → 100644
View file @
7f106c95
package
com
.
gic
.
store
.
service
.
impl
;
import
com.gic.store.dao.mapper.TabStoreGroupMapper
;
import
com.gic.store.entity.TabStoreGroup
;
import
com.gic.store.service.StoreGroupService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
/**
* @author guojx
* @date 2019/7/3 2:18 PM
*/
@Service
(
"storeGroupService"
)
public
class
StoreGroupServiceImpl
implements
StoreGroupService
{
@Autowired
private
TabStoreGroupMapper
tabStoreGroupMapper
;
@Override
public
TabStoreGroup
getStoreGroupByName
(
String
storeGroupName
,
Integer
enterpriseId
)
{
return
tabStoreGroupMapper
.
getStoreGroupByName
(
storeGroupName
,
enterpriseId
);
}
}
gic-store-service/src/main/resources/mapper/TabStoreGroupMapper.xml
View file @
7f106c95
...
...
@@ -241,4 +241,12 @@
and store_group_name = #{storeGroupName}
and enterprise_id = #{enterpriseId}
</select>
<select
id=
"getStoreGroupByName"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from
tab_store_group where status = 1 and enterprise_id = #{enterpriseId} and store_group_name = #{storeGroupName}
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