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);
|
||||
|
||||
List<PushSettingDTO> list = pushSettingPOS.stream()
|
||||
.filter(po -> StrUtil.isBlank(param.getName()) || po.getName().contains(param.getName())).map(
|
||||
po -> PushSettingDTO.builder()
|
||||
.id(po.getId())
|
||||
.name(po.getName())
|
||||
.tableName(po.getTableName())
|
||||
.modeName(po.getModeName())
|
||||
.modeId(po.getModeId())
|
||||
.able(po.getAble())
|
||||
.salarySobs(po.getSalarySobIds().stream().map(sobPOMap::get).collect(Collectors.toList()))
|
||||
.build()).collect(Collectors.toList());
|
||||
.filter(po -> StrUtil.isBlank(param.getName()) || po.getName().contains(param.getName()))
|
||||
.map(po -> PushSettingDTO.builder()
|
||||
.id(po.getId())
|
||||
.name(po.getName())
|
||||
.tableName(po.getTableName())
|
||||
.modeName(po.getModeName())
|
||||
.modeId(po.getModeId())
|
||||
.able(po.getAble())
|
||||
.salarySobs(po.getSalarySobIds().stream().map(sobPOMap::get).collect(Collectors.toList()))
|
||||
.build()).collect(Collectors.toList());
|
||||
return SalaryPageUtil.buildPage(param.getCurrent(), param.getPageSize(), list, PushSettingDTO.class);
|
||||
}
|
||||
|
||||
|
|
@ -526,8 +526,9 @@ public class PushServiceImpl extends Service implements PushService {
|
|||
@Override
|
||||
public PageInfo<PushRecordDTO> recordList(RecordListQueryParam param) {
|
||||
List<PushRecordPO> pushRecordPOS = getPushRecordMapper().listAll();
|
||||
List<PushRecordDTO> listDTOS = SalaryPageUtil.subList(param.getCurrent(), param.getPageSize(), pushRecordPOS)
|
||||
List<PushRecordDTO> listDTOS = pushRecordPOS
|
||||
.stream()
|
||||
.filter(po -> StrUtil.isBlank(param.getName()) || po.getName().contains(param.getName()))
|
||||
.map(po -> PushRecordDTO.builder()
|
||||
.id(po.getId())
|
||||
.name(po.getName())
|
||||
|
|
@ -543,9 +544,7 @@ public class PushServiceImpl extends Service implements PushService {
|
|||
.build())
|
||||
.collect(Collectors.toList());
|
||||
|
||||
PageInfo<PushRecordDTO> pageInfo = SalaryPageUtil.buildPage(param.getCurrent(), param.getPageSize(), PushRecordDTO.class);
|
||||
pageInfo.setList(listDTOS);
|
||||
pageInfo.setTotal(pushRecordPOS.size());
|
||||
PageInfo<PushRecordDTO> pageInfo = SalaryPageUtil.buildPage(param.getCurrent(), param.getPageSize(), listDTOS, PushRecordDTO.class);
|
||||
return pageInfo;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue