魏超 5 anos atrás
pai
commit
c971beb4dd

+ 2
- 2
src/main/java/com/huiju/estateagents/controller/TaPersonVisitRecordController.java Ver arquivo

359
         taConsultantInfos.forEach(e ->{
359
         taConsultantInfos.forEach(e ->{
360
             Integer shareNum = iTaPersonVisitRecordService.countShareNumByEventType(getOrgId(request), e.getTargetId(), userId, (CommConstant.FAVOR_PROJECT.equals(e.getEventType()) ? "building" : e.getEventType()) + "_share");
360
             Integer shareNum = iTaPersonVisitRecordService.countShareNumByEventType(getOrgId(request), e.getTargetId(), userId, (CommConstant.FAVOR_PROJECT.equals(e.getEventType()) ? "building" : e.getEventType()) + "_share");
361
             switch (e.getEventType()){
361
             switch (e.getEventType()){
362
-                case CommConstant.FAVOR_PROJECT:
362
+                case CommConstant.FAVOR_ACTIVITY:
363
                     e.setActivityShareNum(shareNum);
363
                     e.setActivityShareNum(shareNum);
364
                     break;
364
                     break;
365
                 case CommConstant.POINTS_CHANGE_HELP:
365
                 case CommConstant.POINTS_CHANGE_HELP:
371
                 case CommConstant.CAROUSEL_NEWS:
371
                 case CommConstant.CAROUSEL_NEWS:
372
                     e.setNewsNum(shareNum);
372
                     e.setNewsNum(shareNum);
373
                     break;
373
                     break;
374
-                case CommConstant.POSTER_CONTENT_TYPE_BUILDING:
374
+                case CommConstant.FAVOR_PROJECT:
375
                     e.setBuildingNum(shareNum);
375
                     e.setBuildingNum(shareNum);
376
                     break;
376
                     break;
377
                 case CommConstant.EVENT_H5:
377
                 case CommConstant.EVENT_H5:

+ 2
- 1
src/main/resources/mapper/TaPersonVisitRecordMapper.xml Ver arquivo

328
         select count(DISTINCT t.person_id)  from ta_share_person_from t
328
         select count(DISTINCT t.person_id)  from ta_share_person_from t
329
         where
329
         where
330
         t.share_person = #{userId}
330
         t.share_person = #{userId}
331
-        and t.orgId = #{orgId}
331
+        and t.org_id = #{orgId}
332
         and t.target_type = #{eventType}
332
         and t.target_type = #{eventType}
333
         and t.target_id = #{targetId}
333
         and t.target_id = #{targetId}
334
+        and t.status = 1
334
         group by t.target_type
335
         group by t.target_type
335
     </select>
336
     </select>
336
 
337