From e321dcd6522dcd3417eec1a564890642b8eddeeb Mon Sep 17 00:00:00 2001 From: daiyongfei <974332738@qq.com> Date: Fri, 18 Jul 2025 10:23:04 +0800 Subject: [PATCH] =?UTF-8?q?=20=E4=BF=AE=E6=94=B9=E5=AE=A2=E6=88=B7?= =?UTF-8?q?=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../customer/service/impl/CustomerServiceImpl.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/fys-modules/fys-customer/src/main/java/com/fuyuanshen/customer/service/impl/CustomerServiceImpl.java b/fys-modules/fys-customer/src/main/java/com/fuyuanshen/customer/service/impl/CustomerServiceImpl.java index 49baa0b..ac996d4 100644 --- a/fys-modules/fys-customer/src/main/java/com/fuyuanshen/customer/service/impl/CustomerServiceImpl.java +++ b/fys-modules/fys-customer/src/main/java/com/fuyuanshen/customer/service/impl/CustomerServiceImpl.java @@ -112,6 +112,11 @@ public class CustomerServiceImpl extends ServiceImpl i @Override @Transactional(rollbackFor = Exception.class) public void updateCustomer(Customer resources) throws Exception { + if (resources.getEnabled()) { + resources.setStatus("0"); + } else { + resources.setStatus("1"); + } saveOrUpdate(resources); }