|
@@ -59,14 +59,20 @@ public class InformationServiceImpl implements InformationService
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public List<Information> selectInformationListWx(Information information)
|
|
|
+ public List<InformationUni> selectInformationListWx(Information information)
|
|
|
{
|
|
|
- return informationMapper.selectInformationListWx(information);
|
|
|
+ List<Information> list = informationMapper.selectInformationListWx(information);
|
|
|
+ return list.stream().map(item -> {
|
|
|
+ InformationUni uni = new InformationUni();
|
|
|
+ BeanUtils.copyProperties(item, uni);
|
|
|
+ return uni;
|
|
|
+ }).collect(Collectors.toList());
|
|
|
}
|
|
|
@Override
|
|
|
public TableDataInfo selectInformationListWxs(Information information, Integer pageNum, Integer pageSize)
|
|
|
{
|
|
|
// List<Information> result = informationMapper.selectInformationListWxs(information,pageNum, pageSize);
|
|
|
+ System.out.println(information.getIsTop());
|
|
|
List<Information> toolForAbsenteeism = informationMapper.selectInformationListWxs(information,pageNum, pageSize);
|
|
|
TableDataInfo tableDataInfo = new TableDataInfo();
|
|
|
tableDataInfo.setRows(toolForAbsenteeism.stream() .skip((long) (pageNum - 1) * pageSize)
|