|
|
|
@ -552,9 +552,9 @@ public class WtSpBasicServiceImpl extends BaseServiceImpl<WtSpBasicMapper, WtSpB
|
|
|
|
|
List<WtSpBasicEntity> data = new ArrayList<>(); |
|
|
|
|
List<WtSpBasicEntity> error = new ArrayList<>(); |
|
|
|
|
error = JSONArray.parseArray(JSON.toJSONString(entityList), WtSpBasicEntity.class).stream() |
|
|
|
|
.filter(entity -> Func.isEmpty(entity.getName())).collect(Collectors.toList()); |
|
|
|
|
.filter(entity -> Func.isEmpty(entity.getCode())).collect(Collectors.toList()); |
|
|
|
|
data = JSONArray.parseArray(JSON.toJSONString(entityList), WtSpBasicEntity.class).stream() |
|
|
|
|
.filter(entity -> Func.isNotEmpty(entity.getName())).collect(Collectors.toList()); |
|
|
|
|
.filter(entity -> Func.isNotEmpty(entity.getCode())).collect(Collectors.toList()); |
|
|
|
|
Assert.isTrue(CollectionUtil.isEmpty(error), () -> { |
|
|
|
|
throw new ServiceException("填入工器具编码不能为空"); |
|
|
|
|
}); |
|
|
|
|