文件名从 src/main/resources/mybatis/monitor/SysOperLogMapper.xml 修改 |
| | |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
| | | <mapper namespace="com.ruoyi.project.monitor.mapper.SysOperLogMapper">
|
| | |
|
| | | <resultMap type="SysOperLog" id="SysOperLogResult">
|
| | | <resultMap type="com.ruoyi.project.monitor.domain.SysOperLog" id="SysOperLogResult"> |
| | | <id property="operId" column="oper_id" />
|
| | | <result property="title" column="title" />
|
| | | <result property="businessType" column="business_type" />
|
| | |
| | | from sys_oper_log
|
| | | </sql>
|
| | |
|
| | | <insert id="insertOperlog" parameterType="SysOperLog">
|
| | | <insert id="insertOperlog" parameterType="com.ruoyi.project.monitor.domain.SysOperLog"> |
| | | insert into sys_oper_log(title, business_type, method, request_method, operator_type, oper_name, dept_name, oper_url, oper_ip, oper_location, oper_param, json_result, status, error_msg, cost_time, oper_time)
|
| | | values (#{title}, #{businessType}, #{method}, #{requestMethod}, #{operatorType}, #{operName}, #{deptName}, #{operUrl}, #{operIp}, #{operLocation}, #{operParam}, #{jsonResult}, #{status}, #{errorMsg}, #{costTime}, sysdate())
|
| | | </insert>
|
| | |
|
| | | <select id="selectOperLogList" parameterType="SysOperLog" resultMap="SysOperLogResult">
|
| | | <select id="selectOperLogList" parameterType="com.ruoyi.project.monitor.domain.SysOperLog" resultMap="SysOperLogResult"> |
| | | <include refid="selectOperLogVo"/>
|
| | | <where>
|
| | | <if test="operIp != null and operIp != ''">
|