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
d738a26b
Commit
d738a26b
authored
Mar 21, 2019
by
yanzg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
颜佐光工具类
parent
89a50d84
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
394 additions
and
512 deletions
+394
-512
InitDao.java
...l-base/src/main/java/com/yanzuoguang/util/vo/InitDao.java
+11
-0
BaseDao.java
...l-db/src/main/java/com/yanzuoguang/db/db/dao/BaseDao.java
+0
-9
DaoConst.java
...-db/src/main/java/com/yanzuoguang/db/db/dao/DaoConst.java
+5
-1
BaseDaoImpl.java
...main/java/com/yanzuoguang/db/db/dao/Impl/BaseDaoImpl.java
+377
-502
TableStruct.java
...main/java/com/yanzuoguang/db/db/dao/Impl/TableStruct.java
+1
-0
No files found.
yzg-util-base/src/main/java/com/yanzuoguang/util/vo/InitDao.java
0 → 100644
View file @
d738a26b
package
com
.
yanzuoguang
.
util
.
vo
;
/**
* 初始化Dao数据
*/
public
interface
InitDao
{
/**
* 初始化数据,去掉空值
*/
void
init
();
}
yzg-util-db/src/main/java/com/yanzuoguang/db/db/dao/BaseDao.java
View file @
d738a26b
...
@@ -49,13 +49,4 @@ public interface BaseDao {
...
@@ -49,13 +49,4 @@ public interface BaseDao {
* @return 需要返回的数据
* @return 需要返回的数据
*/
*/
<
T
extends
Object
>
T
load
(
Object
model
,
Class
<
T
>
cls
);
<
T
extends
Object
>
T
load
(
Object
model
,
Class
<
T
>
cls
);
/**
* 写入当前表的日志
*
* @param logType 日志类型,参照LogModel中的常量
* @param id 操作的当前表的主键编号
* @param data 需要处理的数据
*/
void
writeLog
(
int
logType
,
String
id
,
Object
data
);
}
}
yzg-util-db/src/main/java/com/yanzuoguang/db/db/dao/
Impl/
DaoConst.java
→
yzg-util-db/src/main/java/com/yanzuoguang/db/db/dao/DaoConst.java
View file @
d738a26b
package
com
.
yanzuoguang
.
db
.
db
.
dao
.
Impl
;
package
com
.
yanzuoguang
.
db
.
db
.
dao
;
/**
/**
* created by yanzu on 2017/5/30.
* created by yanzu on 2017/5/30.
*/
*/
public
class
DaoConst
{
public
class
DaoConst
{
public
static
final
int
OperatorTypeCreate
=
0
;
public
static
final
int
OperatorTypeUpdate
=
1
;
public
static
final
int
OperatorTypeRemove
=
2
;
public
static
final
int
OperatorTypeLoad
=
3
;
/**
/**
* 创建
* 创建
...
...
yzg-util-db/src/main/java/com/yanzuoguang/db/db/dao/Impl/BaseDaoImpl.java
View file @
d738a26b
This diff is collapsed.
Click to expand it.
yzg-util-db/src/main/java/com/yanzuoguang/db/db/dao/Impl/TableStruct.java
View file @
d738a26b
package
com
.
yanzuoguang
.
db
.
db
.
dao
.
Impl
;
package
com
.
yanzuoguang
.
db
.
db
.
dao
.
Impl
;
import
com.yanzuoguang.db.db.dao.DaoConst
;
import
com.yanzuoguang.db.db.dao.TableAnnotation
;
import
com.yanzuoguang.db.db.dao.TableAnnotation
;
import
com.yanzuoguang.util.helper.StringHelper
;
import
com.yanzuoguang.util.helper.StringHelper
;
import
com.yanzuoguang.util.obj.MethodField
;
import
com.yanzuoguang.util.obj.MethodField
;
...
...
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