From 7005c13237516d5dd965afb1b3c5aa734a01a661 Mon Sep 17 00:00:00 2001 From: wang-hao-jie <1550036656@qq.com> Date: 星期三, 23 三月 2022 17:27:59 +0800 Subject: [PATCH] 最新版本 --- xboot-modules/xboot-your/src/main/java/cn/exrick/xboot/your/controller/AreaController.java | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/xboot-modules/xboot-your/src/main/java/cn/exrick/xboot/your/controller/AreaController.java b/xboot-modules/xboot-your/src/main/java/cn/exrick/xboot/your/controller/AreaController.java index 7268357..8cba742 100644 --- a/xboot-modules/xboot-your/src/main/java/cn/exrick/xboot/your/controller/AreaController.java +++ b/xboot-modules/xboot-your/src/main/java/cn/exrick/xboot/your/controller/AreaController.java @@ -62,11 +62,11 @@ @ApiOperation(value = "缂栬緫鎴栨洿鏂版暟鎹�") public Result<Area> saveOrUpdate(Area area) { QueryWrapper<Area> wrapper = new QueryWrapper<>(); - if (!area.getUserId().equals("0")){ - wrapper.eq("user_id",area.getUserId()); + if (StrUtil.isNotEmpty(area.getCarId())){ + wrapper.eq("car_id",area.getCarId()); Area area1 = iAreaService.getOne(wrapper); if (area1 != null && !area.getId().equals(area1.getId())){ - return new ResultUtil<Area>().setErrorMsg("璇ラ厤閫佸憳宸茶鍏朵粬鐗囧尯缁戝畾,璇峰厛瑙g粦"); + return new ResultUtil<Area>().setErrorMsg("璇ヨ溅杈嗗凡琚叾瀹冪墖鍖虹粦瀹�,璇峰厛瑙g粦"); } } -- Gitblit v1.9.1