feat: 企标编号生成逻辑变更 标准类别代号去掉中文括号及括号中的内容
This commit is contained in:
+7
-1
@@ -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 "";
|
||||
|
||||
Reference in New Issue
Block a user