Your Name vor 2 Jahren
Ursprung
Commit
6645a27443

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

@@ -1124,8 +1124,9 @@
         LEFT JOIN building_room br on pf.payer_obj_id = br.room_id and br.status_cd = '0'
         left join building_unit bu on br.unit_id = bu.unit_id and bu.status_cd = '0'
         where
+        1=1
         <if test="floorId != null and floorId != ''">
-            bu.floor_id = #{floorId}
+           and bu.floor_id = #{floorId}
         </if>
         and t.community_id = #{communityId}
         and t.create_time &gt; #{startDate}