浏览代码

[fix]
允许用户删除审核未通过的游记

limeng 4 月之前
父节点
当前提交
57db5c5d64

+ 2 - 1
application-webadmin/src/main/java/com/tourism/webadmin/app/website/controller/WebSiteTourismTravelNotesPublishController.java

@@ -204,7 +204,8 @@ public class WebSiteTourismTravelNotesPublishController {
         if(tourismProjectTravelNotesWrite == null){
             return ResponseResult.success();
         }else {
-            if(!tourismProjectTravelNotesWrite.getState().equals(AuditState.DRAFT)){
+            if(!tourismProjectTravelNotesWrite.getState().equals(AuditState.DRAFT)
+                    && !tourismProjectTravelNotesWrite.getState().equals(AuditState.FAILAUDIT)){
                 return ResponseResult.error(ErrorCodeEnum.UPLOAD_FILE_FAILED,"该数据状态不允许删除!");
             }
             //不是本人创建的数据