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
0313d79d
Commit
0313d79d
authored
Sep 12, 2019
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
回写修改
parent
1d1c8edd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletions
+16
-1
StoreCustomBackImpl.java
...a/com/gic/plug/web/strategy/impl/StoreCustomBackImpl.java
+16
-1
No files found.
src/main/java/com/gic/plug/web/strategy/impl/StoreCustomBackImpl.java
View file @
0313d79d
...
...
@@ -55,7 +55,9 @@ public class StoreCustomBackImpl implements ScreenBackStrategy {
if
(
storeField
.
getResult
()
!=
null
)
{
if
(
storeField
.
getResult
().
getStoreFieldType
()
==
StoreFieldTypeEnum
.
DATE
.
getCode
())
{
return
this
.
dateBack
(
compute
,
value
,
storeField
.
getResult
());
}
else
{
}
else
if
(
storeField
.
getResult
().
getStoreFieldType
()
==
StoreFieldTypeEnum
.
REAL_NUMBER
.
getCode
()){
return
this
.
numberBack
(
compute
,
value
,
storeField
.
getResult
());
}
else
{
return
this
.
selectBack
(
compute
,
value
,
enterpriseId
,
storeField
.
getResult
());
}
}
...
...
@@ -113,6 +115,19 @@ public class StoreCustomBackImpl implements ScreenBackStrategy {
return
stringBuilder
.
toString
();
}
private
String
numberBack
(
String
compute
,
String
value
,
StoreFieldDTO
storeFieldDTO
){
StringBuilder
stringBuilder
=
new
StringBuilder
(
storeFieldDTO
.
getStoreFieldName
()).
append
(
" "
);
stringBuilder
.
append
(
ComputeBackUtil
.
getComputeBack
(
compute
)).
append
(
" "
);
if
(
StringUtils
.
isNotBlank
(
value
)){
String
[]
valueArr
=
value
.
split
(
" "
);
stringBuilder
.
append
(
valueArr
[
0
]);
if
(
valueArr
.
length
>
1
){
stringBuilder
.
append
(
"至"
).
append
(
valueArr
[
1
]);
}
}
return
stringBuilder
.
toString
();
}
public
String
yyyyMMddHHmmssBack
(
String
value
)
throws
ParseException
{
SimpleDateFormat
simpleDateFormat
=
new
SimpleDateFormat
(
"yyyyMMddHHmmss"
);
SimpleDateFormat
simpleDateFormat1
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
...
...
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