Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
Y
yzg-util
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
YZG
yzg-util
Commits
d19e5ef3
Commit
d19e5ef3
authored
Aug 18, 2023
by
yanzg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.3版本修改,增加删除功能
parent
f6515320
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
DaoConst.java
yzg-util-db/src/main/java/com/yanzuoguang/dao/DaoConst.java
+1
-1
TableStruct.java
...b/src/main/java/com/yanzuoguang/dao/impl/TableStruct.java
+1
-1
No files found.
yzg-util-db/src/main/java/com/yanzuoguang/dao/DaoConst.java
View file @
d19e5ef3
...
@@ -141,7 +141,7 @@ public class DaoConst {
...
@@ -141,7 +141,7 @@ public class DaoConst {
/**
/**
* 更新字段模板参数
* 更新字段模板参数
*/
*/
public
static
final
String
CODE_UPDATE_FIELD_REMOVE
=
"a.%s=IFNULL(?,1)"
;
public
static
final
String
CODE_UPDATE_FIELD_REMOVE
=
"
,
a.%s=IFNULL(?,1)"
;
/**
/**
* 等于条件
* 等于条件
*/
*/
...
...
yzg-util-db/src/main/java/com/yanzuoguang/dao/impl/TableStruct.java
View file @
d19e5ef3
...
@@ -534,7 +534,7 @@ public class TableStruct {
...
@@ -534,7 +534,7 @@ public class TableStruct {
// 生成添加的SQL语句
// 生成添加的SQL语句
String
text
=
SQL_UPDATE
.
replace
(
CODE_TABLE
,
this
.
name
);
String
text
=
SQL_UPDATE
.
replace
(
CODE_TABLE
,
this
.
name
);
SqlData
sql
=
new
SqlData
(
sqlName
,
text
);
SqlData
sql
=
new
SqlData
(
sqlName
,
text
);
sql
.
setSqlType
(
SQL_TYPE_REMOVE
);
sql
.
setSqlType
(
sqlType
);
TableFieldVo
key
=
this
.
getKey
();
TableFieldVo
key
=
this
.
getKey
();
// 主键字段操作
// 主键字段操作
sql
.
addCode
(
CODE_FIELD
,
String
.
format
(
CODE_UPDATE_PRIMARY
,
key
.
name
,
key
.
name
));
sql
.
addCode
(
CODE_FIELD
,
String
.
format
(
CODE_UPDATE_PRIMARY
,
key
.
name
,
key
.
name
));
...
...
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