支持格式

This commit is contained in:
jing's 2024-01-03 23:00:10 +08:00
parent bd8ed13aca
commit 9757db017d
1 changed files with 5 additions and 1 deletions

View File

@ -81,7 +81,11 @@ public class OptionalEbomImportChildService extends ServiceImpl<OptionalEbomImpo
optionList.add(entity);
} else {
//先统一后分割
String[] array = nos.replace("", ";").split(";");
String[] array = nos.replace("", ";")
.replace(" ",";")
.replace("",";")
.replace(",",";")
.split(";");
List<String> listNo = Arrays.stream(array).collect(Collectors.toList());
List<BaseMaterialVO> materialListVo = SpringUtil.getBean(MaterialMainService.class).initMaterialForAnyNo(listNo);
if (CollectionUtil.isEmpty(materialListVo)) {