| | |
| | | import java.io.IOException; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import javax.annotation.Resource; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | |
| | | @Service |
| | | public class PromotionWishListServiceImpl extends ServiceImpl<PromotionWishListMapper, PromotionWishList> implements IPromotionWishListService { |
| | | |
| | | @Resource |
| | | private IPromotionWishListService iPromotionWishListService; |
| | | |
| | | @Override |
| | | public PageDTO<PromotionWishList> getPromotionWishList(PromotionWishListDTO promotionWishListDTO) { |
| | | |
| | | Page<PromotionWishList> page = new Page<>(promotionWishListDTO.getPageCurr(), promotionWishListDTO.getPageSize()); |
| | | LambdaQueryWrapper<PromotionWishList> wrapper= Wrappers.lambdaQuery(); |
| | | wrapper.eq(PromotionWishList::getMemberId,promotionWishListDTO.getMemberId()); |
| | | Page<PromotionWishList> page1 = iPromotionWishListService.page(page, wrapper); |
| | | Page<PromotionWishList> page1 = this.page(page, wrapper); |
| | | return PageDTO.of(page1); |
| | | } |
| | | |
| | |
| | | } |
| | | promotionWishList.setGoodsImageUrl(urlList.toString()); |
| | | } |
| | | iPromotionWishListService.save(promotionWishList); |
| | | this.save(promotionWishList); |
| | | } |
| | | |
| | | @Override |
| | | public void delPromotionWishOne(PromotionWishListDTO promotionWishListDTO) { |
| | | iPromotionWishListService.removeById(promotionWishListDTO.getRomotionWishId()); |
| | | this.removeById(promotionWishListDTO.getRomotionWishId()); |
| | | } |
| | | |
| | | @Override |
| | |
| | | LambdaQueryWrapper<PromotionWishList> wrapper= Wrappers.lambdaQuery(); |
| | | wrapper.eq(PromotionWishList::getId,promotionWishListDTO.getRomotionWishId()); |
| | | wrapper.eq(PromotionWishList::getDelFlag,0); |
| | | return iPromotionWishListService.getOne(wrapper); |
| | | return this.getOne(wrapper); |
| | | } |
| | | |
| | | } |