Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Litemall
Commits
8f078bd9
Commit
8f078bd9
authored
May 16, 2018
by
Junling Bu
Browse files
update[litemall-db]: 更新mybatis generator插件到1.2.3。
1. 设置逻辑删除插件 2. 设置乐观锁插件
parent
d006f89f
Changes
98
Hide whitespace changes
Inline
Side-by-side
litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallCollectMapper.xml
View file @
8f078bd9
...
@@ -115,9 +115,16 @@
...
@@ -115,9 +115,16 @@
<if
test=
"example.distinct"
>
<if
test=
"example.distinct"
>
distinct
distinct
</if>
</if>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
<choose>
${column.value}
<when
test=
"selective != null and selective.length > 0"
>
</foreach>
<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
from litemall_collect
<if
test=
"_parameter != null"
>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
<include
refid=
"Update_By_Example_Where_Clause"
/>
...
@@ -136,6 +143,30 @@
...
@@ -136,6 +143,30 @@
from litemall_collect
from litemall_collect
where id = #{id,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
</select>
</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"
>
<select
id=
"selectByPrimaryKeySelective"
parameterType=
"map"
resultMap=
"BaseResultMap"
>
<!--
<!--
WARNING - @mbg.generated
WARNING - @mbg.generated
...
@@ -143,9 +174,16 @@
...
@@ -143,9 +174,16 @@
@project https://github.com/itfsw/mybatis-generator-plugin
@project https://github.com/itfsw/mybatis-generator-plugin
-->
-->
select
select
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
<choose>
${column.value}
<when
test=
"selective != null and selective.length > 0"
>
</foreach>
<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
from litemall_collect
where id = #{id,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
</select>
</select>
...
@@ -358,9 +396,16 @@
...
@@ -358,9 +396,16 @@
@project https://github.com/itfsw/mybatis-generator-plugin
@project https://github.com/itfsw/mybatis-generator-plugin
-->
-->
select
select
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
<choose>
${column.value}
<when
test=
"selective != null and selective.length > 0"
>
</foreach>
<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
from litemall_collect
<if
test=
"_parameter != null"
>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
<include
refid=
"Update_By_Example_Where_Clause"
/>
...
@@ -370,4 +415,24 @@
...
@@ -370,4 +415,24 @@
</if>
</if>
limit 1
limit 1
</select>
</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>
</mapper>
\ No newline at end of file
litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallCommentMapper.xml
View file @
8f078bd9
...
@@ -156,9 +156,17 @@
...
@@ -156,9 +156,17 @@
<if
test=
"example.distinct"
>
<if
test=
"example.distinct"
>
distinct
distinct
</if>
</if>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
<choose>
${column.value}
<when
test=
"selective != null and selective.length > 0"
>
</foreach>
<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
from litemall_comment
<if
test=
"_parameter != null"
>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
<include
refid=
"Update_By_Example_Where_Clause"
/>
...
@@ -177,6 +185,30 @@
...
@@ -177,6 +185,30 @@
from litemall_comment
from litemall_comment
where id = #{id,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
</select>
</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"
>
<select
id=
"selectByPrimaryKeySelective"
parameterType=
"map"
resultMap=
"BaseResultMap"
>
<!--
<!--
WARNING - @mbg.generated
WARNING - @mbg.generated
...
@@ -184,9 +216,17 @@
...
@@ -184,9 +216,17 @@
@project https://github.com/itfsw/mybatis-generator-plugin
@project https://github.com/itfsw/mybatis-generator-plugin
-->
-->
select
select
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
<choose>
${column.value}
<when
test=
"selective != null and selective.length > 0"
>
</foreach>
<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
from litemall_comment
where id = #{id,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
</select>
</select>
...
@@ -443,9 +483,17 @@
...
@@ -443,9 +483,17 @@
@project https://github.com/itfsw/mybatis-generator-plugin
@project https://github.com/itfsw/mybatis-generator-plugin
-->
-->
select
select
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
<choose>
${column.value}
<when
test=
"selective != null and selective.length > 0"
>
</foreach>
<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
from litemall_comment
<if
test=
"_parameter != null"
>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
<include
refid=
"Update_By_Example_Where_Clause"
/>
...
@@ -455,4 +503,24 @@
...
@@ -455,4 +503,24 @@
</if>
</if>
limit 1
limit 1
</select>
</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>
</mapper>
\ No newline at end of file
litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallCouponMapper.xml
View file @
8f078bd9
...
@@ -122,9 +122,17 @@
...
@@ -122,9 +122,17 @@
<if
test=
"example.distinct"
>
<if
test=
"example.distinct"
>
distinct
distinct
</if>
</if>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
<choose>
${column.value}
<when
test=
"selective != null and selective.length > 0"
>
</foreach>
<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
from litemall_coupon
<if
test=
"_parameter != null"
>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
<include
refid=
"Update_By_Example_Where_Clause"
/>
...
@@ -143,6 +151,30 @@
...
@@ -143,6 +151,30 @@
from litemall_coupon
from litemall_coupon
where id = #{id,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
</select>
</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"
>
<select
id=
"selectByPrimaryKeySelective"
parameterType=
"map"
resultMap=
"BaseResultMap"
>
<!--
<!--
WARNING - @mbg.generated
WARNING - @mbg.generated
...
@@ -150,9 +182,17 @@
...
@@ -150,9 +182,17 @@
@project https://github.com/itfsw/mybatis-generator-plugin
@project https://github.com/itfsw/mybatis-generator-plugin
-->
-->
select
select
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
<choose>
${column.value}
<when
test=
"selective != null and selective.length > 0"
>
</foreach>
<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
from litemall_coupon
where id = #{id,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
</select>
</select>
...
@@ -453,9 +493,17 @@
...
@@ -453,9 +493,17 @@
@project https://github.com/itfsw/mybatis-generator-plugin
@project https://github.com/itfsw/mybatis-generator-plugin
-->
-->
select
select
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
<choose>
${column.value}
<when
test=
"selective != null and selective.length > 0"
>
</foreach>
<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
from litemall_coupon
<if
test=
"_parameter != null"
>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
<include
refid=
"Update_By_Example_Where_Clause"
/>
...
@@ -465,4 +513,24 @@
...
@@ -465,4 +513,24 @@
</if>
</if>
limit 1
limit 1
</select>
</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>
</mapper>
\ No newline at end of file
litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallFootprintMapper.xml
View file @
8f078bd9
...
@@ -113,9 +113,16 @@
...
@@ -113,9 +113,16 @@
<if
test=
"example.distinct"
>
<if
test=
"example.distinct"
>
distinct
distinct
</if>
</if>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
<choose>
${column.value}
<when
test=
"selective != null and selective.length > 0"
>
</foreach>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.value}
</foreach>
</when>
<otherwise>
id, user_id, goods_id, add_time, deleted
</otherwise>
</choose>
from litemall_footprint
from litemall_footprint
<if
test=
"_parameter != null"
>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
<include
refid=
"Update_By_Example_Where_Clause"
/>
...
@@ -134,6 +141,30 @@
...
@@ -134,6 +141,30 @@
from litemall_footprint
from litemall_footprint
where id = #{id,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
</select>
</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"
>
<select
id=
"selectByPrimaryKeySelective"
parameterType=
"map"
resultMap=
"BaseResultMap"
>
<!--
<!--
WARNING - @mbg.generated
WARNING - @mbg.generated
...
@@ -141,9 +172,16 @@
...
@@ -141,9 +172,16 @@
@project https://github.com/itfsw/mybatis-generator-plugin
@project https://github.com/itfsw/mybatis-generator-plugin
-->
-->
select
select
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
<choose>
${column.value}
<when
test=
"selective != null and selective.length > 0"
>
</foreach>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.value}
</foreach>
</when>
<otherwise>
id, user_id, goods_id, add_time, deleted
</otherwise>
</choose>
from litemall_footprint
from litemall_footprint
where id = #{id,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
</select>
</select>
...
@@ -326,9 +364,16 @@
...
@@ -326,9 +364,16 @@
@project https://github.com/itfsw/mybatis-generator-plugin
@project https://github.com/itfsw/mybatis-generator-plugin
-->
-->
select
select
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
<choose>
${column.value}
<when
test=
"selective != null and selective.length > 0"
>
</foreach>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.value}
</foreach>
</when>
<otherwise>
id, user_id, goods_id, add_time, deleted
</otherwise>
</choose>
from litemall_footprint
from litemall_footprint
<if
test=
"_parameter != null"
>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
<include
refid=
"Update_By_Example_Where_Clause"
/>
...
@@ -338,4 +383,24 @@
...
@@ -338,4 +383,24 @@
</if>
</if>
limit 1
limit 1
</select>
</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>
</mapper>
\ No newline at end of file
litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallGoodsAttributeMapper.xml
View file @
8f078bd9
...
@@ -114,9 +114,16 @@
...
@@ -114,9 +114,16 @@
<if
test=
"example.distinct"
>
<if
test=
"example.distinct"
>
distinct
distinct
</if>
</if>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
<choose>
${column.value}
<when
test=
"selective != null and selective.length > 0"
>
</foreach>
<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
from litemall_goods_attribute
<if
test=
"_parameter != null"
>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
<include
refid=
"Update_By_Example_Where_Clause"
/>
...
@@ -135,6 +142,30 @@
...
@@ -135,6 +142,30 @@
from litemall_goods_attribute
from litemall_goods_attribute
where id = #{id,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
</select>
</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"
>
<select
id=
"selectByPrimaryKeySelective"
parameterType=
"map"
resultMap=
"BaseResultMap"
>
<!--
<!--
WARNING - @mbg.generated
WARNING - @mbg.generated
...
@@ -142,9 +173,16 @@
...
@@ -142,9 +173,16 @@
@project https://github.com/itfsw/mybatis-generator-plugin
@project https://github.com/itfsw/mybatis-generator-plugin
-->
-->
select
select
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
<choose>
${column.value}
<when
test=
"selective != null and selective.length > 0"
>
</foreach>
<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
from litemall_goods_attribute
where id = #{id,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
</select>
</select>
...
@@ -341,9 +379,16 @@
...
@@ -341,9 +379,16 @@
@project https://github.com/itfsw/mybatis-generator-plugin
@project https://github.com/itfsw/mybatis-generator-plugin
-->
-->
select
select
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
<choose>
${column.value}
<when
test=
"selective != null and selective.length > 0"
>
</foreach>
<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
from litemall_goods_attribute
<if
test=
"_parameter != null"
>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
<include
refid=
"Update_By_Example_Where_Clause"
/>
...
@@ -353,4 +398,24 @@
...
@@ -353,4 +398,24 @@
</if>
</if>
limit 1
limit 1
</select>
</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>
</mapper>
\ No newline at end of file
litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallGoodsMapper.xml
View file @
8f078bd9
...
@@ -191,7 +191,7 @@
...
@@ -191,7 +191,7 @@
order by ${orderByClause}
order by ${orderByClause}
</if>
</if>
</select>
</select>
<select
id=
"selectByExampleSelective"
parameterType=
"map"
resultMap=
"
Base
ResultMap"
>
<select
id=
"selectByExampleSelective"
parameterType=
"map"
resultMap=
"ResultMap
WithBLOBs
"
>
<!--
<!--
WARNING - @mbg.generated
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element is automatically generated by MyBatis Generator, do not modify.
...
@@ -201,9 +201,18 @@
...
@@ -201,9 +201,18 @@
<if
test=
"example.distinct"
>
<if
test=
"example.distinct"
>
distinct
distinct
</if>
</if>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
<choose>
${column.value}
<when
test=
"selective != null and selective.length > 0"
>
</foreach>
<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
from litemall_goods
<if
test=
"_parameter != null"
>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
<include
refid=
"Update_By_Example_Where_Clause"
/>
...
@@ -224,16 +233,51 @@
...
@@ -224,16 +233,51 @@
from litemall_goods
from litemall_goods
where id = #{id,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
</select>
</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
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
@project https://github.com/itfsw/mybatis-generator-plugin
-->
-->
select
select
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
<choose>
${column.value}
<when
test=
"selective != null and selective.length > 0"
>
</foreach>
<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
from litemall_goods
where id = #{id,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
</select>
</select>
...
@@ -684,42 +728,71 @@
...
@@ -684,42 +728,71 @@
</if>
</if>
limit 1
limit 1
</select>
</select>
<select
id=
"selectOneByExample
Selective
"
parameterType=
"
map
"
resultMap=
"
Base
ResultMap"
>
<select
id=
"selectOneByExample
WithBLOBs
"
parameterType=
"
org.linlinjava.litemall.db.domain.LitemallGoodsExample
"
resultMap=
"ResultMap
WithBLOBs
"
>
<!--
<!--
WARNING - @mbg.generated
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
@project https://github.com/itfsw/mybatis-generator-plugin
-->
-->
select
select
<
foreach
collection=
"selective"
item=
"column"
separator=
","
>
<
include
refid=
"Base_Column_List"
/
>
${column.value}
,
<
/foreach
>
<
include
refid=
"Blob_Column_List"
/
>
from litemall_goods
from litemall_goods
<if
test=
"_parameter != null"
>
<if
test=
"_parameter != null"
>
<include
refid=
"
Update_By_
Example_Where_Clause"
/>
<include
refid=
"Example_Where_Clause"
/>
</if>
</if>
<if
test=
"
example.
orderByClause != null"
>
<if
test=
"orderByClause != null"
>
order by ${
example.
orderByClause}
order by ${orderByClause}
</if>
</if>
limit 1
limit 1
</select>
</select>
<select
id=
"selectOneByExample
WithBLOBs
"
parameterType=
"
org.linlinjava.litemall.db.domain.LitemallGoodsExample
"
resultMap=
"ResultMapWithBLOBs"
>
<select
id=
"selectOneByExample
Selective
"
parameterType=
"
map
"
resultMap=
"ResultMapWithBLOBs"
>
<!--
<!--
WARNING - @mbg.generated
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
@project https://github.com/itfsw/mybatis-generator-plugin
-->
-->
select
select
<include
refid=
"Base_Column_List"
/>
<choose>
,
<when
test=
"selective != null and selective.length > 0"
>
<include
refid=
"Blob_Column_List"
/>
<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
from litemall_goods
<if
test=
"_parameter != null"
>
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
<include
refid=
"
Update_By_
Example_Where_Clause"
/>
</if>
</if>
<if
test=
"orderByClause != null"
>
<if
test=
"
example.
orderByClause != null"
>
order by ${orderByClause}
order by ${
example.
orderByClause}
</if>
</if>
limit 1
limit 1
</select>
</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>
</mapper>
\ No newline at end of file
litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallGoodsSpecificationMapper.xml
View file @
8f078bd9
...
@@ -115,9 +115,16 @@
...
@@ -115,9 +115,16 @@
<if
test=
"example.distinct"
>
<if
test=
"example.distinct"
>
distinct
distinct
</if>
</if>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
<choose>
${column.value}
<when
test=
"selective != null and selective.length > 0"
>
</foreach>
<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
from litemall_goods_specification
<if
test=
"_parameter != null"
>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
<include
refid=
"Update_By_Example_Where_Clause"
/>
...
@@ -136,6 +143,30 @@
...
@@ -136,6 +143,30 @@
from litemall_goods_specification
from litemall_goods_specification
where id = #{id,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
</select>
</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"
>
<select
id=
"selectByPrimaryKeySelective"
parameterType=
"map"
resultMap=
"BaseResultMap"
>
<!--
<!--
WARNING - @mbg.generated
WARNING - @mbg.generated
...
@@ -143,9 +174,16 @@
...
@@ -143,9 +174,16 @@
@project https://github.com/itfsw/mybatis-generator-plugin
@project https://github.com/itfsw/mybatis-generator-plugin
-->
-->
select
select
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
<choose>
${column.value}
<when
test=
"selective != null and selective.length > 0"
>
</foreach>
<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
from litemall_goods_specification
where id = #{id,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
</select>
</select>
...
@@ -358,9 +396,16 @@
...
@@ -358,9 +396,16 @@
@project https://github.com/itfsw/mybatis-generator-plugin
@project https://github.com/itfsw/mybatis-generator-plugin
-->
-->
select
select
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
<choose>
${column.value}
<when
test=
"selective != null and selective.length > 0"
>
</foreach>
<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
from litemall_goods_specification
<if
test=
"_parameter != null"
>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
<include
refid=
"Update_By_Example_Where_Clause"
/>
...
@@ -370,4 +415,24 @@
...
@@ -370,4 +415,24 @@
</if>
</if>
limit 1
limit 1
</select>
</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>
</mapper>
\ No newline at end of file
litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallIssueMapper.xml
View file @
8f078bd9
...
@@ -113,9 +113,16 @@
...
@@ -113,9 +113,16 @@
<if
test=
"example.distinct"
>
<if
test=
"example.distinct"
>
distinct
distinct
</if>
</if>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
<choose>
${column.value}
<when
test=
"selective != null and selective.length > 0"
>
</foreach>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.value}
</foreach>
</when>
<otherwise>
id, question, answer, add_time, deleted
</otherwise>
</choose>
from litemall_issue
from litemall_issue
<if
test=
"_parameter != null"
>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
<include
refid=
"Update_By_Example_Where_Clause"
/>
...
@@ -134,6 +141,30 @@
...
@@ -134,6 +141,30 @@
from litemall_issue
from litemall_issue
where id = #{id,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
</select>
</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"
>
<select
id=
"selectByPrimaryKeySelective"
parameterType=
"map"
resultMap=
"BaseResultMap"
>
<!--
<!--
WARNING - @mbg.generated
WARNING - @mbg.generated
...
@@ -141,9 +172,16 @@
...
@@ -141,9 +172,16 @@
@project https://github.com/itfsw/mybatis-generator-plugin
@project https://github.com/itfsw/mybatis-generator-plugin
-->
-->
select
select
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
<choose>
${column.value}
<when
test=
"selective != null and selective.length > 0"
>
</foreach>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.value}
</foreach>
</when>
<otherwise>
id, question, answer, add_time, deleted
</otherwise>
</choose>
from litemall_issue
from litemall_issue
where id = #{id,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
</select>
</select>
...
@@ -326,9 +364,16 @@
...
@@ -326,9 +364,16 @@
@project https://github.com/itfsw/mybatis-generator-plugin
@project https://github.com/itfsw/mybatis-generator-plugin
-->
-->
select
select
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
<choose>
${column.value}
<when
test=
"selective != null and selective.length > 0"
>
</foreach>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.value}
</foreach>
</when>
<otherwise>
id, question, answer, add_time, deleted
</otherwise>
</choose>
from litemall_issue
from litemall_issue
<if
test=
"_parameter != null"
>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
<include
refid=
"Update_By_Example_Where_Clause"
/>
...
@@ -338,4 +383,24 @@
...
@@ -338,4 +383,24 @@
</if>
</if>
limit 1
limit 1
</select>
</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>
</mapper>
\ No newline at end of file
litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallKeywordMapper.xml
View file @
8f078bd9
...
@@ -117,9 +117,16 @@
...
@@ -117,9 +117,16 @@
<if
test=
"example.distinct"
>
<if
test=
"example.distinct"
>
distinct
distinct
</if>
</if>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
<choose>
${column.value}
<when
test=
"selective != null and selective.length > 0"
>
</foreach>
<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
from litemall_keyword
<if
test=
"_parameter != null"
>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
<include
refid=
"Update_By_Example_Where_Clause"
/>
...
@@ -138,6 +145,30 @@
...
@@ -138,6 +145,30 @@
from litemall_keyword
from litemall_keyword
where id = #{id,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
</select>
</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"
>
<select
id=
"selectByPrimaryKeySelective"
parameterType=
"map"
resultMap=
"BaseResultMap"
>
<!--
<!--
WARNING - @mbg.generated
WARNING - @mbg.generated
...
@@ -145,9 +176,16 @@
...
@@ -145,9 +176,16 @@
@project https://github.com/itfsw/mybatis-generator-plugin
@project https://github.com/itfsw/mybatis-generator-plugin
-->
-->
select
select
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
<choose>
${column.value}
<when
test=
"selective != null and selective.length > 0"
>
</foreach>
<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
from litemall_keyword
where id = #{id,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
</select>
</select>
...
@@ -388,9 +426,16 @@
...
@@ -388,9 +426,16 @@
@project https://github.com/itfsw/mybatis-generator-plugin
@project https://github.com/itfsw/mybatis-generator-plugin
-->
-->
select
select
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
<choose>
${column.value}
<when
test=
"selective != null and selective.length > 0"
>
</foreach>
<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
from litemall_keyword
<if
test=
"_parameter != null"
>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
<include
refid=
"Update_By_Example_Where_Clause"
/>
...
@@ -400,4 +445,24 @@
...
@@ -400,4 +445,24 @@
</if>
</if>
limit 1
limit 1
</select>
</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>
</mapper>
\ No newline at end of file
litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallOrderGoodsMapper.xml
View file @
8f078bd9
...
@@ -160,9 +160,18 @@
...
@@ -160,9 +160,18 @@
<if
test=
"example.distinct"
>
<if
test=
"example.distinct"
>
distinct
distinct
</if>
</if>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
<choose>
${column.value}
<when
test=
"selective != null and selective.length > 0"
>
</foreach>
<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
from litemall_order_goods
<if
test=
"_parameter != null"
>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
<include
refid=
"Update_By_Example_Where_Clause"
/>
...
@@ -181,6 +190,30 @@
...
@@ -181,6 +190,30 @@
from litemall_order_goods
from litemall_order_goods
where id = #{id,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
</select>
</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"
>
<select
id=
"selectByPrimaryKeySelective"
parameterType=
"map"
resultMap=
"BaseResultMap"
>
<!--
<!--
WARNING - @mbg.generated
WARNING - @mbg.generated
...
@@ -188,9 +221,18 @@
...
@@ -188,9 +221,18 @@
@project https://github.com/itfsw/mybatis-generator-plugin
@project https://github.com/itfsw/mybatis-generator-plugin
-->
-->
select
select
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
<choose>
${column.value}
<when
test=
"selective != null and selective.length > 0"
>
</foreach>
<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
from litemall_order_goods
where id = #{id,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
</select>
</select>
...
@@ -493,9 +535,18 @@
...
@@ -493,9 +535,18 @@
@project https://github.com/itfsw/mybatis-generator-plugin
@project https://github.com/itfsw/mybatis-generator-plugin
-->
-->
select
select
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
<choose>
${column.value}
<when
test=
"selective != null and selective.length > 0"
>
</foreach>
<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
from litemall_order_goods
<if
test=
"_parameter != null"
>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
<include
refid=
"Update_By_Example_Where_Clause"
/>
...
@@ -505,4 +556,24 @@
...
@@ -505,4 +556,24 @@
</if>
</if>
limit 1
limit 1
</select>
</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>
</mapper>
\ No newline at end of file
litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallOrderMapper.xml
View file @
8f078bd9
...
@@ -135,9 +135,19 @@
...
@@ -135,9 +135,19 @@
<if
test=
"example.distinct"
>
<if
test=
"example.distinct"
>
distinct
distinct
</if>
</if>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
<choose>
${column.value}
<when
test=
"selective != null and selective.length > 0"
>
</foreach>
<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
from litemall_order
<if
test=
"_parameter != null"
>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
<include
refid=
"Update_By_Example_Where_Clause"
/>
...
@@ -156,6 +166,30 @@
...
@@ -156,6 +166,30 @@
from litemall_order
from litemall_order
where id = #{id,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
</select>
</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"
>
<select
id=
"selectByPrimaryKeySelective"
parameterType=
"map"
resultMap=
"BaseResultMap"
>
<!--
<!--
WARNING - @mbg.generated
WARNING - @mbg.generated
...
@@ -163,9 +197,19 @@
...
@@ -163,9 +197,19 @@
@project https://github.com/itfsw/mybatis-generator-plugin
@project https://github.com/itfsw/mybatis-generator-plugin
-->
-->
select
select
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
<choose>
${column.value}
<when
test=
"selective != null and selective.length > 0"
>
</foreach>
<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
from litemall_order
where id = #{id,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
</select>
</select>
...
@@ -626,9 +670,19 @@
...
@@ -626,9 +670,19 @@
@project https://github.com/itfsw/mybatis-generator-plugin
@project https://github.com/itfsw/mybatis-generator-plugin
-->
-->
select
select
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
<choose>
${column.value}
<when
test=
"selective != null and selective.length > 0"
>
</foreach>
<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
from litemall_order
<if
test=
"_parameter != null"
>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
<include
refid=
"Update_By_Example_Where_Clause"
/>
...
@@ -638,4 +692,24 @@
...
@@ -638,4 +692,24 @@
</if>
</if>
limit 1
limit 1
</select>
</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>
</mapper>
\ No newline at end of file
litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallProductMapper.xml
View file @
8f078bd9
...
@@ -155,9 +155,17 @@
...
@@ -155,9 +155,17 @@
<if
test=
"example.distinct"
>
<if
test=
"example.distinct"
>
distinct
distinct
</if>
</if>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
<choose>
${column.value}
<when
test=
"selective != null and selective.length > 0"
>
</foreach>
<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
from litemall_product
<if
test=
"_parameter != null"
>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
<include
refid=
"Update_By_Example_Where_Clause"
/>
...
@@ -176,6 +184,30 @@
...
@@ -176,6 +184,30 @@
from litemall_product
from litemall_product
where id = #{id,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
</select>
</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"
>
<select
id=
"selectByPrimaryKeySelective"
parameterType=
"map"
resultMap=
"BaseResultMap"
>
<!--
<!--
WARNING - @mbg.generated
WARNING - @mbg.generated
...
@@ -183,9 +215,17 @@
...
@@ -183,9 +215,17 @@
@project https://github.com/itfsw/mybatis-generator-plugin
@project https://github.com/itfsw/mybatis-generator-plugin
-->
-->
select
select
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
<choose>
${column.value}
<when
test=
"selective != null and selective.length > 0"
>
</foreach>
<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
from litemall_product
where id = #{id,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
</select>
</select>
...
@@ -412,9 +452,17 @@
...
@@ -412,9 +452,17 @@
@project https://github.com/itfsw/mybatis-generator-plugin
@project https://github.com/itfsw/mybatis-generator-plugin
-->
-->
select
select
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
<choose>
${column.value}
<when
test=
"selective != null and selective.length > 0"
>
</foreach>
<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
from litemall_product
<if
test=
"_parameter != null"
>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
<include
refid=
"Update_By_Example_Where_Clause"
/>
...
@@ -424,4 +472,24 @@
...
@@ -424,4 +472,24 @@
</if>
</if>
limit 1
limit 1
</select>
</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>
</mapper>
\ No newline at end of file
litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallRegionMapper.xml
View file @
8f078bd9
...
@@ -113,9 +113,16 @@
...
@@ -113,9 +113,16 @@
<if
test=
"example.distinct"
>
<if
test=
"example.distinct"
>
distinct
distinct
</if>
</if>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
<choose>
${column.value}
<when
test=
"selective != null and selective.length > 0"
>
</foreach>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.value}
</foreach>
</when>
<otherwise>
id, pid, `name`, `type`, code
</otherwise>
</choose>
from litemall_region
from litemall_region
<if
test=
"_parameter != null"
>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
<include
refid=
"Update_By_Example_Where_Clause"
/>
...
@@ -141,9 +148,16 @@
...
@@ -141,9 +148,16 @@
@project https://github.com/itfsw/mybatis-generator-plugin
@project https://github.com/itfsw/mybatis-generator-plugin
-->
-->
select
select
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
<choose>
${column.value}
<when
test=
"selective != null and selective.length > 0"
>
</foreach>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.value}
</foreach>
</when>
<otherwise>
id, pid, `name`, `type`, code
</otherwise>
</choose>
from litemall_region
from litemall_region
where id = #{id,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
</select>
</select>
...
@@ -326,9 +340,16 @@
...
@@ -326,9 +340,16 @@
@project https://github.com/itfsw/mybatis-generator-plugin
@project https://github.com/itfsw/mybatis-generator-plugin
-->
-->
select
select
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
<choose>
${column.value}
<when
test=
"selective != null and selective.length > 0"
>
</foreach>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.value}
</foreach>
</when>
<otherwise>
id, pid, `name`, `type`, code
</otherwise>
</choose>
from litemall_region
from litemall_region
<if
test=
"_parameter != null"
>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
<include
refid=
"Update_By_Example_Where_Clause"
/>
...
...
litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallSearchHistoryMapper.xml
View file @
8f078bd9
...
@@ -114,9 +114,16 @@
...
@@ -114,9 +114,16 @@
<if
test=
"example.distinct"
>
<if
test=
"example.distinct"
>
distinct
distinct
</if>
</if>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
<choose>
${column.value}
<when
test=
"selective != null and selective.length > 0"
>
</foreach>
<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
from litemall_search_history
<if
test=
"_parameter != null"
>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
<include
refid=
"Update_By_Example_Where_Clause"
/>
...
@@ -135,6 +142,30 @@
...
@@ -135,6 +142,30 @@
from litemall_search_history
from litemall_search_history
where id = #{id,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
</select>
</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"
>
<select
id=
"selectByPrimaryKeySelective"
parameterType=
"map"
resultMap=
"BaseResultMap"
>
<!--
<!--
WARNING - @mbg.generated
WARNING - @mbg.generated
...
@@ -142,9 +173,16 @@
...
@@ -142,9 +173,16 @@
@project https://github.com/itfsw/mybatis-generator-plugin
@project https://github.com/itfsw/mybatis-generator-plugin
-->
-->
select
select
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
<choose>
${column.value}
<when
test=
"selective != null and selective.length > 0"
>
</foreach>
<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
from litemall_search_history
where id = #{id,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
</select>
</select>
...
@@ -341,9 +379,16 @@
...
@@ -341,9 +379,16 @@
@project https://github.com/itfsw/mybatis-generator-plugin
@project https://github.com/itfsw/mybatis-generator-plugin
-->
-->
select
select
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
<choose>
${column.value}
<when
test=
"selective != null and selective.length > 0"
>
</foreach>
<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
from litemall_search_history
<if
test=
"_parameter != null"
>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
<include
refid=
"Update_By_Example_Where_Clause"
/>
...
@@ -353,4 +398,24 @@
...
@@ -353,4 +398,24 @@
</if>
</if>
limit 1
limit 1
</select>
</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>
</mapper>
\ No newline at end of file
litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallStorageMapper.xml
View file @
8f078bd9
...
@@ -117,9 +117,16 @@
...
@@ -117,9 +117,16 @@
<if
test=
"example.distinct"
>
<if
test=
"example.distinct"
>
distinct
distinct
</if>
</if>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
<choose>
${column.value}
<when
test=
"selective != null and selective.length > 0"
>
</foreach>
<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
from litemall_storage
<if
test=
"_parameter != null"
>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
<include
refid=
"Update_By_Example_Where_Clause"
/>
...
@@ -138,6 +145,30 @@
...
@@ -138,6 +145,30 @@
from litemall_storage
from litemall_storage
where id = #{id,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
</select>
</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"
>
<select
id=
"selectByPrimaryKeySelective"
parameterType=
"map"
resultMap=
"BaseResultMap"
>
<!--
<!--
WARNING - @mbg.generated
WARNING - @mbg.generated
...
@@ -145,9 +176,16 @@
...
@@ -145,9 +176,16 @@
@project https://github.com/itfsw/mybatis-generator-plugin
@project https://github.com/itfsw/mybatis-generator-plugin
-->
-->
select
select
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
<choose>
${column.value}
<when
test=
"selective != null and selective.length > 0"
>
</foreach>
<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
from litemall_storage
where id = #{id,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
</select>
</select>
...
@@ -388,9 +426,16 @@
...
@@ -388,9 +426,16 @@
@project https://github.com/itfsw/mybatis-generator-plugin
@project https://github.com/itfsw/mybatis-generator-plugin
-->
-->
select
select
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
<choose>
${column.value}
<when
test=
"selective != null and selective.length > 0"
>
</foreach>
<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
from litemall_storage
<if
test=
"_parameter != null"
>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
<include
refid=
"Update_By_Example_Where_Clause"
/>
...
@@ -400,4 +445,24 @@
...
@@ -400,4 +445,24 @@
</if>
</if>
limit 1
limit 1
</select>
</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>
</mapper>
\ No newline at end of file
litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallTopicMapper.xml
View file @
8f078bd9
...
@@ -145,7 +145,7 @@
...
@@ -145,7 +145,7 @@
order by ${orderByClause}
order by ${orderByClause}
</if>
</if>
</select>
</select>
<select
id=
"selectByExampleSelective"
parameterType=
"map"
resultMap=
"
Base
ResultMap"
>
<select
id=
"selectByExampleSelective"
parameterType=
"map"
resultMap=
"ResultMap
WithBLOBs
"
>
<!--
<!--
WARNING - @mbg.generated
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element is automatically generated by MyBatis Generator, do not modify.
...
@@ -155,9 +155,17 @@
...
@@ -155,9 +155,17 @@
<if
test=
"example.distinct"
>
<if
test=
"example.distinct"
>
distinct
distinct
</if>
</if>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
<choose>
${column.value}
<when
test=
"selective != null and selective.length > 0"
>
</foreach>
<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
from litemall_topic
<if
test=
"_parameter != null"
>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
<include
refid=
"Update_By_Example_Where_Clause"
/>
...
@@ -178,16 +186,50 @@
...
@@ -178,16 +186,50 @@
from litemall_topic
from litemall_topic
where id = #{id,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
</select>
</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
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
@project https://github.com/itfsw/mybatis-generator-plugin
-->
-->
select
select
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
<choose>
${column.value}
<when
test=
"selective != null and selective.length > 0"
>
</foreach>
<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
from litemall_topic
where id = #{id,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
</select>
</select>
...
@@ -522,42 +564,70 @@
...
@@ -522,42 +564,70 @@
</if>
</if>
limit 1
limit 1
</select>
</select>
<select
id=
"selectOneByExample
Selective
"
parameterType=
"
map
"
resultMap=
"
Base
ResultMap"
>
<select
id=
"selectOneByExample
WithBLOBs
"
parameterType=
"
org.linlinjava.litemall.db.domain.LitemallTopicExample
"
resultMap=
"ResultMap
WithBLOBs
"
>
<!--
<!--
WARNING - @mbg.generated
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
@project https://github.com/itfsw/mybatis-generator-plugin
-->
-->
select
select
<
foreach
collection=
"selective"
item=
"column"
separator=
","
>
<
include
refid=
"Base_Column_List"
/
>
${column.value}
,
<
/foreach
>
<
include
refid=
"Blob_Column_List"
/
>
from litemall_topic
from litemall_topic
<if
test=
"_parameter != null"
>
<if
test=
"_parameter != null"
>
<include
refid=
"
Update_By_
Example_Where_Clause"
/>
<include
refid=
"Example_Where_Clause"
/>
</if>
</if>
<if
test=
"
example.
orderByClause != null"
>
<if
test=
"orderByClause != null"
>
order by ${
example.
orderByClause}
order by ${orderByClause}
</if>
</if>
limit 1
limit 1
</select>
</select>
<select
id=
"selectOneByExample
WithBLOBs
"
parameterType=
"
org.linlinjava.litemall.db.domain.LitemallTopicExample
"
resultMap=
"ResultMapWithBLOBs"
>
<select
id=
"selectOneByExample
Selective
"
parameterType=
"
map
"
resultMap=
"ResultMapWithBLOBs"
>
<!--
<!--
WARNING - @mbg.generated
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
@project https://github.com/itfsw/mybatis-generator-plugin
-->
-->
select
select
<include
refid=
"Base_Column_List"
/>
<choose>
,
<when
test=
"selective != null and selective.length > 0"
>
<include
refid=
"Blob_Column_List"
/>
<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
from litemall_topic
<if
test=
"_parameter != null"
>
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
<include
refid=
"
Update_By_
Example_Where_Clause"
/>
</if>
</if>
<if
test=
"orderByClause != null"
>
<if
test=
"
example.
orderByClause != null"
>
order by ${orderByClause}
order by ${
example.
orderByClause}
</if>
</if>
limit 1
limit 1
</select>
</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>
</mapper>
\ No newline at end of file
litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallUserCouponMapper.xml
View file @
8f078bd9
...
@@ -115,9 +115,16 @@
...
@@ -115,9 +115,16 @@
<if
test=
"example.distinct"
>
<if
test=
"example.distinct"
>
distinct
distinct
</if>
</if>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
<choose>
${column.value}
<when
test=
"selective != null and selective.length > 0"
>
</foreach>
<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
from litemall_user_coupon
<if
test=
"_parameter != null"
>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
<include
refid=
"Update_By_Example_Where_Clause"
/>
...
@@ -136,6 +143,30 @@
...
@@ -136,6 +143,30 @@
from litemall_user_coupon
from litemall_user_coupon
where id = #{id,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
</select>
</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"
>
<select
id=
"selectByPrimaryKeySelective"
parameterType=
"map"
resultMap=
"BaseResultMap"
>
<!--
<!--
WARNING - @mbg.generated
WARNING - @mbg.generated
...
@@ -143,9 +174,16 @@
...
@@ -143,9 +174,16 @@
@project https://github.com/itfsw/mybatis-generator-plugin
@project https://github.com/itfsw/mybatis-generator-plugin
-->
-->
select
select
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
<choose>
${column.value}
<when
test=
"selective != null and selective.length > 0"
>
</foreach>
<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
from litemall_user_coupon
where id = #{id,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
</select>
</select>
...
@@ -358,9 +396,16 @@
...
@@ -358,9 +396,16 @@
@project https://github.com/itfsw/mybatis-generator-plugin
@project https://github.com/itfsw/mybatis-generator-plugin
-->
-->
select
select
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
<choose>
${column.value}
<when
test=
"selective != null and selective.length > 0"
>
</foreach>
<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
from litemall_user_coupon
<if
test=
"_parameter != null"
>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
<include
refid=
"Update_By_Example_Where_Clause"
/>
...
@@ -370,4 +415,24 @@
...
@@ -370,4 +415,24 @@
</if>
</if>
limit 1
limit 1
</select>
</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>
</mapper>
\ No newline at end of file
litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallUserMapper.xml
View file @
8f078bd9
...
@@ -125,9 +125,18 @@
...
@@ -125,9 +125,18 @@
<if
test=
"example.distinct"
>
<if
test=
"example.distinct"
>
distinct
distinct
</if>
</if>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
<choose>
${column.value}
<when
test=
"selective != null and selective.length > 0"
>
</foreach>
<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
from litemall_user
<if
test=
"_parameter != null"
>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
<include
refid=
"Update_By_Example_Where_Clause"
/>
...
@@ -146,6 +155,30 @@
...
@@ -146,6 +155,30 @@
from litemall_user
from litemall_user
where id = #{id,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
</select>
</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"
>
<select
id=
"selectByPrimaryKeySelective"
parameterType=
"map"
resultMap=
"BaseResultMap"
>
<!--
<!--
WARNING - @mbg.generated
WARNING - @mbg.generated
...
@@ -153,9 +186,18 @@
...
@@ -153,9 +186,18 @@
@project https://github.com/itfsw/mybatis-generator-plugin
@project https://github.com/itfsw/mybatis-generator-plugin
-->
-->
select
select
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
<choose>
${column.value}
<when
test=
"selective != null and selective.length > 0"
>
</foreach>
<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
from litemall_user
where id = #{id,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
</select>
</select>
...
@@ -500,9 +542,18 @@
...
@@ -500,9 +542,18 @@
@project https://github.com/itfsw/mybatis-generator-plugin
@project https://github.com/itfsw/mybatis-generator-plugin
-->
-->
select
select
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
<choose>
${column.value}
<when
test=
"selective != null and selective.length > 0"
>
</foreach>
<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
from litemall_user
<if
test=
"_parameter != null"
>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
<include
refid=
"Update_By_Example_Where_Clause"
/>
...
@@ -512,4 +563,24 @@
...
@@ -512,4 +563,24 @@
</if>
</if>
limit 1
limit 1
</select>
</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>
</mapper>
\ No newline at end of file
Prev
1
2
3
4
5
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment