From 4fd5d868a3e3b28bf6f55a1aa12212db70e1550f Mon Sep 17 00:00:00 2001 From: lidongdong <1459917685@qq.com> Date: 星期五, 07 四月 2023 18:27:34 +0800 Subject: [PATCH] 修改 微服务新增报错 --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/McsMerchantServiceImpl.java | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/McsMerchantServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/McsMerchantServiceImpl.java index 023359a..7c20dff 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/McsMerchantServiceImpl.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/McsMerchantServiceImpl.java @@ -173,7 +173,10 @@ return R.fail("商家不存在"); } mcsMerchant.setIsDel(true); - this.baseMapper.updateById(mcsMerchant); + int num = this.baseMapper.updateById(mcsMerchant); + if (num > 0) { + this.baseMapper.enableUserStatus(mcsMerchant.getUserId()); + } return R.ok(); } -- Gitblit v1.7.1