Selaa lähdekoodia

置业顾问分享接口

魏超 5 vuotta sitten
vanhempi
commit
306a123b0b

+ 4
- 2
src/main/java/com/huiju/estateagents/controller/TaPersonVisitRecordController.java Näytä tiedosto

@@ -317,9 +317,9 @@ public class TaPersonVisitRecordController extends BaseController {
317 317
 
318 318
         List<TaConsultantInfo> taConsultantInfos = result.getRecords();
319 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 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 323
             e.setHelpActivityShareNum(helpActivityNum);
324 324
             Integer groupActivityNum = iTaPersonVisitRecordService.countShareNumByEventType(e.getTargetId(), getOrgId(request), userId, CommConstant.POINTS_CHANGE_GROUP);
325 325
             e.setGroupActivityShareNum(groupActivityNum);
@@ -333,4 +333,6 @@ public class TaPersonVisitRecordController extends BaseController {
333 333
         result.setRecords(taConsultantInfos);
334 334
         return ResponseBean.success(result);
335 335
     }
336
+
337
+
336 338
 }

+ 2
- 1
src/main/resources/mapper/TaPersonVisitRecordMapper.xml Näytä tiedosto

@@ -162,6 +162,7 @@
162 162
 
163 163
     <select id="getConsultantShareInfoList" resultType="com.huiju.estateagents.entity.TaConsultantInfo">
164 164
         select
165
+            t.target_id,
165 166
             t.event_type as share_type,
166 167
             a.url as building_img,
167 168
             a.building_name,
@@ -191,7 +192,7 @@
191 192
         order by t.visit_time desc
192 193
     </select>
193 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 196
         where
196 197
         t.consultant_id = #{userId}
197 198
         and t.org_id = #{orgId}