<?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) >= #{param.operStartTime}
|
</if>
|
<if test="param.operEndTime!=null and param.operEndTime!=''">
|
AND Date(oper_time) <= #{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>
|