| | |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.goods.domain.pojo.GoodsSku; |
| | | import com.ruoyi.goods.service.IGoodsSkuService; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | |
| | | import org.springframework.web.bind.annotation.ResponseBody; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | |
| | | * 获取当前商品信息 |
| | | * |
| | | */ |
| | | @RequestMapping("/getGoodsSkuOne") |
| | | @PostMapping("/getGoodsSkuOne") |
| | | @ResponseBody |
| | | public GoodsSku getGoodsSkuOne(Integer goodsSkuId) { |
| | | public R<GoodsSku> getGoodsSkuOne(@RequestBody Integer goodsSkuId) { |
| | | GoodsSku goodsSkuOne=iGoodsSkuService.getById(goodsSkuId); |
| | | return goodsSkuOne; |
| | | return R.ok(goodsSkuOne); |
| | | |
| | | } |
| | | |