Merge remote-tracking branch 'origin/fix_20230830'
This commit is contained in:
+8
-4
@@ -634,8 +634,10 @@ public class LawsMonthlyReportWriteEOServiceImpl extends ServiceImpl<LawsMonthly
|
||||
String memoriesChapterContentCn = path + File.separator +"蔚来汽车法规月报-" + lawsMonthlyReportWriteEOS.get(0).getMonth()+"-CN.docx";
|
||||
String memoriesChapterContentEn = path + File.separator +"蔚来汽车法规月报-" + lawsMonthlyReportWriteEOS.get(0).getMonth()+"-EN.docx";
|
||||
// String memoriesChapterContentEn = path + File.separator +"Weilai Automobile Regulations Monthly Report-" + lawsMonthlyReportWriteEOS.get(0).getMonth()+"-EN.docx";
|
||||
String titleCN = "蔚来汽车法规月报" + lawsMonthlyReportWriteEOS.get(0).getMonth();
|
||||
String titleEN = "NIO Monthly Report on Automobile Regulations-" + lawsMonthlyReportWriteEOS.get(0).getMonth();
|
||||
// String titleCN = "蔚来汽车法规月报" + lawsMonthlyReportWriteEOS.get(0);
|
||||
// String titleEN = "NIO Monthly Report on Automobile Regulations-" + lawsMonthlyReportWriteEOS.get(0).getMonth();
|
||||
String titleCN = "蔚来汽车法规月报" + lawsMonthlyReportWriteEOS.get(0).getMonth().replace("-","");
|
||||
String titleEN = "NIO Monthly Regulation Report";
|
||||
|
||||
File wordFile = new File(memoriesChapterCN);
|
||||
File wordFileEn = new File(memoriesChapterEN);
|
||||
@@ -961,7 +963,8 @@ public class LawsMonthlyReportWriteEOServiceImpl extends ServiceImpl<LawsMonthly
|
||||
false, false, null,null,null,flag);
|
||||
|
||||
//添加说明 编辑: 整车工程 - 法规与认证&环保与材料科团队
|
||||
String text1 = "编辑: 整车工程 - 法规与认证&环保与材料科团队";
|
||||
String text1 = "编辑: 整车工程 – 试验与法规认证";
|
||||
// String text1 = "编辑: 整车工程 - 法规与认证&环保与材料科团队";
|
||||
WordUtil.exportWord(document, text1, null, ParagraphAlignment.CENTER, 0, 11,
|
||||
false, false, "Blue Sky Noto Regular",null,null,flag);
|
||||
|
||||
@@ -1045,7 +1048,8 @@ public class LawsMonthlyReportWriteEOServiceImpl extends ServiceImpl<LawsMonthly
|
||||
false, false, null,null,null,flag);
|
||||
|
||||
//添加说明 编辑: 整车工程 - 法规与认证&环保与材料科团队
|
||||
String text1 = "Edit By: Regulation & Homologation, Environmental & Materials Team";
|
||||
String text1 = "Edit By: Vehicle Engineering – Testing & Homologation";
|
||||
// String text1 = "Edit By: Regulation & Homologation, Environmental & Materials Team";
|
||||
WordUtil.exportWord(document, text1, null, ParagraphAlignment.CENTER, 0, 11,
|
||||
false, false, "Blue Sky Noto Regular",null,null,flag);
|
||||
|
||||
|
||||
+14
-5
@@ -571,16 +571,25 @@ public class WordUtil {
|
||||
//拼接技术领域补充内容
|
||||
if (cut.equals("cn")) {
|
||||
if (StringUtils.isNotBlank(technologyTerritoryCn)) {
|
||||
sb.append(" 补充:"+technologyTerritoryCn);
|
||||
sb.append(technologyTerritoryCn + ",");
|
||||
}
|
||||
} else {
|
||||
if (StringUtils.isNotBlank(technologyTerritoryEn)) {
|
||||
sb.append(" replenish:"+technologyTerritoryEn);
|
||||
sb.append(technologyTerritoryEn + ",");
|
||||
}
|
||||
}
|
||||
// if (cut.equals("cn")) {
|
||||
// if (StringUtils.isNotBlank(technologyTerritoryCn)) {
|
||||
// sb.append(" 补充:"+technologyTerritoryCn);
|
||||
// }
|
||||
// } else {
|
||||
// if (StringUtils.isNotBlank(technologyTerritoryEn)) {
|
||||
// sb.append(" replenish:"+technologyTerritoryEn);
|
||||
// }
|
||||
// }
|
||||
|
||||
if (org.apache.commons.lang3.StringUtils.isNotBlank(sb)) {
|
||||
technologyTerritoryName = sb.substring(0, sb.length());
|
||||
technologyTerritoryName = sb.substring(0, sb.length()-1);
|
||||
}
|
||||
}
|
||||
//适用车型中文名
|
||||
@@ -1241,7 +1250,7 @@ public class WordUtil {
|
||||
setBlank(text, run, sb, itemText);
|
||||
}
|
||||
if ("Usage".equals(fieldName)) {
|
||||
String itemText = "Mandatory,Voluntary,if fitted";
|
||||
String itemText = "Mandatory,Recommend,if fitted";
|
||||
setBlank(text, run, sb, itemText);
|
||||
}
|
||||
}
|
||||
@@ -1365,7 +1374,7 @@ public class WordUtil {
|
||||
case "Draft":
|
||||
blank = " ";
|
||||
break;
|
||||
case "Public Notice":
|
||||
case "Recommend":
|
||||
blank = " ";
|
||||
break;
|
||||
case "Release":
|
||||
|
||||
Reference in New Issue
Block a user