|
|
@@ -25,6 +25,7 @@ import com.uas.platform.core.model.PageInfo;
|
|
|
import com.uas.platform.core.model.PageParams;
|
|
|
import com.uas.platform.core.model.Status;
|
|
|
import org.apache.commons.collections.CollectionUtils;
|
|
|
+import org.apache.commons.lang3.time.FastDateFormat;
|
|
|
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
|
|
|
import org.apache.poi.ss.usermodel.Workbook;
|
|
|
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
|
|
|
@@ -858,15 +859,17 @@ public class GoodsController {
|
|
|
return modelAndView;
|
|
|
}
|
|
|
PageInfo info = new PageInfo(1, JxlsExcelView.MAX_SIZE);
|
|
|
- Page<Goods> productsGoods = goodsService.getPageDataOfBackground(info, goodsFilter);;
|
|
|
+ Page<Goods> productsGoods = goodsService.getPageDataOfBackground(info, goodsFilter);
|
|
|
if (CollectionUtils.isNotEmpty(productsGoods.getContent())) {
|
|
|
logger.info("产品导出结果 products: " + productsGoods.getContent().size());
|
|
|
} else {
|
|
|
logger.info("产品导出结果 products为空");
|
|
|
}
|
|
|
+ FastDateFormat dateFormat = FastDateFormat.getInstance("yyyy年MM月dd日 HH:mm");
|
|
|
+ modelAndView.addObject("dateFormat", dateFormat);
|
|
|
modelAndView.addObject("data", productsGoods.getContent());
|
|
|
modelAndView.addObject("goodsService", goodsService);
|
|
|
- modelAndView.setView(new JxlsExcelView("classpath:jxls-tpl/trade/goods", "优软商城--产品库列表"));
|
|
|
+ modelAndView.setView(new JxlsExcelView("classpath:jxls-tpl/trade/background", "优软商城--产品库列表"));
|
|
|
session.setAttribute("loading", false);
|
|
|
return modelAndView;
|
|
|
}
|