From 26079aa3c34f47e952a9538a93d6f8a3bab9a0fc Mon Sep 17 00:00:00 2001
From: 无关风月 <443237572@qq.com>
Date: 星期五, 23 八月 2024 09:12:44 +0800
Subject: [PATCH] Merge branch '2.0' of http://120.76.84.145:10101/gitblit/r/java/IgoTravel into 2.0

---
 DriverIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/DriverMapper.xml |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/DriverIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/DriverMapper.xml b/DriverIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/DriverMapper.xml
index 75c57bb..e3fd3ba 100644
--- a/DriverIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/DriverMapper.xml
+++ b/DriverIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/DriverMapper.xml
@@ -115,7 +115,7 @@
     <select id="queryHomeData" resultType="map">
         select
         b.carLicensePlate as licensePlate,
-        CONCAT(d.`name`, c.`name`, ' . ', b.carColor) as brand,
+        CONCAT(d.`name`, ' ', c.`name`, ' . ', b.carColor) as brand,
         (
         (select count(id) from t_order_private_car where driverId = a.id and state in (7, 8, 9) and to_days(insertTime) = to_days(now())) +
         (select count(id) from t_order_taxi where driverId = a.id and state in (7, 8, 9) and to_days(insertTime) = to_days(now())) +
@@ -179,10 +179,8 @@
         b.vehicleId,
         CONCAT(d.`name`, ' ', c.`name`) as brand,
         (
-        (select count(id) from t_order_private_car where driverId = a.id and state in (7, 8, 9)) +
-        (select count(id) from t_order_taxi where driverId = a.id and state in (7, 8, 9)) +
-        (select count(id) from t_order_cross_city where driverId = a.id and state in (6, 8, 9)) +
-        (select count(id) from t_order_logistics where driverId = a.id and state in (6, 9))
+        (select count(id) from t_order_private_car where driverId = a.id and state in (6, 7, 8, 9)) +
+        (select count(id) from t_order_logistics where driverId = a.id and state in (6, 7, 8, 9))
         ) as orderNum,
         ((select sum(fraction) from t_order_evaluate where driverId = a.id) / (select count(fraction) from t_order_evaluate where driverId = a.id)) as score
         from t_driver a

--
Gitblit v1.7.1