You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
84 lines
5.1 KiB
84 lines
5.1 KiB
<?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="cn.jyjz.xiaoyao.admin.dataDao.LogMybatisDao">
|
|
<resultMap id="BaseResultMap" type="cn.jyjz.xiaoyao.admin.dataobject.Log">
|
|
<id column="ID" property="id" jdbcType="BIGINT"/>
|
|
<result column="DESCRIPTION" property="description" jdbcType="VARCHAR"/>
|
|
<result column="METHOD" property="method" jdbcType="VARCHAR"/>
|
|
<result column="LOGTYPE" property="logtype" jdbcType="INTEGER"/>
|
|
<result column="REQUESTIP" property="requestip" jdbcType="VARCHAR"/>
|
|
<result column="EXCEPTIONCODE" property="exceptioncode" jdbcType="VARCHAR"/>
|
|
<result column="EXCEPTIONDETAIL" property="exceptiondetail" jdbcType="VARCHAR"/>
|
|
<result column="PARAMS" property="params" jdbcType="VARCHAR"/>
|
|
<result column="BROWSER" property="browser" jdbcType="VARCHAR"/>
|
|
<result column="BROWSERVERSION" property="browserversion" jdbcType="VARCHAR"/>
|
|
<result column="PLATFORMTYPE" property="platformtype" jdbcType="VARCHAR"/>
|
|
<result column="PLATFORMSERIES" property="platformseries" jdbcType="VARCHAR"/>
|
|
<result column="PLATFORMVERSION" property="platformversion" jdbcType="VARCHAR"/>
|
|
<result column="LOGINNAME" property="loginname" jdbcType="VARCHAR"/>
|
|
<result column="CREATEDATE" property="createdate" jdbcType="BIGINT"/>
|
|
<result column="USERID" property="userid" jdbcType="BIGINT"/>
|
|
<result column="USERNAME" property="username" jdbcType="VARCHAR"/>
|
|
<result column="USERAGENT" property="useragent" jdbcType="VARCHAR"/>
|
|
<result column="DEPTID" property="deptid" jdbcType="BIGINT"/>
|
|
</resultMap>
|
|
<sql id="Base_Column_List">
|
|
ID AS id,
|
|
DESCRIPTION AS description,
|
|
METHOD AS method,
|
|
LOGTYPE AS logtype,
|
|
REQUESTIP AS requestip,
|
|
EXCEPTIONCODE AS exceptioncode,
|
|
EXCEPTIONDETAIL AS exceptiondetail,
|
|
PARAMS AS params,
|
|
BROWSER AS browser,
|
|
BROWSERVERSION AS browserversion,
|
|
PLATFORMTYPE AS platformtype,
|
|
PLATFORMSERIES AS platformseries,
|
|
PLATFORMVERSION AS platformversion,
|
|
LOGINNAME AS loginname,
|
|
CREATEDATE AS createdate,
|
|
USERID AS userid,
|
|
USERNAME AS username,
|
|
USERAGENT AS useragent,
|
|
DEPTID AS deptid
|
|
</sql>
|
|
|
|
<sql id="Base_Where">
|
|
<where>
|
|
<trim prefixOverrides="and|or">
|
|
<if test="id != null"> and ID ${id.dataOp} ${id.likestar}#{id.value}${id.likeend}</if>
|
|
<if test="description != null"> and DESCRIPTION ${description.dataOp} ${description.likestar}#{description.value}${description.likeend}</if>
|
|
<if test="method != null"> and METHOD ${method.dataOp} ${method.likestar}#{method.value}${method.likeend}</if>
|
|
<if test="logtype != null"> and LOGTYPE ${logtype.dataOp} ${logtype.likestar}#{logtype.value}${logtype.likeend}</if>
|
|
<if test="requestip != null"> and REQUESTIP ${requestip.dataOp} ${requestip.likestar}#{requestip.value}${requestip.likeend}</if>
|
|
<if test="exceptioncode != null"> and EXCEPTIONCODE ${exceptioncode.dataOp} ${exceptioncode.likestar}#{exceptioncode.value}${exceptioncode.likeend}</if>
|
|
<if test="exceptiondetail != null"> and EXCEPTIONDETAIL ${exceptiondetail.dataOp} ${exceptiondetail.likestar}#{exceptiondetail.value}${exceptiondetail.likeend}</if>
|
|
<if test="params != null"> and PARAMS ${params.dataOp} ${params.likestar}#{params.value}${params.likeend}</if>
|
|
<if test="browser != null"> and BROWSER ${browser.dataOp} ${browser.likestar}#{browser.value}${browser.likeend}</if>
|
|
<if test="browserversion != null"> and BROWSERVERSION ${browserversion.dataOp} ${browserversion.likestar}#{browserversion.value}${browserversion.likeend}</if>
|
|
<if test="platformtype != null"> and PLATFORMTYPE ${platformtype.dataOp} ${platformtype.likestar}#{platformtype.value}${platformtype.likeend}</if>
|
|
<if test="platformseries != null"> and PLATFORMSERIES ${platformseries.dataOp} ${platformseries.likestar}#{platformseries.value}${platformseries.likeend}</if>
|
|
<if test="platformversion != null"> and PLATFORMVERSION ${platformversion.dataOp} ${platformversion.likestar}#{platformversion.value}${platformversion.likeend}</if>
|
|
<if test="loginname != null"> and LOGINNAME ${loginname.dataOp} ${loginname.likestar}#{loginname.value}${loginname.likeend}</if>
|
|
<if test="createdate != null"> and CREATEDATE ${createdate.dataOp} ${createdate.likestar}#{createdate.value}${createdate.likeend}</if>
|
|
<if test="username != null"> and USERNAME ${username.dataOp} ${username.likestar}#{username.value}${username.likeend}</if>
|
|
<if test="useragent != null"> and USERAGENT ${useragent.dataOp} ${useragent.likestar}#{useragent.value}${useragent.likeend}</if>
|
|
<if test="deptid != null"> and DEPTID ${deptid.dataOp} ${deptid.likestar}#{deptid.value}${deptid.likeend}</if>
|
|
<if test="userid != null"> and USERID ${userid.dataOp} ${userid.likestar}#{userid.value}${userid.likeend}</if>
|
|
<if test="listdept != null">
|
|
and DEPARTID in
|
|
<foreach collection="listdept.value" item="item" index="index" open="(" separator="," close=")" >
|
|
#{item}
|
|
</foreach>
|
|
</if>
|
|
</trim>
|
|
</where>
|
|
<if test="page != null">
|
|
<if test="page.sortname != null"> order by ${page.sortname} ${page.sortorder}</if>
|
|
limit ${page.start}, ${page.Pagesize}
|
|
</if>
|
|
</sql>
|
|
|
|
</mapper>
|