area manage
This commit is contained in:
parent
bc67ab7ac3
commit
5707a599fc
|
|
@ -18,7 +18,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
</resultMap>
|
||||
|
||||
<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>
|
||||
|
||||
<select id="selectAllocAreaList" parameterType="com.bonus.system.domain.AllocArea" resultMap="AllocAreaResult">
|
||||
|
|
@ -38,7 +38,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
</select>
|
||||
|
||||
<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=",">
|
||||
<if test="areaId != null">area_id,</if>
|
||||
<if test="parentId != null">parent_id,</if>
|
||||
|
|
@ -64,7 +64,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
</insert>
|
||||
|
||||
<update id="updateAllocArea" parameterType="com.bonus.system.domain.AllocArea">
|
||||
update alloc_area
|
||||
update sys_alloc_area
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="parentId != null">parent_id = #{parentId},</if>
|
||||
<if test="ancestors != null and ancestors != ''">ancestors = #{ancestors},</if>
|
||||
|
|
@ -79,11 +79,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
</update>
|
||||
|
||||
<delete id="deleteAllocAreaByAreaId" parameterType="Long">
|
||||
delete from alloc_area where area_id = #{areaId}
|
||||
delete from sys_alloc_area where area_id = #{areaId}
|
||||
</delete>
|
||||
|
||||
<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=")">
|
||||
#{areaId}
|
||||
</foreach>
|
||||
|
|
|
|||
Loading…
Reference in New Issue