Browse Source

优化代码

java110 5 years ago
parent
commit
fec1ecb97b

+ 2 - 2
java110-db/src/main/resources/mapper/user/OwnerServiceDaoImplMapper.xml

@@ -131,7 +131,7 @@
         from
         from
         building_owner t
         building_owner t
         left join t_dict td on td.table_name = 'building_owner' and td.`table_columns` = 'owner_type_cd' and td.status_cd = t.owner_type_cd
         left join t_dict td on td.table_name = 'building_owner' and td.`table_columns` = 'owner_type_cd' and td.status_cd = t.owner_type_cd
-        left join building_owner_room_rel borr on and borr.status_cd = '0' and t.owner_id = borr.owner_id
+        left join building_owner_room_rel borr on  borr.status_cd = '0' and t.owner_id = borr.owner_id
         where 1 =1
         where 1 =1
         <if test="roomId != null and roomId != ''">
         <if test="roomId != null and roomId != ''">
             and borr.room_id = #{roomId}
             and borr.room_id = #{roomId}
@@ -209,7 +209,7 @@
         from
         from
         building_owner t
         building_owner t
         left join t_dict td on td.table_name = 'building_owner' and td.`table_columns` = 'owner_type_cd' and td.status_cd = t.owner_type_cd
         left join t_dict td on td.table_name = 'building_owner' and td.`table_columns` = 'owner_type_cd' and td.status_cd = t.owner_type_cd
-        left join building_owner_room_rel borr on and borr.status_cd = '0' and t.owner_id = borr.owner_id
+        left join building_owner_room_rel borr on  borr.status_cd = '0' and t.owner_id = borr.owner_id
         where 1 =1
         where 1 =1
         <if test="roomId != null and roomId != ''">
         <if test="roomId != null and roomId != ''">
             and borr.room_id = #{roomId}
             and borr.room_id = #{roomId}