| | |
| | | import com.doumee.dao.business.BannerMapper; |
| | | import com.doumee.dao.business.LabelsMapper; |
| | | import com.doumee.dao.business.join.BannerJoinMapper; |
| | | import com.doumee.dao.business.model.Areas; |
| | | import com.doumee.dao.business.model.Banner; |
| | | import com.doumee.dao.business.model.Goods; |
| | | import com.doumee.dao.business.model.Labels; |
| | | import com.doumee.dao.business.model.*; |
| | | import com.doumee.dao.web.dto.ArticleDTO; |
| | | import com.doumee.dao.web.dto.BannerDTO; |
| | | import com.doumee.dao.web.dto.LabelsBannerDTO; |
| | |
| | | |
| | | |
| | | @Override |
| | | public void updateStatus(Banner coupon) { |
| | | LoginUserInfo user = (LoginUserInfo) SecurityUtils.getSubject().getPrincipal(); |
| | | if(coupon.getId()==null||coupon.getStatus()==null){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(), ResponseStatus.BAD_REQUEST.getMessage()); |
| | | } |
| | | coupon.setEditor(user.getId()); |
| | | coupon.setEditDate(new Date()); |
| | | bannerMapper.updateById(coupon); |
| | | } |
| | | @Override |
| | | public PageData<ShopSimpleDTO> findRecommendShopPage(PageWrap<Banner> pageWrap) { |
| | | IPage<Banner> page = new Page<>(pageWrap.getPage(), pageWrap.getCapacity()); |
| | | QueryWrapper<Banner> queryWrapper = new QueryWrapper<>(); |