|
|
@ -84,6 +84,36 @@ public class InnovationVoucherController extends JeecgController<InnovationVouch |
|
|
|
return Result.OK(pageList); |
|
|
|
return Result.OK(pageList); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value="创新券表-分页列表查询", notes="创新券表-分页列表查询") |
|
|
|
|
|
|
|
@GetMapping(value = "/listcms") |
|
|
|
|
|
|
|
public Result<IPage<InnovationVoucher>> listcms(InnovationVoucher innovationVoucher, |
|
|
|
|
|
|
|
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo, |
|
|
|
|
|
|
|
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize, |
|
|
|
|
|
|
|
HttpServletRequest req) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
QueryWrapper<InnovationVoucher> queryWrapper = QueryGenerator.initQueryWrapper(innovationVoucher, req.getParameterMap()); |
|
|
|
|
|
|
|
Page<InnovationVoucher> page = new Page<InnovationVoucher>(pageNo, pageSize); |
|
|
|
|
|
|
|
IPage<InnovationVoucher> pageList = innovationVoucherService.page(page, queryWrapper); |
|
|
|
|
|
|
|
return Result.OK(pageList); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* 通过id查询 |
|
|
|
|
|
|
|
* |
|
|
|
|
|
|
|
* @param id |
|
|
|
|
|
|
|
* @return |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
//@AutoLog(value = "创新券表-通过id查询")
|
|
|
|
|
|
|
|
@ApiOperation(value="创新券表-通过id查询", notes="创新券表-通过id查询") |
|
|
|
|
|
|
|
@GetMapping(value = "/queryByIdCms") |
|
|
|
|
|
|
|
public Result<InnovationVoucher> queryByIdCms(@RequestParam(name="id",required=true) String id) { |
|
|
|
|
|
|
|
InnovationVoucher innovationVoucher = innovationVoucherService.getById(id); |
|
|
|
|
|
|
|
if(innovationVoucher==null) { |
|
|
|
|
|
|
|
return Result.error("未找到对应数据"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return Result.OK(innovationVoucher); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 分页列表查询 |
|
|
|
* 分页列表查询 |
|
|
|
* |
|
|
|
* |
|
|
|