From 85392df07800b588675211549d6bf90cff10e0ee Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期六, 31 八月 2024 17:43:52 +0800 Subject: [PATCH] 平台调整优化 --- ycl-server/src/main/resources/mapper/zgyw/PlatformOnlineMapper.xml | 23 +++++++++++++---------- 1 files changed, 13 insertions(+), 10 deletions(-) diff --git a/ycl-server/src/main/resources/mapper/zgyw/PlatformOnlineMapper.xml b/ycl-server/src/main/resources/mapper/zgyw/PlatformOnlineMapper.xml index 94c67ad..78a7fab 100644 --- a/ycl-server/src/main/resources/mapper/zgyw/PlatformOnlineMapper.xml +++ b/ycl-server/src/main/resources/mapper/zgyw/PlatformOnlineMapper.xml @@ -12,16 +12,11 @@ <result column="create_time" property="createTime" /> </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, @@ -29,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> @@ -36,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, @@ -45,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"> @@ -52,4 +50,9 @@ </if> </select> + + <select id="yesterdayData" resultMap="BaseResultMap"> + select * from t_platform_online + where create_date between #{startDate} and #{endDate} + </select> </mapper> -- Gitblit v1.8.0