|
|
@@ -1,15 +1,21 @@
|
|
|
package com.cyksj.web.controller.manage.statistics;
|
|
|
|
|
|
+import com.alibaba.excel.support.ExcelTypeEnum;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.cyksj.common.exception.BusinessRuntimeException;
|
|
|
import com.cyksj.dto.Result;
|
|
|
import com.cyksj.enums.GatewayResponse;
|
|
|
+import com.cyksj.model.excel.ExcelAccountData;
|
|
|
import com.cyksj.model.views.BackgroundDataView;
|
|
|
import com.cyksj.model.views.ExpiredAccountDataView;
|
|
|
import com.cyksj.service.mange.statistics.StatisticsDataService;
|
|
|
+import com.cyksj.web.util.EasyExcelUtils;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
+import javax.servlet.http.HttpServletResponse;
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
/*
|
|
|
*项目名: netflix
|
|
|
*文件名: StatisticsDataController
|
|
|
@@ -41,6 +47,15 @@ public class StatisticsDataController {
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult(statisticsDataService.getExpiredAccountView(goodsId, account, renewStatus, handleStatus, cnAccount, usAccount, userId, startTime, endTime, start, limit));
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 导出有效子账号数
|
|
|
+ */
|
|
|
+ @GetMapping("/export/account")
|
|
|
+ public void exportAccount(Integer goodsId, String account, Boolean renewStatus, Boolean handleStatus, String cnAccount, String usAccount, Integer userId, Long startTime, Long endTime, HttpServletResponse response) {
|
|
|
+ List<ExcelAccountData> expiredAccountView = statisticsDataService.getExpiredAccountViewNoPage(goodsId, account, renewStatus, handleStatus, cnAccount, usAccount, userId, startTime, endTime);
|
|
|
+ EasyExcelUtils.createExcelStreamMutilByEasyExcel(response, ExcelAccountData.class, expiredAccountView, "有效子账号", "有效子账号", ExcelTypeEnum.XLSX, null);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 到期状态续费意愿修改
|
|
|
*/
|