Commit 4150740c by s_guodong

增加 dbReadset方法

parent 6b35dacd
......@@ -187,6 +187,11 @@ public class MyBatisDaoSession extends AbstractDaoSession implements IDaoSession
}
@Override
public <T extends IModule> int dbReadset(IModuleList<T>[] lists, CacheOption cacheOption, String whereSql, Object[] param) {
return dbReadset(lists, 0, whereSql, param);
}
@Override
public <T extends IModule> int dbReadset(IModuleList<T> list, Argument... args) {
String moduleDB = MdaUtils.getModuleListDB(list);
DynamicDataSourceContextHolder.setDataSourceType(moduleDB);
......
......@@ -26,6 +26,8 @@ public interface IDaoSession {
<T extends IModule> int dbReadset(ModuleList<T> list, CacheOption cacheOption, Argument... args);
<T extends IModule> int dbReadset(IModuleList<T>[] list, CacheOption cacheOption,String whereSql, Object[] param);
<T extends IModule> int dbReadset(IModuleList<T> list, String whereSql);
<T extends IModule> int dbReadset(IModuleList<T> list, String whereSql,Object[] params);
......
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