| | |
| | | package com.ruoyi.goods.service.impl; |
| | | |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.goods.domain.GoodsSeckillAppointment; |
| | | import com.ruoyi.goods.mapper.GoodsSeckillAppointmentMapper; |
| | | import com.ruoyi.goods.service.IGoodsSeckillAppointmentService; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.system.api.domain.dto.HomeGoodsSkuDTO; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | |
| | | @Service |
| | | public class GoodsSeckillAppointmentServiceImpl extends ServiceImpl<GoodsSeckillAppointmentMapper, GoodsSeckillAppointment> implements IGoodsSeckillAppointmentService { |
| | | |
| | | @Override |
| | | public R goodsSeckillAppointment(HomeGoodsSkuDTO homeGoodsSkuDTO) { |
| | | GoodsSeckillAppointment goodsSeckillAppointment=new GoodsSeckillAppointment(); |
| | | goodsSeckillAppointment.setGoodsSeckillId(homeGoodsSkuDTO.getGoodsSkuId()); |
| | | goodsSeckillAppointment.setMemberId(homeGoodsSkuDTO.getMemberId()); |
| | | this.save(goodsSeckillAppointment); |
| | | return R.ok(); |
| | | } |
| | | } |