|
|
@@ -2,9 +2,9 @@
|
|
|
<!DOCTYPE mapper
|
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
-<mapper namespace="com.jzg.mapper.SysOperLogMapper">
|
|
|
+<mapper namespace="com.jzg.commons.mapper.SysOperLogMapper">
|
|
|
|
|
|
- <resultMap type="com.jzg.entity.po.SysOperLog" id="SysOperLogResult">
|
|
|
+ <resultMap type="com.jzg.commons.entity.po.SysOperLog" id="SysOperLogResult">
|
|
|
<id property="id" column="id" />
|
|
|
<result property="title" column="title" />
|
|
|
<result property="businessType" column="business_type" />
|
|
|
@@ -29,12 +29,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
from sys_oper_log
|
|
|
</sql>
|
|
|
|
|
|
- <insert id="insertOperlog" parameterType="com.jzg.entity.po.SysOperLog">
|
|
|
+ <insert id="insertOperlog" parameterType="com.jzg.commons.entity.po.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="com.jzg.entity.po.SysOperLog" resultMap="SysOperLogResult">
|
|
|
+ <select id="selectOperLogList" parameterType="com.jzg.commons.entity.po.SysOperLog" resultMap="SysOperLogResult">
|
|
|
<include refid="selectOperLogVo"/>
|
|
|
<where>
|
|
|
<if test="operIp != null and operIp != ''">
|