| | |
| | | import com.ruoyi.promotion.mapper.PromotionBannerMapper; |
| | | import com.ruoyi.promotion.service.IPromotionBannerService; |
| | | import java.util.List; |
| | | import javax.annotation.Resource; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | |
| | | @Service |
| | | public class PromotionBannerServiceImpl extends ServiceImpl<PromotionBannerMapper, PromotionBanner> implements IPromotionBannerService { |
| | | |
| | | @Resource |
| | | private IPromotionBannerService iPromotionBannerService; |
| | | @Override |
| | | public List<PromotionBanner> getBaanerList(Integer bannerType) { |
| | | LambdaQueryWrapper<PromotionBanner> wrapper= Wrappers.lambdaQuery(); |
| | | wrapper.eq(PromotionBanner::getBannerType,bannerType); |
| | | wrapper.eq(PromotionBanner::getDelFlag,0); |
| | | wrapper.orderByDesc(PromotionBanner::getSortNum); |
| | | return iPromotionBannerService.list(wrapper); |
| | | return this.list(wrapper); |
| | | } |
| | | } |