..
This commit is contained in:
@@ -884,7 +884,6 @@ public interface BaseService<T> {
|
||||
*/
|
||||
Pagination listPageMap(Integer pageNumber, int pageSize, Condition cnd);
|
||||
|
||||
|
||||
/**
|
||||
* DataTable Page
|
||||
*
|
||||
@@ -950,4 +949,12 @@ public interface BaseService<T> {
|
||||
* @return
|
||||
*/
|
||||
NutMap data(int length, int start, int draw, Cnd cnd, String linkName);
|
||||
|
||||
/**
|
||||
* 获取Map
|
||||
* @param sql
|
||||
* @return
|
||||
*/
|
||||
NutMap fetchMap(Sql sql);
|
||||
|
||||
}
|
||||
|
||||
@@ -1436,4 +1436,12 @@ public class BaseServiceImpl<T> extends EntityService<T> implements BaseService<
|
||||
re.put("recordsTotal", length);
|
||||
return re;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NutMap fetchMap(Sql sql) {
|
||||
sql.setCallback(Sqls.callback.map());
|
||||
execute(sql);
|
||||
NutMap result = (NutMap)sql.getResult();
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user