fix: 78304

企标--导入--稽查内容的整改部门带出回显
This commit is contained in:
2023-11-08 11:43:52 +08:00
parent d02a8f8640
commit 36b98729c6
@@ -93,7 +93,9 @@ public class ImportUtil {
String standardClass = "";
String yearNumber = "";
Date releaseDate = null;
String releaseDateRow = "";
Date implementationDate = null;
String implementationDateRow = "";
StringBuilder errMsg = new StringBuilder("" + line + "");
Map<String, Object> parameterMap = new HashMap<>();
boolean standardValidFlag = false;
@@ -398,9 +400,11 @@ public class ImportUtil {
} else {
if (tag.getDbFieldName().equals("release_date")) {
releaseDate = this.convertDate(cellValue);
releaseDateRow = row;
}
if (tag.getDbFieldName().equals("implementation_date")) {
implementationDate = this.convertDate(cellValue);
implementationDateRow = row;
}
}
}
@@ -447,8 +451,8 @@ public class ImportUtil {
calendar.setTime(implementationDate);
calendar.add(Calendar.DAY_OF_MONTH, -15);
if (!releaseDate.before(calendar.getTime())) {
log.error("" + line + "的实施日期必须大于发布日期15天 ");
errMsg.append("").append(line).append("的实施日期必须大于发布日期15天 ");
log.error("" + implementationDateRow + "的实施日期必须大于" + releaseDateRow + "列的发布日期15天 ");
errMsg.append("").append(implementationDateRow).append("的实施日期必须大于").append(releaseDateRow).append("列的发布日期15天 ");
}
}
if (errMsg.toString().contains("") || errMsg.toString().contains("重复") || errMsg.toString().contains("已存在")) {
@@ -491,9 +495,11 @@ public class ImportUtil {
// 获取第四行前两个单元格的内容
String cellContent1 = getCellContent(row.getCell(0));
String cellContent2 = getCellContent(row.getCell(1));
String cellContent3 = this.convertSingleOrgId(getCellContent(row.getCell(2)));
LinkedHashMap<String, String> inspectContentMap = new LinkedHashMap<>();
inspectContentMap.put("clause", cellContent1);
inspectContentMap.put("requirement", cellContent2);
inspectContentMap.put("rectificationDepartment", cellContent3);
checkList.add(inspectContentMap);
}
} catch (Exception e) {