@@ -59,8 +59,11 @@
<if test="customerLocked == 'other'">
AND t6.person_id != #{personId}
</if>
+ GROUP BY
+ t6.house_id
ORDER BY
t3.create_date DESC
+
</select>
<select id="getRecordByPersonIdAndHouseId" resultType="com.huiju.estateagents.entity.TaPreselectionRecord">