public async Task <IResponseEntity> DeleteBatchAsync(string[] ids) { if (ids == null || ids.Length == 0) { return(ResponseEntity.Error("删除对象的主键获取失败")); } var result = await _sysUserRepository.Where(m => ids.Contains(m.Id)).ToDelete().ExecuteAffrowsAsync(); return(ResponseEntity.Result(result > 0)); }