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
66f76759
Commit
66f76759
authored
May 06, 2020
by
yanzg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口文档的支持
parent
ebb2efa4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
1 deletion
+25
-1
BaseDao.java
yzg-util-db/src/main/java/com/yanzuoguang/dao/BaseDao.java
+9
-1
BaseDaoImpl.java
...b/src/main/java/com/yanzuoguang/dao/impl/BaseDaoImpl.java
+16
-0
No files found.
yzg-util-db/src/main/java/com/yanzuoguang/dao/BaseDao.java
View file @
66f76759
package
com
.
yanzuoguang
.
dao
;
import
com.yanzuoguang.util.vo.DataDaoVo
;
import
com.yanzuoguang.util.vo.PageSizeData
;
import
com.yanzuoguang.util.vo.PageSizeReqVo
;
...
...
@@ -268,7 +269,6 @@ public interface BaseDao {
*/
int
removeArray
(
Object
...
model
);
/***
* 查询数据是否存在,当存在时修改,否则增加
* @param cls 需要创建的实体的类型
...
...
@@ -323,4 +323,12 @@ public interface BaseDao {
* @return 返回列表
*/
<
T
extends
Object
>
List
<
String
>
addGroupArray
(
Class
<
T
>
cls
,
T
...
models
);
/**
* 对数据据进行集合操作
*
* @param daoVo
* @return
*/
List
<
String
>
dataDao
(
DataDaoVo
daoVo
);
}
yzg-util-db/src/main/java/com/yanzuoguang/dao/impl/BaseDaoImpl.java
View file @
66f76759
...
...
@@ -873,4 +873,20 @@ public abstract class BaseDaoImpl extends BaseDaoSql implements BaseDao {
throw
new
CodeException
(
msg
);
}
}
/**
* 对数据据进行集合操作
*
* @param daoVo
* @return
*/
@Override
public
List
<
String
>
dataDao
(
DataDaoVo
daoVo
)
{
List
<
String
>
res
=
new
ArrayList
<>();
res
.
addAll
(
this
.
createList
(
daoVo
.
getCreates
()));
res
.
addAll
(
this
.
updateList
(
daoVo
.
getUpdates
()));
this
.
removeList
(
daoVo
.
getRemoves
());
return
res
;
}
}
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