提交 d874bc20 authored 作者: chaoyanjun's avatar chaoyanjun

--no commit message

上级 9ff839b8
......@@ -617,6 +617,7 @@ public class ResourceServiceImpl extends BaseModelServiceImpl<PhyResource, Strin
// TODO 使用 boolean flag = resourceBindings.stream().map(ResourceBinding :: getOtherType).anymath(type -> GoodsTypeEnum.PDF.getCode().equals(type))
List<String> otherTypes = resourceBindings.stream().map(ResourceBinding :: getOtherType).collect(Collectors.toList());
fgPhySysResourceVo.setIsTrialReading(otherTypes.contains(GoodsTypeEnum.PDF.getCode()) ? "0" : "1");
fgPhySysResourceVo.setTypeZh(GoodsTypeEnum.getName(fgPhySysResourceVo.getType()).replace("库", ""));
}
collectionsVo.setFgPhySysResourceVo(fgPhySysResourceVo);
} else {
......@@ -627,6 +628,7 @@ public class ResourceServiceImpl extends BaseModelServiceImpl<PhyResource, Strin
EleResource eleResource = eleResourceMapper.selectByPrimaryKey(forms.getGoodsId());
try {
BeanUtils.copyProperties(fgEleSysResourceVo, eleResource);
fgEleSysResourceVo.setTypeZh(GoodsTypeEnum.getName(fgEleSysResourceVo.getType()).replace("库", ""));
} catch (Exception e) {
logger.error("批量电子实体资源信息-属性copy失败\n" + e.getMessage());
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论