魏熙美 5 anni fa
parent
commit
3e04927c9d

+ 2
- 2
src/main/resources/mapper/TaPersonIntentionRecordMapper.xml Vedi 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>