提交 540c69fa authored 作者: lvwei's avatar lvwei

--no commit message

上级 446faaac
......@@ -58,7 +58,7 @@ public class LabelManage {
List<LabelGoodsRelation> labelGoodsRelation = labelGoodsRelationMapper.select(record);
Map<Integer, String> labelNames = new HashMap<Integer, String>();
labelGoodsRelation.stream().map(LabelGoodsRelation :: getLabelId)
.map(id -> labelNames.put(id, getName(id, new StringBuffer())));
.forEach(id -> labelNames.put(id, getName(id, new StringBuffer())));
return labelNames;
}
......
......@@ -267,6 +267,7 @@ public class PhyResourceServiceImpl extends BaseModelServiceImpl<PhyResource, St
@Override
public PhyResourceVo get(String id) {
PhyResource phyResource = phyResourceMapper.selectByPrimaryKey(id);
if(phyResource == null) throw new BusinessValidateException("不存在该资源 ");
PhyResourceVo phyResourceVo = new PhyResourceVo();
try {
BeanUtils.copyProperties(phyResource, phyResourceVo);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论