资料维护

This commit is contained in:
zhangqinlin
2021-09-08 13:41:37 +08:00
parent faa7c3af56
commit 7f3736d2ef
18 changed files with 200 additions and 136 deletions
@@ -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;
}
}