增加了部分模板文件

This commit is contained in:
ajaxfan
2021-02-25 19:40:22 +08:00
parent 1ada1598c5
commit 14f2dddd0a
7 changed files with 19 additions and 18 deletions

View File

@ -1,31 +1,29 @@
package com.chinaunicom.mall.ebtp.extend.export.service;
import com.chinaunicom.mall.ebtp.extend.export.bean.ExportParame;
import org.springframework.beans.factory.annotation.Value;
import java.io.File;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.File;
import com.chinaunicom.mall.ebtp.extend.export.bean.ExportParame;
public interface ExportService {
@Value("${mconfig.templet.path}")
String path = "";
String ERROR_MESSAGE = "导出失败,请联系管理员";
String ERROR_MESSAGE = "导出失败,请联系管理员";
/**
* 导出
*
* @param param
* @param request
* @param response
*/
public void doExport(ExportParame param, HttpServletRequest request, HttpServletResponse response);
/**
* 导出
*
* @param param
* @param request
* @param response
*/
public void doExport(ExportParame param, HttpServletRequest request, HttpServletResponse response);
default File getExportTemplet(String path) {
File f = new File("/model/" + path);
default File getExportTemplet(String path) {
File f = new File("d:/" + path);
return f;
}
return f;
}
}