添加周例会删除功能

This commit is contained in:
2026-07-09 17:12:04 +08:00
parent abeb97630a
commit c02aabec43
2 changed files with 30 additions and 2 deletions
@@ -106,5 +106,24 @@ namespace BLL
db.SubmitChanges();
}
}
/// <summary>
/// 根据主键删除周例会
/// </summary>
/// <param name="weekMeetingId"></param>
public static void DeleteWeekMeetingById(string weekMeetingId)
{
Model.SGGLDB db = Funs.DB;
Model.Meeting_WeekMeeting weekMeeting = db.Meeting_WeekMeeting.FirstOrDefault(e => e.WeekMeetingId == weekMeetingId);
if (weekMeeting != null)
{
BLL.CodeRecordsService.DeleteCodeRecordsByDataId(weekMeetingId);
BLL.CommonService.DeleteAttachFileById(weekMeetingId);
////删除审核流程表
BLL.CommonService.DeleteFlowOperateByID(weekMeetingId);
db.Meeting_WeekMeeting.DeleteOnSubmit(weekMeeting);
db.SubmitChanges();
}
}
}
}
@@ -97,13 +97,22 @@ namespace WebAPI.Controllers
#endregion
#region ID删除会议
// type C
[HttpDelete]
public Model.ResponeData DeleteMeeting(string meetingId)
public Model.ResponeData DeleteMeeting(string meetingId, string type)
{
var responeData = new Model.ResponeData();
try
{
BLL.ClassMeetingService.DeleteClassMeetingById(meetingId);
if(type == "C")
{
BLL.ClassMeetingService.DeleteClassMeetingById(meetingId);
}
if(type == "W")
{
BLL.ClassMeetingService.DeleteWeekMeetingById(meetingId);
}
}
catch (Exception ex)
{