From 7a7acc33c5658643a54c42bfd6f70ed3881a3248 Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期六, 31 八月 2024 19:24:44 +0800
Subject: [PATCH] 点位新增部级标签、点位导入导出优化
---
ycl-server/src/main/resources/mapper/zgyw/PlatformOnlineMapper.xml | 14 +++++++++-----
1 files changed, 9 insertions(+), 5 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..78a7fab 100644
--- a/ycl-server/src/main/resources/mapper/zgyw/PlatformOnlineMapper.xml
+++ b/ycl-server/src/main/resources/mapper/zgyw/PlatformOnlineMapper.xml
@@ -14,8 +14,9 @@
<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 +24,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 +32,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 +42,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,7 +51,7 @@
</select>
- <select id="sumYesterday" resultMap="BaseResultMap">
+ <select id="yesterdayData" resultMap="BaseResultMap">
select * from t_platform_online
where create_date between #{startDate} and #{endDate}
</select>
--
Gitblit v1.8.0