增加了部分模板文件

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

@ -3,5 +3,8 @@ ENV LC_ALL=zh_CN.utf8
ENV LANG=zh_CN.utf8 ENV LANG=zh_CN.utf8
ENV LANGUAGE=zh_CN.utf8 ENV LANGUAGE=zh_CN.utf8
RUN localedef -c -f UTF-8 -i zh_CN zh_CN.utf8 RUN localedef -c -f UTF-8 -i zh_CN zh_CN.utf8
RUN mkdir -p /model
COPY /target/classes/model/. /model/
ADD /target/biz_service_ebtp_extend-0.0.1.jar /biz_service_ebtp_extend-0.0.1.jar ADD /target/biz_service_ebtp_extend-0.0.1.jar /biz_service_ebtp_extend-0.0.1.jar
ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "/biz_service_ebtp_extend-0.0.1.jar"] ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "/biz_service_ebtp_extend-0.0.1.jar"]

View File

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