feat: 企标编号生成逻辑变更 标准类别代号去掉中文括号及括号中的内容

This commit is contained in:
2024-03-20 10:25:38 +08:00
parent 62ba8b4d22
commit 045e5acf64
@@ -158,7 +158,13 @@ public class EnterpriseStandardUtil {
List<DictModel> esCodeDictModelList = sysBaseAPI.getDictItems("standard_category_code");
List<DictModel> collect = esCodeDictModelList.stream().filter(e -> categoryCode.equals(e.getValue())).collect(Collectors.toList());
if (!collect.isEmpty()) {
return collect.get(0).getText();
String text = collect.get(0).getText();
// 去除text中的中文括号包裹的内容
if (text.contains("") && text.contains("")) {
return text.substring(0, text.indexOf(""));
} else {
return text;
}
}
}
return "";