|
@@ -0,0 +1,41 @@
|
|
|
+<?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.redxun.knowledge.analysis.mapper.PvLogMapper">
|
|
|
+
|
|
|
+ <resultMap id="PvLog" type="com.redxun.knowledge.analysis.entity.dao.PvLog">
|
|
|
+ <id property="pkId" column="PK_ID" jdbcType="VARCHAR"/>
|
|
|
+ <result property="module" column="MODULE" jdbcType="VARCHAR"/>
|
|
|
+ <result property="subModule" column="SUB_MODULE" jdbcType="VARCHAR"/>
|
|
|
+ <result property="userId" column="USER_ID" jdbcType="VARCHAR"/>
|
|
|
+ <result property="companyId" column="COMPANY_ID" jdbcType="VARCHAR"/>
|
|
|
+ <result property="page" column="PAGE" jdbcType="VARCHAR"/>
|
|
|
+ <result property="platform" column="PLATFORM" jdbcType="VARCHAR"/>
|
|
|
+ <result property="ussd" column="USSD" jdbcType="VARCHAR"/>
|
|
|
+ <result property="companyId" column="COMPANY_ID_" jdbcType="VARCHAR"/>
|
|
|
+ <result property="createDepId" column="CREATE_DEP_ID_" jdbcType="VARCHAR"/>
|
|
|
+ <result property="tenantId" column="TENANT_ID_" jdbcType="VARCHAR"/>
|
|
|
+ <result property="createBy" column="CREATE_BY_" jdbcType="VARCHAR"/>
|
|
|
+ <result property="createTime" column="CREATE_TIME_" jdbcType="DATE"/>
|
|
|
+ <result property="updateBy" column="UPDATE_BY_" jdbcType="VARCHAR"/>
|
|
|
+ <result property="updateTime" column="UPDATE_TIME_" jdbcType="DATE"/>
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
+
|
|
|
+ <select id="query" resultType="com.redxun.knowledge.analysis.entity.dao.PvLog" parameterType="java.util.Map">
|
|
|
+ select PK_ID,MODULE,SUB_MODULE,USER_ID,COMPANY_ID,PAGE,PLATFORM,USSD,COMPANY_ID_,CREATE_DEP_ID_,TENANT_ID_,CREATE_BY_,CREATE_TIME_,UPDATE_BY_,UPDATE_TIME_ from KM_PV_LOG
|
|
|
+ <where>
|
|
|
+ <if test="@rx.Ognl@isNotEmpty(w.whereSql)">
|
|
|
+ ${w.whereSql}
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
+ <if test="@rx.Ognl@isNotEmpty(w.orderBySql)">
|
|
|
+ ORDER BY ${w.orderBySql}
|
|
|
+ </if>
|
|
|
+ <if test="@rx.Ognl@isEmpty(w.orderBySql)">
|
|
|
+ ORDER BY PK_ID DESC
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
+
|
|
|
+</mapper>
|
|
|
+
|
|
|
+
|