From 40ab33e2f20233d1d30571247c33465ad9afc534 Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期一, 09 十二月 2024 09:47:21 +0800
Subject: [PATCH] 一些bug,非空判断、日志路径

---
 ycl-server/src/main/resources/mapper/zgyw/ImageResourceSecurityMapper.xml |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/ycl-server/src/main/resources/mapper/zgyw/ImageResourceSecurityMapper.xml b/ycl-server/src/main/resources/mapper/zgyw/ImageResourceSecurityMapper.xml
index 1b67217..550bc1a 100644
--- a/ycl-server/src/main/resources/mapper/zgyw/ImageResourceSecurityMapper.xml
+++ b/ycl-server/src/main/resources/mapper/zgyw/ImageResourceSecurityMapper.xml
@@ -102,8 +102,9 @@
         </foreach>
     </delete>
     <select id="getLatest" resultType="com.ycl.platform.domain.entity.ImageResourceSecurity">
-        select * from t_image_resource_security where dept_id = #{deptId}
-        where date_format(create_time,'%Y-%m')  = date_format(#{date}, '%Y-%m')
+        select * from t_image_resource_security
+        where dept_id = #{deptId}
+        and date_format(create_time,'%Y-%m')  = date_format(#{date}, '%Y-%m')
         order by create_time desc
         limit 1
     </select>

--
Gitblit v1.8.0