From fe75716c7f9b852d194a487da622702c0cd50ddb Mon Sep 17 00:00:00 2001 From: dataprince Date: Mon, 8 Jan 2024 16:03:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B9=90=E8=A7=82=E9=94=81=E3=80=81=E9=80=BB?= =?UTF-8?q?=E8=BE=91=E5=88=A0=E9=99=A4=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/ruoyi/mf/controller/CustomerController.java | 6 +++--- .../src/main/java/com/ruoyi/mf/mapper/CustomerMapper.java | 2 +- .../src/main/java/com/ruoyi/mf/mapper/GoodsMapper.java | 4 ++-- .../main/java/com/ruoyi/mf/service/ICustomerService.java | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/ruoyi-modules/ruoyi-demo/src/main/java/com/ruoyi/mf/controller/CustomerController.java b/ruoyi-modules/ruoyi-demo/src/main/java/com/ruoyi/mf/controller/CustomerController.java index 887ee76..1b1b28a 100644 --- a/ruoyi-modules/ruoyi-demo/src/main/java/com/ruoyi/mf/controller/CustomerController.java +++ b/ruoyi-modules/ruoyi-demo/src/main/java/com/ruoyi/mf/controller/CustomerController.java @@ -24,7 +24,7 @@ import com.ruoyi.common.orm.core.page.TableDataInfo; * 客户主表Controller * * @author 数据小王子 - * 2023-12-06 + * 2024-01-06 */ @Validated @RequiredArgsConstructor @@ -94,7 +94,7 @@ public class CustomerController extends BaseController { Boolean updated = customerService.update(customerBo); if (!updated) { - R.fail("修改客户主表记录失败!"); + return R.fail("修改客户主表记录失败!"); } return R.ok(); } @@ -109,7 +109,7 @@ public class CustomerController extends BaseController { boolean deleted = customerService.deleteByIds(customerIds); if (!deleted) { - R.fail("删除客户主表记录失败!"); + return R.fail("删除客户主表记录失败!"); } return R.ok(); } diff --git a/ruoyi-modules/ruoyi-demo/src/main/java/com/ruoyi/mf/mapper/CustomerMapper.java b/ruoyi-modules/ruoyi-demo/src/main/java/com/ruoyi/mf/mapper/CustomerMapper.java index 843cfce..455a526 100644 --- a/ruoyi-modules/ruoyi-demo/src/main/java/com/ruoyi/mf/mapper/CustomerMapper.java +++ b/ruoyi-modules/ruoyi-demo/src/main/java/com/ruoyi/mf/mapper/CustomerMapper.java @@ -9,7 +9,7 @@ import com.ruoyi.mf.domain.Goods; * 客户主表Mapper接口 * * @author 数据小王子 - * 2023-12-06 + * 2024-01-06 */ @Mapper public interface CustomerMapper extends BaseMapper diff --git a/ruoyi-modules/ruoyi-demo/src/main/java/com/ruoyi/mf/mapper/GoodsMapper.java b/ruoyi-modules/ruoyi-demo/src/main/java/com/ruoyi/mf/mapper/GoodsMapper.java index 20afae7..65f3097 100644 --- a/ruoyi-modules/ruoyi-demo/src/main/java/com/ruoyi/mf/mapper/GoodsMapper.java +++ b/ruoyi-modules/ruoyi-demo/src/main/java/com/ruoyi/mf/mapper/GoodsMapper.java @@ -5,10 +5,10 @@ import org.apache.ibatis.annotations.Mapper; import com.ruoyi.mf.domain.Goods; /** - * 商品子表Mapper接口 + * 商品子Mapper接口 * * @author 数据小王子 - * 2023-12-06 + * 2024-01-06 */ @Mapper public interface GoodsMapper extends BaseMapper diff --git a/ruoyi-modules/ruoyi-demo/src/main/java/com/ruoyi/mf/service/ICustomerService.java b/ruoyi-modules/ruoyi-demo/src/main/java/com/ruoyi/mf/service/ICustomerService.java index a00c83c..f6efcc0 100644 --- a/ruoyi-modules/ruoyi-demo/src/main/java/com/ruoyi/mf/service/ICustomerService.java +++ b/ruoyi-modules/ruoyi-demo/src/main/java/com/ruoyi/mf/service/ICustomerService.java @@ -11,7 +11,7 @@ import com.ruoyi.common.orm.core.page.TableDataInfo; * 客户主表Service接口 * * @author 数据小王子 - * 2023-12-06 + * 2024-01-06 */ public interface ICustomerService extends IBaseService {