Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-platform-enterprise
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-platform-enterprise
Commits
5d358241
Commit
5d358241
authored
Mar 17, 2020
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
品牌并入调整:如果没有关联品牌,也允许并入
parent
0024f296
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
PlatformBrandApiServiceImpl.java
...prise/service/outer/impl/PlatformBrandApiServiceImpl.java
+4
-8
No files found.
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/outer/impl/PlatformBrandApiServiceImpl.java
View file @
5d358241
...
...
@@ -265,13 +265,9 @@ public class PlatformBrandApiServiceImpl implements PlatformBrandApiService {
if
(
fromBrandIds
.
contains
(
platformBrand
.
getPlatformBrandId
()))
{
return
ServiceResponse
.
failure
(
ErrorCode
.
OPERATION_FAILED
.
getCode
(),
"目标品牌存在在源品牌中,请重新选择品牌"
);
}
Integer
line
=
this
.
platformBrandRefService
.
updateRefs
(
fromBrandIds
,
platformBrand
.
getPlatformBrandId
());
if
(
line
>
0
)
{
Integer
ids
=
platformBrandService
.
delBrandByIds
(
fromBrandIds
);
logger
.
info
(
"删除平台品牌数量:{}"
,
ids
);
return
ServiceResponse
.
success
();
}
else
{
return
ServiceResponse
.
failure
(
ErrorCode
.
NOTEXISTS
.
getCode
(),
ErrorCode
.
NOTEXISTS
.
getMsg
());
}
this
.
platformBrandRefService
.
updateRefs
(
fromBrandIds
,
platformBrand
.
getPlatformBrandId
());
Integer
ids
=
platformBrandService
.
delBrandByIds
(
fromBrandIds
);
logger
.
info
(
"删除平台品牌数量:{}"
,
ids
);
return
ServiceResponse
.
success
();
}
}
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