/// <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 Task <IList <T> > GetListAsync <T>(string connection, string cmd, DynamicParameters param, bool flag = false) where T : class, new() { return(_sqlhelper.GetListAsync <T>(connection, cmd, param, flag)); }