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
4b0099a3
Commit
4b0099a3
authored
Nov 05, 2020
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
门店分组转移上级门店修改:转移门店逻辑修复
parent
f04cdee7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
9 deletions
+3
-9
StoreGroupApiServiceImpl.java
...ic/store/service/outer/impl/StoreGroupApiServiceImpl.java
+3
-9
No files found.
gic-store-service/src/main/java/com/gic/store/service/outer/impl/StoreGroupApiServiceImpl.java
View file @
4b0099a3
...
...
@@ -147,16 +147,10 @@ public class StoreGroupApiServiceImpl implements StoreGroupApiService {
tabStoreGroup
.
setUpdateTime
(
new
Date
());
storeGroupService
.
update
(
tabStoreGroup
);
//如果上级分组有门店,则新建一个未分组数据,然后把所有门店放进去
if
(
isNeedTransferStore
(
storeGroupParentId
))
{
StoreGroupDTO
noStoreGroup
=
new
StoreGroupDTO
();
noStoreGroup
.
setEnterpriseId
(
storeGroupDTO
.
getEnterpriseId
());
noStoreGroup
.
setGroupLevel
(
oldStoreGroup
.
getGroupLevel
());
noStoreGroup
.
setStoreGroupName
(
"未分组门店"
+
System
.
currentTimeMillis
());
noStoreGroup
.
setParentStoreGroupId
(
storeGroupParentId
);
ServiceResponse
<
Integer
>
noStoreGroupId
=
save
(
noStoreGroup
);
//如果上级分组有门店
if
(
isNeedTransferStoreWhenNew
(
storeGroupParentId
))
{
//转移门店
storeService
.
updateGroupId
(
storeGroupParentId
,
noStoreGroupId
.
getResult
()
);
storeService
.
updateGroupId
(
storeGroupParentId
,
storeGroupId
);
}
//刷新缓存
...
...
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