From 90276a76b56cc1e744f7fa68ce921a28a8a9c92f Mon Sep 17 00:00:00 2001 From: fuliqi <fuliqi@qq.com> Date: 星期三, 08 一月 2025 11:52:10 +0800 Subject: [PATCH] 运行监控报表导出时间少一天问题 --- ycl-server/src/main/resources/mapper/zgyw/PlatformOnlineMapper.xml | 24 ++++++++++++++---------- 1 files changed, 14 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..5b32179 100644 --- a/ycl-server/src/main/resources/mapper/zgyw/PlatformOnlineMapper.xml +++ b/ycl-server/src/main/resources/mapper/zgyw/PlatformOnlineMapper.xml @@ -10,18 +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, @@ -29,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> @@ -36,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, @@ -45,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"> @@ -52,4 +51,9 @@ </if> </select> + + <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