wangxin 4 weeks ago
parent
commit
5910d64bbd

+ 8 - 1
src/main/java/cn/ezhizao/project/business/controller/BizSupplierController.java

@@ -178,7 +178,14 @@ public class BizSupplierController extends BaseController
                 return AjaxResult.error("供应商编号不能重复");
                 return AjaxResult.error("供应商编号不能重复");
             }
             }
         }
         }
-        return toAjax(bizSupplierService.updateById(bizSupplier));
+
+        try {
+            bizSupplierService.updateById(bizSupplier);
+        } catch (Exception e) {
+            throw new RuntimeException(e);
+        }
+
+        return success(bizSupplier.getId());
     }
     }
 
 
     /**
     /**