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
0974cd5f
Commit
0974cd5f
authored
Dec 12, 2019
by
陶光胜
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' of
http://115.159.76.241/base_platform_enterprise/gic-store
into developer
parents
3e9ecfeb
caa6091c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
2 deletions
+8
-2
StoreFieldApiServiceImpl.java
...ic/store/service/outer/impl/StoreFieldApiServiceImpl.java
+1
-1
TabStoreFieldMapper.xml
...service/src/main/resources/mapper/TabStoreFieldMapper.xml
+1
-1
StoreFieldController.java
...va/com/gic/store/web/controller/StoreFieldController.java
+6
-0
No files found.
gic-store-service/src/main/java/com/gic/store/service/outer/impl/StoreFieldApiServiceImpl.java
View file @
0974cd5f
...
...
@@ -75,7 +75,7 @@ public class StoreFieldApiServiceImpl implements StoreFieldApiService {
if
(
StringUtils
.
isBlank
(
region
))
{
continue
;
}
if
(!
NumberUtils
.
isNumber
(
region
))
{
if
(!
StringUtils
.
isNumeric
(
region
))
{
return
ServiceResponse
.
failure
(
ErrorCode
.
PARAMETER_ERROR
.
getCode
(),
"门店域有误"
);
}
if
(
storeRegionService
.
getById
(
storeFieldDTO
.
getEnterpriseId
(),
Integer
.
parseInt
(
region
))
==
null
)
{
...
...
gic-store-service/src/main/resources/mapper/TabStoreFieldMapper.xml
View file @
0974cd5f
...
...
@@ -352,7 +352,7 @@
<select
id=
"countStoreField"
resultType=
"int"
>
select
count(DISTINCT a.store_field_id)
from tab_store_field
_region_rel
a
from tab_store_field a
LEFT JOIN tab_store_field_rel b
on a.store_field_id = b.store_field_id
and b.status = 1
...
...
gic-store-web/src/main/java/com/gic/store/web/controller/StoreFieldController.java
View file @
0974cd5f
...
...
@@ -107,6 +107,12 @@ public class StoreFieldController {
String
[]
regionArr
=
regions
.
split
(
","
);
StringBuilder
region
=
new
StringBuilder
(
"_"
);
for
(
String
str
:
regionArr
)
{
if
(
StringUtils
.
isBlank
(
str
))
{
continue
;
}
if
(!
StringUtils
.
isNumeric
(
str
))
{
return
RestResponse
.
failure
(
ErrorCode
.
PARAMETER_ERROR
.
getCode
(),
"门店域有误"
);
}
region
.
append
(
Integer
.
parseInt
(
str
));
region
.
append
(
"_"
);
}
...
...
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