魏熙美 5 years ago
parent
commit
3e04927c9d
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/main/resources/mapper/TaPersonIntentionRecordMapper.xml

+ 2
- 2
src/main/resources/mapper/TaPersonIntentionRecordMapper.xml View File

@@ -18,7 +18,7 @@
18 18
         SELECT
19 19
             tpir.person_name as  personName,
20 20
             tp.phone as phone,
21
-            GROUP_CONCAT(tpir.building_name) as buildingName,
21
+            tpir.building_name as buildingName,
22 22
             SUM(tpir.intention) as intention
23 23
         FROM
24 24
             ta_person_intention_record tpir
@@ -29,6 +29,6 @@
29 29
                 </if>
30 30
             </where>
31 31
         GROUP BY
32
-            tpir.person_id
32
+            tpir.person_id, tpir.building_id
33 33
     </select>
34 34
 </mapper>