shiyj1101
2021-08-06 d03a642f1e34594ffe166e3837af4106301d8c33
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="initializeBuildingUnitDaoImpl">
 
    <!-- 初始化数据 add by wuxw 2018-07-03 -->
    <delete id="deleteBuildingUnit" parameterType="Map">
        delete from building_unit where 1=1
            and floor_id in
            <foreach collection="floorIds" item="item" open="(" close=")" separator=",">
                #{item}
            </foreach>
    </delete>
 
    <!-- 初始化数据 add by wuxw 2018-07-03 -->
    <delete id="deletefFloor" parameterType="Map">
        delete from f_floor where 1=1
            and community_id = #{communityId}
    </delete>
    <!-- 初始化数据 add by wuxw 2018-07-03 -->
    <delete id="deleteBuildingRoom" parameterType="Map">
        delete from building_room where 1=1
            and community_id = #{communityId}
    </delete>
    <!-- 初始化数据 add by wuxw 2018-07-03 -->
    <delete id="deleteParkingArea" parameterType="Map">
        delete from parking_area where 1=1
            and community_id = #{communityId}
    </delete>
    <!-- 初始化数据 add by wuxw 2018-07-03 -->
    <delete id="deleteParkingSpace" parameterType="Map">
        delete from parking_space where 1=1
            and community_id = #{communityId}
    </delete>
</mapper>