From e25d138ac2e1a2b271b27bbc1973f0b5898b1d82 Mon Sep 17 00:00:00 2001
From: Pu Zhibing <393733352@qq.com>
Date: 星期五, 15 八月 2025 15:05:11 +0800
Subject: [PATCH] 修改bug

---
 ManagementQYTTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/controller/specialTrain/TSystemPriceController.java |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/ManagementQYTTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/controller/specialTrain/TSystemPriceController.java b/ManagementQYTTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/controller/specialTrain/TSystemPriceController.java
index 53eebf1..530efb6 100644
--- a/ManagementQYTTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/controller/specialTrain/TSystemPriceController.java
+++ b/ManagementQYTTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/controller/specialTrain/TSystemPriceController.java
@@ -305,10 +305,10 @@
         }
         if(null == one){
             one = systemPriceCityService.selectOne(new EntityWrapper<SystemPriceCity>().eq("areaCode", systemPriceCity.getAreaCode())
-                    .eq("cityCode", systemPriceCity.getCityCode()).ne("flag", 3));
+                    .eq("cityCode", systemPriceCity.getCityCode()).isNull("provinceCode").ne("flag", 3));
             if(null == one){
                 one = systemPriceCityService.selectOne(new EntityWrapper<SystemPriceCity>().eq("areaCode", systemPriceCity.getAreaCode())
-                        .ne("flag", 3));
+                        .isNull("cityCode").isNull("provinceCode").ne("flag", 3));
                 if(null != one){
                     return new ErrorTip(500, "不能重复添加城市");
                 }
@@ -383,10 +383,10 @@
         }
         if(null == one){
             one = systemPriceCityService.selectOne(new EntityWrapper<SystemPriceCity>().eq("areaCode", systemPriceCity.getAreaCode())
-                    .eq("cityCode", systemPriceCity.getCityCode()).ne("flag", 3));
+                    .eq("cityCode", systemPriceCity.getCityCode()).isNull("provinceCode").ne("flag", 3));
             if(null == one){
                 one = systemPriceCityService.selectOne(new EntityWrapper<SystemPriceCity>().eq("areaCode", systemPriceCity.getAreaCode())
-                        .ne("flag", 3));
+                        .isNull("cityCode").isNull("provinceCode").ne("flag", 3));
                 if(null != one && !systemPriceCity.getId().equals(one.getId())){
                     return new ErrorTip(500, "不能重复添加城市");
                 }

--
Gitblit v1.7.1