修改市场法规清单版本记录问题
This commit is contained in:
+9
-9
@@ -104,16 +104,16 @@ public class MarketListVersionUpdateLogEOServiceImpl extends ServiceImpl<MarketL
|
||||
public IPage<MarketListVersionUpdateLogEO> getPageInfo(QueryWrapper<MarketListVersionUpdateLogEO> queryWrapper,
|
||||
Integer pageNo,
|
||||
Integer pageSize) {
|
||||
queryWrapper.lambda().orderByAsc(MarketListVersionUpdateLogEO::getCreateTime);
|
||||
queryWrapper.lambda().orderByDesc(MarketListVersionUpdateLogEO::getCreateTime);
|
||||
List<MarketListVersionUpdateLogEO> marketListVersionUpdateLogEOList = this.list(queryWrapper);
|
||||
if (ObjectUtils.isNotEmpty(marketListVersionUpdateLogEOList)
|
||||
&& marketListVersionUpdateLogEOList.size() == 1) {
|
||||
return new Page<>();
|
||||
}
|
||||
if (ObjectUtils.isNotEmpty(marketListVersionUpdateLogEOList)
|
||||
&& marketListVersionUpdateLogEOList.size() > 1) {
|
||||
marketListVersionUpdateLogEOList.remove(marketListVersionUpdateLogEOList.size() - 1);
|
||||
}
|
||||
// if (ObjectUtils.isNotEmpty(marketListVersionUpdateLogEOList)
|
||||
// && marketListVersionUpdateLogEOList.size() == 1) {
|
||||
// return new Page<>();
|
||||
// }
|
||||
// if (ObjectUtils.isNotEmpty(marketListVersionUpdateLogEOList)
|
||||
// && marketListVersionUpdateLogEOList.size() > 1) {
|
||||
// marketListVersionUpdateLogEOList.remove(marketListVersionUpdateLogEOList.size() - 1);
|
||||
// }
|
||||
IPage<MarketListVersionUpdateLogEO> pageList = PageUtil.getPages(pageNo, pageSize, marketListVersionUpdateLogEOList);
|
||||
if (ObjectUtils.isNotEmpty(pageList.getRecords())) {
|
||||
List<String> idList = pageList.getRecords().stream().map(MarketListVersionUpdateLogEO::getListId).distinct().collect(Collectors.toList());
|
||||
|
||||
Reference in New Issue
Block a user