|
@@ -11,12 +11,13 @@
|
|
|
c.date,
|
|
|
c.in_type,
|
|
|
g.linkman
|
|
|
- from sys_uptown a
|
|
|
- inner join out_scan c on c.uptown_id = a.uptown_id
|
|
|
+ from out_scan c
|
|
|
+ inner join sys_user_role t on c.user_id = t.user_id and role_id =1
|
|
|
+ inner join sys_uptown_home g on g.house_id = t.property_id
|
|
|
+ inner join sys_uptown a on c.uptown_id = a.uptown_id
|
|
|
inner join sys_uptown_door b on c.door_id = b.door_id
|
|
|
- inner join sys_uptown_unit d on d.uptown_id = b.uptown_id
|
|
|
- inner join sys_uptown_house e on e.unit_id = d.unit_id
|
|
|
- inner join sys_uptown_home g on g.house_id = e.house_id
|
|
|
+ inner join sys_uptown_house e on e.house_id = t.property_id
|
|
|
+ inner join sys_uptown_unit d on d.unit_id = e.unit_id
|
|
|
<where>
|
|
|
<if test="queryProperties != null and queryProperties != ''">
|
|
|
a.uptown_name like concat('%',#{queryProperties},'%')
|