Commit 1e470748 by s_guodong

修改运行时 支持dbReadset

parent 758f5298
......@@ -238,6 +238,12 @@ public class MyBatisDaoSession extends AbstractDaoSession implements IDaoSession
}
@Override
public <T extends IModule> int dbReadset(IModuleList<T> list, String whereSql, String... params) {
List<String> param = Arrays.asList(params);
return dbReadset(list, whereSql, param.toArray());
}
@Override
public <T extends IModule> int dbReadset(IModuleList<T>[] lists, int maxSize, String whereClause, Object[] datas) {
String moduleDB = MdaUtils.getModuleListsDB(lists);
DynamicDataSourceContextHolder.setDataSourceType(moduleDB);
......
......@@ -24,6 +24,8 @@ public interface IDaoSession {
<T extends IModule> int dbReadset(IModuleList<T> list, String whereSql,Object[] params);
<T extends IModule> int dbReadset(IModuleList<T> list, String whereSql,String... params);
<T extends IModule> int dbReadset(IModuleList<T>[] lists, int maxSize, String whereClause, Object[] datas);
void dbReadset(IModuleList[] lists, String whereClause, Object[] datas);
......
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