Commit c6ed4cb4 authored by Junling Bu's avatar Junling Bu
Browse files

chore: mybatis第三方插件更新到1.2.10

parent 6e20baa0
......@@ -56,7 +56,7 @@
This element is automatically generated by MyBatis Generator, do not modify.
-->
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<foreach close=")" collection="example.oredCriteria" item="criteria" open="and (" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
......@@ -83,6 +83,43 @@
</foreach>
</where>
</sql>
<sql id="Update_By_Example_With_Version_Where_Clause">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
<where>
version = #{version,jdbcType=INTEGER}
<if test="example.oredCriteria.size() &gt; 0">
<foreach close=")" collection="example.oredCriteria" item="criteria" open="and (" 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>
</if>
</where>
</sql>
<sql id="Base_Column_List">
<!--
WARNING - @mbg.generated
......@@ -121,7 +158,7 @@
<choose>
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
${column.value}
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
......@@ -180,7 +217,7 @@
<choose>
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
${column.value}
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
......@@ -446,7 +483,7 @@
<choose>
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
${column.value}
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
......@@ -482,4 +519,147 @@
update litemall_storage set deleted = 1
where id = #{id,jdbcType=INTEGER}
</update>
<delete id="deleteWithVersionByPrimaryKey" parameterType="map">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
delete from litemall_storage
where version = #{version,jdbcType=INTEGER}
and id = #{key,jdbcType=INTEGER}
</delete>
<delete id="deleteWithVersionByExample" parameterType="map">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
delete from litemall_storage
<if test="_parameter != null">
<include refid="Update_By_Example_With_Version_Where_Clause" />
</if>
</delete>
<update id="updateWithVersionByExample" parameterType="map">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
update litemall_storage
set version = version + 1,
id = #{record.id,jdbcType=INTEGER},
`key` = #{record.key,jdbcType=VARCHAR},
`name` = #{record.name,jdbcType=VARCHAR},
`type` = #{record.type,jdbcType=VARCHAR},
`size` = #{record.size,jdbcType=INTEGER},
modified = #{record.modified,jdbcType=TIMESTAMP},
url = #{record.url,jdbcType=VARCHAR},
add_time = #{record.addTime,jdbcType=TIMESTAMP},
deleted = #{record.deleted,jdbcType=BIT}
<if test="_parameter != null">
<include refid="Update_By_Example_With_Version_Where_Clause" />
</if>
</update>
<update id="updateWithVersionByExampleSelective" parameterType="map">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
update litemall_storage
<set>
<trim suffixOverrides=",">
version = version + 1,
<if test="record.id != null">
id = #{record.id,jdbcType=INTEGER},
</if>
<if test="record.key != null">
`key` = #{record.key,jdbcType=VARCHAR},
</if>
<if test="record.name != null">
`name` = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.type != null">
`type` = #{record.type,jdbcType=VARCHAR},
</if>
<if test="record.size != null">
`size` = #{record.size,jdbcType=INTEGER},
</if>
<if test="record.modified != null">
modified = #{record.modified,jdbcType=TIMESTAMP},
</if>
<if test="record.url != null">
url = #{record.url,jdbcType=VARCHAR},
</if>
<if test="record.addTime != null">
add_time = #{record.addTime,jdbcType=TIMESTAMP},
</if>
<if test="record.deleted != null">
deleted = #{record.deleted,jdbcType=BIT},
</if>
</trim>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_With_Version_Where_Clause" />
</if>
</update>
<update id="updateWithVersionByPrimaryKey" parameterType="map">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
update litemall_storage
set version = version + 1,
`key` = #{record.key,jdbcType=VARCHAR},
`name` = #{record.name,jdbcType=VARCHAR},
`type` = #{record.type,jdbcType=VARCHAR},
`size` = #{record.size,jdbcType=INTEGER},
modified = #{record.modified,jdbcType=TIMESTAMP},
url = #{record.url,jdbcType=VARCHAR},
add_time = #{record.addTime,jdbcType=TIMESTAMP},
deleted = #{record.deleted,jdbcType=BIT}
where version = #{version,jdbcType=INTEGER}
and id = #{record.id,jdbcType=INTEGER}
</update>
<update id="updateWithVersionByPrimaryKeySelective" parameterType="map">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
update litemall_storage
<set>
<trim suffixOverrides=",">
version = version + 1,
<if test="record.key != null">
`key` = #{record.key,jdbcType=VARCHAR},
</if>
<if test="record.name != null">
`name` = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.type != null">
`type` = #{record.type,jdbcType=VARCHAR},
</if>
<if test="record.size != null">
`size` = #{record.size,jdbcType=INTEGER},
</if>
<if test="record.modified != null">
modified = #{record.modified,jdbcType=TIMESTAMP},
</if>
<if test="record.url != null">
url = #{record.url,jdbcType=VARCHAR},
</if>
<if test="record.addTime != null">
add_time = #{record.addTime,jdbcType=TIMESTAMP},
</if>
<if test="record.deleted != null">
deleted = #{record.deleted,jdbcType=BIT},
</if>
</trim>
</set>
where version = #{version,jdbcType=INTEGER}
and id = #{record.id,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
......@@ -51,7 +51,7 @@
This element is automatically generated by MyBatis Generator, do not modify.
-->
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<foreach close=")" collection="example.oredCriteria" item="criteria" open="and (" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
......@@ -78,6 +78,43 @@
</foreach>
</where>
</sql>
<sql id="Update_By_Example_With_Version_Where_Clause">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
<where>
version = #{version,jdbcType=INTEGER}
<if test="example.oredCriteria.size() &gt; 0">
<foreach close=")" collection="example.oredCriteria" item="criteria" open="and (" 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>
</if>
</where>
</sql>
<sql id="Base_Column_List">
<!--
WARNING - @mbg.generated
......@@ -116,7 +153,7 @@
<choose>
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
${column.value}
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
......@@ -175,7 +212,7 @@
<choose>
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
${column.value}
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
......@@ -367,7 +404,7 @@
<choose>
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
${column.value}
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
......@@ -403,4 +440,107 @@
update litemall_system set deleted = 1
where id = #{id,jdbcType=INTEGER}
</update>
<delete id="deleteWithVersionByPrimaryKey" parameterType="map">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
delete from litemall_system
where version = #{version,jdbcType=INTEGER}
and id = #{key,jdbcType=INTEGER}
</delete>
<delete id="deleteWithVersionByExample" parameterType="map">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
delete from litemall_system
<if test="_parameter != null">
<include refid="Update_By_Example_With_Version_Where_Clause" />
</if>
</delete>
<update id="updateWithVersionByExample" parameterType="map">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
update litemall_system
set version = version + 1,
id = #{record.id,jdbcType=INTEGER},
key_name = #{record.keyName,jdbcType=VARCHAR},
key_value = #{record.keyValue,jdbcType=VARCHAR},
deleted = #{record.deleted,jdbcType=BIT}
<if test="_parameter != null">
<include refid="Update_By_Example_With_Version_Where_Clause" />
</if>
</update>
<update id="updateWithVersionByExampleSelective" parameterType="map">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
update litemall_system
<set>
<trim suffixOverrides=",">
version = version + 1,
<if test="record.id != null">
id = #{record.id,jdbcType=INTEGER},
</if>
<if test="record.keyName != null">
key_name = #{record.keyName,jdbcType=VARCHAR},
</if>
<if test="record.keyValue != null">
key_value = #{record.keyValue,jdbcType=VARCHAR},
</if>
<if test="record.deleted != null">
deleted = #{record.deleted,jdbcType=BIT},
</if>
</trim>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_With_Version_Where_Clause" />
</if>
</update>
<update id="updateWithVersionByPrimaryKey" parameterType="map">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
update litemall_system
set version = version + 1,
key_name = #{record.keyName,jdbcType=VARCHAR},
key_value = #{record.keyValue,jdbcType=VARCHAR},
deleted = #{record.deleted,jdbcType=BIT}
where version = #{version,jdbcType=INTEGER}
and id = #{record.id,jdbcType=INTEGER}
</update>
<update id="updateWithVersionByPrimaryKeySelective" parameterType="map">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
update litemall_system
<set>
<trim suffixOverrides=",">
version = version + 1,
<if test="record.keyName != null">
key_name = #{record.keyName,jdbcType=VARCHAR},
</if>
<if test="record.keyValue != null">
key_value = #{record.keyValue,jdbcType=VARCHAR},
</if>
<if test="record.deleted != null">
deleted = #{record.deleted,jdbcType=BIT},
</if>
</trim>
</set>
where version = #{version,jdbcType=INTEGER}
and id = #{record.id,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
......@@ -83,7 +83,7 @@
This element is automatically generated by MyBatis Generator, do not modify.
-->
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<foreach close=")" collection="example.oredCriteria" item="criteria" open="and (" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
......@@ -129,6 +129,62 @@
</foreach>
</where>
</sql>
<sql id="Update_By_Example_With_Version_Where_Clause">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
<where>
version = #{version,jdbcType=INTEGER}
<if test="example.oredCriteria.size() &gt; 0">
<foreach close=")" collection="example.oredCriteria" item="criteria" open="and (" 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>
<foreach collection="criteria.goodsCriteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value,typeHandler=org.linlinjava.litemall.db.mybatis.JsonIntegerArrayTypeHandler}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value,typeHandler=org.linlinjava.litemall.db.mybatis.JsonIntegerArrayTypeHandler} and #{criterion.secondValue,typeHandler=org.linlinjava.litemall.db.mybatis.JsonIntegerArrayTypeHandler}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem,typeHandler=org.linlinjava.litemall.db.mybatis.JsonIntegerArrayTypeHandler}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</if>
</where>
</sql>
<sql id="Base_Column_List">
<!--
WARNING - @mbg.generated
......@@ -195,7 +251,7 @@
<choose>
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
${column.value}
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
......@@ -259,7 +315,7 @@
<choose>
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
${column.value}
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
......@@ -614,7 +670,7 @@
<choose>
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
${column.value}
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
......@@ -651,4 +707,205 @@
update litemall_topic set deleted = 1
where id = #{id,jdbcType=INTEGER}
</update>
<delete id="deleteWithVersionByPrimaryKey" parameterType="map">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
delete from litemall_topic
where version = #{version,jdbcType=INTEGER}
and id = #{key,jdbcType=INTEGER}
</delete>
<delete id="deleteWithVersionByExample" parameterType="map">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
delete from litemall_topic
<if test="_parameter != null">
<include refid="Update_By_Example_With_Version_Where_Clause" />
</if>
</delete>
<update id="updateWithVersionByExample" parameterType="map">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
update litemall_topic
set version = version + 1,
id = #{record.id,jdbcType=INTEGER},
title = #{record.title,jdbcType=VARCHAR},
subtitle = #{record.subtitle,jdbcType=VARCHAR},
price = #{record.price,jdbcType=DECIMAL},
read_count = #{record.readCount,jdbcType=VARCHAR},
pic_url = #{record.picUrl,jdbcType=VARCHAR},
sort_order = #{record.sortOrder,jdbcType=INTEGER},
goods = #{record.goods,jdbcType=VARCHAR,typeHandler=org.linlinjava.litemall.db.mybatis.JsonIntegerArrayTypeHandler},
add_time = #{record.addTime,jdbcType=TIMESTAMP},
deleted = #{record.deleted,jdbcType=BIT}
<if test="_parameter != null">
<include refid="Update_By_Example_With_Version_Where_Clause" />
</if>
</update>
<update id="updateWithVersionByExampleSelective" parameterType="map">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
update litemall_topic
<set>
<trim suffixOverrides=",">
version = version + 1,
<if test="record.id != null">
id = #{record.id,jdbcType=INTEGER},
</if>
<if test="record.title != null">
title = #{record.title,jdbcType=VARCHAR},
</if>
<if test="record.subtitle != null">
subtitle = #{record.subtitle,jdbcType=VARCHAR},
</if>
<if test="record.price != null">
price = #{record.price,jdbcType=DECIMAL},
</if>
<if test="record.readCount != null">
read_count = #{record.readCount,jdbcType=VARCHAR},
</if>
<if test="record.picUrl != null">
pic_url = #{record.picUrl,jdbcType=VARCHAR},
</if>
<if test="record.sortOrder != null">
sort_order = #{record.sortOrder,jdbcType=INTEGER},
</if>
<if test="record.goods != null">
goods = #{record.goods,jdbcType=VARCHAR,typeHandler=org.linlinjava.litemall.db.mybatis.JsonIntegerArrayTypeHandler},
</if>
<if test="record.addTime != null">
add_time = #{record.addTime,jdbcType=TIMESTAMP},
</if>
<if test="record.deleted != null">
deleted = #{record.deleted,jdbcType=BIT},
</if>
<if test="record.content != null">
content = #{record.content,jdbcType=LONGVARCHAR},
</if>
</trim>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_With_Version_Where_Clause" />
</if>
</update>
<update id="updateWithVersionByExampleWithBLOBs" parameterType="map">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
update litemall_topic
set version = version + 1,
id = #{record.id,jdbcType=INTEGER},
title = #{record.title,jdbcType=VARCHAR},
subtitle = #{record.subtitle,jdbcType=VARCHAR},
price = #{record.price,jdbcType=DECIMAL},
read_count = #{record.readCount,jdbcType=VARCHAR},
pic_url = #{record.picUrl,jdbcType=VARCHAR},
sort_order = #{record.sortOrder,jdbcType=INTEGER},
goods = #{record.goods,jdbcType=VARCHAR,typeHandler=org.linlinjava.litemall.db.mybatis.JsonIntegerArrayTypeHandler},
add_time = #{record.addTime,jdbcType=TIMESTAMP},
deleted = #{record.deleted,jdbcType=BIT},
content = #{record.content,jdbcType=LONGVARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_With_Version_Where_Clause" />
</if>
</update>
<update id="updateWithVersionByPrimaryKey" parameterType="map">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
update litemall_topic
set version = version + 1,
title = #{record.title,jdbcType=VARCHAR},
subtitle = #{record.subtitle,jdbcType=VARCHAR},
price = #{record.price,jdbcType=DECIMAL},
read_count = #{record.readCount,jdbcType=VARCHAR},
pic_url = #{record.picUrl,jdbcType=VARCHAR},
sort_order = #{record.sortOrder,jdbcType=INTEGER},
goods = #{record.goods,jdbcType=VARCHAR,typeHandler=org.linlinjava.litemall.db.mybatis.JsonIntegerArrayTypeHandler},
add_time = #{record.addTime,jdbcType=TIMESTAMP},
deleted = #{record.deleted,jdbcType=BIT}
where version = #{version,jdbcType=INTEGER}
and id = #{record.id,jdbcType=INTEGER}
</update>
<update id="updateWithVersionByPrimaryKeySelective" parameterType="map">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
update litemall_topic
<set>
<trim suffixOverrides=",">
version = version + 1,
<if test="record.title != null">
title = #{record.title,jdbcType=VARCHAR},
</if>
<if test="record.subtitle != null">
subtitle = #{record.subtitle,jdbcType=VARCHAR},
</if>
<if test="record.price != null">
price = #{record.price,jdbcType=DECIMAL},
</if>
<if test="record.readCount != null">
read_count = #{record.readCount,jdbcType=VARCHAR},
</if>
<if test="record.picUrl != null">
pic_url = #{record.picUrl,jdbcType=VARCHAR},
</if>
<if test="record.sortOrder != null">
sort_order = #{record.sortOrder,jdbcType=INTEGER},
</if>
<if test="record.goods != null">
goods = #{record.goods,jdbcType=VARCHAR,typeHandler=org.linlinjava.litemall.db.mybatis.JsonIntegerArrayTypeHandler},
</if>
<if test="record.addTime != null">
add_time = #{record.addTime,jdbcType=TIMESTAMP},
</if>
<if test="record.deleted != null">
deleted = #{record.deleted,jdbcType=BIT},
</if>
<if test="record.content != null">
content = #{record.content,jdbcType=LONGVARCHAR},
</if>
</trim>
</set>
where version = #{version,jdbcType=INTEGER}
and id = #{record.id,jdbcType=INTEGER}
</update>
<update id="updateWithVersionByPrimaryKeyWithBLOBs" parameterType="map">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
update litemall_topic
set version = version + 1,
title = #{record.title,jdbcType=VARCHAR},
subtitle = #{record.subtitle,jdbcType=VARCHAR},
price = #{record.price,jdbcType=DECIMAL},
read_count = #{record.readCount,jdbcType=VARCHAR},
pic_url = #{record.picUrl,jdbcType=VARCHAR},
sort_order = #{record.sortOrder,jdbcType=INTEGER},
goods = #{record.goods,jdbcType=VARCHAR,typeHandler=org.linlinjava.litemall.db.mybatis.JsonIntegerArrayTypeHandler},
add_time = #{record.addTime,jdbcType=TIMESTAMP},
deleted = #{record.deleted,jdbcType=BIT},
content = #{record.content,jdbcType=LONGVARCHAR}
where version = #{version,jdbcType=INTEGER}
and id = #{record.id,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
......@@ -53,7 +53,7 @@
This element is automatically generated by MyBatis Generator, do not modify.
-->
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<foreach close=")" collection="example.oredCriteria" item="criteria" open="and (" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
......@@ -80,6 +80,43 @@
</foreach>
</where>
</sql>
<sql id="Update_By_Example_With_Version_Where_Clause">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
<where>
version = #{version,jdbcType=INTEGER}
<if test="example.oredCriteria.size() &gt; 0">
<foreach close=")" collection="example.oredCriteria" item="criteria" open="and (" 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>
</if>
</where>
</sql>
<sql id="Base_Column_List">
<!--
WARNING - @mbg.generated
......@@ -118,7 +155,7 @@
<choose>
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
${column.value}
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
......@@ -153,7 +190,7 @@
<choose>
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
${column.value}
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
......@@ -375,7 +412,7 @@
<choose>
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
${column.value}
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
......@@ -391,4 +428,123 @@
</if>
limit 1
</select>
<delete id="deleteWithVersionByPrimaryKey" parameterType="map">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
delete from litemall_user_formid
where version = #{version,jdbcType=INTEGER}
and id = #{key,jdbcType=INTEGER}
</delete>
<delete id="deleteWithVersionByExample" parameterType="map">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
delete from litemall_user_formid
<if test="_parameter != null">
<include refid="Update_By_Example_With_Version_Where_Clause" />
</if>
</delete>
<update id="updateWithVersionByExample" parameterType="map">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
update litemall_user_formid
set version = version + 1,
id = #{record.id,jdbcType=INTEGER},
formId = #{record.formid,jdbcType=VARCHAR},
isprepay = #{record.isprepay,jdbcType=BIT},
useAmount = #{record.useamount,jdbcType=INTEGER},
expire_time = #{record.expireTime,jdbcType=TIMESTAMP},
openId = #{record.openid,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_With_Version_Where_Clause" />
</if>
</update>
<update id="updateWithVersionByExampleSelective" parameterType="map">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
update litemall_user_formid
<set>
<trim suffixOverrides=",">
version = version + 1,
<if test="record.id != null">
id = #{record.id,jdbcType=INTEGER},
</if>
<if test="record.formid != null">
formId = #{record.formid,jdbcType=VARCHAR},
</if>
<if test="record.isprepay != null">
isprepay = #{record.isprepay,jdbcType=BIT},
</if>
<if test="record.useamount != null">
useAmount = #{record.useamount,jdbcType=INTEGER},
</if>
<if test="record.expireTime != null">
expire_time = #{record.expireTime,jdbcType=TIMESTAMP},
</if>
<if test="record.openid != null">
openId = #{record.openid,jdbcType=VARCHAR},
</if>
</trim>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_With_Version_Where_Clause" />
</if>
</update>
<update id="updateWithVersionByPrimaryKey" parameterType="map">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
update litemall_user_formid
set version = version + 1,
formId = #{record.formid,jdbcType=VARCHAR},
isprepay = #{record.isprepay,jdbcType=BIT},
useAmount = #{record.useamount,jdbcType=INTEGER},
expire_time = #{record.expireTime,jdbcType=TIMESTAMP},
openId = #{record.openid,jdbcType=VARCHAR}
where version = #{version,jdbcType=INTEGER}
and id = #{record.id,jdbcType=INTEGER}
</update>
<update id="updateWithVersionByPrimaryKeySelective" parameterType="map">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
update litemall_user_formid
<set>
<trim suffixOverrides=",">
version = version + 1,
<if test="record.formid != null">
formId = #{record.formid,jdbcType=VARCHAR},
</if>
<if test="record.isprepay != null">
isprepay = #{record.isprepay,jdbcType=BIT},
</if>
<if test="record.useamount != null">
useAmount = #{record.useamount,jdbcType=INTEGER},
</if>
<if test="record.expireTime != null">
expire_time = #{record.expireTime,jdbcType=TIMESTAMP},
</if>
<if test="record.openid != null">
openId = #{record.openid,jdbcType=VARCHAR},
</if>
</trim>
</set>
where version = #{version,jdbcType=INTEGER}
and id = #{record.id,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
......@@ -62,7 +62,7 @@
This element is automatically generated by MyBatis Generator, do not modify.
-->
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<foreach close=")" collection="example.oredCriteria" item="criteria" open="and (" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
......@@ -89,6 +89,43 @@
</foreach>
</where>
</sql>
<sql id="Update_By_Example_With_Version_Where_Clause">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
<where>
version = #{version,jdbcType=INTEGER}
<if test="example.oredCriteria.size() &gt; 0">
<foreach close=")" collection="example.oredCriteria" item="criteria" open="and (" 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>
</if>
</where>
</sql>
<sql id="Base_Column_List">
<!--
WARNING - @mbg.generated
......@@ -128,7 +165,7 @@
<choose>
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
${column.value}
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
......@@ -188,7 +225,7 @@
<choose>
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
${column.value}
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
......@@ -543,7 +580,7 @@
<choose>
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
${column.value}
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
......@@ -580,4 +617,195 @@
update litemall_user set deleted = 1
where id = #{id,jdbcType=INTEGER}
</update>
<delete id="deleteWithVersionByPrimaryKey" parameterType="map">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
delete from litemall_user
where version = #{version,jdbcType=INTEGER}
and id = #{key,jdbcType=INTEGER}
</delete>
<delete id="deleteWithVersionByExample" parameterType="map">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
delete from litemall_user
<if test="_parameter != null">
<include refid="Update_By_Example_With_Version_Where_Clause" />
</if>
</delete>
<update id="updateWithVersionByExample" parameterType="map">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
update litemall_user
set version = version + 1,
id = #{record.id,jdbcType=INTEGER},
username = #{record.username,jdbcType=VARCHAR},
`password` = #{record.password,jdbcType=VARCHAR},
gender = #{record.gender,jdbcType=TINYINT},
birthday = #{record.birthday,jdbcType=DATE},
last_login_time = #{record.lastLoginTime,jdbcType=TIMESTAMP},
last_login_ip = #{record.lastLoginIp,jdbcType=VARCHAR},
user_level = #{record.userLevel,jdbcType=TINYINT},
nickname = #{record.nickname,jdbcType=VARCHAR},
mobile = #{record.mobile,jdbcType=VARCHAR},
avatar = #{record.avatar,jdbcType=VARCHAR},
weixin_openid = #{record.weixinOpenid,jdbcType=VARCHAR},
`status` = #{record.status,jdbcType=TINYINT},
add_time = #{record.addTime,jdbcType=TIMESTAMP},
deleted = #{record.deleted,jdbcType=BIT}
<if test="_parameter != null">
<include refid="Update_By_Example_With_Version_Where_Clause" />
</if>
</update>
<update id="updateWithVersionByExampleSelective" parameterType="map">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
update litemall_user
<set>
<trim suffixOverrides=",">
version = version + 1,
<if test="record.id != null">
id = #{record.id,jdbcType=INTEGER},
</if>
<if test="record.username != null">
username = #{record.username,jdbcType=VARCHAR},
</if>
<if test="record.password != null">
`password` = #{record.password,jdbcType=VARCHAR},
</if>
<if test="record.gender != null">
gender = #{record.gender,jdbcType=TINYINT},
</if>
<if test="record.birthday != null">
birthday = #{record.birthday,jdbcType=DATE},
</if>
<if test="record.lastLoginTime != null">
last_login_time = #{record.lastLoginTime,jdbcType=TIMESTAMP},
</if>
<if test="record.lastLoginIp != null">
last_login_ip = #{record.lastLoginIp,jdbcType=VARCHAR},
</if>
<if test="record.userLevel != null">
user_level = #{record.userLevel,jdbcType=TINYINT},
</if>
<if test="record.nickname != null">
nickname = #{record.nickname,jdbcType=VARCHAR},
</if>
<if test="record.mobile != null">
mobile = #{record.mobile,jdbcType=VARCHAR},
</if>
<if test="record.avatar != null">
avatar = #{record.avatar,jdbcType=VARCHAR},
</if>
<if test="record.weixinOpenid != null">
weixin_openid = #{record.weixinOpenid,jdbcType=VARCHAR},
</if>
<if test="record.status != null">
`status` = #{record.status,jdbcType=TINYINT},
</if>
<if test="record.addTime != null">
add_time = #{record.addTime,jdbcType=TIMESTAMP},
</if>
<if test="record.deleted != null">
deleted = #{record.deleted,jdbcType=BIT},
</if>
</trim>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_With_Version_Where_Clause" />
</if>
</update>
<update id="updateWithVersionByPrimaryKey" parameterType="map">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
update litemall_user
set version = version + 1,
username = #{record.username,jdbcType=VARCHAR},
`password` = #{record.password,jdbcType=VARCHAR},
gender = #{record.gender,jdbcType=TINYINT},
birthday = #{record.birthday,jdbcType=DATE},
last_login_time = #{record.lastLoginTime,jdbcType=TIMESTAMP},
last_login_ip = #{record.lastLoginIp,jdbcType=VARCHAR},
user_level = #{record.userLevel,jdbcType=TINYINT},
nickname = #{record.nickname,jdbcType=VARCHAR},
mobile = #{record.mobile,jdbcType=VARCHAR},
avatar = #{record.avatar,jdbcType=VARCHAR},
weixin_openid = #{record.weixinOpenid,jdbcType=VARCHAR},
`status` = #{record.status,jdbcType=TINYINT},
add_time = #{record.addTime,jdbcType=TIMESTAMP},
deleted = #{record.deleted,jdbcType=BIT}
where version = #{version,jdbcType=INTEGER}
and id = #{record.id,jdbcType=INTEGER}
</update>
<update id="updateWithVersionByPrimaryKeySelective" parameterType="map">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
update litemall_user
<set>
<trim suffixOverrides=",">
version = version + 1,
<if test="record.username != null">
username = #{record.username,jdbcType=VARCHAR},
</if>
<if test="record.password != null">
`password` = #{record.password,jdbcType=VARCHAR},
</if>
<if test="record.gender != null">
gender = #{record.gender,jdbcType=TINYINT},
</if>
<if test="record.birthday != null">
birthday = #{record.birthday,jdbcType=DATE},
</if>
<if test="record.lastLoginTime != null">
last_login_time = #{record.lastLoginTime,jdbcType=TIMESTAMP},
</if>
<if test="record.lastLoginIp != null">
last_login_ip = #{record.lastLoginIp,jdbcType=VARCHAR},
</if>
<if test="record.userLevel != null">
user_level = #{record.userLevel,jdbcType=TINYINT},
</if>
<if test="record.nickname != null">
nickname = #{record.nickname,jdbcType=VARCHAR},
</if>
<if test="record.mobile != null">
mobile = #{record.mobile,jdbcType=VARCHAR},
</if>
<if test="record.avatar != null">
avatar = #{record.avatar,jdbcType=VARCHAR},
</if>
<if test="record.weixinOpenid != null">
weixin_openid = #{record.weixinOpenid,jdbcType=VARCHAR},
</if>
<if test="record.status != null">
`status` = #{record.status,jdbcType=TINYINT},
</if>
<if test="record.addTime != null">
add_time = #{record.addTime,jdbcType=TIMESTAMP},
</if>
<if test="record.deleted != null">
deleted = #{record.deleted,jdbcType=BIT},
</if>
</trim>
</set>
where version = #{version,jdbcType=INTEGER}
and id = #{record.id,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment