fix: 78304
企标--导入--稽查内容的整改部门带出回显
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user