提交代码

This commit is contained in:
2024-01-31 16:32:26 +08:00
parent 5c58e948ef
commit df9bf75f24
7 changed files with 222 additions and 9 deletions
@@ -83,10 +83,9 @@ namespace BLL
Model.DriverRun_DriverRunPlan newDriverRunPlan = Funs.DB.DriverRun_DriverRunPlan.FirstOrDefault(e => e.DriverRunPlanId == driverRunPlanId);
if (newDriverRunPlan != null)
{
if (!string.IsNullOrEmpty(newDriverRunPlan.AttachUrl))
{
UploadAttachmentService.DeleteFile(Funs.RootPath, newDriverRunPlan.AttachUrl);
}
////删除附件表
BLL.CommonService.DeleteAttachFileById(newDriverRunPlan.DriverRunPlanId);
BLL.CommonService.DeleteAttachFileById(newDriverRunPlan.DriverRunPlanId + "K");
Funs.DB.DriverRun_DriverRunPlan.DeleteOnSubmit(newDriverRunPlan);
Funs.DB.SubmitChanges();
}