From c203ff63489126a94d1be5dbfe32cadb69a70594 Mon Sep 17 00:00:00 2001
From: jiangqs <jiangqs>
Date: 星期四, 25 五月 2023 16:26:56 +0800
Subject: [PATCH] 完善数据库和框架

---
 ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/shop/service/impl/shop/ShopCertificateServiceImpl.java |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/shop/service/impl/shop/ShopCertificateServiceImpl.java b/ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/shop/service/impl/shop/ShopCertificateServiceImpl.java
index 123639a..fcfa43d 100644
--- a/ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/shop/service/impl/shop/ShopCertificateServiceImpl.java
+++ b/ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/shop/service/impl/shop/ShopCertificateServiceImpl.java
@@ -67,4 +67,16 @@
         shopCertificate.setDelFlag(0);
         this.saveOrUpdate(shopCertificate);
     }
+
+    /**
+     *
+     * @param certId
+     */
+    @Override
+    public void deleteShopCertificate(Long certId){
+        ShopCertificate shopCertificate = this.getById(certId);
+        shopCertificate.setDelFlag(1);
+        shopCertificate.setCerStatus(-1);
+        this.saveOrUpdate(shopCertificate);
+    }
 }

--
Gitblit v1.7.1