Browse Source

优化代码

wuxw 2 years ago
parent
commit
73c1158512

+ 1 - 1
java110-db/src/main/resources/mapper/report/BaseDataStatisticsServiceDaoImplMapper.xml

@@ -9,7 +9,7 @@
         from building_room t
         inner join building_unit bu on t.unit_id = bu.unit_id and bu.status_cd = '0'
         inner join f_floor f on bu.floor_id = f.floor_id and f.status_cd = '0'
-        inner join building_owner_room_rel borr on t.room_id = borr.room_id and borr.status_cd = '0'
+        left join building_owner_room_rel borr on t.room_id = borr.room_id and borr.status_cd = '0'
         left join building_owner bo on borr.owner_id = bo.member_id and bo.status_cd = '0'
         where 1=1
         and t.status_cd = '0'