Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jz-dmp-cmdexectool
Project
Project
Details
Activity
Releases
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
姚本章
jz-dmp-cmdexectool
Commits
09a13fa7
Commit
09a13fa7
authored
Mar 13, 2021
by
mcb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
COMMIT
parent
a500b268
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
ParameterUtils.java
...mp/cmdexectool/scheduler/common/utils/ParameterUtils.java
+3
-4
No files found.
src/main/java/com/jz/dmp/cmdexectool/scheduler/common/utils/ParameterUtils.java
View file @
09a13fa7
...
@@ -449,8 +449,8 @@ public class ParameterUtils {
...
@@ -449,8 +449,8 @@ public class ParameterUtils {
}
}
}
}
//设置values语句
//设置values语句
valuesSqlSb
.
append
(
"?"
);
valuesSqlSb
.
append
(
","
);
valuesSqlSb
.
append
(
","
);
valuesSqlSb
.
append
(
"?"
);
if
(
"0"
.
equals
(
isPrimaryKey
)
&&
myDbType
.
MySQL
==
myDbType
)
{
if
(
"0"
.
equals
(
isPrimaryKey
)
&&
myDbType
.
MySQL
==
myDbType
)
{
//设置update语句
//设置update语句
updateSqlSb
.
append
(
targetFieldName
);
updateSqlSb
.
append
(
targetFieldName
);
...
@@ -472,7 +472,6 @@ public class ParameterUtils {
...
@@ -472,7 +472,6 @@ public class ParameterUtils {
}
}
}
}
}
}
String
primaryKeySqlStr
=
""
;
String
primaryKeySqlStr
=
""
;
if
(
org
.
apache
.
commons
.
lang3
.
StringUtils
.
isNotEmpty
(
primaryKeySqlSb
))
{
if
(
org
.
apache
.
commons
.
lang3
.
StringUtils
.
isNotEmpty
(
primaryKeySqlSb
))
{
primaryKeySqlStr
=
primaryKeySqlSb
.
substring
(
0
,
primaryKeySqlSb
.
length
()
-
1
);
primaryKeySqlStr
=
primaryKeySqlSb
.
substring
(
0
,
primaryKeySqlSb
.
length
()
-
1
);
...
@@ -487,7 +486,7 @@ public class ParameterUtils {
...
@@ -487,7 +486,7 @@ public class ParameterUtils {
sb
.
append
(
" INSERT INTO "
);
sb
.
append
(
" INSERT INTO "
);
sb
.
append
(
tableName
+
" "
);
sb
.
append
(
tableName
+
" "
);
sb
.
append
(
" VALUES( "
);
sb
.
append
(
" VALUES( "
);
sb
.
append
(
valuesSqlSb
);
sb
.
append
(
valuesSqlSb
.
substring
(
1
)
);
sb
.
append
(
" ) "
);
sb
.
append
(
" ) "
);
sb
.
append
(
" ON DUPLICATE KEY UPDATE "
);
sb
.
append
(
" ON DUPLICATE KEY UPDATE "
);
...
@@ -496,7 +495,7 @@ public class ParameterUtils {
...
@@ -496,7 +495,7 @@ public class ParameterUtils {
sb
.
append
(
" INSERT INTO "
);
sb
.
append
(
" INSERT INTO "
);
sb
.
append
(
tableName
+
" "
);
sb
.
append
(
tableName
+
" "
);
sb
.
append
(
" VALUES( "
);
sb
.
append
(
" VALUES( "
);
sb
.
append
(
valuesSqlSb
);
sb
.
append
(
valuesSqlSb
.
substring
(
1
)
);
sb
.
append
(
") "
);
sb
.
append
(
") "
);
sb
.
append
(
" ON CONFLICT( "
);
sb
.
append
(
" ON CONFLICT( "
);
...
...
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