From 8f9aa473748e568d8a066271a38a1aa4a563a7f7 Mon Sep 17 00:00:00 2001 From: 44323 <443237572@qq.com> Date: 星期五, 17 五月 2024 17:55:21 +0800 Subject: [PATCH] 车型、司机活动、平台佣金统计代码提交 --- 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