|
|
|
|
@ -9,6 +9,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<result property="parentId" column="parent_id" />
|
|
|
|
|
<result property="ancestors" column="ancestors" />
|
|
|
|
|
<result property="tagName" column="tag_name" />
|
|
|
|
|
<result property="parentName" column="parent_name" />
|
|
|
|
|
<result property="orderNum" column="order_num" />
|
|
|
|
|
<result property="leader" column="leader" />
|
|
|
|
|
<result property="phone" column="phone" />
|
|
|
|
|
@ -24,7 +25,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<sql id="selectDeptVo">
|
|
|
|
|
select d.id, d.parent_id, d.ancestors, d.tag_name, d.order_num, d.leader, d.phone, d.email, d.status, d.type, d.del_flag, d.create_by, d.create_time
|
|
|
|
|
select d.id,d.parent_name, d.parent_id, d.ancestors, d.tag_name, d.order_num, d.leader, d.phone, d.email, d.status, d.type, d.del_flag, d.create_by, d.create_time
|
|
|
|
|
from sys_tag d
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
@ -102,6 +103,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
insert into sys_tag(
|
|
|
|
|
<if test="id != null and id != 0">id,</if>
|
|
|
|
|
<if test="parentId != null and parentId != 0">parent_id,</if>
|
|
|
|
|
<if test="parentName != null">parent_name,</if>
|
|
|
|
|
<if test="tagName != null and tagName != ''">tag_name,</if>
|
|
|
|
|
<if test="ancestors != null and ancestors != ''">ancestors,</if>
|
|
|
|
|
<if test="orderNum != null">order_num,</if>
|
|
|
|
|
@ -115,6 +117,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
)values(
|
|
|
|
|
<if test="id != null and id != 0">#{id},</if>
|
|
|
|
|
<if test="parentId != null and parentId != 0">#{parentId},</if>
|
|
|
|
|
<if test="parentName != null">#{parentName},</if>
|
|
|
|
|
<if test="tagName != null and tagName != ''">#{tagName},</if>
|
|
|
|
|
<if test="ancestors != null and ancestors != ''">#{ancestors},</if>
|
|
|
|
|
<if test="orderNum != null">#{orderNum},</if>
|
|
|
|
|
@ -132,6 +135,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
update sys_tag
|
|
|
|
|
<set>
|
|
|
|
|
<if test="parentId != null and parentId != 0">parent_id = #{parentId},</if>
|
|
|
|
|
<if test="parentName != null">parent_name = #{parentName},</if>
|
|
|
|
|
<if test="tagName != null and tagName != ''">tag_name = #{tagName},</if>
|
|
|
|
|
<if test="ancestors != null and ancestors != ''">ancestors = #{ancestors},</if>
|
|
|
|
|
<if test="orderNum != null">order_num = #{orderNum},</if>
|
|
|
|
|
|