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
e376c7d7
Commit
e376c7d7
authored
Jun 27, 2019
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
门店分组
parent
2c6e054c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
7 deletions
+14
-7
StoreGroupApiService.java
...main/java/com/gic/store/service/StoreGroupApiService.java
+1
-2
StoreGroupApiServiceImpl.java
...com/gic/store/service/outer/StoreGroupApiServiceImpl.java
+5
-1
StoreGroupController.java
...va/com/gic/store/web/controller/StoreGroupController.java
+2
-3
StoreGroupQO.java
...in/java/com/gic/store/web/qo/storegroup/StoreGroupQO.java
+6
-1
No files found.
gic-store-api/src/main/java/com/gic/store/service/StoreGroupApiService.java
View file @
e376c7d7
...
...
@@ -34,8 +34,7 @@ public interface StoreGroupApiService {
/**
* 查询分组列表
* @param enterpriseId
* @param search 门店分组名称
* @param storeGroupDTO
* @return
*/
List
<
StoreGroupDTO
>
listStoreGroup
(
StoreGroupDTO
storeGroupDTO
);
...
...
gic-store-service/src/main/java/com/gic/store/service/outer/StoreGroupApiServiceImpl.java
View file @
e376c7d7
...
...
@@ -169,7 +169,11 @@ public class StoreGroupApiServiceImpl implements StoreGroupApiService{
@Override
public
int
remove
(
int
storeGroupId
)
{
//todo 判断该分组是否有门店,如果有,不能删除
return
tabStoreGroupMapper
.
deleteByPrimaryKey
(
storeGroupId
);
TabStoreGroup
tabStoreGroup
=
new
TabStoreGroup
();
tabStoreGroup
.
setStoreGroupId
(
storeGroupId
);
tabStoreGroup
.
setStatus
(
0
);
return
tabStoreGroupMapper
.
updateByPrimaryKeySelective
(
tabStoreGroup
);
}
private
int
selectStoreGroupMaxSort
(
Integer
enterpriseId
,
Integer
groupLevel
)
{
...
...
gic-store-web/src/main/java/com/gic/store/web/controller/StoreGroupController.java
View file @
e376c7d7
...
...
@@ -63,9 +63,8 @@ public class StoreGroupController {
}
@RequestMapping
(
"/remove"
)
public
RestResponse
remove
(
StoreGroupDTO
storeGroupDTO
)
{
storeGroupDTO
.
setEnterpriseId
(
ENTERPRISE_ID
);
return
RestResponse
.
success
(
storeGroupApiService
.
remove
(
storeGroupDTO
.
getStoreGroupId
()));
public
RestResponse
remove
(
@Validated
({
StoreGroupQO
.
RemoveValidView
.
class
})
StoreGroupQO
storeGroupQO
)
{
return
RestResponse
.
success
(
storeGroupApiService
.
remove
(
storeGroupQO
.
getStoreGroupId
()));
}
private
List
<
Map
<
String
,
Object
>>
changeListToTree
(
int
storeGroupId
,
List
<
StoreGroupDTO
>
list
)
{
...
...
gic-store-web/src/main/java/com/gic/store/web/qo/storegroup/StoreGroupQO.java
View file @
e376c7d7
...
...
@@ -20,10 +20,15 @@ public class StoreGroupQO implements Serializable{
public
interface
SortValidView
{
}
public
interface
RemoveValidView
{
}
/**
*
*
*/
@NotNull
(
message
=
"门店分组ID不能为空"
,
groups
=
{
RemoveValidView
.
class
})
private
Integer
storeGroupId
;
/**
...
...
@@ -45,7 +50,7 @@ public class StoreGroupQO implements Serializable{
/**
* 分组层级
*/
@NotNull
(
message
=
"
名称
不能为空"
,
groups
=
{
SaveValidView
.
class
})
@NotNull
(
message
=
"
层级
不能为空"
,
groups
=
{
SaveValidView
.
class
})
private
Integer
groupLevel
;
/**
...
...
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