Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gjjs-bd-common
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
s_guodong
gjjs-bd-common
Commits
06522649
Commit
06522649
authored
Dec 04, 2023
by
s_guodong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug- sqlDate
parent
570fc5ff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
12 deletions
+8
-12
MdaUtils.java
...in/java/com/brilliance/mda/runtime/mda/util/MdaUtils.java
+8
-12
No files found.
gjjs-bd-runtime/src/main/java/com/brilliance/mda/runtime/mda/util/MdaUtils.java
View file @
06522649
...
...
@@ -36,7 +36,6 @@ import java.net.URLEncoder;
import
java.net.UnknownHostException
;
import
java.nio.charset.Charset
;
import
java.nio.charset.StandardCharsets
;
import
java.sql.Timestamp
;
import
java.text.*
;
import
java.util.*
;
import
java.util.concurrent.Semaphore
;
...
...
@@ -586,23 +585,20 @@ public class MdaUtils {
Calendar
c
=
Calendar
.
getInstance
();
c
.
setTime
(
date
);
switch
(
type
)
{
case
DESC:
case
GE:
c
.
set
(
11
,
23
);
c
.
set
(
12
,
59
);
c
.
set
(
13
,
59
);
c
.
set
(
14
,
999
);
if
(
type
==
OpType
.
LT
)
return
new
Timestamp
(
c
.
getTime
().
getTime
());
return
new
Date
(
c
.
getTime
().
getTime
());
case
BETWEEN:
case
GT:
case
EQ:
c
.
set
(
11
,
0
);
c
.
set
(
12
,
0
);
c
.
set
(
13
,
0
);
c
.
set
(
14
,
0
);
if
(
type
==
OpType
.
GT
)
return
new
Timestamp
(
c
.
getTime
().
getTime
());
return
new
Date
(
c
.
getTime
().
getTime
());
case
LT:
case
LE:
c
.
set
(
11
,
23
);
c
.
set
(
12
,
59
);
c
.
set
(
13
,
59
);
c
.
set
(
14
,
999
);
return
new
Date
(
c
.
getTime
().
getTime
());
}
return
date
;
...
...
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