增加了部分模板文件
This commit is contained in:
@ -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"]
|
||||||
|
@ -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;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user