资料维护
This commit is contained in:
@@ -18,7 +18,7 @@ import java.util.List;
|
||||
public class AmountUtil {
|
||||
|
||||
@Value("${jero.path.upload}")
|
||||
private String upLoadPath;
|
||||
public static String upLoadPath;
|
||||
/**
|
||||
* 计算到账状态
|
||||
*
|
||||
@@ -49,7 +49,7 @@ public class AmountUtil {
|
||||
*传入 对象的list集合 对象的class对象 excel名称
|
||||
* @param
|
||||
*/
|
||||
protected ModelAndView exportListXls(List<T> object, Class<T> clazz, String title) {
|
||||
public static ModelAndView exportListXls(List<?> objects, Class<?> clazz, String title) {
|
||||
// Step.3 AutoPoi 导出Excel
|
||||
ModelAndView mv = new ModelAndView(new JeecgEntityExcelView());
|
||||
mv.addObject(NormalExcelConstants.FILE_NAME, title); //此处设置的filename无效 ,前端会重更新设置一下
|
||||
@@ -59,7 +59,7 @@ public class AmountUtil {
|
||||
exportParams.setImageBasePath(upLoadPath);
|
||||
//update-end--Author:liusq Date:20210126 for:图片导出报错,ImageBasePath未设置----------------------
|
||||
mv.addObject(NormalExcelConstants.PARAMS,exportParams);
|
||||
mv.addObject(NormalExcelConstants.DATA_LIST, null);
|
||||
mv.addObject(NormalExcelConstants.DATA_LIST, objects);
|
||||
return mv;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user