You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
394 lines
14 KiB
XML
394 lines
14 KiB
XML
<?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.sztzjy.financial_bigdata.mapper.SysLogMapper">
|
|
<resultMap id="BaseResultMap" type="com.sztzjy.financial_bigdata.entity.SysLog">
|
|
<id column="id" jdbcType="BIGINT" property="id" />
|
|
<result column="method" jdbcType="VARCHAR" property="method" />
|
|
<result column="request_url" jdbcType="VARCHAR" property="requestUrl" />
|
|
<result column="params" jdbcType="VARCHAR" property="params" />
|
|
<result column="ip" jdbcType="VARCHAR" property="ip" />
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
<result column="result_time" jdbcType="TIMESTAMP" property="resultTime" />
|
|
<result column="token" jdbcType="VARCHAR" property="token" />
|
|
<result column="student_id" jdbcType="BIGINT" property="studentId" />
|
|
<result column="session" jdbcType="VARCHAR" property="session" />
|
|
<result column="user_id" jdbcType="BIGINT" property="userId" />
|
|
<result column="open_id" jdbcType="VARCHAR" property="openId" />
|
|
</resultMap>
|
|
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.sztzjy.financial_bigdata.entity.SysLog">
|
|
<result column="result" jdbcType="LONGVARCHAR" property="result" />
|
|
</resultMap>
|
|
<sql id="Example_Where_Clause">
|
|
<where>
|
|
<foreach collection="oredCriteria" item="criteria" separator="or">
|
|
<if test="criteria.valid">
|
|
<trim prefix="(" prefixOverrides="and" suffix=")">
|
|
<foreach collection="criteria.criteria" item="criterion">
|
|
<choose>
|
|
<when test="criterion.noValue">
|
|
and ${criterion.condition}
|
|
</when>
|
|
<when test="criterion.singleValue">
|
|
and ${criterion.condition} #{criterion.value}
|
|
</when>
|
|
<when test="criterion.betweenValue">
|
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
|
</when>
|
|
<when test="criterion.listValue">
|
|
and ${criterion.condition}
|
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
|
#{listItem}
|
|
</foreach>
|
|
</when>
|
|
</choose>
|
|
</foreach>
|
|
</trim>
|
|
</if>
|
|
</foreach>
|
|
</where>
|
|
</sql>
|
|
<sql id="Update_By_Example_Where_Clause">
|
|
<where>
|
|
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
|
<if test="criteria.valid">
|
|
<trim prefix="(" prefixOverrides="and" suffix=")">
|
|
<foreach collection="criteria.criteria" item="criterion">
|
|
<choose>
|
|
<when test="criterion.noValue">
|
|
and ${criterion.condition}
|
|
</when>
|
|
<when test="criterion.singleValue">
|
|
and ${criterion.condition} #{criterion.value}
|
|
</when>
|
|
<when test="criterion.betweenValue">
|
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
|
</when>
|
|
<when test="criterion.listValue">
|
|
and ${criterion.condition}
|
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
|
#{listItem}
|
|
</foreach>
|
|
</when>
|
|
</choose>
|
|
</foreach>
|
|
</trim>
|
|
</if>
|
|
</foreach>
|
|
</where>
|
|
</sql>
|
|
<sql id="Base_Column_List">
|
|
id, method, request_url, params, ip, create_time, result_time, token, student_id,
|
|
session, user_id, open_id
|
|
</sql>
|
|
<sql id="Blob_Column_List">
|
|
result
|
|
</sql>
|
|
<select id="selectByExampleWithBLOBs" parameterType="com.sztzjy.financial_bigdata.entity.SysLogExample" resultMap="ResultMapWithBLOBs">
|
|
select
|
|
<if test="distinct">
|
|
distinct
|
|
</if>
|
|
<include refid="Base_Column_List" />
|
|
,
|
|
<include refid="Blob_Column_List" />
|
|
from sys_log
|
|
<if test="_parameter != null">
|
|
<include refid="Example_Where_Clause" />
|
|
</if>
|
|
<if test="orderByClause != null">
|
|
order by ${orderByClause}
|
|
</if>
|
|
</select>
|
|
<select id="selectByExample" parameterType="com.sztzjy.financial_bigdata.entity.SysLogExample" resultMap="BaseResultMap">
|
|
select
|
|
<if test="distinct">
|
|
distinct
|
|
</if>
|
|
<include refid="Base_Column_List" />
|
|
from sys_log
|
|
<if test="_parameter != null">
|
|
<include refid="Example_Where_Clause" />
|
|
</if>
|
|
<if test="orderByClause != null">
|
|
order by ${orderByClause}
|
|
</if>
|
|
</select>
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="ResultMapWithBLOBs">
|
|
select
|
|
<include refid="Base_Column_List" />
|
|
,
|
|
<include refid="Blob_Column_List" />
|
|
from sys_log
|
|
where id = #{id,jdbcType=BIGINT}
|
|
</select>
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
|
delete from sys_log
|
|
where id = #{id,jdbcType=BIGINT}
|
|
</delete>
|
|
<delete id="deleteByExample" parameterType="com.sztzjy.financial_bigdata.entity.SysLogExample">
|
|
delete from sys_log
|
|
<if test="_parameter != null">
|
|
<include refid="Example_Where_Clause" />
|
|
</if>
|
|
</delete>
|
|
<insert id="insert" parameterType="com.sztzjy.financial_bigdata.entity.SysLog">
|
|
insert into sys_log (id, method, request_url,
|
|
params, ip, create_time,
|
|
result_time, token, student_id,
|
|
session, user_id, open_id,
|
|
result)
|
|
values (#{id,jdbcType=BIGINT}, #{method,jdbcType=VARCHAR}, #{requestUrl,jdbcType=VARCHAR},
|
|
#{params,jdbcType=VARCHAR}, #{ip,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
|
|
#{resultTime,jdbcType=TIMESTAMP}, #{token,jdbcType=VARCHAR}, #{studentId,jdbcType=BIGINT},
|
|
#{session,jdbcType=VARCHAR}, #{userId,jdbcType=BIGINT}, #{openId,jdbcType=VARCHAR},
|
|
#{result,jdbcType=LONGVARCHAR})
|
|
</insert>
|
|
<insert id="insertSelective" parameterType="com.sztzjy.financial_bigdata.entity.SysLog">
|
|
insert into sys_log
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<if test="id != null">
|
|
id,
|
|
</if>
|
|
<if test="method != null">
|
|
method,
|
|
</if>
|
|
<if test="requestUrl != null">
|
|
request_url,
|
|
</if>
|
|
<if test="params != null">
|
|
params,
|
|
</if>
|
|
<if test="ip != null">
|
|
ip,
|
|
</if>
|
|
<if test="createTime != null">
|
|
create_time,
|
|
</if>
|
|
<if test="resultTime != null">
|
|
result_time,
|
|
</if>
|
|
<if test="token != null">
|
|
token,
|
|
</if>
|
|
<if test="studentId != null">
|
|
student_id,
|
|
</if>
|
|
<if test="session != null">
|
|
session,
|
|
</if>
|
|
<if test="userId != null">
|
|
user_id,
|
|
</if>
|
|
<if test="openId != null">
|
|
open_id,
|
|
</if>
|
|
<if test="result != null">
|
|
result,
|
|
</if>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="id != null">
|
|
#{id,jdbcType=BIGINT},
|
|
</if>
|
|
<if test="method != null">
|
|
#{method,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="requestUrl != null">
|
|
#{requestUrl,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="params != null">
|
|
#{params,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="ip != null">
|
|
#{ip,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="createTime != null">
|
|
#{createTime,jdbcType=TIMESTAMP},
|
|
</if>
|
|
<if test="resultTime != null">
|
|
#{resultTime,jdbcType=TIMESTAMP},
|
|
</if>
|
|
<if test="token != null">
|
|
#{token,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="studentId != null">
|
|
#{studentId,jdbcType=BIGINT},
|
|
</if>
|
|
<if test="session != null">
|
|
#{session,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="userId != null">
|
|
#{userId,jdbcType=BIGINT},
|
|
</if>
|
|
<if test="openId != null">
|
|
#{openId,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="result != null">
|
|
#{result,jdbcType=LONGVARCHAR},
|
|
</if>
|
|
</trim>
|
|
</insert>
|
|
<select id="countByExample" parameterType="com.sztzjy.financial_bigdata.entity.SysLogExample" resultType="java.lang.Long">
|
|
select count(*) from sys_log
|
|
<if test="_parameter != null">
|
|
<include refid="Example_Where_Clause" />
|
|
</if>
|
|
</select>
|
|
<update id="updateByExampleSelective" parameterType="map">
|
|
update sys_log
|
|
<set>
|
|
<if test="record.id != null">
|
|
id = #{record.id,jdbcType=BIGINT},
|
|
</if>
|
|
<if test="record.method != null">
|
|
method = #{record.method,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.requestUrl != null">
|
|
request_url = #{record.requestUrl,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.params != null">
|
|
params = #{record.params,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.ip != null">
|
|
ip = #{record.ip,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.createTime != null">
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
</if>
|
|
<if test="record.resultTime != null">
|
|
result_time = #{record.resultTime,jdbcType=TIMESTAMP},
|
|
</if>
|
|
<if test="record.token != null">
|
|
token = #{record.token,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.studentId != null">
|
|
student_id = #{record.studentId,jdbcType=BIGINT},
|
|
</if>
|
|
<if test="record.session != null">
|
|
session = #{record.session,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.userId != null">
|
|
user_id = #{record.userId,jdbcType=BIGINT},
|
|
</if>
|
|
<if test="record.openId != null">
|
|
open_id = #{record.openId,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.result != null">
|
|
result = #{record.result,jdbcType=LONGVARCHAR},
|
|
</if>
|
|
</set>
|
|
<if test="_parameter != null">
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
</if>
|
|
</update>
|
|
<update id="updateByExampleWithBLOBs" parameterType="map">
|
|
update sys_log
|
|
set id = #{record.id,jdbcType=BIGINT},
|
|
method = #{record.method,jdbcType=VARCHAR},
|
|
request_url = #{record.requestUrl,jdbcType=VARCHAR},
|
|
params = #{record.params,jdbcType=VARCHAR},
|
|
ip = #{record.ip,jdbcType=VARCHAR},
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
result_time = #{record.resultTime,jdbcType=TIMESTAMP},
|
|
token = #{record.token,jdbcType=VARCHAR},
|
|
student_id = #{record.studentId,jdbcType=BIGINT},
|
|
session = #{record.session,jdbcType=VARCHAR},
|
|
user_id = #{record.userId,jdbcType=BIGINT},
|
|
open_id = #{record.openId,jdbcType=VARCHAR},
|
|
result = #{record.result,jdbcType=LONGVARCHAR}
|
|
<if test="_parameter != null">
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
</if>
|
|
</update>
|
|
<update id="updateByExample" parameterType="map">
|
|
update sys_log
|
|
set id = #{record.id,jdbcType=BIGINT},
|
|
method = #{record.method,jdbcType=VARCHAR},
|
|
request_url = #{record.requestUrl,jdbcType=VARCHAR},
|
|
params = #{record.params,jdbcType=VARCHAR},
|
|
ip = #{record.ip,jdbcType=VARCHAR},
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
result_time = #{record.resultTime,jdbcType=TIMESTAMP},
|
|
token = #{record.token,jdbcType=VARCHAR},
|
|
student_id = #{record.studentId,jdbcType=BIGINT},
|
|
session = #{record.session,jdbcType=VARCHAR},
|
|
user_id = #{record.userId,jdbcType=BIGINT},
|
|
open_id = #{record.openId,jdbcType=VARCHAR}
|
|
<if test="_parameter != null">
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
</if>
|
|
</update>
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.sztzjy.financial_bigdata.entity.SysLog">
|
|
update sys_log
|
|
<set>
|
|
<if test="method != null">
|
|
method = #{method,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="requestUrl != null">
|
|
request_url = #{requestUrl,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="params != null">
|
|
params = #{params,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="ip != null">
|
|
ip = #{ip,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="createTime != null">
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
</if>
|
|
<if test="resultTime != null">
|
|
result_time = #{resultTime,jdbcType=TIMESTAMP},
|
|
</if>
|
|
<if test="token != null">
|
|
token = #{token,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="studentId != null">
|
|
student_id = #{studentId,jdbcType=BIGINT},
|
|
</if>
|
|
<if test="session != null">
|
|
session = #{session,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="userId != null">
|
|
user_id = #{userId,jdbcType=BIGINT},
|
|
</if>
|
|
<if test="openId != null">
|
|
open_id = #{openId,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="result != null">
|
|
result = #{result,jdbcType=LONGVARCHAR},
|
|
</if>
|
|
</set>
|
|
where id = #{id,jdbcType=BIGINT}
|
|
</update>
|
|
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.sztzjy.financial_bigdata.entity.SysLog">
|
|
update sys_log
|
|
set method = #{method,jdbcType=VARCHAR},
|
|
request_url = #{requestUrl,jdbcType=VARCHAR},
|
|
params = #{params,jdbcType=VARCHAR},
|
|
ip = #{ip,jdbcType=VARCHAR},
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
result_time = #{resultTime,jdbcType=TIMESTAMP},
|
|
token = #{token,jdbcType=VARCHAR},
|
|
student_id = #{studentId,jdbcType=BIGINT},
|
|
session = #{session,jdbcType=VARCHAR},
|
|
user_id = #{userId,jdbcType=BIGINT},
|
|
open_id = #{openId,jdbcType=VARCHAR},
|
|
result = #{result,jdbcType=LONGVARCHAR}
|
|
where id = #{id,jdbcType=BIGINT}
|
|
</update>
|
|
<update id="updateByPrimaryKey" parameterType="com.sztzjy.financial_bigdata.entity.SysLog">
|
|
update sys_log
|
|
set method = #{method,jdbcType=VARCHAR},
|
|
request_url = #{requestUrl,jdbcType=VARCHAR},
|
|
params = #{params,jdbcType=VARCHAR},
|
|
ip = #{ip,jdbcType=VARCHAR},
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
result_time = #{resultTime,jdbcType=TIMESTAMP},
|
|
token = #{token,jdbcType=VARCHAR},
|
|
student_id = #{studentId,jdbcType=BIGINT},
|
|
session = #{session,jdbcType=VARCHAR},
|
|
user_id = #{userId,jdbcType=BIGINT},
|
|
open_id = #{openId,jdbcType=VARCHAR}
|
|
where id = #{id,jdbcType=BIGINT}
|
|
</update>
|
|
</mapper> |