area manage
This commit is contained in:
parent
bc67ab7ac3
commit
5707a599fc
|
|
@ -18,7 +18,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<sql id="selectAllocAreaVo">
|
<sql id="selectAllocAreaVo">
|
||||||
select area_id, parent_id, ancestors, area_name, order_num, status, del_flag, create_by, create_time, update_by, update_time from alloc_area
|
select area_id, parent_id, ancestors, area_name, order_num, status, del_flag, create_by, create_time, update_by, update_time from sys_alloc_area
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="selectAllocAreaList" parameterType="com.bonus.system.domain.AllocArea" resultMap="AllocAreaResult">
|
<select id="selectAllocAreaList" parameterType="com.bonus.system.domain.AllocArea" resultMap="AllocAreaResult">
|
||||||
|
|
@ -38,7 +38,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<insert id="insertAllocArea" parameterType="com.bonus.system.domain.AllocArea" useGeneratedKeys="true" keyProperty="id">
|
<insert id="insertAllocArea" parameterType="com.bonus.system.domain.AllocArea" useGeneratedKeys="true" keyProperty="id">
|
||||||
insert into alloc_area
|
insert into sys_alloc_area
|
||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
<if test="areaId != null">area_id,</if>
|
<if test="areaId != null">area_id,</if>
|
||||||
<if test="parentId != null">parent_id,</if>
|
<if test="parentId != null">parent_id,</if>
|
||||||
|
|
@ -64,7 +64,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
<update id="updateAllocArea" parameterType="com.bonus.system.domain.AllocArea">
|
<update id="updateAllocArea" parameterType="com.bonus.system.domain.AllocArea">
|
||||||
update alloc_area
|
update sys_alloc_area
|
||||||
<trim prefix="SET" suffixOverrides=",">
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
<if test="parentId != null">parent_id = #{parentId},</if>
|
<if test="parentId != null">parent_id = #{parentId},</if>
|
||||||
<if test="ancestors != null and ancestors != ''">ancestors = #{ancestors},</if>
|
<if test="ancestors != null and ancestors != ''">ancestors = #{ancestors},</if>
|
||||||
|
|
@ -79,11 +79,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
<delete id="deleteAllocAreaByAreaId" parameterType="Long">
|
<delete id="deleteAllocAreaByAreaId" parameterType="Long">
|
||||||
delete from alloc_area where area_id = #{areaId}
|
delete from sys_alloc_area where area_id = #{areaId}
|
||||||
</delete>
|
</delete>
|
||||||
|
|
||||||
<delete id="deleteAllocAreaByAreaIds" parameterType="String">
|
<delete id="deleteAllocAreaByAreaIds" parameterType="String">
|
||||||
delete from alloc_area where area_id in
|
delete from sys_alloc_area where area_id in
|
||||||
<foreach item="areaId" collection="array" open="(" separator="," close=")">
|
<foreach item="areaId" collection="array" open="(" separator="," close=")">
|
||||||
#{areaId}
|
#{areaId}
|
||||||
</foreach>
|
</foreach>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue