|
@@ -12,6 +12,12 @@
|
12
|
12
|
<if test="buildingId != null and buildingId != ''">
|
13
|
13
|
and a.building_id = #{buildingId}
|
14
|
14
|
</if>
|
|
15
|
+ <if test="personBuildingList != null and personBuildingList.size > 0">
|
|
16
|
+ AND a.building_id in
|
|
17
|
+ <foreach collection="personBuildingList" item="personBuilding" open="(" close=")" separator=",">
|
|
18
|
+ #{personBuilding.buildingId}
|
|
19
|
+ </foreach>
|
|
20
|
+ </if>
|
15
|
21
|
<if test="startCreateDate != null and startCreateDate != ''">
|
16
|
22
|
and date_format(c.create_date,'%Y-%m-%d') >= date_format(#{startCreateDate},'%Y-%m-%d')
|
17
|
23
|
</if>
|
|
@@ -44,6 +50,12 @@
|
44
|
50
|
<if test="buildingId != null and buildingId != ''">
|
45
|
51
|
and a.building_id = #{buildingId}
|
46
|
52
|
</if>
|
|
53
|
+ <if test="personBuildingList != null and personBuildingList.size > 0">
|
|
54
|
+ AND a.building_id in
|
|
55
|
+ <foreach collection="personBuildingList" item="personBuilding" open="(" close=")" separator=",">
|
|
56
|
+ #{personBuilding.buildingId}
|
|
57
|
+ </foreach>
|
|
58
|
+ </if>
|
47
|
59
|
<if test="startCreateDate != null and startCreateDate != ''">
|
48
|
60
|
and date_format(c.create_date,'%Y-%m-%d') >= date_format(#{startCreateDate},'%Y-%m-%d')
|
49
|
61
|
</if>
|