Commit 66f76759 authored by yanzg's avatar yanzg

接口文档的支持

parent ebb2efa4
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);
}
......@@ -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;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment