From da426ecaf4fd047c6cb43cd9a0c1288e39c4e91d Mon Sep 17 00:00:00 2001
From: lohir <3399054449@qq.com>
Date: 星期三, 23 十月 2024 11:24:57 +0800
Subject: [PATCH] 完成运维考核-工单白名单-新增、删除

---
 ycl-server/src/main/resources/mapper/zgyw/ImageResourceSecurityMapper.xml |    8 +++++++-
 1 files changed, 7 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 58327b0..10404c6 100644
--- a/ycl-server/src/main/resources/mapper/zgyw/ImageResourceSecurityMapper.xml
+++ b/ycl-server/src/main/resources/mapper/zgyw/ImageResourceSecurityMapper.xml
@@ -28,7 +28,7 @@
     </sql>
 
     <select id="selectImageResourceSecurityList" resultType="com.ycl.platform.domain.entity.ImageResourceSecurity">
-        select id, a.dept_id, dept_name, platform_online, property_accuracy, weak_password, risk_property, boundary_integrity from t_image_resource_security a
+        select id, a.dept_id, area AS deptName, platform_online, property_accuracy, weak_password, risk_property, boundary_integrity from t_image_resource_security a
         LEFT JOIN sys_dept b ON a.dept_id = b.dept_id AND b.del_flag = 0
         <where>
             <if test="platformOnline != null ">and platform_online = #{platformOnline}</if>
@@ -101,4 +101,10 @@
             #{id}
         </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')
+        order by create_time desc
+        limit 1
+    </select>
 </mapper>

--
Gitblit v1.8.0