From 1f203708b6018b57eaefc08951a476f9f6ea08f0 Mon Sep 17 00:00:00 2001 From: yanghui <2536613402@qq.com> Date: 星期五, 02 十二月 2022 11:06:47 +0800 Subject: [PATCH] #feat 设置时间 --- 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