修改安全月报

This commit is contained in:
潘鸿锋 2024-09-25 14:35:55 +08:00
parent 1557fcc77d
commit ad8f61470a
1 changed files with 7 additions and 3 deletions

View File

@ -77,9 +77,13 @@ namespace BLL
/// <param name="monthReportId">月报告主键</param>
public static void DeleteCheckSortsByMonthReportId(string monthReportId)
{
var q = (from x in db.Manager_CheckSortC where x.MonthReportId == monthReportId select x).ToList();
db.Manager_CheckSortC.DeleteAllOnSubmit(q);
db.SubmitChanges();
var q = Funs.DB.Manager_CheckSortC.Where(x=>x.MonthReportId== monthReportId).ToList();
if (q.Count>0)
{
Funs.DB.Manager_CheckSortC.DeleteAllOnSubmit(q);
Funs.DB.SubmitChanges();
}
}
}
}