修改安全月报

This commit is contained in:
2024-09-23 16:55:04 +08:00
parent b6b6c69a17
commit 6522d6df41
5 changed files with 42 additions and 21 deletions
@@ -55,8 +55,11 @@ namespace BLL
public static void DeletePersonSortsByMonthReportId(string monthReportId)
{
var q = (from x in db.Manager_PersonSortC where x.MonthReportId == monthReportId select x).ToList();
db.Manager_PersonSortC.DeleteAllOnSubmit(q);
db.SubmitChanges();
if (q.Count>0)
{
db.Manager_PersonSortC.DeleteAllOnSubmit(q);
db.SubmitChanges();
}
}
/// <summary>