mitao
2025-01-17 afa0dbb4f54e7244835dd67ec33c3e545f122f71
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.system.mapper.config.CustomConfigMapper">
 
 
    <select id="getByKey" resultType="CustomConfig">
        SELECT
            *
        FROM t_custom_config
        WHERE del_flag = 0 AND config_key = #{key}
    </select>
 
    <select id="pageOperLog" resultType="com.ruoyi.system.domain.vo.MgtOperLogPageVo">
        SELECT
        oper_time operTime,
        oper_name operName,
        title operTitle,
        oper_ip operIp,
        oper_content operContent
        FROM sys_oper_log
        WHERE operator_type = 1 AND del_flag = 0
        <if test="param.operContent != null and param.operContent !=''">
            AND oper_content LIKE concat('%', #{param.operContent}, '%')
        </if>
        <if test="param.operTitle != null and param.operTitle !=''">
            AND title = #{param.operTitle}
        </if>
        <if test="param.operStartTime!=null and param.operStartTime!=''">
            AND Date(oper_time) &gt;= #{param.operStartTime}
        </if>
        <if test="param.operEndTime!=null and param.operEndTime!=''">
            AND Date(oper_time) &lt;= #{param.operEndTime}
        </if>
        ORDER BY oper_time DESC
    </select>
 
    <update id="deleteOperlog">
        UPDATE sys_oper_log SET del_flag = 1 WHERE del_flag = 0
    </update>
 
    <select id="listOperTitle" resultType="java.lang.String">
        SELECT DISTINCT title FROM sys_oper_log
        WHERE operator_type = 1
    </select>
</mapper>