package com.gk.firework.Service.ServiceImpl;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import com.gk.firework.Domain.SaleProductInfo;
|
import com.gk.firework.Mapper.SaleProductInfoMapper;
|
import com.gk.firework.Service.SaleProductService;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.stereotype.Service;
|
|
import java.util.List;
|
|
@Service("SaleProductService")
|
public class SaleProductServiceImpl extends ServiceImpl<SaleProductInfoMapper, SaleProductInfo> implements SaleProductService {
|
@Autowired
|
SaleProductInfoMapper saleProductInfoMapper;
|
|
|
@Override
|
public List<SaleProductInfo> selectRandom(int n) {
|
return saleProductInfoMapper.selectRandom(n);
|
}
|
}
|