Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-webapp-plug
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-webapp-plug
Commits
743bfd58
Commit
743bfd58
authored
Mar 02, 2021
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
门店选择器自定义属性时间类型
parent
61b73321
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
3 deletions
+19
-3
StoreFieldController.java
...ava/com/gic/plug/web/controller/StoreFieldController.java
+19
-3
No files found.
src/main/java/com/gic/plug/web/controller/StoreFieldController.java
View file @
743bfd58
...
@@ -110,7 +110,7 @@ public class StoreFieldController {
...
@@ -110,7 +110,7 @@ public class StoreFieldController {
.
map
(
e
->
new
StoreWidgetInterfaceVO
()
.
map
(
e
->
new
StoreWidgetInterfaceVO
()
.
setLabel
(
e
.
getStoreFieldName
())
.
setLabel
(
e
.
getStoreFieldName
())
.
setValue
(
e
.
getStoreFieldKey
().
toString
())
.
setValue
(
e
.
getStoreFieldKey
().
toString
())
.
setKey
(
getFieldKeyByFieldType
(
e
.
getStoreFieldType
())))
.
setKey
(
getFieldKeyByFieldType
(
e
.
getStoreFieldType
()
,
e
.
getDateType
()
)))
.
collect
(
Collectors
.
toList
());
.
collect
(
Collectors
.
toList
());
}
}
return
RestResponse
.
success
(
voList
);
return
RestResponse
.
success
(
voList
);
...
@@ -167,18 +167,34 @@ public class StoreFieldController {
...
@@ -167,18 +167,34 @@ public class StoreFieldController {
return
voList
;
return
voList
;
}
}
private
String
getFieldKeyByFieldType
(
Integer
fieldType
)
{
private
String
getFieldKeyByFieldType
(
Integer
fieldType
,
Integer
dateType
)
{
if
(
fieldType
==
null
)
{
if
(
fieldType
==
null
)
{
return
null
;
return
null
;
}
}
StoreFieldTypeEnum
typeEnum
=
StoreFieldTypeEnum
.
getByCode
(
fieldType
);
StoreFieldTypeEnum
typeEnum
=
StoreFieldTypeEnum
.
getByCode
(
fieldType
);
switch
(
typeEnum
)
{
switch
(
typeEnum
)
{
case
DATE:
case
DATE:
return
"com006"
;
StoreFieldDateEnum
dateEnum
=
StoreFieldDateEnum
.
getByCode
(
dateType
);
switch
(
dateEnum
)
{
case
YMDHMS:
return
"com012"
;
case
YMD:
return
"com006"
;
case
MD:
return
"com008"
;
case
YM:
return
"com029"
;
case
Hms:
return
"com030"
;
default
:
return
null
;
}
case
CHECK:
case
CHECK:
return
"com007"
;
return
"com007"
;
case
RADIO:
case
RADIO:
return
"com009"
;
return
"com009"
;
case
REAL_NUMBER:
return
"com001"
;
default
:
default
:
return
null
;
return
null
;
...
...
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