修复进房归因uv问题2

This commit is contained in:
liaozetao
2023-10-16 12:57:20 +08:00
parent 5a6f069479
commit 2342d22dc4
3 changed files with 4 additions and 3 deletions

View File

@@ -40,7 +40,7 @@ public interface FlowDataBatchSearchAdminMapper {
* @param endTime
* @return
*/
Integer getInRoomUv(@Param("roomUid") Long roomUid, @Param("startTime") String startTime, @Param("endTime") String endTime);
Integer getInRoomUv(@Param("searchKey") String searchKey, @Param("roomUid") Long roomUid, @Param("startTime") String startTime, @Param("endTime") String endTime);
/**
* 活动内私聊用户数

View File

@@ -115,7 +115,7 @@ public class FlowDataBatchSearchAdminServiceImpl implements FlowDataBatchSearchA
Integer ascribeTimeUv = flowDataBatchSearchAdminMapper.getAscribeTimeUv(key, startTimeStr, endTimeStr);
admin.setAscribeTimeUv(ascribeTimeUv);
//归因后进入归因房间UV
Integer inRoomUv = flowDataBatchSearchAdminMapper.getInRoomUv(record.getRoomUid(), startTimeStr, endTimeStr);
Integer inRoomUv = flowDataBatchSearchAdminMapper.getInRoomUv(key, record.getRoomUid(), startTimeStr, endTimeStr);
admin.setInRoomUv(inRoomUv);
//归因新增成本
BigDecimal ascribeCostAmount = BigDecimal.ZERO;

View File

@@ -22,7 +22,8 @@
left join room_search_log as rsl on rsl.uid = u.uid
left join users as r on r.uid = #{roomUid}
left join user_in_room_record as uirr on uirr.uid = u.uid and r.uid = uirr.roomUid
where rsl.search_type = 1 and rsl.result_uids like concat('%', #{roomUid}, '%')
where rsl.search_type = 1 and rsl.search_key = #{searchKey}
and rsl.result_uids like concat('%', #{roomUid}, '%')
and rsl.create_time between #{startTime} and #{endTime}
and u.create_time between #{startTime} and #{endTime}
and uirr.create_time between #{startTime} and #{endTime}