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
cd67d7d2
Commit
cd67d7d2
authored
Jun 10, 2019
by
yanzg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
常规BUG的修改
parent
371204d5
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
DaoConst.java
yzg-util-db/src/main/java/com/yanzuoguang/dao/DaoConst.java
+3
-3
SqlData.java
...il-db/src/main/java/com/yanzuoguang/dao/impl/SqlData.java
+1
-1
TableStruct.java
...b/src/main/java/com/yanzuoguang/dao/impl/TableStruct.java
+4
-4
No files found.
yzg-util-db/src/main/java/com/yanzuoguang/dao/DaoConst.java
View file @
cd67d7d2
...
...
@@ -105,15 +105,15 @@ public class DaoConst {
/**
* 版本号字段名称
*/
public
static
final
String
VERS
ON
=
"vers
on"
;
public
static
final
String
VERS
ION_FLAG
=
"versi
on"
;
/**
* 删除字段名称
*/
public
static
final
String
ISREMOVE
=
"is
remove"
;
public
static
final
String
REMOVE_FLAG
=
"
remove"
;
/**
* 删除字符串长度变量
*/
public
static
final
String
ISREMOVE_CONTANS
=
"contans____isremove
"
;
public
static
final
String
REMOVE_FLAG_INPUT
=
"remove_input
"
;
/**
* ID字段
*/
...
...
yzg-util-db/src/main/java/com/yanzuoguang/dao/impl/SqlData.java
View file @
cd67d7d2
...
...
@@ -231,7 +231,7 @@ public class SqlData {
* @return
*/
public
SqlData
removeFieldRemove
()
{
this
.
removeField
(
DaoConst
.
ISREMOVE_CONTANS
);
this
.
removeField
(
DaoConst
.
REMOVE_FLAG_INPUT
);
return
this
;
}
...
...
yzg-util-db/src/main/java/com/yanzuoguang/dao/impl/TableStruct.java
View file @
cd67d7d2
...
...
@@ -147,7 +147,7 @@ public class TableStruct {
* @return
*/
public
TableFieldVo
getVersion
()
{
return
this
.
getField
(
DaoConst
.
VERS
ON
);
return
this
.
getField
(
DaoConst
.
VERS
ION_FLAG
);
}
/**
...
...
@@ -156,7 +156,7 @@ public class TableStruct {
* @return
*/
private
TableFieldVo
getRemove
()
{
return
this
.
getField
(
DaoConst
.
ISREMOVE
);
return
this
.
getField
(
DaoConst
.
REMOVE_FLAG
);
}
/**
...
...
@@ -274,7 +274,7 @@ public class TableStruct {
sql
.
add
(
field
.
inputName
,
" AND "
+
tag
+
field
.
name
+
"=?"
);
}
if
(
removeField
!=
null
)
{
sql
.
addConst
(
DaoConst
.
ISREMOVE_CONTANS
,
" AND "
+
tag
+
removeField
.
name
+
"=0"
);
sql
.
addConst
(
DaoConst
.
REMOVE_FLAG_INPUT
,
" AND "
+
tag
+
removeField
.
name
+
"=0"
);
}
}
...
...
@@ -369,7 +369,7 @@ public class TableStruct {
sql
.
addParaConst
(
field
,
DaoConst
.
WHERE_CODE
,
" AND a."
+
field
+
"=?"
);
}
if
(
getRemove
()
!=
null
)
{
sql
.
addParaConst
(
DaoConst
.
ISREMOVE_CONTANS
,
DaoConst
.
WHERE_CODE
,
" AND a."
+
DaoConst
.
ISREMOVE
+
"=0"
);
sql
.
addParaConst
(
DaoConst
.
REMOVE_FLAG_INPUT
,
DaoConst
.
WHERE_CODE
,
" AND a."
+
DaoConst
.
REMOVE_FLAG
+
"=0"
);
}
sqlTableData
.
add
(
sql
);
}
...
...
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