|
|
|
@ -107,12 +107,12 @@ public class InnovationVoucherController extends JeecgController<InnovationVouch |
|
|
|
|
//@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); |
|
|
|
|
public Result<IPage<InnovationVoucher>> queryByIdCms(@RequestParam(name="id",required=true) String id) { |
|
|
|
|
QueryWrapper<InnovationVoucher> queryWrapper = new QueryWrapper(); |
|
|
|
|
queryWrapper.eq("id",id); |
|
|
|
|
Page<InnovationVoucher> page = new Page<InnovationVoucher>(1, 10); |
|
|
|
|
IPage<InnovationVoucher> pageList = innovationVoucherService.page(page, queryWrapper); |
|
|
|
|
return Result.OK(pageList); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|