fix: 78321

海外标准--标准详情--导入的数据国家/地区没有数据回显
This commit is contained in:
2023-11-10 11:00:08 +08:00
parent 959b765e9a
commit db360447ad
@@ -437,8 +437,6 @@ public class ImportUtil {
}
}
// 将转好的值加入Map
parameterMap.put(tag.getDbFieldName(), cellValue);
// 企标稽查内容文件导入
if (FieldShowTypeEnum.INSPECT_CONTENT_FILE_UPLOAD.getValue().equals(tag.getFieldShowType())) {
if (!this.inspectContentFileValid(cellValue, fileMap)) {
@@ -450,15 +448,21 @@ public class ImportUtil {
parameterMap.put(tag.getDbFieldName(), this.convertInspectContentFile(cellValue, fileMap));
}
}
// 单选时间
// 树形单选
if (FieldShowTypeEnum.TREE_STRUCTURE_SINGLE_SELECT.getValue().equals(tag.getFieldShowType())) {
// 根据tag找到dictCode
String dictCode = tag.getDictField();
if (!this.dictValid(dictCode, cellValue)) {
log.error("" + row + "" + tag.getDbFieldTxt() + "填写错误 ");
errMsg.append("").append(row).append("").append(tag.getDbFieldTxt()).append("填写错误 ");
} else {
// 转为id
cellValue = this.convertDictValue(dictCode, cellValue);
}
}
// 将转好的值加入Map
parameterMap.put(tag.getDbFieldName(), cellValue);
}
// 判断实施日期是否大于发布日期15天
if (releaseDate != null && implementationDate != null) {