...
|
...
|
@@ -100,10 +100,10 @@ public class MktCostReportFormController { |
|
|
mktReportFormRspBO.setTotalNewUserList(totalNewUdidList);
|
|
|
mktReportFormRspBO.setIosNewUserList(iosNewUdidList);
|
|
|
mktReportFormRspBO.setAndroidNewUserList(androidNewUdidList);
|
|
|
mktReportFormRspBO.setTopActualCost(5000);
|
|
|
mktReportFormRspBO.setTopAppActive(1000);
|
|
|
mktReportFormRspBO.setTopExpoureNum(2000);
|
|
|
mktReportFormRspBO.setTopNewUdid(100);
|
|
|
mktReportFormRspBO.setTopActualCost(Collections.max(totalActuralCostList));
|
|
|
// mktReportFormRspBO.setTopAppActive(Collections.max(totalActiveList));
|
|
|
// mktReportFormRspBO.setTopExpoureNum(Collections.max(totalExpoureNumList));
|
|
|
// mktReportFormRspBO.setTopNewUdid(Collections.max(totalNewUdidList));
|
|
|
mktReportFormRspBO.setTotalActiveRatio(totalActiveRatio);
|
|
|
mktReportFormRspBO.setIosActiveRatio(iosActiveRatio);
|
|
|
mktReportFormRspBO.setAndroidActiveRatio(androidActiveRatio);
|
...
|
...
|
@@ -114,9 +114,25 @@ public class MktCostReportFormController { |
|
|
mktReportFormRspBO.setIosNewUdidRatio(iosNewUdidRatio);
|
|
|
mktReportFormRspBO.setAndroidNewUdidRatio(androidNewUdidRatio);
|
|
|
|
|
|
mktReportFormRspBO.setTopActiveRatio(Collections.max(totalActiveRatio));
|
|
|
mktReportFormRspBO.setTopNewUdidRatio(Collections.max(totalNewUdidRatio));
|
|
|
mktReportFormRspBO.setTopExpoureRatio(Collections.max(totalExpoureRatio));
|
|
|
// mktReportFormRspBO.setTopActiveRatio(Collections.max(totalActiveRatio));
|
|
|
// mktReportFormRspBO.setTopNewUdidRatio(Collections.max(totalNewUdidRatio));
|
|
|
// mktReportFormRspBO.setTopExpoureRatio(Collections.max(totalExpoureRatio));
|
|
|
BigDecimal topRatio = Collections.max(totalActiveRatio);
|
|
|
if (topRatio.compareTo(Collections.max(totalNewUdidRatio)) < 0){
|
|
|
topRatio = Collections.max(totalNewUdidRatio);
|
|
|
} else if (topRatio.compareTo(Collections.max(totalExpoureRatio)) < 0){
|
|
|
topRatio = Collections.max(totalExpoureRatio);
|
|
|
}
|
|
|
mktReportFormRspBO.setTopRatio(topRatio);
|
|
|
|
|
|
Integer topExActNew = Collections.max(totalActiveList);
|
|
|
if (topExActNew < Collections.max(totalExpoureNumList)){
|
|
|
topExActNew = Collections.max(totalExpoureNumList);
|
|
|
} else if (topExActNew < Collections.max(totalNewUdidList)){
|
|
|
topExActNew = Collections.max(totalNewUdidList);
|
|
|
}
|
|
|
mktReportFormRspBO.setTopExposureActiveNewUdid(topExActNew);
|
|
|
|
|
|
|
|
|
return new ApiResponse.ApiResponseBuilder().code(200).data(mktReportFormRspBO).message("success").build();
|
|
|
} catch (Exception e){
|
...
|
...
|
|