Sfoglia il codice sorgente

置业顾问分享接口

魏超 5 anni fa
parent
commit
306a123b0b

+ 4
- 2
src/main/java/com/huiju/estateagents/controller/TaPersonVisitRecordController.java Vedi File

317
 
317
 
318
         List<TaConsultantInfo> taConsultantInfos = result.getRecords();
318
         List<TaConsultantInfo> taConsultantInfos = result.getRecords();
319
         taConsultantInfos.forEach(e ->{
319
         taConsultantInfos.forEach(e ->{
320
-            Integer activityNum = iTaPersonVisitRecordService.countShareNumByEventType(e.getTargetId(), getOrgId(request), userId, CommConstant.POSTER_CONTENT_TYPE_ACTIVITY);
320
+            Integer activityNum = iTaPersonVisitRecordService.countShareNumByEventType(e.getTargetId(), 26, userId, CommConstant.POSTER_CONTENT_TYPE_ACTIVITY);
321
             e.setActivityShareNum(activityNum);
321
             e.setActivityShareNum(activityNum);
322
-            Integer helpActivityNum = iTaPersonVisitRecordService.countShareNumByEventType(e.getTargetId(), getOrgId(request), userId, CommConstant.POINTS_CHANGE_HELP);
322
+            Integer helpActivityNum = iTaPersonVisitRecordService.countShareNumByEventType(e.getTargetId(), 26, userId, CommConstant.POINTS_CHANGE_HELP);
323
             e.setHelpActivityShareNum(helpActivityNum);
323
             e.setHelpActivityShareNum(helpActivityNum);
324
             Integer groupActivityNum = iTaPersonVisitRecordService.countShareNumByEventType(e.getTargetId(), getOrgId(request), userId, CommConstant.POINTS_CHANGE_GROUP);
324
             Integer groupActivityNum = iTaPersonVisitRecordService.countShareNumByEventType(e.getTargetId(), getOrgId(request), userId, CommConstant.POINTS_CHANGE_GROUP);
325
             e.setGroupActivityShareNum(groupActivityNum);
325
             e.setGroupActivityShareNum(groupActivityNum);
333
         result.setRecords(taConsultantInfos);
333
         result.setRecords(taConsultantInfos);
334
         return ResponseBean.success(result);
334
         return ResponseBean.success(result);
335
     }
335
     }
336
+
337
+
336
 }
338
 }

+ 2
- 1
src/main/resources/mapper/TaPersonVisitRecordMapper.xml Vedi File

162
 
162
 
163
     <select id="getConsultantShareInfoList" resultType="com.huiju.estateagents.entity.TaConsultantInfo">
163
     <select id="getConsultantShareInfoList" resultType="com.huiju.estateagents.entity.TaConsultantInfo">
164
         select
164
         select
165
+            t.target_id,
165
             t.event_type as share_type,
166
             t.event_type as share_type,
166
             a.url as building_img,
167
             a.url as building_img,
167
             a.building_name,
168
             a.building_name,
191
         order by t.visit_time desc
192
         order by t.visit_time desc
192
     </select>
193
     </select>
193
     <select id="countShareNumByEventType" resultType="java.lang.Integer">
194
     <select id="countShareNumByEventType" resultType="java.lang.Integer">
194
-        select count(1) from ta_person_visit_record t
195
+        select count(*) from ta_person_visit_record t
195
         where
196
         where
196
         t.consultant_id = #{userId}
197
         t.consultant_id = #{userId}
197
         and t.org_id = #{orgId}
198
         and t.org_id = #{orgId}