增加一个getDataBySql简便调用

This commit is contained in:
zhulh 2019-08-23 11:18:13 +08:00
parent 7e34391848
commit 6072bb7288

View File

@ -564,4 +564,13 @@ public class DataOperatorUtil {
return getDataBySql( null, sql, params );
}
/**
* 再重构一个更简便调用
* @param sql
* @return
* @throws Exception
*/
public static List<Map<String,String>> getDataBySql( String sql ) throws Exception {
return getDataBySql( null, sql, null );
}
}