田爽 9 месяцев назад
Родитель
Сommit
097b3c6e66
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      src/Hotline.Api/Controllers/OrderController.cs

+ 3 - 1
src/Hotline.Api/Controllers/OrderController.cs

@@ -1832,7 +1832,9 @@ public class OrderController : BaseController
         _mapper.Map(dto.Data, screen);
         if (dto.Data.Files.Any())
             screen.FileJson = await _fileRepository.AddFileAsync(dto.Data.Files, screen.Id, "", HttpContext.RequestAborted);
-        screen.SendBackApplyNum++;
+        else
+            screen.FileJson = null;
+		screen.SendBackApplyNum++;
 		await _orderScreenRepository.UpdateAsync(screen, HttpContext.RequestAborted);
         try
         {