InitializeBuildingUnitDaoImplMapper.xml
1.76 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
<?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>
<delete id="deleteOwnerRoomRel" parameterType="Map">
delete from building_owner_room_rel where room_id in
<foreach collection="roomIds" item="item" open="(" close=")" separator=",">
#{item}
</foreach>
</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>
<delete id="deleteOwnerCar" parameterType="Map">
delete from owner_car where 1=1
and community_id = #{communityId}
</delete>
</mapper>