Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
isc-core
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
isc-v3.1-tmp
isc-core
Commits
f141c351
Commit
f141c351
authored
Sep 29, 2024
by
huangshunlin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
回退
parent
43e840d5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Utils.java
...e/src/main/java/com/brilliance/isc/common/util/Utils.java
+2
-2
No files found.
isc-common-service/src/main/java/com/brilliance/isc/common/util/Utils.java
View file @
f141c351
...
@@ -438,9 +438,9 @@ public class Utils {
...
@@ -438,9 +438,9 @@ public class Utils {
DateFormat
df
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
DateFormat
df
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
StringBuilder
builder
=
new
StringBuilder
();
StringBuilder
builder
=
new
StringBuilder
();
//oracle 语法
//oracle 语法
builder
.
append
(
" to_date('"
).
append
(
df
.
format
(
date
)).
append
(
"','YYYY-MM-DD')"
);
//
builder.append(" to_date('").append(df.format(date)).append("','YYYY-MM-DD')");
//mysql 语法
//mysql 语法
//
builder.append(" date_format('").append(df.format(date)).append("','%y%m%d')");
builder
.
append
(
" date_format('"
).
append
(
df
.
format
(
date
)).
append
(
"','%y%m%d')"
);
return
builder
.
toString
();
return
builder
.
toString
();
}
}
...
...
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