From 2f3bbf0372e5c1f8b6b1426db2c14b3595cb0968 Mon Sep 17 00:00:00 2001
From: zxl <763096477@qq.com>
Date: 星期三, 30 四月 2025 17:10:52 +0800
Subject: [PATCH] 订单下发,订单下发定时任务处理

---
 ycl-server/src/main/resources/mapper/zgyw/PlatformOnlineMapper.xml |   19 ++++++++++++-------
 1 files changed, 12 insertions(+), 7 deletions(-)

diff --git a/ycl-server/src/main/resources/mapper/zgyw/PlatformOnlineMapper.xml b/ycl-server/src/main/resources/mapper/zgyw/PlatformOnlineMapper.xml
index d52330e..5b32179 100644
--- a/ycl-server/src/main/resources/mapper/zgyw/PlatformOnlineMapper.xml
+++ b/ycl-server/src/main/resources/mapper/zgyw/PlatformOnlineMapper.xml
@@ -10,12 +10,14 @@
         <result column="today_outline_sed" property="todayOutlineSed" />
         <result column="update_time" property="updateTime" />
         <result column="create_time" property="createTime" />
+        <result column="area" property="area" />
     </resultMap>
 
     <select id="getById" resultMap="BaseResultMap">
         SELECT
-            TPO.platform_name,
-            TPO.platform_ip,
+            TP.platform_name,
+            TP.platform_ip,
+            TP.area,
             TPO.create_date,
             TPO.today_outline_sed,
             TPO.update_time,
@@ -23,6 +25,7 @@
             TPO.id
         FROM
             t_platform_online TPO
+                INNER JOIN t_platform TP ON TP.id = TPO.platform_id
         WHERE
             TPO.id = #{id} AND TPO.deleted = 0
     </select>
@@ -30,8 +33,9 @@
 
     <select id="getPage" resultMap="BaseResultMap">
         SELECT
-            TPO.platform_name,
-            TPO.platform_ip,
+            TP.platform_name,
+            TP.platform_ip,
+            TP.area,
             TPO.create_date,
             TPO.today_outline_sed,
             TPO.update_time,
@@ -39,6 +43,7 @@
             TPO.id
         FROM
             t_platform_online TPO
+                INNER JOIN t_platform TP ON TP.id = TPO.platform_id
         WHERE
             TPO.deleted = 0
             <if test="query.startTime != null and query.endTime != null">
@@ -47,8 +52,8 @@
     </select>
 
 
-    <select id="sumYesterday" resultMap="BaseResultMap">
-        select * from t_platform_online
-        where create_date between #{startDate} and #{endDate}
+    <select id="yesterdayData" resultMap="BaseResultMap">
+        select po.*,p.area from t_platform_online po inner join t_platform p on po.platform_id = p.id
+        where po.create_date between #{startDate} and #{endDate}
     </select>
 </mapper>

--
Gitblit v1.8.0