| | |
| | | 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.common.core.domain.R; |
| | | import com.ruoyi.goods.domain.GoodsSku; |
| | | import com.ruoyi.goods.service.IGoodsSkuService; |
| | | import javax.annotation.Resource; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | 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("/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); |
| | | |
| | | } |
| | | |
| | | |
| | | @PostMapping("/updateGoodsSkuOne") |
| | | @ResponseBody |
| | | public R<Boolean> updateGoodsSkuOne(@RequestBody GoodsSku goodsSku) { |
| | | return R.ok(iGoodsSkuService.updateById(goodsSku)); |
| | | |
| | | } |
| | | |