318 lines
12 KiB
XML
318 lines
12 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.yutou.mybatis.dao.TModfileMapper">
|
|
<resultMap id="BaseResultMap" type="com.yutou.mybatis.TModfile">
|
|
<!--
|
|
WARNING - @mbg.generated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element was generated on Mon May 13 14:48:33 CST 2019.
|
|
-->
|
|
<id column="id" jdbcType="INTEGER" property="id" />
|
|
<result column="mid" jdbcType="INTEGER" property="mid" />
|
|
<result column="fileName" jdbcType="VARCHAR" property="filename" />
|
|
<result column="serviceUrl" jdbcType="VARCHAR" property="serviceurl" />
|
|
<result column="installPathId" jdbcType="VARCHAR" property="installpathid" />
|
|
<result column="createTime" jdbcType="BIGINT" property="createtime" />
|
|
<result column="updateTime" jdbcType="BIGINT" property="updatetime" />
|
|
</resultMap>
|
|
<sql id="Example_Where_Clause">
|
|
<!--
|
|
WARNING - @mbg.generated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element was generated on Mon May 13 14:48:33 CST 2019.
|
|
-->
|
|
<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">
|
|
<!--
|
|
WARNING - @mbg.generated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element was generated on Mon May 13 14:48:33 CST 2019.
|
|
-->
|
|
<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">
|
|
<!--
|
|
WARNING - @mbg.generated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element was generated on Mon May 13 14:48:33 CST 2019.
|
|
-->
|
|
id, mid, fileName, serviceUrl, installPathId, createTime, updateTime
|
|
</sql>
|
|
<select id="selectByExample" parameterType="com.yutou.mybatis.TModfileExample" resultMap="BaseResultMap">
|
|
<!--
|
|
WARNING - @mbg.generated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element was generated on Mon May 13 14:48:33 CST 2019.
|
|
-->
|
|
select
|
|
<if test="distinct">
|
|
distinct
|
|
</if>
|
|
<include refid="Base_Column_List" />
|
|
from t_modfile
|
|
<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.Integer" resultMap="BaseResultMap">
|
|
<!--
|
|
WARNING - @mbg.generated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element was generated on Mon May 13 14:48:33 CST 2019.
|
|
-->
|
|
select
|
|
<include refid="Base_Column_List" />
|
|
from t_modfile
|
|
where id = #{id,jdbcType=INTEGER}
|
|
</select>
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
|
<!--
|
|
WARNING - @mbg.generated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element was generated on Mon May 13 14:48:33 CST 2019.
|
|
-->
|
|
delete from t_modfile
|
|
where id = #{id,jdbcType=INTEGER}
|
|
</delete>
|
|
<delete id="deleteByExample" parameterType="com.yutou.mybatis.TModfileExample">
|
|
<!--
|
|
WARNING - @mbg.generated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element was generated on Mon May 13 14:48:33 CST 2019.
|
|
-->
|
|
delete from t_modfile
|
|
<if test="_parameter != null">
|
|
<include refid="Example_Where_Clause" />
|
|
</if>
|
|
</delete>
|
|
<insert id="insert" parameterType="com.yutou.mybatis.TModfile">
|
|
<!--
|
|
WARNING - @mbg.generated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element was generated on Mon May 13 14:48:33 CST 2019.
|
|
-->
|
|
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
|
|
SELECT LAST_INSERT_ID()
|
|
</selectKey>
|
|
insert into t_modfile (mid, fileName, serviceUrl,
|
|
installPathId, createTime, updateTime
|
|
)
|
|
values (#{mid,jdbcType=INTEGER}, #{filename,jdbcType=VARCHAR}, #{serviceurl,jdbcType=VARCHAR},
|
|
#{installpathid,jdbcType=VARCHAR}, #{createtime,jdbcType=BIGINT}, #{updatetime,jdbcType=BIGINT}
|
|
)
|
|
</insert>
|
|
<insert id="insertSelective" parameterType="com.yutou.mybatis.TModfile">
|
|
<!--
|
|
WARNING - @mbg.generated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element was generated on Mon May 13 14:48:33 CST 2019.
|
|
-->
|
|
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
|
|
SELECT LAST_INSERT_ID()
|
|
</selectKey>
|
|
insert into t_modfile
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<if test="mid != null">
|
|
mid,
|
|
</if>
|
|
<if test="filename != null">
|
|
fileName,
|
|
</if>
|
|
<if test="serviceurl != null">
|
|
serviceUrl,
|
|
</if>
|
|
<if test="installpathid != null">
|
|
installPathId,
|
|
</if>
|
|
<if test="createtime != null">
|
|
createTime,
|
|
</if>
|
|
<if test="updatetime != null">
|
|
updateTime,
|
|
</if>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="mid != null">
|
|
#{mid,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="filename != null">
|
|
#{filename,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="serviceurl != null">
|
|
#{serviceurl,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="installpathid != null">
|
|
#{installpathid,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="createtime != null">
|
|
#{createtime,jdbcType=BIGINT},
|
|
</if>
|
|
<if test="updatetime != null">
|
|
#{updatetime,jdbcType=BIGINT},
|
|
</if>
|
|
</trim>
|
|
</insert>
|
|
<select id="countByExample" parameterType="com.yutou.mybatis.TModfileExample" resultType="java.lang.Long">
|
|
<!--
|
|
WARNING - @mbg.generated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element was generated on Mon May 13 14:48:33 CST 2019.
|
|
-->
|
|
select count(*) from t_modfile
|
|
<if test="_parameter != null">
|
|
<include refid="Example_Where_Clause" />
|
|
</if>
|
|
</select>
|
|
<update id="updateByExampleSelective" parameterType="map">
|
|
<!--
|
|
WARNING - @mbg.generated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element was generated on Mon May 13 14:48:33 CST 2019.
|
|
-->
|
|
update t_modfile
|
|
<set>
|
|
<if test="record.id != null">
|
|
id = #{record.id,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="record.mid != null">
|
|
mid = #{record.mid,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="record.filename != null">
|
|
fileName = #{record.filename,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.serviceurl != null">
|
|
serviceUrl = #{record.serviceurl,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.installpathid != null">
|
|
installPathId = #{record.installpathid,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.createtime != null">
|
|
createTime = #{record.createtime,jdbcType=BIGINT},
|
|
</if>
|
|
<if test="record.updatetime != null">
|
|
updateTime = #{record.updatetime,jdbcType=BIGINT},
|
|
</if>
|
|
</set>
|
|
<if test="_parameter != null">
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
</if>
|
|
</update>
|
|
<update id="updateByExample" parameterType="map">
|
|
<!--
|
|
WARNING - @mbg.generated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element was generated on Mon May 13 14:48:33 CST 2019.
|
|
-->
|
|
update t_modfile
|
|
set id = #{record.id,jdbcType=INTEGER},
|
|
mid = #{record.mid,jdbcType=INTEGER},
|
|
fileName = #{record.filename,jdbcType=VARCHAR},
|
|
serviceUrl = #{record.serviceurl,jdbcType=VARCHAR},
|
|
installPathId = #{record.installpathid,jdbcType=VARCHAR},
|
|
createTime = #{record.createtime,jdbcType=BIGINT},
|
|
updateTime = #{record.updatetime,jdbcType=BIGINT}
|
|
<if test="_parameter != null">
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
</if>
|
|
</update>
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.yutou.mybatis.TModfile">
|
|
<!--
|
|
WARNING - @mbg.generated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element was generated on Mon May 13 14:48:33 CST 2019.
|
|
-->
|
|
update t_modfile
|
|
<set>
|
|
<if test="mid != null">
|
|
mid = #{mid,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="filename != null">
|
|
fileName = #{filename,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="serviceurl != null">
|
|
serviceUrl = #{serviceurl,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="installpathid != null">
|
|
installPathId = #{installpathid,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="createtime != null">
|
|
createTime = #{createtime,jdbcType=BIGINT},
|
|
</if>
|
|
<if test="updatetime != null">
|
|
updateTime = #{updatetime,jdbcType=BIGINT},
|
|
</if>
|
|
</set>
|
|
where id = #{id,jdbcType=INTEGER}
|
|
</update>
|
|
<update id="updateByPrimaryKey" parameterType="com.yutou.mybatis.TModfile">
|
|
<!--
|
|
WARNING - @mbg.generated
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element was generated on Mon May 13 14:48:33 CST 2019.
|
|
-->
|
|
update t_modfile
|
|
set mid = #{mid,jdbcType=INTEGER},
|
|
fileName = #{filename,jdbcType=VARCHAR},
|
|
serviceUrl = #{serviceurl,jdbcType=VARCHAR},
|
|
installPathId = #{installpathid,jdbcType=VARCHAR},
|
|
createTime = #{createtime,jdbcType=BIGINT},
|
|
updateTime = #{updatetime,jdbcType=BIGINT}
|
|
where id = #{id,jdbcType=INTEGER}
|
|
</update>
|
|
</mapper> |