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
6b683819
Commit
6b683819
authored
Dec 05, 2019
by
zhiwj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去掉门店域
parent
3964753d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
StoreRegionApiServiceImpl.java
...c/store/service/outer/impl/StoreRegionApiServiceImpl.java
+4
-4
No files found.
gic-store-service/src/main/java/com/gic/store/service/outer/impl/StoreRegionApiServiceImpl.java
View file @
6b683819
...
...
@@ -50,10 +50,10 @@ public class StoreRegionApiServiceImpl implements StoreRegionApiService {
storeRegionDTO
.
setRegionCode
(
regionCode
);
if
(
regionId
==
null
)
{
// 新增
int
codeCount
=
storeRegionService
.
countByRegionCode
(
enterpriseId
,
regionCode
);
if
(
codeCount
>
0
)
{
return
ServiceResponse
.
failure
(
ErrorCode
.
DATA_EXISTS
.
getCode
(),
"域code已存在"
);
}
//
int codeCount = storeRegionService.countByRegionCode(enterpriseId, regionCode);
//
if (codeCount > 0) {
//
return ServiceResponse.failure(ErrorCode.DATA_EXISTS.getCode(), "域code已存在");
//
}
int
nameCount
=
storeRegionService
.
countByRegionName
(
enterpriseId
,
regionName
,
null
);
if
(
nameCount
>
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