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
91d711d6
Commit
91d711d6
authored
Nov 21, 2023
by
yanzg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改日志打印功能,打印更加详细的日志
parent
e4e873b2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
12 deletions
+7
-12
BaseDaoImpl.java
...b/src/main/java/com/yanzuoguang/dao/impl/BaseDaoImpl.java
+1
-2
TableStruct.java
...b/src/main/java/com/yanzuoguang/dao/impl/TableStruct.java
+6
-10
No files found.
yzg-util-db/src/main/java/com/yanzuoguang/dao/impl/BaseDaoImpl.java
View file @
91d711d6
...
@@ -660,9 +660,8 @@ public abstract class BaseDaoImpl extends BaseDaoSql implements BaseDao {
...
@@ -660,9 +660,8 @@ public abstract class BaseDaoImpl extends BaseDaoSql implements BaseDao {
}
}
String
md5Field
=
this
.
table
.
getTable
().
getMD5KeyName
();
String
md5Field
=
this
.
table
.
getTable
().
getMD5KeyName
();
String
md5From
=
StringHelper
.
isEmpty
(
md5Field
)
?
StringHelper
.
EMPTY
:
ObjectHelper
.
getString
(
model
,
md5Field
);
// 获取前台分组的MD5标识
// 获取前台分组的MD5标识
String
md5
=
md5From
;
String
md5
=
StringHelper
.
isEmpty
(
md5Field
)
?
StringHelper
.
EMPTY
:
ObjectHelper
.
getString
(
model
,
md5Field
);
;
if
(
StringHelper
.
isEmpty
(
md5
))
{
if
(
StringHelper
.
isEmpty
(
md5
))
{
md5
=
this
.
getMd5
(
DaoConst
.
GROUP_QUERY
,
model
);
md5
=
this
.
getMd5
(
DaoConst
.
GROUP_QUERY
,
model
);
}
}
...
...
yzg-util-db/src/main/java/com/yanzuoguang/dao/impl/TableStruct.java
View file @
91d711d6
...
@@ -460,18 +460,14 @@ public class TableStruct {
...
@@ -460,18 +460,14 @@ public class TableStruct {
TableFieldVo
key
=
this
.
getKey
();
TableFieldVo
key
=
this
.
getKey
();
// 第一个增加的字段,不需要增加 ","
// 第一个增加的字段,不需要增加 ","
String
flag
=
StringHelper
.
EMPTY
;
if
(
this
.
getKeyType
()
==
String
.
class
)
{
sql
.
addParaConst
(
key
.
inputName
,
CODE_FIELD
,
key
.
name
,
sql
.
addParaConst
(
key
.
inputName
,
CODE_FIELD
,
key
.
name
,
CODE_VALUES
,
CODE_PARA
CODE_VALUES
,
CODE_PARA
);
);
flag
=
CODE_SPLIT
;
}
for
(
TableFieldVo
field
:
this
.
getFields
())
{
for
(
TableFieldVo
field
:
this
.
getFields
())
{
sql
.
addParaConst
(
field
.
inputName
,
CODE_FIELD
,
flag
+
field
.
name
,
sql
.
addParaConst
(
field
.
inputName
,
CODE_VALUES
,
flag
+
CODE_PARA
CODE_FIELD
,
CODE_SPLIT
+
field
.
name
,
CODE_VALUES
,
CODE_SPLIT
+
CODE_PARA
);
);
flag
=
CODE_SPLIT
;
}
}
return
sql
;
return
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