master
Gitea 2 weeks ago
parent 671d076f54
commit 54a57f5216
  1. 1
      jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/innovationvoucher/controller/InnovationVoucherController.java

@ -94,6 +94,7 @@ public class InnovationVoucherController extends JeecgController<InnovationVouch
QueryWrapper<InnovationVoucher> queryWrapper = QueryGenerator.initQueryWrapper(innovationVoucher, req.getParameterMap()); QueryWrapper<InnovationVoucher> queryWrapper = QueryGenerator.initQueryWrapper(innovationVoucher, req.getParameterMap());
queryWrapper.eq("state","3"); queryWrapper.eq("state","3");
queryWrapper.orderByDesc("create_time");
Page<InnovationVoucher> page = new Page<InnovationVoucher>(pageNo, pageSize); Page<InnovationVoucher> page = new Page<InnovationVoucher>(pageNo, pageSize);
IPage<InnovationVoucher> pageList = innovationVoucherService.page(page, queryWrapper); IPage<InnovationVoucher> pageList = innovationVoucherService.page(page, queryWrapper);
return Result.OK(pageList); return Result.OK(pageList);

Loading…
Cancel
Save