|
|
@@ -69,7 +69,7 @@ public class StatisticsDataServiceImpl implements StatisticsDataService {
|
|
|
private final GroupsMapper groupsMapper;
|
|
|
|
|
|
@Override
|
|
|
- public Result<BackgroundDataView> getStatisticsByCondition(Integer type, Long startTime, Long endTime) {
|
|
|
+ public Result<BackgroundDataView> getStatisticsByCondition(Long startTime, Long endTime) {
|
|
|
BackgroundDataView backgroundDataView = new BackgroundDataView();
|
|
|
Date startDate = null;
|
|
|
Date endDate = null;
|
|
|
@@ -81,26 +81,16 @@ public class StatisticsDataServiceImpl implements StatisticsDataService {
|
|
|
}
|
|
|
//头部数据
|
|
|
headerData(backgroundDataView, startDate, endDate);
|
|
|
- switch (type) {
|
|
|
- case 1:
|
|
|
- //流媒体账号
|
|
|
- getStreamingAccountDataView(backgroundDataView, startDate, endDate);
|
|
|
- //appleOne
|
|
|
- getAppleOneDataView(backgroundDataView, startDate, endDate);
|
|
|
- break;
|
|
|
- case 2:
|
|
|
- //实物数据
|
|
|
- getRealGoodsData(backgroundDataView, startDate, endDate);
|
|
|
- break;
|
|
|
- case 3:
|
|
|
- //注册账号数据
|
|
|
- getRegisterAccountData(backgroundDataView, startDate, endDate);
|
|
|
- break;
|
|
|
- case 4:
|
|
|
- //潮玩好物数据
|
|
|
- getFashionGoodsData(backgroundDataView, startDate, endDate);
|
|
|
- break;
|
|
|
- }
|
|
|
+ //流媒体账号
|
|
|
+ getStreamingAccountDataView(backgroundDataView, startDate, endDate);
|
|
|
+ //appleOne
|
|
|
+ getAppleOneDataView(backgroundDataView, startDate, endDate);
|
|
|
+ //实物数据
|
|
|
+ getRealGoodsData(backgroundDataView, startDate, endDate);
|
|
|
+ //注册账号数据
|
|
|
+ getRegisterAccountData(backgroundDataView, startDate, endDate);
|
|
|
+ //潮玩好物数据
|
|
|
+ getFashionGoodsData(backgroundDataView, startDate, endDate);
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult(backgroundDataView);
|
|
|
}
|
|
|
|