|
|
|
@ -45,13 +45,11 @@ import com.logpm.basicdata.vo.BasicdataWarehouseVO;
|
|
|
|
|
import com.logpm.warehouse.feign.IWarehouseUpdownGoodsClient; |
|
|
|
|
import lombok.AllArgsConstructor; |
|
|
|
|
import lombok.extern.log4j.Log4j2; |
|
|
|
|
import org.apache.commons.codec.Charsets; |
|
|
|
|
import org.springblade.core.log.exception.ServiceException; |
|
|
|
|
import org.springblade.core.mp.base.BaseServiceImpl; |
|
|
|
|
import org.springblade.core.tool.api.R; |
|
|
|
|
import org.springblade.core.tool.utils.DateUtil; |
|
|
|
|
import org.springblade.core.tool.utils.Func; |
|
|
|
|
import org.springblade.core.tool.utils.SpringUtil; |
|
|
|
|
import org.springblade.system.entity.User; |
|
|
|
|
import org.springblade.system.feign.IUserClient; |
|
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
@ -60,6 +58,7 @@ import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
import javax.servlet.http.HttpServletResponse; |
|
|
|
|
import java.io.IOException; |
|
|
|
|
import java.net.URLEncoder; |
|
|
|
|
import java.nio.charset.StandardCharsets; |
|
|
|
|
import java.util.*; |
|
|
|
|
import java.util.function.Function; |
|
|
|
|
import java.util.stream.Collectors; |
|
|
|
@ -109,8 +108,8 @@ public class BasicdataGoodsAreaServiceImpl extends BaseServiceImpl<BasicdataGood
|
|
|
|
|
try { |
|
|
|
|
String fileName = "货区数据" + DateUtil.time(); |
|
|
|
|
response.setContentType("application/vnd.ms-excel"); |
|
|
|
|
response.setCharacterEncoding(Charsets.UTF_8.name()); |
|
|
|
|
fileName = URLEncoder.encode(fileName, Charsets.UTF_8.name()); |
|
|
|
|
response.setCharacterEncoding(StandardCharsets.UTF_8.name()); |
|
|
|
|
fileName = URLEncoder.encode(fileName, StandardCharsets.UTF_8.name()); |
|
|
|
|
response.setHeader("Content-disposition", "attachment;filename=" + fileName + ".xlsx"); |
|
|
|
|
// 构造各个sheet页相关信息
|
|
|
|
|
List<GoodsAreaSheetInfoBean> goodsAreaSheetInfoBeans = new LinkedList<>(); |
|
|
|
@ -363,8 +362,8 @@ public class BasicdataGoodsAreaServiceImpl extends BaseServiceImpl<BasicdataGood
|
|
|
|
|
try { |
|
|
|
|
String fileName = "仓库数据" + DateUtil.time(); |
|
|
|
|
response.setContentType("application/vnd.ms-excel"); |
|
|
|
|
response.setCharacterEncoding(Charsets.UTF_8.name()); |
|
|
|
|
fileName = URLEncoder.encode(fileName, Charsets.UTF_8.name()); |
|
|
|
|
response.setCharacterEncoding(StandardCharsets.UTF_8.name()); |
|
|
|
|
fileName = URLEncoder.encode(fileName, StandardCharsets.UTF_8.name()); |
|
|
|
|
response.setHeader("Content-disposition", "attachment;filename=" + fileName + ".xlsx"); |
|
|
|
|
// 构造各个sheet页相关信息
|
|
|
|
|
List<GoodsAreaSheetInfoBean> goodsAreaSheetInfoBeans = new LinkedList<>(); |
|
|
|
@ -415,8 +414,8 @@ public class BasicdataGoodsAreaServiceImpl extends BaseServiceImpl<BasicdataGood
|
|
|
|
|
try { |
|
|
|
|
String fileName = "仓库数据" + DateUtil.time(); |
|
|
|
|
response.setContentType("application/vnd.ms-excel"); |
|
|
|
|
response.setCharacterEncoding(Charsets.UTF_8.name()); |
|
|
|
|
fileName = URLEncoder.encode(fileName, Charsets.UTF_8.name()); |
|
|
|
|
response.setCharacterEncoding(StandardCharsets.UTF_8.name()); |
|
|
|
|
fileName = URLEncoder.encode(fileName, StandardCharsets.UTF_8.name()); |
|
|
|
|
response.setHeader("Content-disposition", "attachment;filename=" + fileName + ".xlsx"); |
|
|
|
|
// 构造各个sheet页相关信息
|
|
|
|
|
List<GoodsAreaSheetInfoBean> goodsAreaSheetInfoBeans = new LinkedList<>(); |
|
|
|
@ -461,8 +460,8 @@ public class BasicdataGoodsAreaServiceImpl extends BaseServiceImpl<BasicdataGood
|
|
|
|
|
try { |
|
|
|
|
String fileName = "仓库数据" + DateUtil.time(); |
|
|
|
|
response.setContentType("application/vnd.ms-excel"); |
|
|
|
|
response.setCharacterEncoding(Charsets.UTF_8.name()); |
|
|
|
|
fileName = URLEncoder.encode(fileName, Charsets.UTF_8.name()); |
|
|
|
|
response.setCharacterEncoding(StandardCharsets.UTF_8.name()); |
|
|
|
|
fileName = URLEncoder.encode(fileName, StandardCharsets.UTF_8.name()); |
|
|
|
|
response.setHeader("Content-disposition", "attachment;filename=" + fileName + ".xlsx"); |
|
|
|
|
// 构造各个sheet页相关信息
|
|
|
|
|
List<GoodsAreaSheetInfoBean> goodsAreaSheetInfoBeans = new LinkedList<>(); |
|
|
|
|