修改仓储批量更新和批量删除方法

This commit is contained in:
2022-04-19 09:01:59 +08:00
parent 7c1fdde2f3
commit eda7ac40bf
53 changed files with 316 additions and 254 deletions
@@ -70,7 +70,7 @@ namespace IRaCIS.Application.Services
//{
// return ResponseOutput.NotOk("该CRO下存在用户,暂时无法删除。");
//}
var success = await _croRepository.DeleteFromQueryAsync(x=>x.Id== cROCompanyId);
var success = await _croRepository.BatchDeleteAsync(x=>x.Id== cROCompanyId);
return ResponseOutput.Result(success);
}
@@ -54,7 +54,7 @@ namespace IRaCIS.Application.Services
// return ResponseOutput.NotOk("该医院下存在用户,暂时无法删除。");
//}
var success = await _hospitalRepository.DeleteFromQueryAsync(x => x.Id == hospitalId);
var success = await _hospitalRepository.BatchDeleteAsync(x => x.Id == hospitalId);
return ResponseOutput.Result(success);
}
@@ -69,7 +69,7 @@ namespace IRaCIS.Application.Services
return ResponseOutput.NotOk("This site has participated in the trial and couldn't be deleted.");
}
var success = await _siteRepository.DeleteFromQueryAsync(x => x.Id == siteId);
var success = await _siteRepository.BatchDeleteAsync(x => x.Id == siteId);
return ResponseOutput.Result(success);
}
}
@@ -75,7 +75,7 @@ namespace IRaCIS.Application.Services
//}
var success = await _sponsorRepository.DeleteFromQueryAsync(x => x.Id == sponsorId);
var success = await _sponsorRepository.BatchDeleteAsync(x => x.Id == sponsorId);
return ResponseOutput.Result(success);
}
}