Commit 0da34a14 authored by 万成波's avatar 万成波

商品查询

parent effcab0d
package com.tangguo.controller; package com.tangguo.controller;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.tangguo.common.annotation.Log; import com.tangguo.common.annotation.Log;
import com.tangguo.common.core.controller.BaseController; import com.tangguo.common.core.controller.BaseController;
import com.tangguo.common.core.domain.AjaxResult; import com.tangguo.common.core.domain.AjaxResult;
...@@ -47,9 +48,10 @@ public class BbsPointsGoodsController extends BaseController { ...@@ -47,9 +48,10 @@ public class BbsPointsGoodsController extends BaseController {
*/ */
@ApiOperation("获取积分商品详细信息") @ApiOperation("获取积分商品详细信息")
@PreAuthorize("@ss.hasPermi('goods:goods:query')") @PreAuthorize("@ss.hasPermi('goods:goods:query')")
@GetMapping(value = "/{id}") @GetMapping(value = "/{code}")
public AjaxResult getInfo(@PathVariable("id") Long id) { public AjaxResult getInfo(@PathVariable("code") String code) {
return success(bbsPointsGoodsService.getById(id)); BbsPointsGoods dbGoods = this.bbsPointsGoodsService.getByGoodsCode(code);
return success(bbsPointsGoodsService.getById(dbGoods));
} }
......
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