From 2a0298bb6ce4584ba311d7eba8454f515d2b0b3c Mon Sep 17 00:00:00 2001 From: puzhibing <393733352@qq.com> Date: 星期三, 31 一月 2024 15:42:55 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- DriverIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/service/impl/CompanyCityServiceImpl.java | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/DriverIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/service/impl/CompanyCityServiceImpl.java b/DriverIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/service/impl/CompanyCityServiceImpl.java index 12ac48f..9af925e 100644 --- a/DriverIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/service/impl/CompanyCityServiceImpl.java +++ b/DriverIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/service/impl/CompanyCityServiceImpl.java @@ -67,4 +67,19 @@ } return null; } + + @Override + public Company query(String[] city) throws Exception { + List<Company> query = companyMapper.queryList(city, 3); + if(query.size() == 0){ + query = companyMapper.queryList(city, 2); + } + if(query.size() == 0){ + query = companyMapper.queryList(city, 1); + } + if(query.size() > 0){ + return query.get(0); + } + return null; + } } -- Gitblit v1.7.1