提交 71f95251 authored 作者: chaoyanjun's avatar chaoyanjun

--no commit message

上级 7ba9b279
......@@ -46,7 +46,7 @@ public class LabelDataTypeServiceImpl extends BaseServiceImpl<LabelDataType,Inte
@Override
public PageInfo<LabelAndContentByDataTypeVO> queryLabelAndContentByDataType(String dataType, Integer nationsType) {
List<LabelAndContentByDataTypeVO> vos = new ArrayList<LabelAndContentByDataTypeVO>();
List<LabelAndContentByDataTypeVO> lab = labelmapper.queryLabelByData(dataType, nationsType);
List<Label> lab = labelmapper.queryLabelByData(dataType, nationsType);
lab.forEach(l ->{
LabelAndContentByDataTypeVO vo = new LabelAndContentByDataTypeVO();
BeanUtils.copyProperties(l, vo);
......@@ -67,14 +67,15 @@ public class LabelDataTypeServiceImpl extends BaseServiceImpl<LabelDataType,Inte
@Override
public List<LabelAndContentByDataTypeVO> queryLabel(String dataType, Integer nationsType) {
//List<LabelAndContentByDataTypeVO> vos = new ArrayList<LabelAndContentByDataTypeVO>();
List<LabelAndContentByDataTypeVO> lab = labelmapper.queryLabelByData(dataType,nationsType);
// lab.forEach(l -> {
// LabelAndContentByDataTypeVO vo = new LabelAndContentByDataTypeVO();
// BeanUtils.copyProperties(l, vo);
// vos.add(vo);
// });
return lab;
List<LabelAndContentByDataTypeVO> vos = new ArrayList<LabelAndContentByDataTypeVO>();
List<Label> lab = labelmapper.queryLabelByData(dataType,nationsType);
lab.forEach(l -> {
LabelAndContentByDataTypeVO vo = new LabelAndContentByDataTypeVO();
BeanUtils.copyProperties(l, vo);
vos.add(vo);
});
return vos;
}
@Override
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论