|
@@ -16,10 +16,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="createTime" column="create_time" />
|
|
<result property="createTime" column="create_time" />
|
|
|
<result property="updateTime" column="update_time" />
|
|
<result property="updateTime" column="update_time" />
|
|
|
<result property="updateBy" column="update_by" />
|
|
<result property="updateBy" column="update_by" />
|
|
|
|
|
+ <result property="parentId" column="parent_id" />
|
|
|
|
|
+ <result property="ancestors" column="ancestors" />
|
|
|
|
|
+ <result property="orderNum" column="order_num" />
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
|
|
<sql id="selectIsWorkareaVo">
|
|
<sql id="selectIsWorkareaVo">
|
|
|
- select workarea_id, workarea_code, workarea_name, workarea_type, workshop_id, map, del_flag, create_by, create_time, update_time, update_by from is_workarea
|
|
|
|
|
|
|
+ select workarea_id, workarea_code, workarea_name,
|
|
|
|
|
+ workarea_type, workshop_id, map, del_flag, create_by,
|
|
|
|
|
+ create_time, update_time, update_by, parent_id, ancestors, order_num
|
|
|
|
|
+ from is_workarea
|
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
|
|
<select id="selectIsWorkareaList" parameterType="IsWorkarea" resultMap="IsWorkareaResult">
|
|
<select id="selectIsWorkareaList" parameterType="IsWorkarea" resultMap="IsWorkareaResult">
|
|
@@ -51,6 +57,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="createTime != null">create_time,</if>
|
|
<if test="createTime != null">create_time,</if>
|
|
|
<if test="updateTime != null">update_time,</if>
|
|
<if test="updateTime != null">update_time,</if>
|
|
|
<if test="updateBy != null">update_by,</if>
|
|
<if test="updateBy != null">update_by,</if>
|
|
|
|
|
+ <if test="parentId != null">parent_id,</if>
|
|
|
|
|
+ <if test="ancestors != null and ancestors != ''">ancestors,</if>
|
|
|
|
|
+ <if test="orderNum != null">order_num,</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="workareaCode != null and workareaCode != ''">#{workareaCode},</if>
|
|
<if test="workareaCode != null and workareaCode != ''">#{workareaCode},</if>
|
|
@@ -63,6 +72,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="createTime != null">#{createTime},</if>
|
|
<if test="createTime != null">#{createTime},</if>
|
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
|
|
|
+ <if test="parentId != null">parent_id,</if>
|
|
|
|
|
+ <if test="ancestors != null and ancestors != ''">ancestors,</if>
|
|
|
|
|
+ <if test="orderNum != null">order_num,</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
|
@@ -79,6 +91,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
|
|
+ <if test="parentId != null">parent_id = #{parentId},</if>
|
|
|
|
|
+ <if test="ancestors != null and ancestors != ''">ancestors = #{ancestors},</if>
|
|
|
|
|
+ <if test="orderNum != null">order_num = #{orderNum},</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
where workarea_id = #{workareaId}
|
|
where workarea_id = #{workareaId}
|
|
|
</update>
|
|
</update>
|