分组时间管控
This commit is contained in:
@@ -58,11 +58,7 @@ public class TbProductGroupServiceImpl implements TbProductGroupService {
|
||||
PageRequest sort = PageRequest.of(pageable.getPageNumber(), pageable.getPageSize(), Sort.by("sort"));
|
||||
Page<TbProductGroup> page = tbProductGroupRepository.findAll((root, criteriaQuery, criteriaBuilder) ->
|
||||
QueryHelp.getPredicate(root,criteria,criteriaBuilder),sort);
|
||||
Page<TbProductGroupDto> map = page.map(tbProductGroupMapper::toDto);
|
||||
map.getContent().forEach(s->{
|
||||
s.upSaleEndTime();
|
||||
});
|
||||
return PageUtil.toPage(map);
|
||||
return PageUtil.toPage(page.map(tbProductGroupMapper::toDto));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user