Authored by zhengwen.ge

增加自然量统计

... ... @@ -24,10 +24,12 @@
<select id="selectNatialIdfaCount" resultType="java.lang.String">
select sum(APP_ACTIVE) from APP_CHANNEL_ACTIVE where DATE_ID BETWEEN #{beginTime} and #{endTime} and app_key = "yohobuy_ios"
and UNION_TYPE in('-999','2931','2937','2943','2945','2947','2953','3031','3095','3115','3117','3119','3121','3381','3383','7849','7857','td','7853','7859','2919','3109','7863','7851','7855','7865','0','7867','7835','3191','7861','3491','3129')
</select>
<select id="selectNatialImeiCount" resultType="java.lang.String">
select sum(APP_ACTIVE) from APP_CHANNEL_ACTIVE where DATE_ID BETWEEN #{beginTime} and #{endTime} and app_key = "yohobuy_android"
and UNION_TYPE in('-999','2931','2937','2943','2945','2947','2953','3031','3095','3115','3117','3119','3121','3381','3383','7849','7857','td','7853','7859','2919','3109','7863','7851','7855','7865','0','7867','7835','3191','7861','3491','3129')
</select>
</mapper>
\ No newline at end of file
... ...
... ... @@ -661,12 +661,12 @@ public class UnionServiceImpl implements IUnionService,ApplicationEventPublisher
int natialIdfaCount =0;
int natialImeiCount = 0;
String natialIdfaCountstr = appChannelActiveMapper.selectNatialIdfaCount(Integer.valueOf(beginDate),Integer.valueOf(endDate));
if(StringUtils.isEmpty(natialIdfaCountstr)){
natialIdfaCount = 0;
if(StringUtils.isNotEmpty(natialIdfaCountstr)){
natialIdfaCount = Integer.valueOf(natialIdfaCountstr);
}
String natialImeiCountstr= appChannelActiveMapper.selectNatialImeiCount(Integer.valueOf(beginDate), Integer.valueOf(endDate));
if(StringUtils.isEmpty(natialImeiCountstr)){
natialImeiCount = 0;
if(StringUtils.isNotEmpty(natialImeiCountstr)){
natialImeiCount =Integer.valueOf(natialImeiCountstr);
}
int natailCount = natialIdfaCount+natialImeiCount;
// if(null != activateDeviceIdRspList && activateDeviceIdRspList.size() > 0){
... ...