Commit 3409816e by hongzhong

解决自动添加limit分页问题

parent 376b00e2
...@@ -895,6 +895,7 @@ public class AgmsFortuneServiceImpl implements AgmsFortuneService { ...@@ -895,6 +895,7 @@ public class AgmsFortuneServiceImpl implements AgmsFortuneService {
@Override @Override
public FortunePayoutBatchQueryResponseVO fortunePayoutBatchQuery() { public FortunePayoutBatchQueryResponseVO fortunePayoutBatchQuery() {
FortunePayoutBatchQueryResponseVO responseVO = new FortunePayoutBatchQueryResponseVO(); FortunePayoutBatchQueryResponseVO responseVO = new FortunePayoutBatchQueryResponseVO();
PageHelper.clearPage();//偶然遇到了这个问题,同一个查询结果一会是10个(预期),一会是真实个数(刷新/重启应用就又变成真实个数) 查看日志,发现了问题:结果为10个时查询SQL自动加上了Limit 10
List<String> payoutBatch = customerFortunePayoutBatchDalService.findAll(); List<String> payoutBatch = customerFortunePayoutBatchDalService.findAll();
responseVO.setPayoutBatchInfos(payoutBatch); responseVO.setPayoutBatchInfos(payoutBatch);
responseVO.setCommonResult(new CommonResult(true, ZHBErrorConfig.getErrorInfo("800000"))); responseVO.setCommonResult(new CommonResult(true, ZHBErrorConfig.getErrorInfo("800000")));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment