|
@@ -41,6 +41,7 @@ import org.springframework.stereotype.Service; |
|
@@ -41,6 +41,7 @@ import org.springframework.stereotype.Service; |
41
|
|
41
|
|
42
|
import javax.annotation.Resource;
|
42
|
import javax.annotation.Resource;
|
43
|
import java.net.URLDecoder;
|
43
|
import java.net.URLDecoder;
|
|
|
44
|
+import java.util.ArrayList;
|
44
|
import java.util.List;
|
45
|
import java.util.List;
|
45
|
import java.util.concurrent.ExecutorService;
|
46
|
import java.util.concurrent.ExecutorService;
|
46
|
import java.util.concurrent.LinkedBlockingQueue;
|
47
|
import java.util.concurrent.LinkedBlockingQueue;
|
|
@@ -109,6 +110,15 @@ public class UnionServiceImpl implements IUnionService,ApplicationEventPublisher |
|
@@ -109,6 +110,15 @@ public class UnionServiceImpl implements IUnionService,ApplicationEventPublisher |
109
|
@Resource(name="unionServiceImpl")
|
110
|
@Resource(name="unionServiceImpl")
|
110
|
IUnionService unionService;
|
111
|
IUnionService unionService;
|
111
|
|
112
|
|
|
|
113
|
+ public final static List<String> IOS_INTERFACE_LIST = new ArrayList<String>(){{
|
|
|
114
|
+ add("addUnion_ios");add("addUnion4Jump_ios");add("addMonitor_ios");
|
|
|
115
|
+ }};
|
|
|
116
|
+
|
|
|
117
|
+ public final static List<String> ANDROID_INTERFACE_LIST = new ArrayList<String>(){{
|
|
|
118
|
+ add("addUnion_android");add("addUnion4Jump_android");add("addMonitor_android");
|
|
|
119
|
+ }};
|
|
|
120
|
+
|
|
|
121
|
+
|
112
|
/**
|
122
|
/**
|
113
|
* 默认10个线程,
|
123
|
* 默认10个线程,
|
114
|
*/
|
124
|
*/
|
|
@@ -607,10 +617,16 @@ public class UnionServiceImpl implements IUnionService,ApplicationEventPublisher |
|
@@ -607,10 +617,16 @@ public class UnionServiceImpl implements IUnionService,ApplicationEventPublisher |
607
|
String dateStr = activateDeviceIdReqBO.getActivateTime().replaceAll("-","/");
|
617
|
String dateStr = activateDeviceIdReqBO.getActivateTime().replaceAll("-","/");
|
608
|
activateDeviceIdReqBO.setActivateTimeStr(DateUtils.getTimesmorning(dateStr));
|
618
|
activateDeviceIdReqBO.setActivateTimeStr(DateUtils.getTimesmorning(dateStr));
|
609
|
}
|
619
|
}
|
610
|
- if(activateDeviceIdReqBO.getIsIdfa()>0){
|
|
|
611
|
- count = unionClickLogsDAO.queryActivateIdfaCount(activateDeviceIdReqBO);
|
620
|
+ if(activateDeviceIdReqBO.getIsIdfa()>0 ){
|
|
|
621
|
+ //ios查询时,接口为全部或者是ios接口才查询
|
|
|
622
|
+ if(IOS_INTERFACE_LIST.contains(activateDeviceIdReqBO.getInterfaceType())||StringUtils.isEmpty(activateDeviceIdReqBO.getInterfaceType())){
|
|
|
623
|
+ count = unionClickLogsDAO.queryActivateIdfaCount(activateDeviceIdReqBO);
|
|
|
624
|
+ }
|
612
|
}else{
|
625
|
}else{
|
613
|
- count = unionClickLogsDAO.queryActivateImeiCount(activateDeviceIdReqBO);
|
626
|
+ //android查询时,接口为全部或者是android接口才查询
|
|
|
627
|
+ if(StringUtils.isEmpty(activateDeviceIdReqBO.getInterfaceType())|| ANDROID_INTERFACE_LIST.contains(activateDeviceIdReqBO.getInterfaceType())){
|
|
|
628
|
+ count = unionClickLogsDAO.queryActivateImeiCount(activateDeviceIdReqBO);
|
|
|
629
|
+ }
|
614
|
}
|
630
|
}
|
615
|
log.info("out queryActivateCount.count={}", count);
|
631
|
log.info("out queryActivateCount.count={}", count);
|
616
|
return count;
|
632
|
return count;
|