From 95f69d1183a56f5768e6d56d043b0c6e5a878bb5 Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期三, 04 十二月 2024 21:30:26 +0800
Subject: [PATCH] 空指针校验

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

diff --git a/ycl-server/src/main/resources/mapper/zgyw/ImageResourceSecurityMapper.xml b/ycl-server/src/main/resources/mapper/zgyw/ImageResourceSecurityMapper.xml
index 10404c6..1b67217 100644
--- a/ycl-server/src/main/resources/mapper/zgyw/ImageResourceSecurityMapper.xml
+++ b/ycl-server/src/main/resources/mapper/zgyw/ImageResourceSecurityMapper.xml
@@ -103,7 +103,7 @@
     </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')
+        where date_format(create_time,'%Y-%m')  = date_format(#{date}, '%Y-%m')
         order by create_time desc
         limit 1
     </select>

--
Gitblit v1.8.0