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 {