Compare commits
2 Commits
efd2eafd1e
...
a2ead2346e
| Author | SHA1 | Date |
|---|---|---|
|
|
a2ead2346e | |
|
|
508012c82b |
|
|
@ -112,16 +112,16 @@ 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())
|
||||||
.modeName(po.getModeName())
|
.modeName(po.getModeName())
|
||||||
.modeId(po.getModeId())
|
.modeId(po.getModeId())
|
||||||
.able(po.getAble())
|
.able(po.getAble())
|
||||||
.salarySobs(po.getSalarySobIds().stream().map(sobPOMap::get).collect(Collectors.toList()))
|
.salarySobs(po.getSalarySobIds().stream().map(sobPOMap::get).collect(Collectors.toList()))
|
||||||
.build()).collect(Collectors.toList());
|
.build()).collect(Collectors.toList());
|
||||||
return SalaryPageUtil.buildPage(param.getCurrent(), param.getPageSize(), list, PushSettingDTO.class);
|
return SalaryPageUtil.buildPage(param.getCurrent(), param.getPageSize(), list, PushSettingDTO.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -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())
|
||||||
|
|
@ -543,9 +544,7 @@ public class PushServiceImpl extends Service implements PushService {
|
||||||
.build())
|
.build())
|
||||||
.collect(Collectors.toList());
|
.collect(Collectors.toList());
|
||||||
|
|
||||||
PageInfo<PushRecordDTO> pageInfo = SalaryPageUtil.buildPage(param.getCurrent(), param.getPageSize(), PushRecordDTO.class);
|
PageInfo<PushRecordDTO> pageInfo = SalaryPageUtil.buildPage(param.getCurrent(), param.getPageSize(), listDTOS, PushRecordDTO.class);
|
||||||
pageInfo.setList(listDTOS);
|
|
||||||
pageInfo.setTotal(pushRecordPOS.size());
|
|
||||||
return pageInfo;
|
return pageInfo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue