|
@@ -1,7 +1,7 @@
|
|
|
<?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.yqh.p2p.dal.dao.AuditLogDao">
|
|
|
- <resultMap id="BaseResultMap" type="com.yqh.p2p.dal.model.AuditLog">
|
|
|
+<mapper namespace="com.ym.mec.common.log.dal.dao.AuditLogDao">
|
|
|
+ <resultMap id="BaseResultMap" type="com.ym.mec.common.log.dal.model.AuditLog">
|
|
|
<id column="id_" property="id" jdbcType="BIGINT" />
|
|
|
<result column="username_" property="username" jdbcType="VARCHAR" />
|
|
|
<result column="operate_name_" property="operateName" jdbcType="VARCHAR" />
|
|
@@ -41,18 +41,18 @@
|
|
|
<select id="get" resultMap="BaseResultMap" parameterType="java.lang.Long">
|
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
|
- from p2p_audit_log
|
|
|
+ from sys_audit_log
|
|
|
where id_ = #{id,jdbcType=BIGINT}
|
|
|
</select>
|
|
|
|
|
|
<delete id="delete" parameterType="java.lang.Long">
|
|
|
delete from
|
|
|
- p2p_audit_log
|
|
|
+ sys_audit_log
|
|
|
where
|
|
|
id_ = #{id,jdbcType=BIGINT}
|
|
|
</delete>
|
|
|
- <insert id="insert" parameterType="com.yqh.p2p.dal.model.AuditLog">
|
|
|
- insert into p2p_audit_log
|
|
|
+ <insert id="insert" parameterType="com.ym.mec.common.log.dal.model.AuditLog">
|
|
|
+ insert into sys_audit_log
|
|
|
(id_, username_, operate_name_,
|
|
|
interface_url_,
|
|
|
input_params_,operate_time_,
|
|
@@ -67,8 +67,8 @@
|
|
|
#{userIp,jdbcType=VARCHAR})
|
|
|
</insert>
|
|
|
|
|
|
- <update id="update" parameterType="com.yqh.p2p.dal.model.AuditLog">
|
|
|
- update p2p_audit_log
|
|
|
+ <update id="update" parameterType="com.ym.mec.common.log.dal.model.AuditLog">
|
|
|
+ update sys_audit_log
|
|
|
<set>
|
|
|
<if test="username != null">
|
|
|
username_ = #{username,jdbcType=VARCHAR},
|
|
@@ -93,12 +93,12 @@
|
|
|
</update>
|
|
|
|
|
|
<select id="queryCount" parameterType="map" resultType="int">
|
|
|
- select count(*) from p2p_audit_log
|
|
|
+ select count(*) from sys_audit_log
|
|
|
<include refid="queryCondition" />
|
|
|
</select>
|
|
|
|
|
|
<select id="queryPage" parameterType="map" resultMap="BaseResultMap">
|
|
|
- select * from p2p_audit_log
|
|
|
+ select * from sys_audit_log
|
|
|
<include refid="queryCondition" />
|
|
|
order by operate_time_ desc
|
|
|
<include refid="global.limit" />
|