提交 ba667861 authored 作者: jiangwujie's avatar jiangwujie

增加日志排查问题

上级 95a347b5
package com.clx.performance.controller.pc.carrier;
import com.alibaba.fastjson2.JSONObject;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.clx.performance.enums.PerformanceResultEnum;
import com.clx.performance.enums.PlatformAccountConfigEnum;
import com.clx.performance.model.PlatformAccountConfig;
import com.clx.performance.param.pc.*;
import com.clx.performance.service.OwnerAccountService;
import com.clx.performance.service.OwnerCaseOutService;
......@@ -14,7 +14,6 @@ import com.clx.performance.vo.pc.OwnerAccountVO;
import com.clx.performance.vo.pc.OwnerCaseOutVO;
import com.clx.performance.vo.pc.OwnerTopUpVO;
import com.clx.performance.vo.pc.carrier.settle.CarrierPagePlatformAccountConfigVO;
import com.clx.user.param.pc.driver.truck.PageDriverTruckParam;
import com.msl.common.base.PageData;
import com.msl.common.convertor.aspect.UnitCovert;
import com.msl.common.exception.ServiceSystemException;
......@@ -24,7 +23,6 @@ import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.collections4.CollectionUtils;
import org.apache.commons.lang.StringUtils;
import org.apache.poi.xssf.streaming.SXSSFWorkbook;
import org.springframework.http.HttpHeaders;
import org.springframework.http.MediaType;
......@@ -32,7 +30,6 @@ import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import javax.validation.constraints.NotBlank;
import java.util.List;
......@@ -63,7 +60,9 @@ public class CarrierAccountController {
@ApiOperation(value = "预付运费账户列表")
@PostMapping("/exportPrepaidFreightList")
@UnitCovert(param = false)
public void exportPrepaidFreightList(@RequestBody PageOwnerAccountListParam param, HttpServletResponse response) throws Exception {
log.info("exportPrepaidFreightList:{}", JSONObject.toJSONString(param));
SXSSFWorkbook workbook = ownerAccountService.exportPrepaidFreightList(param);
response.setHeader(HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_OCTET_STREAM_VALUE);
workbook.write(response.getOutputStream());
......
......@@ -1295,7 +1295,8 @@ public class OwnerAccountServiceImpl implements OwnerAccountService {
@Override
public SXSSFWorkbook exportPrepaidFreightList(PageOwnerAccountListParam param) {
param.setPage(1);
param.setPageSize(1000000);
IPage<OwnerAccountVO> page = ownerAccountDao.pageList(param);
List<OwnerAccountVO> list = page.getRecords();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论