| | |
| | | package com.ruoyi.goods.controller; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | 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 javax.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | @RequestMapping("/goods-sku") |
| | | public class GoodsSkuController { |
| | | |
| | | @Resource |
| | | private IGoodsSkuService iGoodsSkuService; |
| | | |
| | | /** |
| | | * 获取当前商品信息 |
| | | * |
| | | */ |
| | | @RequestMapping("/getGoodsSkuOne") |
| | | @ResponseBody |
| | | public GoodsSku getGoodsSkuOne(Integer goodsSkuId) { |
| | | GoodsSku goodsSkuOne=iGoodsSkuService.getById(goodsSkuId); |
| | | return goodsSkuOne; |
| | | |
| | | } |
| | | |
| | | } |