Commit 2420a391 by 阳浪

埋点

parent 63794e12
...@@ -18,6 +18,8 @@ import com.yizhi.training.application.feign.LeaveWordClient; ...@@ -18,6 +18,8 @@ import com.yizhi.training.application.feign.LeaveWordClient;
import com.yizhi.training.application.vo.domain.AuthzUserGroupVo; import com.yizhi.training.application.vo.domain.AuthzUserGroupVo;
import com.yizhi.util.application.date.DateUtil; import com.yizhi.util.application.date.DateUtil;
import com.yizhi.util.application.domain.Response; import com.yizhi.util.application.domain.Response;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
...@@ -35,6 +37,7 @@ import java.util.Optional; ...@@ -35,6 +37,7 @@ import java.util.Optional;
*/ */
@Service @Service
public class EventTrackServiceImpl extends ServiceImpl<EventTrackMapper, EventTrack> implements EventTrackService { public class EventTrackServiceImpl extends ServiceImpl<EventTrackMapper, EventTrack> implements EventTrackService {
private static final Logger logger= LoggerFactory.getLogger(EventTrackServiceImpl.class);
@Autowired @Autowired
private DictionaryFeignClients dictionaryFeignClients; private DictionaryFeignClients dictionaryFeignClients;
...@@ -47,6 +50,7 @@ public class EventTrackServiceImpl extends ServiceImpl<EventTrackMapper, EventTr ...@@ -47,6 +50,7 @@ public class EventTrackServiceImpl extends ServiceImpl<EventTrackMapper, EventTr
@Override @Override
public void addEvent(String type,Long businessId){ public void addEvent(String type,Long businessId){
logger.info("新增埋点{},{}",type,businessId);
RequestContext context = ContextHolder.get(); RequestContext context = ContextHolder.get();
EventTrack eventTrack = new EventTrack(); EventTrack eventTrack = new EventTrack();
Date toDay = new Date(); Date toDay = new Date();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment