顾绍勇 5 years ago
parent
commit
bf9a3b768e
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      src/main/resources/mapper/TaPreselectionRecordMapper.xml

+ 3
- 0
src/main/resources/mapper/TaPreselectionRecordMapper.xml View File

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