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

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

1. 设置逻辑删除插件
2. 设置乐观锁插件
parent d006f89f
...@@ -113,9 +113,16 @@ ...@@ -113,9 +113,16 @@
<if test="example.distinct"> <if test="example.distinct">
distinct distinct
</if> </if>
<choose>
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=","> <foreach collection="selective" item="column" separator=",">
${column.value} ${column.value}
</foreach> </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
<choose>
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=","> <foreach collection="selective" item="column" separator=",">
${column.value} ${column.value}
</foreach> </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
<choose>
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=","> <foreach collection="selective" item="column" separator=",">
${column.value} ${column.value}
</foreach> </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" />
......
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