From 4c34765701734c7909df0e7fecbfecf8ff0bd9b2 Mon Sep 17 00:00:00 2001
From: chenlu <1320612696@qq.com>
Date: 星期四, 16 五月 2024 14:20:44 +0800
Subject: [PATCH] 修改前端返回异常方法

---
 north-glass-erp/src/main/java/com/example/erp/controller/pp/ProcessCardController.java |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/north-glass-erp/src/main/java/com/example/erp/controller/pp/ProcessCardController.java b/north-glass-erp/src/main/java/com/example/erp/controller/pp/ProcessCardController.java
index 6af1dbf..0360acd 100644
--- a/north-glass-erp/src/main/java/com/example/erp/controller/pp/ProcessCardController.java
+++ b/north-glass-erp/src/main/java/com/example/erp/controller/pp/ProcessCardController.java
@@ -70,12 +70,13 @@
             @PathVariable String orderId,
             @PathVariable String processId
     ){
-        if(flowCardService.deleteFlowCardSv(orderId,processId)){
-            return Result.seccess();
-        }else {
-            throw new ServiceException(Constants.Code_500,"鍒犻櫎澶辫触,璇锋鏌ユ槸鍚﹀凡鎶ュ伐");
-
-        }
+//        if(flowCardService.deleteFlowCardSv(orderId,processId)){
+//            return Result.seccess();
+//        }else {
+//            throw new ServiceException(Constants.Code_500,"鍒犻櫎澶辫触,璇锋鏌ユ槸鍚﹀凡鎶ュ伐");
+//
+//        }
+        return  Result.seccess(flowCardService.deleteFlowCardSv(orderId,processId));
     }
 
     //淇敼鎺掔増鐘舵��

--
Gitblit v1.8.0