|
@@ -4081,11 +4081,19 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
}
|
|
}
|
|
XSSFCell participatorCell = row.getCell(6+(projectWithDept?1:0));
|
|
XSSFCell participatorCell = row.getCell(6+(projectWithDept?1:0));
|
|
XSSFCell inchargerCell = row.getCell(7+(projectWithDept?1:0));
|
|
XSSFCell inchargerCell = row.getCell(7+(projectWithDept?1:0));
|
|
- if (participatorCell!=null)participatorCell.setCellType(CellType.STRING);
|
|
|
|
- if (inchargerCell != null)inchargerCell.setCellType(CellType.STRING);
|
|
|
|
- String part = participatorCell.getStringCellValue().trim();
|
|
|
|
- String inchargerName = inchargerCell.getStringCellValue().trim();
|
|
|
|
- if(part.equals("参与人")){
|
|
|
|
|
|
+
|
|
|
|
+ String part = "";
|
|
|
|
+ String inchargerName = "";
|
|
|
|
+ if (participatorCell!=null) {
|
|
|
|
+ participatorCell.setCellType(CellType.STRING);
|
|
|
|
+ part = participatorCell.getStringCellValue().trim();
|
|
|
|
+ }
|
|
|
|
+ if (inchargerCell != null) {
|
|
|
|
+ inchargerCell.setCellType(CellType.STRING);
|
|
|
|
+ inchargerName = inchargerCell.getStringCellValue().trim();
|
|
|
|
+ }
|
|
|
|
+ //兼容繁体
|
|
|
|
+ if(part.equals("参与人") || part.equals("參與人")){
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|
|
String[] partSplit = part.split("\\,|\\,");
|
|
String[] partSplit = part.split("\\,|\\,");
|
|
@@ -4167,10 +4175,11 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
boolean exists=false;
|
|
boolean exists=false;
|
|
if (codeCell != null) {
|
|
if (codeCell != null) {
|
|
String code = codeCell.getStringCellValue().trim().replaceAll("\\u00a0", "");
|
|
String code = codeCell.getStringCellValue().trim().replaceAll("\\u00a0", "");
|
|
- if ((code.equals("项目编号") || code.equals("project No")) && rowIndex == 0) {
|
|
|
|
|
|
+ if ((code.equals("项目编号") || code.equals("項目編號") || code.equals("project No")) && rowIndex == 0) {
|
|
//检查是否有子项目列
|
|
//检查是否有子项目列
|
|
//if (!subNameCell.getStringCellValue().trim().startsWith("子项目")) {
|
|
//if (!subNameCell.getStringCellValue().trim().startsWith("子项目")) {
|
|
- if (!subNameCell.getStringCellValue().trim().startsWith(MessageUtils.message("Template.subProject"))) {
|
|
|
|
|
|
+ String subNameVal = subNameCell.getStringCellValue().trim();
|
|
|
|
+ if (!subNameVal.startsWith(MessageUtils.message("Template.subProject")) && !subNameVal.startsWith("子項目")) {
|
|
throw new Exception("缺少子项目列,请下载最新模板");
|
|
throw new Exception("缺少子项目列,请下载最新模板");
|
|
}
|
|
}
|
|
//跳过第一行标题
|
|
//跳过第一行标题
|
|
@@ -4716,7 +4725,7 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
if (inchargerCell != null)inchargerCell.setCellType(CellType.STRING);
|
|
if (inchargerCell != null)inchargerCell.setCellType(CellType.STRING);
|
|
String part = participatorCell.getStringCellValue().trim();
|
|
String part = participatorCell.getStringCellValue().trim();
|
|
String inchargerName = inchargerCell.getStringCellValue().trim();
|
|
String inchargerName = inchargerCell.getStringCellValue().trim();
|
|
- if(part.equals("参与人")){
|
|
|
|
|
|
+ if(part.equals("参与人") || part.equals("參與人")){
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|
|
String[] partSplit = part.split("\\,|\\,");
|
|
String[] partSplit = part.split("\\,|\\,");
|
|
@@ -4971,7 +4980,7 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
boolean exists=false;
|
|
boolean exists=false;
|
|
if (codeCell != null) {
|
|
if (codeCell != null) {
|
|
String code = codeCell.getStringCellValue().trim().replaceAll("\\u00a0", "");
|
|
String code = codeCell.getStringCellValue().trim().replaceAll("\\u00a0", "");
|
|
- if ((code.equals("项目编号") || code.equals("project No")) && rowIndex == 0) {
|
|
|
|
|
|
+ if ((code.equals("项目编号") || code.equals("項目編號")|| code.equals("project No")) && rowIndex == 0) {
|
|
//检查是否有子项目列
|
|
//检查是否有子项目列
|
|
//if (subNameCell!=null&&!subNameCell.getStringCellValue().trim().startsWith("子项目")&&timeType.getMainProjectState()!=1) {
|
|
//if (subNameCell!=null&&!subNameCell.getStringCellValue().trim().startsWith("子项目")&&timeType.getMainProjectState()!=1) {
|
|
if (subNameCell!=null&&!subNameCell.getStringCellValue().trim().startsWith(MessageUtils.message("Template.subProject"))&&timeType.getMainProjectState()!=1) {
|
|
if (subNameCell!=null&&!subNameCell.getStringCellValue().trim().startsWith(MessageUtils.message("Template.subProject"))&&timeType.getMainProjectState()!=1) {
|