...
|
...
|
@@ -124,6 +124,9 @@ public class UnionServiceImpl implements IUnionService,ApplicationEventPublisher |
|
|
@Resource
|
|
|
AppChannelActiveMapper appChannelActiveMapper;
|
|
|
|
|
|
@Resource
|
|
|
BaseUserActiveDayMapper baseUserActiveDayMapper;
|
|
|
|
|
|
@Resource(name="unionServiceImpl")
|
|
|
IUnionService unionService;
|
|
|
|
...
|
...
|
@@ -405,14 +408,15 @@ public class UnionServiceImpl implements IUnionService,ApplicationEventPublisher |
|
|
} else if ("mars".equals(appkey)) {
|
|
|
app_key = "yohomars_ios";
|
|
|
}
|
|
|
List<AppActivateIdfaList> _90DayIdfaList = appActivateIdfaListDAO.selectByUdidAndDate(new AppActivateIdfaList(Long.valueOf(yesterday), request.getUdid(), app_key));
|
|
|
activeUnion.info("check ios active info in 90 days. udid is {} and app_key is {},yesterday is {} and result is {}", request.getUdid(), app_key, yesterday, (null == _90DayIdfaList || _90DayIdfaList.size() == 0)? "null": _90DayIdfaList.get(0));
|
|
|
// List<AppActivateIdfaList> _90DayIdfaList = appActivateIdfaListDAO.selectByUdidAndDate(new AppActivateIdfaList(Long.valueOf(yesterday), request.getUdid(), app_key));
|
|
|
// activeUnion.info("check ios active info in 90 days. udid is {} and app_key is {},yesterday is {} and result is {}", request.getUdid(), app_key, yesterday, (null == _90DayIdfaList || _90DayIdfaList.size() == 0)? "null": _90DayIdfaList.get(0));
|
|
|
|
|
|
BaseUserActiveDay baseUserActiveDay = baseUserActiveDayMapper.selectByUdidAndAppKey(request.getUdid(),app_key);
|
|
|
List<AppActivateIdfaList> _15DayIdfaList = appActivateIdfaListDAO.select15DaysByIdfaAndDate(new AppActivateIdfaList(Long.valueOf(yesterday), request.getIdfa(), app_key, null));
|
|
|
activeUnion.info("check ios active info in 15 days. udid is {} and app_key is {},yesterday is {} and result is {}", request.getUdid(), app_key, yesterday, (null == _15DayIdfaList || _15DayIdfaList.size() == 0)? "null": _15DayIdfaList.get(0));
|
|
|
|
|
|
//判断90天内是否在大数据有记录
|
|
|
if (CollectionUtils.isNotEmpty(_90DayIdfaList)) {
|
|
|
if (baseUserActiveDay!=null) {
|
|
|
// log.warn("ios activateUnion error because 90 days has activate in bigdata database info with param is {}", request);
|
|
|
String time = DateUtil.getcurrentTime();
|
|
|
udidPool.info("Has action in 90 days at bigdata. udid is {},idfa is {},current time is {}", request.getUdid(), request.getIdfa(),time);
|
...
|
...
|
@@ -448,10 +452,11 @@ public class UnionServiceImpl implements IUnionService,ApplicationEventPublisher |
|
|
if (StringUtils.equals(ClientTypeEnum.ANDROID.getName(), request.getClient_type())){
|
|
|
String appKey = request.getAppkey()+"_android";
|
|
|
// 如果90天内有记录,则直接返回
|
|
|
List<AppActivateUdidList> activateUdidLists = appActivateUdidListDAO.selectByImeiUdidDate(new AppActivateUdidList(Long.valueOf(yesterday), request.getUdid(), appKey));
|
|
|
activeUnion.info("check android active info in 90 days. udid is {} and app_key is {},yesterday is {} and result is {}", request.getUdid(), appKey, yesterday, activateUdidLists);
|
|
|
// List<AppActivateUdidList> activateUdidLists = appActivateUdidListDAO.selectByImeiUdidDate(new AppActivateUdidList(Long.valueOf(yesterday), request.getUdid(), appKey));
|
|
|
BaseUserActiveDay baseUserActiveDay = baseUserActiveDayMapper.selectByUdidAndAppKey(request.getUdid(), appKey);
|
|
|
activeUnion.info("check android active info in 90 days. udid is {} and app_key is {},yesterday is {} and result is {}", request.getUdid(), appKey, yesterday, baseUserActiveDay);
|
|
|
|
|
|
if (CollectionUtils.isNotEmpty(activateUdidLists)){
|
|
|
if (baseUserActiveDay!=null){
|
|
|
log.warn("android activateUnion error because 90 days has activate in bigdata database info with param is {}", request);
|
|
|
return new UnionResponse(200, "have activite in 90 days",result);
|
|
|
}
|
...
|
...
|
|