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 @@
<if test="example.distinct">
distinct
</if>
<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
<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
<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" />
......
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