Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-platform-enterprise
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-platform-enterprise
Commits
3ffec630
Commit
3ffec630
authored
May 25, 2021
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
配置表
parent
17a55781
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
CustomSettingApiServiceImpl.java
...prise/service/outer/impl/CustomSettingApiServiceImpl.java
+9
-2
No files found.
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/outer/impl/CustomSettingApiServiceImpl.java
View file @
3ffec630
...
...
@@ -33,6 +33,8 @@ import org.apache.logging.log4j.Logger;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.text.ParseException
;
import
java.text.SimpleDateFormat
;
import
java.util.*
;
import
java.util.stream.Collectors
;
...
...
@@ -210,8 +212,13 @@ public class CustomSettingApiServiceImpl implements CustomSettingApiService {
String
[]
split
=
s
.
split
(
"-"
);
if
(
split
.
length
==
2
){
JSONObject
json
=
new
JSONObject
();
json
.
put
(
"start"
,
split
[
0
]);
json
.
put
(
"end"
,
split
[
1
]);
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
try
{
json
.
put
(
"start"
,
sdf
.
parse
(
split
[
0
]));
json
.
put
(
"end"
,
sdf
.
parse
(
split
[
1
]));
}
catch
(
ParseException
e
)
{
log
.
warn
(
"日期转换异常:"
,
e
);
}
criteria
=
new
Criteria
(
k
,
MongoOperTypeEnum
.
BETWEEN
,
json
);
}
}
...
...
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