| | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.core.web.controller.BaseController; |
| | | import com.ruoyi.order.model.OrderGood; |
| | | import com.ruoyi.order.service.OrderGoodService; |
| | | import model.OrderGood; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | |
| | | .in(OrderGood::getGoodsId, goodsIds)); |
| | | return R.ok(orderGoods); |
| | | } |
| | | |
| | | @GetMapping("/getOrderListByUserIdAndGoodsId") |
| | | public R<List<OrderGood>> getOrderListByUserIdAndGoodsId(Long userId, Integer goodsId){ |
| | | return R.ok(orderGoodService.getOrderListByUserIdAndGoodsId(userId, goodsId)); |
| | | } |
| | | } |
| | | |