异常开始结束带代码提交

This commit is contained in:
DEVICE8\12494
2023-05-21 21:03:45 +08:00
parent 23dd5a7604
commit 709ef585b2
34 changed files with 1066 additions and 33 deletions

View File

@@ -37,8 +37,8 @@ namespace Tnb.EquipMgr
protected async Task Relevance<TSrc, TDest>(TSrc input, string mColumnName, string name, Expression<Func<TDest, bool>> deleleExp) where TDest : BaseEntity<string>, new()
where TSrc : BaseMoldMaintainInput
{
await _db.Deleteable<TDest>().Where(deleleExp).ExecuteCommandAsync();
if (input == null) throw new ArgumentNullException(nameof(input));
await _db.Deleteable<TDest>().Where(deleleExp).ExecuteCommandAsync();
var entities = new List<TDest>();
if (input.ids?.Count > 0)
{
@@ -46,7 +46,7 @@ namespace Tnb.EquipMgr
{
var pk = id;
TDest entity = new();
entity.PropertySetValue(mColumnName, input.item_group_id);
entity.PropertySetValue(mColumnName, input.id);
entity.PropertySetValue(name, pk);
entities.Add(entity);
}