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
43e840d5
Commit
43e840d5
authored
Sep 29, 2024
by
huangshunlin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bopcodmapper.xml getBopcodByCondition sql 补充concat 缺少的参数,dbSqlDate 达梦数据库 从%y%m%d修改为YYYY-MM-DD
parent
cf078df8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
bopcodmapper.xml
isc-common-core/src/main/resources/mapper/bopcodmapper.xml
+1
-1
Utils.java
...e/src/main/java/com/brilliance/isc/common/util/Utils.java
+2
-2
No files found.
isc-common-core/src/main/resources/mapper/bopcodmapper.xml
View file @
43e840d5
...
...
@@ -275,7 +275,7 @@
INR,VER,COD,DIR,TYP,TXT,STA from BOPCOD
<where>
<if
test=
"notCod != null and notCod != ''"
>
and COD not like concat(concat (#{notCod}),'%')
and COD not like concat(concat (
'%',
#{notCod}),'%')
</if>
<if
test=
"cod != null and cod != ''"
>
and COD like concat(concat ('%',#{cod}),'%')
...
...
isc-common-service/src/main/java/com/brilliance/isc/common/util/Utils.java
View file @
43e840d5
...
...
@@ -438,9 +438,9 @@ public class Utils {
DateFormat
df
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
StringBuilder
builder
=
new
StringBuilder
();
//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 语法
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
();
}
...
...
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