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
9337f7bc
Commit
9337f7bc
authored
Jul 03, 2019
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
自定义域字段-排序
parent
fb808ea9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
TabStoreFieldMapper.xml
...service/src/main/resources/mapper/TabStoreFieldMapper.xml
+2
-2
TabStoreFieldSelectMapper.xml
...e/src/main/resources/mapper/TabStoreFieldSelectMapper.xml
+2
-2
StoreFieldController.java
...va/com/gic/store/web/controller/StoreFieldController.java
+2
-2
No files found.
gic-store-service/src/main/resources/mapper/TabStoreFieldMapper.xml
View file @
9337f7bc
...
...
@@ -247,7 +247,7 @@
</update>
<select
id=
"isRepeatCode"
result
Map=
"BaseResultMap
"
>
<select
id=
"isRepeatCode"
result
Type=
"int
"
>
select
count(1)
from tab_store_field
...
...
@@ -260,7 +260,7 @@
and store_field_code = #{storeFieldCode}
</select>
<select
id=
"isRepeatName"
result
Map=
"BaseResultMap
"
>
<select
id=
"isRepeatName"
result
Type=
"int
"
>
select
count(1)
from tab_store_field
...
...
gic-store-service/src/main/resources/mapper/TabStoreFieldSelectMapper.xml
View file @
9337f7bc
...
...
@@ -181,7 +181,7 @@
order by sort
</select>
<select
id=
"isRepeatCode"
>
<select
id=
"isRepeatCode"
resultType=
"int"
>
select count(1) from tab_store_field_select
where
store_field_select_code = #{storeFieldSelectCode}
...
...
@@ -192,7 +192,7 @@
</select>
<select
id=
"isRepeatName"
>
<select
id=
"isRepeatName"
resultType=
"int"
>
select count(1) from tab_store_field_select
where
store_field_select_name = #{storeFieldSelectName}
...
...
gic-store-web/src/main/java/com/gic/store/web/controller/StoreFieldController.java
View file @
9337f7bc
...
...
@@ -234,10 +234,10 @@ public class StoreFieldController {
@RequestMapping
(
"/save-store-field-select"
)
public
RestResponse
saveFieldValue
(
String
storeFieldSelectNames
,
String
storeFieldSelectCodes
,
Integer
storeFieldId
)
{
if
(
storeFieldId
==
null
)
{
RestResponse
.
failure
(
ErrorCode
.
ERR_5
.
getCode
(),
"自定义字段值不能为空"
);
return
RestResponse
.
failure
(
ErrorCode
.
ERR_5
.
getCode
(),
"自定义字段值不能为空"
);
}
if
(
validStoreFieldSelectSaveParam
(
storeFieldSelectNames
,
storeFieldSelectCodes
))
{
RestResponse
.
failure
(
ErrorCode
.
ERR_5
.
getCode
(),
"参数错误(重复或者个数不对齐)"
);
return
RestResponse
.
failure
(
ErrorCode
.
ERR_5
.
getCode
(),
"参数错误(重复或者个数不对齐)"
);
}
String
[]
nameArr
=
storeFieldSelectNames
.
split
(
","
);
String
[]
codeArr
=
storeFieldSelectCodes
.
split
(
","
);
...
...
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