20250704 委托单退回

This commit is contained in:
2025-07-04 15:41:55 +08:00
parent 2fe06c242f
commit 4b878c2c08
3 changed files with 30 additions and 9 deletions
@@ -144,5 +144,21 @@ namespace BLL
return isShow;
}
#endregion
/// <summary>
/// 根据委托Id删除明细
/// </summary>
/// <param name="trustBatchId"></param>
public static void DeleteTrustItemByTrustBatchId(string trustBatchId)
{
Model.SGGLDB db = Funs.DB;
var trustBatchItems = from x in db.HJGL_Batch_BatchTrustItem where x.TrustBatchId == trustBatchId select x;
if (trustBatchItems != null)
{
db.HJGL_Batch_BatchTrustItem.DeleteAllOnSubmit(trustBatchItems);
db.SubmitChanges();
}
}
}
}