From c6842e8498c2d9b469890b38cd9f0d714392c445 Mon Sep 17 00:00:00 2001 From: feiyu02 <risaku@163.com> Date: 星期五, 01 十二月 2023 13:22:02 +0800 Subject: [PATCH] 1. 修改优化日统计和风险统计的逻辑 --- src/main/resources/mapper/FugitiveDustMapper.xml | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/resources/mapper/FugitiveDustMapper.xml b/src/main/resources/mapper/FugitiveDustMapper.xml index ddbd502..6b8ed8c 100644 --- a/src/main/resources/mapper/FugitiveDustMapper.xml +++ b/src/main/resources/mapper/FugitiveDustMapper.xml @@ -35,7 +35,8 @@ from ja_t_dust_site_data_info as a join ja_t_dust_site_info as b on a.mn_code = b.mn_code <where> <if test="siteName !=null and siteName != ''"> - b.name like concat('%',#{siteName},'%') +<!-- b.name like concat('%',#{siteName},'%')--> + b.name = #{siteName} </if> <if test="mnCode !=null and mnCode != ''"> and a.mn_code = #{mnCode} @@ -107,7 +108,7 @@ d.lst between #{beginTime} and #{endTime} and d.type = 'day' </if> </where> - order by c.name asc + order by d.day_avg desc </select> -- Gitblit v1.9.3