/// <summary> /// 同步查询数据集合 /// </summary> /// <typeparam name="T">实体</typeparam> /// <param name="connection">连接字符串</param> /// <param name="cmd">sql语句</param> /// <param name="param">参数</param> /// <param name="flag">true存储过程,false sql语句</param> /// <returns>t</returns> public IList <T> GetListAsPage <T>(string connection, string cmd, DynamicParameters param, bool flag = false) where T : class, new() { return(_sqlhelper.GetListAsPage <T>(connection, cmd, param, flag)); }