From b84a8a3de5719b5368ce5d6c3b93a2d5f68f9f3c Mon Sep 17 00:00:00 2001 From: 101captain <237651143@qq.com> Date: 星期二, 16 八月 2022 14:26:07 +0800 Subject: [PATCH] bug修改 --- 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