| | |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.concurrent.TimeUnit; |
| | |
| | | private ITOrderService orderService; |
| | | @Resource |
| | | private TokenService tokenService; |
| | | |
| | | @Override |
| | | public List<TGoodsVO> goodRecommend(Integer userId) { |
| | | return baseMapper.goodRecommend(userId); |
| | | } |
| | | |
| | | @Override |
| | | public TGoods getById1(Integer goodsId) { |
| | | return this.baseMapper.getById1(goodsId); |
| | | } |
| | | |
| | | @Override |
| | | public GoodDetailVO redeemNow(String goodId, Recipient recipient) { |
| | | // 商品详情 |
| | | TGoods goods = lambdaQuery().eq(TGoods::getId, goodId).one(); |