From a38a1ac77bb6ac9ea8bf0cf5f5f6b68d0e6e6974 Mon Sep 17 00:00:00 2001
From: jinlin <jinlin>
Date: 星期二, 02 一月 2024 08:44:10 +0800
Subject: [PATCH] 修改

---
 zt/core/src/main/resources/mapper/log/SysLogOperationDao.xml |   54 +++++++++++++++++++++++++++---------------------------
 1 files changed, 27 insertions(+), 27 deletions(-)

diff --git a/zt/core/src/main/resources/mapper/log/SysLogOperationDao.xml b/zt/core/src/main/resources/mapper/log/SysLogOperationDao.xml
index 18749f9..7e3d590 100644
--- a/zt/core/src/main/resources/mapper/log/SysLogOperationDao.xml
+++ b/zt/core/src/main/resources/mapper/log/SysLogOperationDao.xml
@@ -6,13 +6,13 @@
     <sql id="custom_where">
         <choose>
             <when test="startCreateTime!=null and endCreateTime!=null">
-                and a.CREATE_DATE between #{startCreateTime} and #{endCreateTime}
+                and a.create_date between #{startCreateTime} and #{endCreateTime}
             </when>
             <when test="startCreateTime!=null">
-                and a.CREATE_DATE &gt;= #{startCreateTime}
+                and a.create_date &gt;= #{startCreateTime}
             </when>
             <when test="endCreateTime!=null">
-                and a.CREATE_DATE &lt;= #{endCreateTime}
+                and a.create_date &lt;= #{endCreateTime}
             </when>
             <otherwise>
             </otherwise>
@@ -22,8 +22,8 @@
     <select id="getList" resultType="com.zt.modules.log.model.SysLogOperation">
         select * from (
         select a.*
-        ,(SELECT replace(GROUP_CONCAT(aa.name),',',';') FROM SYS_ROLE aa,SYS_ROLE_USER bb WHERE aa.id=bb.ROLE_ID AND bb.USER_ID = a.CREATOR) AS role_names
-        from SYS_LOG_OPERATION a
+        ,(SELECT replace(GROUP_CONCAT(aa.name),',',';') FROM sys_role aa,sys_role_user bb WHERE aa.id=bb.role_id AND bb.user_id = a.creator) AS role_names
+        from sys_log_operation a
         ) a
         <where>
             <if test="whereSql!=null">
@@ -34,57 +34,57 @@
             </if>
             <if test="action == 'xtbmybm'">
                 and role_names NOT LIKE '%xtgly%'  OR role_names NOT LIKE '%xtsjy%'
-                and REQUEST_URI not IN (
+                and request_uri not IN (
                 SELECT
-                a.DICT_LABEL AS urlLabel
+                a.dict_label AS urlLabel
                 FROM
-                SYS_DICT_DATA a,
-                SYS_DICT_TYPE b
+                sys_dict_data a,
+                sys_dict_type b
                 WHERE 1=1
-                AND b.DICT_TYPE = 'adminURL'
-                AND b.ID = a.DICT_TYPE_ID
-                AND b.IS_DELETE = 0
+                AND b.dict_type = 'adminURL'
+                AND b.id = a.dict_type_id
+                AND b.is_delete = 0
                 )
             </if>
             <if test="action == 'xtsjybm'">
                 and role_names LIKE '%xtgly%'  OR role_names LIKE '%xtsjy%'
-                and REQUEST_URI IN (
+                and request_uri IN (
                 SELECT
-                a.DICT_LABEL AS urlLabel
+                a.dict_label AS urlLabel
                 FROM
-                SYS_DICT_DATA a,
-                SYS_DICT_TYPE b
+                sys_dict_data a,
+                sys_dict_type b
                 WHERE 1=1
-                AND b.DICT_TYPE = 'adminURL'
-                AND b.ID = a.DICT_TYPE_ID
-                AND b.IS_DELETE = 0
+                AND b.dict_type = 'adminURL'
+                AND b.id = a.dict_type_id
+                AND b.is_delete = 0
                 )
             </if>
             <if test="action == 'other'">
-                and a.CREATOR = ${currentUserId}
+                and a.creator = ${currentUserId}
             </if>
             <if test="status != null">
                 and a.status = ${status}
             </if>
             <if test="startCreateTime!=null and endCreateTime!=null and startCreateTime!=''and endCreateTime!=''">
-                and a.CREATE_DATE between #{startCreateTime} and #{endCreateTime}
+                and a.create_date between #{startCreateTime} and #{endCreateTime}
             </if>
             <if test="startCreateTime!=null and startCreateTime!=''">
-                and a.CREATE_DATE &gt;= #{startCreateTime}
+                and a.create_date &gt;= #{startCreateTime}
             </if>
             <if test="endCreateTime!=null and endCreateTime!=''">
-                and a.CREATE_DATE &lt;= #{endCreateTime}
+                and a.create_date &lt;= #{endCreateTime}
             </if>
-            and IS_DELETE = 0
-            ORDER BY a.CREATE_DATE DESC
+            and is_delete = 0
+            ORDER BY a.create_date DESC
         </where>
     </select>
 
     <update id="deleteCondition">
         <foreach collection="list" item="item" index="index" open="" close="" separator=";">
-        update SYS_LOG_OPERATION
+        update sys_log_operation
         <set>
-            IS_DELETE = 1
+            is_delete = 1
         </set>
         where id = ${item.id}
         </foreach>

--
Gitblit v1.9.1