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
5989713e
Commit
5989713e
authored
Sep 23, 2020
by
guojuxing
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/developer' into developer
parents
3d15e1b0
b09a81b6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
5 deletions
+10
-5
TabClerkMapper.java
...rc/main/java/com/gic/store/dao/mapper/TabClerkMapper.java
+1
-1
ClerkPositionApiServiceImpl.java
...store/service/outer/impl/ClerkPositionApiServiceImpl.java
+1
-1
StoreApiServiceImpl.java
...com/gic/store/service/outer/impl/StoreApiServiceImpl.java
+8
-3
No files found.
gic-store-service/src/main/java/com/gic/store/dao/mapper/TabClerkMapper.java
View file @
5989713e
...
...
@@ -117,7 +117,7 @@ public interface TabClerkMapper {
* @return java.lang.Integer
* @throws
*/
Integer
getTotalClerk
(
@Param
(
"enterpriseId"
)
Integer
enterpriseId
,
@Param
(
"storeClerkIds"
)
List
<
Integer
>
storeClerkIds
,
@Param
(
"search"
)
String
search
,
@Param
(
"status"
)
int
status
);
Integer
getTotalClerk
(
@Param
(
"enterpriseId"
)
Integer
enterpriseId
,
@Param
(
"storeClerkIds"
)
List
<
Integer
>
storeClerkIds
,
@Param
(
"search"
)
String
search
,
@Param
(
"status"
)
Integer
status
);
/**
* getStoreInfoIdsBySearch
...
...
gic-store-service/src/main/java/com/gic/store/service/outer/impl/ClerkPositionApiServiceImpl.java
View file @
5989713e
...
...
@@ -115,7 +115,7 @@ public class ClerkPositionApiServiceImpl implements ClerkPositionApiService {
}
Map
<
Integer
,
Integer
>
map
=
clerkService
.
countMapByPosition
(
clerkPosition
.
getEnterpriseId
(),
Collections
.
singletonList
(
clerkPosition
.
getClerkPositionId
()));
Integer
count
=
map
.
get
(
clerkPosition
.
getClerkPositionId
());
if
(
count
>
0
)
{
if
(
count
!=
null
&&
count
>
0
)
{
return
EnterpriseServiceResponse
.
failure
(
ErrorCode
.
PARAMETER_ERROR
.
getCode
(),
"角色正在被使用中,无法删除"
);
}
this
.
clerkPositionService
.
deleteById
(
clerkPositionId
);
...
...
gic-store-service/src/main/java/com/gic/store/service/outer/impl/StoreApiServiceImpl.java
View file @
5989713e
...
...
@@ -542,12 +542,17 @@ public class StoreApiServiceImpl implements StoreApiService {
}
else
{
// 判断分组是否存在
TabStoreGroup
group
=
storeGroupService
.
getStoreGroupById
(
storeDTO
.
getStoreGroupId
());
if
(
group
!=
null
)
{
storeDTO
.
setStoreGroupId
(
group
.
getStoreGroupId
());
}
else
{
if
(
group
==
null
)
{
logger
.
info
(
"enterpriseId:{}, groupName:{}, 不存在该分组"
,
storeDTO
.
getEnterpriseId
(),
storeDTO
.
getStoreGroupName
());
return
"门店分组不存在"
;
}
if
(
storeGroupService
.
isLeafNode
(
group
.
getStoreGroupId
()))
{
// 如果是叶子节点
storeDTO
.
setStoreGroupId
(
group
.
getStoreGroupId
());
}
else
{
logger
.
info
(
"enterpriseId:{}, groupName:{}, groupId:{}, 分组不是叶子节点"
,
storeDTO
.
getEnterpriseId
(),
storeDTO
.
getStoreGroupName
(),
group
.
getStoreGroupId
());
return
"分组不是叶子节点"
;
}
}
}
else
{
// 启用分组策略
...
...
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