From ae32c3a7d77e2ed114555623c70e3fbd1d6aba59 Mon Sep 17 00:00:00 2001
From: wang-hao-jie <1550036656@qq.com>
Date: 星期四, 10 三月 2022 08:47:45 +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