From 10a22a0770c52bbabbf5fa8a28fefd8a42035baa Mon Sep 17 00:00:00 2001
From: zrj <646384940@qq.com>
Date: Fri, 12 Jul 2024 11:38:46 +0800
Subject: [PATCH] 防sql注入

---
 src/main/java/org/springblade/modules/location/mapper/LivePersonLocationMapper.xml |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/main/java/org/springblade/modules/location/mapper/LivePersonLocationMapper.xml b/src/main/java/org/springblade/modules/location/mapper/LivePersonLocationMapper.xml
index 0777cab..044c654 100644
--- a/src/main/java/org/springblade/modules/location/mapper/LivePersonLocationMapper.xml
+++ b/src/main/java/org/springblade/modules/location/mapper/LivePersonLocationMapper.xml
@@ -21,7 +21,7 @@
         LEFT JOIN blade_dept bd ON bd.id = bu.dept_id
         LEFT JOIN sys_dispatcher sd ON sd.user_ids = bu.id
         LEFT JOIN sys_dispatcher_unit sdu ON sdu.id = sd.dispatcher_unit_id
-        WHERE 1=1
+        WHERE 1=1 and DATE_FORMAT(lpl.record_time,'%Y-%m-%d') >=DATE_FORMAT(NOW(),'%Y-%m-%d')
 
     </select>
 </mapper>

--
Gitblit v1.9.3