Commit 8f078bd9 authored by Junling Bu's avatar Junling Bu
Browse files

update[litemall-db]: 更新mybatis generator插件到1.2.3。

1. 设置逻辑删除插件
2. 设置乐观锁插件
parent d006f89f
......@@ -115,9 +115,16 @@
<if test="example.distinct">
distinct
</if>
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
<choose>
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
</when>
<otherwise>
id, user_id, value_id, is_attention, type_id, add_time, deleted
</otherwise>
</choose>
from litemall_collect
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
......@@ -136,6 +143,30 @@
from litemall_collect
where id = #{id,jdbcType=INTEGER}
</select>
<select id="selectByPrimaryKeyWithLogicalDelete" parameterType="map" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<include refid="Base_Column_List" />
from litemall_collect
where id = #{id,jdbcType=INTEGER}
and deleted =
<choose>
<when test="andLogicalDeleted">
'1'
</when>
<otherwise>
'0'
</otherwise>
</choose>
</select>
<select id="selectByPrimaryKeySelective" parameterType="map" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
......@@ -143,9 +174,16 @@
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
<choose>
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
</when>
<otherwise>
id, user_id, value_id, is_attention, type_id, add_time, deleted
</otherwise>
</choose>
from litemall_collect
where id = #{id,jdbcType=INTEGER}
</select>
......@@ -358,9 +396,16 @@
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
<choose>
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
</when>
<otherwise>
id, user_id, value_id, is_attention, type_id, add_time, deleted
</otherwise>
</choose>
from litemall_collect
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
......@@ -370,4 +415,24 @@
</if>
limit 1
</select>
<update id="logicalDeleteByExample" 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_collect set deleted = 1
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="logicalDeleteByPrimaryKey" parameterType="java.lang.Integer">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
update litemall_collect set deleted = 1
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
......@@ -156,9 +156,17 @@
<if test="example.distinct">
distinct
</if>
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
<choose>
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
</when>
<otherwise>
id, type_id, value_id, content, user_id, has_picture, pic_urls, star, add_time, deleted
</otherwise>
</choose>
from litemall_comment
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
......@@ -177,6 +185,30 @@
from litemall_comment
where id = #{id,jdbcType=INTEGER}
</select>
<select id="selectByPrimaryKeyWithLogicalDelete" parameterType="map" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<include refid="Base_Column_List" />
from litemall_comment
where id = #{id,jdbcType=INTEGER}
and deleted =
<choose>
<when test="andLogicalDeleted">
'1'
</when>
<otherwise>
'0'
</otherwise>
</choose>
</select>
<select id="selectByPrimaryKeySelective" parameterType="map" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
......@@ -184,9 +216,17 @@
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
<choose>
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
</when>
<otherwise>
id, type_id, value_id, content, user_id, has_picture, pic_urls, star, add_time, deleted
</otherwise>
</choose>
from litemall_comment
where id = #{id,jdbcType=INTEGER}
</select>
......@@ -443,9 +483,17 @@
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
<choose>
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
</when>
<otherwise>
id, type_id, value_id, content, user_id, has_picture, pic_urls, star, add_time, deleted
</otherwise>
</choose>
from litemall_comment
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
......@@ -455,4 +503,24 @@
</if>
limit 1
</select>
<update id="logicalDeleteByExample" 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_comment set deleted = 1
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="logicalDeleteByPrimaryKey" parameterType="java.lang.Integer">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
update litemall_comment set deleted = 1
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
......@@ -122,9 +122,17 @@
<if test="example.distinct">
distinct
</if>
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
<choose>
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
</when>
<otherwise>
id, `name`, type_money, send_type, min_amount, max_amount, min_goods_amount, send_start,
send_end, use_start, use_end, add_time, deleted
</otherwise>
</choose>
from litemall_coupon
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
......@@ -143,6 +151,30 @@
from litemall_coupon
where id = #{id,jdbcType=INTEGER}
</select>
<select id="selectByPrimaryKeyWithLogicalDelete" parameterType="map" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<include refid="Base_Column_List" />
from litemall_coupon
where id = #{id,jdbcType=INTEGER}
and deleted =
<choose>
<when test="andLogicalDeleted">
'1'
</when>
<otherwise>
'0'
</otherwise>
</choose>
</select>
<select id="selectByPrimaryKeySelective" parameterType="map" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
......@@ -150,9 +182,17 @@
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
<choose>
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
</when>
<otherwise>
id, `name`, type_money, send_type, min_amount, max_amount, min_goods_amount, send_start,
send_end, use_start, use_end, add_time, deleted
</otherwise>
</choose>
from litemall_coupon
where id = #{id,jdbcType=INTEGER}
</select>
......@@ -453,9 +493,17 @@
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
<choose>
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
</when>
<otherwise>
id, `name`, type_money, send_type, min_amount, max_amount, min_goods_amount, send_start,
send_end, use_start, use_end, add_time, deleted
</otherwise>
</choose>
from litemall_coupon
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
......@@ -465,4 +513,24 @@
</if>
limit 1
</select>
<update id="logicalDeleteByExample" 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_coupon set deleted = 1
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="logicalDeleteByPrimaryKey" parameterType="java.lang.Integer">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
update litemall_coupon set deleted = 1
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
......@@ -113,9 +113,16 @@
<if test="example.distinct">
distinct
</if>
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
<choose>
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
</when>
<otherwise>
id, user_id, goods_id, add_time, deleted
</otherwise>
</choose>
from litemall_footprint
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
......@@ -134,6 +141,30 @@
from litemall_footprint
where id = #{id,jdbcType=INTEGER}
</select>
<select id="selectByPrimaryKeyWithLogicalDelete" parameterType="map" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<include refid="Base_Column_List" />
from litemall_footprint
where id = #{id,jdbcType=INTEGER}
and deleted =
<choose>
<when test="andLogicalDeleted">
'1'
</when>
<otherwise>
'0'
</otherwise>
</choose>
</select>
<select id="selectByPrimaryKeySelective" parameterType="map" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
......@@ -141,9 +172,16 @@
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
<choose>
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
</when>
<otherwise>
id, user_id, goods_id, add_time, deleted
</otherwise>
</choose>
from litemall_footprint
where id = #{id,jdbcType=INTEGER}
</select>
......@@ -326,9 +364,16 @@
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
<choose>
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
</when>
<otherwise>
id, user_id, goods_id, add_time, deleted
</otherwise>
</choose>
from litemall_footprint
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
......@@ -338,4 +383,24 @@
</if>
limit 1
</select>
<update id="logicalDeleteByExample" 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_footprint set deleted = 1
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="logicalDeleteByPrimaryKey" parameterType="java.lang.Integer">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
update litemall_footprint set deleted = 1
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
......@@ -114,9 +114,16 @@
<if test="example.distinct">
distinct
</if>
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
<choose>
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
</when>
<otherwise>
id, goods_id, `value`, `attribute`, add_time, deleted
</otherwise>
</choose>
from litemall_goods_attribute
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
......@@ -135,6 +142,30 @@
from litemall_goods_attribute
where id = #{id,jdbcType=INTEGER}
</select>
<select id="selectByPrimaryKeyWithLogicalDelete" parameterType="map" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<include refid="Base_Column_List" />
from litemall_goods_attribute
where id = #{id,jdbcType=INTEGER}
and deleted =
<choose>
<when test="andLogicalDeleted">
'1'
</when>
<otherwise>
'0'
</otherwise>
</choose>
</select>
<select id="selectByPrimaryKeySelective" parameterType="map" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
......@@ -142,9 +173,16 @@
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
<choose>
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
</when>
<otherwise>
id, goods_id, `value`, `attribute`, add_time, deleted
</otherwise>
</choose>
from litemall_goods_attribute
where id = #{id,jdbcType=INTEGER}
</select>
......@@ -341,9 +379,16 @@
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
<choose>
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
</when>
<otherwise>
id, goods_id, `value`, `attribute`, add_time, deleted
</otherwise>
</choose>
from litemall_goods_attribute
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
......@@ -353,4 +398,24 @@
</if>
limit 1
</select>
<update id="logicalDeleteByExample" 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_goods_attribute set deleted = 1
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="logicalDeleteByPrimaryKey" parameterType="java.lang.Integer">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
update litemall_goods_attribute set deleted = 1
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
......@@ -191,7 +191,7 @@
order by ${orderByClause}
</if>
</select>
<select id="selectByExampleSelective" parameterType="map" resultMap="BaseResultMap">
<select id="selectByExampleSelective" parameterType="map" resultMap="ResultMapWithBLOBs">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
......@@ -201,9 +201,18 @@
<if test="example.distinct">
distinct
</if>
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
<choose>
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
</when>
<otherwise>
id, goods_sn, `name`, category_id, brand_id, gallery, keywords, goods_brief, is_on_sale,
sort_order, counter_price, is_new, primary_pic_url, list_pic_url, is_hot, goods_unit,
retail_price, add_time, deleted, goods_desc
</otherwise>
</choose>
from litemall_goods
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
......@@ -224,16 +233,51 @@
from litemall_goods
where id = #{id,jdbcType=INTEGER}
</select>
<select id="selectByPrimaryKeySelective" parameterType="map" resultMap="BaseResultMap">
<select id="selectByPrimaryKeyWithLogicalDelete" parameterType="map" resultMap="ResultMapWithBLOBs">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from litemall_goods
where id = #{id,jdbcType=INTEGER}
and deleted =
<choose>
<when test="andLogicalDeleted">
'1'
</when>
<otherwise>
'0'
</otherwise>
</choose>
</select>
<select id="selectByPrimaryKeySelective" parameterType="map" resultMap="ResultMapWithBLOBs">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
<choose>
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
</when>
<otherwise>
id, goods_sn, `name`, category_id, brand_id, gallery, keywords, goods_brief, is_on_sale,
sort_order, counter_price, is_new, primary_pic_url, list_pic_url, is_hot, goods_unit,
retail_price, add_time, deleted, goods_desc
</otherwise>
</choose>
from litemall_goods
where id = #{id,jdbcType=INTEGER}
</select>
......@@ -684,42 +728,71 @@
</if>
limit 1
</select>
<select id="selectOneByExampleSelective" parameterType="map" resultMap="BaseResultMap">
<select id="selectOneByExampleWithBLOBs" parameterType="org.linlinjava.litemall.db.domain.LitemallGoodsExample" resultMap="ResultMapWithBLOBs">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from litemall_goods
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
<include refid="Example_Where_Clause" />
</if>
<if test="example.orderByClause != null">
order by ${example.orderByClause}
<if test="orderByClause != null">
order by ${orderByClause}
</if>
limit 1
</select>
<select id="selectOneByExampleWithBLOBs" parameterType="org.linlinjava.litemall.db.domain.LitemallGoodsExample" resultMap="ResultMapWithBLOBs">
<select id="selectOneByExampleSelective" parameterType="map" resultMap="ResultMapWithBLOBs">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
<choose>
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
</when>
<otherwise>
id, goods_sn, `name`, category_id, brand_id, gallery, keywords, goods_brief, is_on_sale,
sort_order, counter_price, is_new, primary_pic_url, list_pic_url, is_hot, goods_unit,
retail_price, add_time, deleted, goods_desc
</otherwise>
</choose>
from litemall_goods
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
<include refid="Update_By_Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
<if test="example.orderByClause != null">
order by ${example.orderByClause}
</if>
limit 1
</select>
<update id="logicalDeleteByExample" 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_goods set deleted = 1
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="logicalDeleteByPrimaryKey" parameterType="java.lang.Integer">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
update litemall_goods set deleted = 1
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
......@@ -115,9 +115,16 @@
<if test="example.distinct">
distinct
</if>
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
<choose>
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
</when>
<otherwise>
id, goods_id, `value`, pic_url, specification, add_time, deleted
</otherwise>
</choose>
from litemall_goods_specification
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
......@@ -136,6 +143,30 @@
from litemall_goods_specification
where id = #{id,jdbcType=INTEGER}
</select>
<select id="selectByPrimaryKeyWithLogicalDelete" parameterType="map" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<include refid="Base_Column_List" />
from litemall_goods_specification
where id = #{id,jdbcType=INTEGER}
and deleted =
<choose>
<when test="andLogicalDeleted">
'1'
</when>
<otherwise>
'0'
</otherwise>
</choose>
</select>
<select id="selectByPrimaryKeySelective" parameterType="map" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
......@@ -143,9 +174,16 @@
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
<choose>
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
</when>
<otherwise>
id, goods_id, `value`, pic_url, specification, add_time, deleted
</otherwise>
</choose>
from litemall_goods_specification
where id = #{id,jdbcType=INTEGER}
</select>
......@@ -358,9 +396,16 @@
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
<choose>
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
</when>
<otherwise>
id, goods_id, `value`, pic_url, specification, add_time, deleted
</otherwise>
</choose>
from litemall_goods_specification
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
......@@ -370,4 +415,24 @@
</if>
limit 1
</select>
<update id="logicalDeleteByExample" 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_goods_specification set deleted = 1
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="logicalDeleteByPrimaryKey" parameterType="java.lang.Integer">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
update litemall_goods_specification set deleted = 1
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
......@@ -113,9 +113,16 @@
<if test="example.distinct">
distinct
</if>
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
<choose>
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
</when>
<otherwise>
id, question, answer, add_time, deleted
</otherwise>
</choose>
from litemall_issue
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
......@@ -134,6 +141,30 @@
from litemall_issue
where id = #{id,jdbcType=INTEGER}
</select>
<select id="selectByPrimaryKeyWithLogicalDelete" parameterType="map" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<include refid="Base_Column_List" />
from litemall_issue
where id = #{id,jdbcType=INTEGER}
and deleted =
<choose>
<when test="andLogicalDeleted">
'1'
</when>
<otherwise>
'0'
</otherwise>
</choose>
</select>
<select id="selectByPrimaryKeySelective" parameterType="map" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
......@@ -141,9 +172,16 @@
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
<choose>
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
</when>
<otherwise>
id, question, answer, add_time, deleted
</otherwise>
</choose>
from litemall_issue
where id = #{id,jdbcType=INTEGER}
</select>
......@@ -326,9 +364,16 @@
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
<choose>
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
</when>
<otherwise>
id, question, answer, add_time, deleted
</otherwise>
</choose>
from litemall_issue
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
......@@ -338,4 +383,24 @@
</if>
limit 1
</select>
<update id="logicalDeleteByExample" 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_issue set deleted = 1
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="logicalDeleteByPrimaryKey" parameterType="java.lang.Integer">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
update litemall_issue set deleted = 1
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
......@@ -117,9 +117,16 @@
<if test="example.distinct">
distinct
</if>
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
<choose>
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
</when>
<otherwise>
id, keyword, url, is_hot, is_default, is_show, sort_order, add_time, deleted
</otherwise>
</choose>
from litemall_keyword
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
......@@ -138,6 +145,30 @@
from litemall_keyword
where id = #{id,jdbcType=INTEGER}
</select>
<select id="selectByPrimaryKeyWithLogicalDelete" parameterType="map" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<include refid="Base_Column_List" />
from litemall_keyword
where id = #{id,jdbcType=INTEGER}
and deleted =
<choose>
<when test="andLogicalDeleted">
'1'
</when>
<otherwise>
'0'
</otherwise>
</choose>
</select>
<select id="selectByPrimaryKeySelective" parameterType="map" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
......@@ -145,9 +176,16 @@
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
<choose>
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
</when>
<otherwise>
id, keyword, url, is_hot, is_default, is_show, sort_order, add_time, deleted
</otherwise>
</choose>
from litemall_keyword
where id = #{id,jdbcType=INTEGER}
</select>
......@@ -388,9 +426,16 @@
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
<choose>
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
</when>
<otherwise>
id, keyword, url, is_hot, is_default, is_show, sort_order, add_time, deleted
</otherwise>
</choose>
from litemall_keyword
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
......@@ -400,4 +445,24 @@
</if>
limit 1
</select>
<update id="logicalDeleteByExample" 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_keyword set deleted = 1
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="logicalDeleteByPrimaryKey" parameterType="java.lang.Integer">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
update litemall_keyword set deleted = 1
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
......@@ -160,9 +160,18 @@
<if test="example.distinct">
distinct
</if>
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
<choose>
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
</when>
<otherwise>
id, order_id, goods_id, goods_name, goods_sn, product_id, `number`, retail_price,
goods_specification_values, goods_specification_ids, pic_url, add_time, deleted
</otherwise>
</choose>
from litemall_order_goods
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
......@@ -181,6 +190,30 @@
from litemall_order_goods
where id = #{id,jdbcType=INTEGER}
</select>
<select id="selectByPrimaryKeyWithLogicalDelete" parameterType="map" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<include refid="Base_Column_List" />
from litemall_order_goods
where id = #{id,jdbcType=INTEGER}
and deleted =
<choose>
<when test="andLogicalDeleted">
'1'
</when>
<otherwise>
'0'
</otherwise>
</choose>
</select>
<select id="selectByPrimaryKeySelective" parameterType="map" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
......@@ -188,9 +221,18 @@
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
<choose>
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
</when>
<otherwise>
id, order_id, goods_id, goods_name, goods_sn, product_id, `number`, retail_price,
goods_specification_values, goods_specification_ids, pic_url, add_time, deleted
</otherwise>
</choose>
from litemall_order_goods
where id = #{id,jdbcType=INTEGER}
</select>
......@@ -493,9 +535,18 @@
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
<choose>
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
</when>
<otherwise>
id, order_id, goods_id, goods_name, goods_sn, product_id, `number`, retail_price,
goods_specification_values, goods_specification_ids, pic_url, add_time, deleted
</otherwise>
</choose>
from litemall_order_goods
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
......@@ -505,4 +556,24 @@
</if>
limit 1
</select>
<update id="logicalDeleteByExample" 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_order_goods set deleted = 1
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="logicalDeleteByPrimaryKey" parameterType="java.lang.Integer">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
update litemall_order_goods set deleted = 1
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
......@@ -135,9 +135,19 @@
<if test="example.distinct">
distinct
</if>
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
<choose>
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
</when>
<otherwise>
id, user_id, order_sn, order_status, consignee, mobile, address, goods_price, freight_price,
coupon_price, integral_price, order_price, actual_price, pay_id, pay_status, pay_time,
ship_sn, ship_channel, ship_start_time, ship_end_time, confirm_time, end_time,
add_time, deleted
</otherwise>
</choose>
from litemall_order
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
......@@ -156,6 +166,30 @@
from litemall_order
where id = #{id,jdbcType=INTEGER}
</select>
<select id="selectByPrimaryKeyWithLogicalDelete" parameterType="map" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<include refid="Base_Column_List" />
from litemall_order
where id = #{id,jdbcType=INTEGER}
and deleted =
<choose>
<when test="andLogicalDeleted">
'1'
</when>
<otherwise>
'0'
</otherwise>
</choose>
</select>
<select id="selectByPrimaryKeySelective" parameterType="map" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
......@@ -163,9 +197,19 @@
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
<choose>
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
</when>
<otherwise>
id, user_id, order_sn, order_status, consignee, mobile, address, goods_price, freight_price,
coupon_price, integral_price, order_price, actual_price, pay_id, pay_status, pay_time,
ship_sn, ship_channel, ship_start_time, ship_end_time, confirm_time, end_time,
add_time, deleted
</otherwise>
</choose>
from litemall_order
where id = #{id,jdbcType=INTEGER}
</select>
......@@ -626,9 +670,19 @@
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
<choose>
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
</when>
<otherwise>
id, user_id, order_sn, order_status, consignee, mobile, address, goods_price, freight_price,
coupon_price, integral_price, order_price, actual_price, pay_id, pay_status, pay_time,
ship_sn, ship_channel, ship_start_time, ship_end_time, confirm_time, end_time,
add_time, deleted
</otherwise>
</choose>
from litemall_order
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
......@@ -638,4 +692,24 @@
</if>
limit 1
</select>
<update id="logicalDeleteByExample" 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_order set deleted = 1
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="logicalDeleteByPrimaryKey" parameterType="java.lang.Integer">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
update litemall_order set deleted = 1
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
......@@ -155,9 +155,17 @@
<if test="example.distinct">
distinct
</if>
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
<choose>
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
</when>
<otherwise>
id, goods_id, goods_specification_ids, goods_number, retail_price, url, add_time,
deleted
</otherwise>
</choose>
from litemall_product
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
......@@ -176,6 +184,30 @@
from litemall_product
where id = #{id,jdbcType=INTEGER}
</select>
<select id="selectByPrimaryKeyWithLogicalDelete" parameterType="map" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<include refid="Base_Column_List" />
from litemall_product
where id = #{id,jdbcType=INTEGER}
and deleted =
<choose>
<when test="andLogicalDeleted">
'1'
</when>
<otherwise>
'0'
</otherwise>
</choose>
</select>
<select id="selectByPrimaryKeySelective" parameterType="map" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
......@@ -183,9 +215,17 @@
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
<choose>
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
</when>
<otherwise>
id, goods_id, goods_specification_ids, goods_number, retail_price, url, add_time,
deleted
</otherwise>
</choose>
from litemall_product
where id = #{id,jdbcType=INTEGER}
</select>
......@@ -412,9 +452,17 @@
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
<choose>
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
</when>
<otherwise>
id, goods_id, goods_specification_ids, goods_number, retail_price, url, add_time,
deleted
</otherwise>
</choose>
from litemall_product
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
......@@ -424,4 +472,24 @@
</if>
limit 1
</select>
<update id="logicalDeleteByExample" 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_product set deleted = 1
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="logicalDeleteByPrimaryKey" parameterType="java.lang.Integer">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
update litemall_product set deleted = 1
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
......@@ -113,9 +113,16 @@
<if test="example.distinct">
distinct
</if>
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
<choose>
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
</when>
<otherwise>
id, pid, `name`, `type`, code
</otherwise>
</choose>
from litemall_region
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
......@@ -141,9 +148,16 @@
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
<choose>
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
</when>
<otherwise>
id, pid, `name`, `type`, code
</otherwise>
</choose>
from litemall_region
where id = #{id,jdbcType=INTEGER}
</select>
......@@ -326,9 +340,16 @@
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
<choose>
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
</when>
<otherwise>
id, pid, `name`, `type`, code
</otherwise>
</choose>
from litemall_region
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
......
......@@ -114,9 +114,16 @@
<if test="example.distinct">
distinct
</if>
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
<choose>
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
</when>
<otherwise>
id, user_id, keyword, `from`, add_time, deleted
</otherwise>
</choose>
from litemall_search_history
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
......@@ -135,6 +142,30 @@
from litemall_search_history
where id = #{id,jdbcType=INTEGER}
</select>
<select id="selectByPrimaryKeyWithLogicalDelete" parameterType="map" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<include refid="Base_Column_List" />
from litemall_search_history
where id = #{id,jdbcType=INTEGER}
and deleted =
<choose>
<when test="andLogicalDeleted">
'1'
</when>
<otherwise>
'0'
</otherwise>
</choose>
</select>
<select id="selectByPrimaryKeySelective" parameterType="map" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
......@@ -142,9 +173,16 @@
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
<choose>
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
</when>
<otherwise>
id, user_id, keyword, `from`, add_time, deleted
</otherwise>
</choose>
from litemall_search_history
where id = #{id,jdbcType=INTEGER}
</select>
......@@ -341,9 +379,16 @@
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
<choose>
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
</when>
<otherwise>
id, user_id, keyword, `from`, add_time, deleted
</otherwise>
</choose>
from litemall_search_history
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
......@@ -353,4 +398,24 @@
</if>
limit 1
</select>
<update id="logicalDeleteByExample" 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_search_history set deleted = 1
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="logicalDeleteByPrimaryKey" parameterType="java.lang.Integer">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
update litemall_search_history set deleted = 1
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
......@@ -117,9 +117,16 @@
<if test="example.distinct">
distinct
</if>
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
<choose>
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
</when>
<otherwise>
id, `key`, `name`, `type`, `size`, modified, url, add_time, deleted
</otherwise>
</choose>
from litemall_storage
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
......@@ -138,6 +145,30 @@
from litemall_storage
where id = #{id,jdbcType=INTEGER}
</select>
<select id="selectByPrimaryKeyWithLogicalDelete" parameterType="map" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<include refid="Base_Column_List" />
from litemall_storage
where id = #{id,jdbcType=INTEGER}
and deleted =
<choose>
<when test="andLogicalDeleted">
'1'
</when>
<otherwise>
'0'
</otherwise>
</choose>
</select>
<select id="selectByPrimaryKeySelective" parameterType="map" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
......@@ -145,9 +176,16 @@
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
<choose>
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
</when>
<otherwise>
id, `key`, `name`, `type`, `size`, modified, url, add_time, deleted
</otherwise>
</choose>
from litemall_storage
where id = #{id,jdbcType=INTEGER}
</select>
......@@ -388,9 +426,16 @@
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
<choose>
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
</when>
<otherwise>
id, `key`, `name`, `type`, `size`, modified, url, add_time, deleted
</otherwise>
</choose>
from litemall_storage
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
......@@ -400,4 +445,24 @@
</if>
limit 1
</select>
<update id="logicalDeleteByExample" 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 deleted = 1
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="logicalDeleteByPrimaryKey" parameterType="java.lang.Integer">
<!--
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 deleted = 1
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
......@@ -145,7 +145,7 @@
order by ${orderByClause}
</if>
</select>
<select id="selectByExampleSelective" parameterType="map" resultMap="BaseResultMap">
<select id="selectByExampleSelective" parameterType="map" resultMap="ResultMapWithBLOBs">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
......@@ -155,9 +155,17 @@
<if test="example.distinct">
distinct
</if>
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
<choose>
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
</when>
<otherwise>
id, title, avatar, item_pic_url, subtitle, price_info, read_count, scene_pic_url,
sort_order, is_show, add_time, deleted, content
</otherwise>
</choose>
from litemall_topic
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
......@@ -178,16 +186,50 @@
from litemall_topic
where id = #{id,jdbcType=INTEGER}
</select>
<select id="selectByPrimaryKeySelective" parameterType="map" resultMap="BaseResultMap">
<select id="selectByPrimaryKeyWithLogicalDelete" parameterType="map" resultMap="ResultMapWithBLOBs">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from litemall_topic
where id = #{id,jdbcType=INTEGER}
and deleted =
<choose>
<when test="andLogicalDeleted">
'1'
</when>
<otherwise>
'0'
</otherwise>
</choose>
</select>
<select id="selectByPrimaryKeySelective" parameterType="map" resultMap="ResultMapWithBLOBs">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
<choose>
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
</when>
<otherwise>
id, title, avatar, item_pic_url, subtitle, price_info, read_count, scene_pic_url,
sort_order, is_show, add_time, deleted, content
</otherwise>
</choose>
from litemall_topic
where id = #{id,jdbcType=INTEGER}
</select>
......@@ -522,42 +564,70 @@
</if>
limit 1
</select>
<select id="selectOneByExampleSelective" parameterType="map" resultMap="BaseResultMap">
<select id="selectOneByExampleWithBLOBs" parameterType="org.linlinjava.litemall.db.domain.LitemallTopicExample" resultMap="ResultMapWithBLOBs">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from litemall_topic
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
<include refid="Example_Where_Clause" />
</if>
<if test="example.orderByClause != null">
order by ${example.orderByClause}
<if test="orderByClause != null">
order by ${orderByClause}
</if>
limit 1
</select>
<select id="selectOneByExampleWithBLOBs" parameterType="org.linlinjava.litemall.db.domain.LitemallTopicExample" resultMap="ResultMapWithBLOBs">
<select id="selectOneByExampleSelective" parameterType="map" resultMap="ResultMapWithBLOBs">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
<choose>
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
</when>
<otherwise>
id, title, avatar, item_pic_url, subtitle, price_info, read_count, scene_pic_url,
sort_order, is_show, add_time, deleted, content
</otherwise>
</choose>
from litemall_topic
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
<include refid="Update_By_Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
<if test="example.orderByClause != null">
order by ${example.orderByClause}
</if>
limit 1
</select>
<update id="logicalDeleteByExample" 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 deleted = 1
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="logicalDeleteByPrimaryKey" parameterType="java.lang.Integer">
<!--
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 deleted = 1
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
......@@ -115,9 +115,16 @@
<if test="example.distinct">
distinct
</if>
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
<choose>
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
</when>
<otherwise>
id, coupon_id, user_id, order_id, used_time, add_time, deleted
</otherwise>
</choose>
from litemall_user_coupon
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
......@@ -136,6 +143,30 @@
from litemall_user_coupon
where id = #{id,jdbcType=INTEGER}
</select>
<select id="selectByPrimaryKeyWithLogicalDelete" parameterType="map" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<include refid="Base_Column_List" />
from litemall_user_coupon
where id = #{id,jdbcType=INTEGER}
and deleted =
<choose>
<when test="andLogicalDeleted">
'1'
</when>
<otherwise>
'0'
</otherwise>
</choose>
</select>
<select id="selectByPrimaryKeySelective" parameterType="map" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
......@@ -143,9 +174,16 @@
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
<choose>
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
</when>
<otherwise>
id, coupon_id, user_id, order_id, used_time, add_time, deleted
</otherwise>
</choose>
from litemall_user_coupon
where id = #{id,jdbcType=INTEGER}
</select>
......@@ -358,9 +396,16 @@
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
<choose>
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
</when>
<otherwise>
id, coupon_id, user_id, order_id, used_time, add_time, deleted
</otherwise>
</choose>
from litemall_user_coupon
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
......@@ -370,4 +415,24 @@
</if>
limit 1
</select>
<update id="logicalDeleteByExample" 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_coupon set deleted = 1
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="logicalDeleteByPrimaryKey" parameterType="java.lang.Integer">
<!--
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_coupon set deleted = 1
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
......@@ -125,9 +125,18 @@
<if test="example.distinct">
distinct
</if>
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
<choose>
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
</when>
<otherwise>
id, username, `password`, gender, birthday, last_login_time, last_login_ip, user_level,
nickname, mobile, register_ip, avatar, weixin_openid, `status`, add_time, deleted
</otherwise>
</choose>
from litemall_user
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
......@@ -146,6 +155,30 @@
from litemall_user
where id = #{id,jdbcType=INTEGER}
</select>
<select id="selectByPrimaryKeyWithLogicalDelete" parameterType="map" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<include refid="Base_Column_List" />
from litemall_user
where id = #{id,jdbcType=INTEGER}
and deleted =
<choose>
<when test="andLogicalDeleted">
'1'
</when>
<otherwise>
'0'
</otherwise>
</choose>
</select>
<select id="selectByPrimaryKeySelective" parameterType="map" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
......@@ -153,9 +186,18 @@
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
<choose>
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
</when>
<otherwise>
id, username, `password`, gender, birthday, last_login_time, last_login_ip, user_level,
nickname, mobile, register_ip, avatar, weixin_openid, `status`, add_time, deleted
</otherwise>
</choose>
from litemall_user
where id = #{id,jdbcType=INTEGER}
</select>
......@@ -500,9 +542,18 @@
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
<choose>
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
${column.value}
</foreach>
</when>
<otherwise>
id, username, `password`, gender, birthday, last_login_time, last_login_ip, user_level,
nickname, mobile, register_ip, avatar, weixin_openid, `status`, add_time, deleted
</otherwise>
</choose>
from litemall_user
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
......@@ -512,4 +563,24 @@
</if>
limit 1
</select>
<update id="logicalDeleteByExample" 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 deleted = 1
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="logicalDeleteByPrimaryKey" parameterType="java.lang.Integer">
<!--
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 deleted = 1
where id = #{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