虚拟清单--模板下载(中英文切换)

This commit is contained in:
zhn
2022-04-18 18:05:40 +08:00
parent 58ef8819fb
commit 954720288a
@@ -271,12 +271,30 @@ public class DummyInventoryInfoEOServiceImpl extends ServiceImpl<DummyInventoryI
String fileOriName = "虚拟清单导入模板.xls";
String filePath = uploadpath + File.separator + fileOriName;
try {
String titleOne = "编号,标题,子标题,适用范围,状态,对应标准,实施类别,新车实施日期,在产车实施日期,WVTA ID,认证类型,认证级别,技术领域," +
"责任领域,适用地区,备注,设计符合性确认,Pre-homo确认,验证符合性确认";
String titleTwo = "交付物类型,交付物模板,发起人,责任人,交付物类型,交付物模板,发起人,责任人,交付物类型,交付物模板,发起人,责任人";
String titleOne = "";
String titleTwo = "";
if(CutEnum.CN.getValue().equals(dummyInventoryInfoEO.getCut())){
titleOne = "编号,标题,子标题,适用范围,状态,对应标准,实施类别,新车实施日期,在产车实施日期,WVTA ID,认证类型,认证级别,技术领域," +
"责任领域,适用地区,备注,设计符合性确认,Pre-homo确认,验证符合性确认";
titleTwo = "交付物类型,交付物模板,发起人,责任人,交付物类型,交付物模板,发起人,责任人,交付物类型,交付物模板,发起人,责任人";
}else{
titleOne = "serial number,title,subtitle,scope of application,state,corresponding standard,implementation category," +
"new car implementation date,on the production vehicle implementation date,WVTA ID,certification type," +
"certification level,technical field," +
"area of responsibility,zone of application,remarks,design compliance check,pre-homo check,validation compliance chech";
titleTwo = "type of deliverables,deliverable template,initiator,person liable," +
"type of deliverables,deliverable template,initiator,person liable," +
"type of deliverables,deliverable template,initiator,person liable";
}
List<String> list = Arrays.asList(titleOne.split(","));
int index = list.indexOf("备注") + 1;
int index = 0;
if(CutEnum.CN.getValue().equals(dummyInventoryInfoEO.getCut())){
index = list.indexOf("备注") + 1;
}else{
index = list.indexOf("remarks") + 1;
}
//创建临时文件夹
File nowFile = new File(filePath);