fix: 89110 企业标准-新增 标准分类代码选B1,顺序号不填写,新增提示标准编号已经存在

This commit is contained in:
2024-08-20 17:10:25 +08:00
parent 9f31ae2df1
commit f5f9ea915f
@@ -203,17 +203,19 @@ public class ImportUtil {
// 拆分后半部分获取标准类别代号,顺序号和年代号
String[] secondPartElements = secondPart.split("-");
String categoryAndSequence = secondPartElements[0];
String yearCode = secondPartElements[1];
// 从标准类别代号和顺序号字符串中分离出标准类别代号和顺序号
String categoryCode = secondPartElements[0];
String sequence = secondPartElements[1];
String yearCode = secondPartElements[2];
parameterMap.put(FieldCommon.STANDARD_NUMBER_TEMP, sequence);
parameterMap.put(FieldCommon.YEAR_NUMBER, yearCode);
// 转成字典值并存入
parameterMap.put(FieldCommon.ENTERPRISE_STANDARD_CODE, this.convertDictValue("enterprise_standard_code", enterpriseStandardCode));
parameterMap.put(FieldCommon.ENTERPRISE_NAME_CODE, this.convertDictValue("enterprise_name_code", enterpriseNameCode));
parameterMap.put(FieldCommon.STANDARD_CATEGORY_CODE, this.convertDictValue("standard_category_code", categoryCode));
parameterMap.put(FieldCommon.YEAR_NUMBER, yearCode);
}
// 判断是否有重复数据
if (keyMap.containsKey(cellValue)) {