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
9fdf47eb
Commit
9fdf47eb
authored
Dec 27, 2019
by
zhiwj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去掉判断
parent
40668b22
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
StoreBrandApiServiceImpl.java
...ic/store/service/outer/impl/StoreBrandApiServiceImpl.java
+4
-4
No files found.
gic-store-service/src/main/java/com/gic/store/service/outer/impl/StoreBrandApiServiceImpl.java
View file @
9fdf47eb
...
...
@@ -50,10 +50,10 @@ public class StoreBrandApiServiceImpl implements StoreBrandApiService {
@Override
public
ServiceResponse
<
Integer
>
saveOrUpdateStoreBrand
(
StoreBrandDTO
storeBrandDTO
)
{
Integer
storeBrandId
;
int
brandCodeCount
=
storeBrandService
.
countByStoreBrandCode
(
storeBrandDTO
.
getEnterpriseId
(),
storeBrandDTO
.
getStoreBrandCode
(),
storeBrandDTO
.
getStoreBrandId
());
if
(
brandCodeCount
>
0
)
{
return
ServiceResponse
.
failure
(
ErrorCode
.
DATA_EXISTS
.
getCode
(),
"品牌code已存在"
);
}
//
int brandCodeCount = storeBrandService.countByStoreBrandCode(storeBrandDTO.getEnterpriseId(), storeBrandDTO.getStoreBrandCode(), storeBrandDTO.getStoreBrandId());
//
if (brandCodeCount > 0) {
//
return ServiceResponse.failure(ErrorCode.DATA_EXISTS.getCode(), "品牌code已存在");
//
}
int
storeBrandName
=
storeBrandService
.
countByStoreBrandName
(
storeBrandDTO
.
getEnterpriseId
(),
storeBrandDTO
.
getStoreBrandName
(),
storeBrandDTO
.
getStoreBrandId
());
if
(
storeBrandName
>
0
)
{
return
ServiceResponse
.
failure
(
ErrorCode
.
DATA_EXISTS
.
getCode
(),
"品牌名称已存在"
);
...
...
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