修复数据推送查询问题
This commit is contained in:
parent
99f6c43f25
commit
508012c82b
|
|
@ -112,8 +112,8 @@ public class PushServiceImpl extends Service implements PushService {
|
||||||
Map<Long, SalarySobPO> sobPOMap = SalaryEntityUtil.convert2Map(salarySobPOS, SalarySobPO::getId);
|
Map<Long, SalarySobPO> sobPOMap = SalaryEntityUtil.convert2Map(salarySobPOS, SalarySobPO::getId);
|
||||||
|
|
||||||
List<PushSettingDTO> list = pushSettingPOS.stream()
|
List<PushSettingDTO> list = pushSettingPOS.stream()
|
||||||
.filter(po -> StrUtil.isBlank(param.getName()) || po.getName().contains(param.getName())).map(
|
.filter(po -> StrUtil.isBlank(param.getName()) || po.getName().contains(param.getName()))
|
||||||
po -> PushSettingDTO.builder()
|
.map(po -> PushSettingDTO.builder()
|
||||||
.id(po.getId())
|
.id(po.getId())
|
||||||
.name(po.getName())
|
.name(po.getName())
|
||||||
.tableName(po.getTableName())
|
.tableName(po.getTableName())
|
||||||
|
|
@ -526,8 +526,9 @@ public class PushServiceImpl extends Service implements PushService {
|
||||||
@Override
|
@Override
|
||||||
public PageInfo<PushRecordDTO> recordList(RecordListQueryParam param) {
|
public PageInfo<PushRecordDTO> recordList(RecordListQueryParam param) {
|
||||||
List<PushRecordPO> pushRecordPOS = getPushRecordMapper().listAll();
|
List<PushRecordPO> pushRecordPOS = getPushRecordMapper().listAll();
|
||||||
List<PushRecordDTO> listDTOS = SalaryPageUtil.subList(param.getCurrent(), param.getPageSize(), pushRecordPOS)
|
List<PushRecordDTO> listDTOS = pushRecordPOS
|
||||||
.stream()
|
.stream()
|
||||||
|
.filter(po -> StrUtil.isBlank(param.getName()) || po.getName().contains(param.getName()))
|
||||||
.map(po -> PushRecordDTO.builder()
|
.map(po -> PushRecordDTO.builder()
|
||||||
.id(po.getId())
|
.id(po.getId())
|
||||||
.name(po.getName())
|
.name(po.getName())
|
||||||
|
|
@ -544,7 +545,6 @@ public class PushServiceImpl extends Service implements PushService {
|
||||||
.collect(Collectors.toList());
|
.collect(Collectors.toList());
|
||||||
|
|
||||||
PageInfo<PushRecordDTO> pageInfo = SalaryPageUtil.buildPage(param.getCurrent(), param.getPageSize(), listDTOS, PushRecordDTO.class);
|
PageInfo<PushRecordDTO> pageInfo = SalaryPageUtil.buildPage(param.getCurrent(), param.getPageSize(), listDTOS, PushRecordDTO.class);
|
||||||
pageInfo.setTotal(pushRecordPOS.size());
|
|
||||||
return pageInfo;
|
return pageInfo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue