package com.yeshi.fanli.dao.mybatis.lable;
|
|
import java.util.List;
|
|
import org.apache.ibatis.annotations.Param;
|
|
import com.yeshi.fanli.entity.bus.lable.QualityFlashSale;
|
|
public interface QualityFlashSaleMapper {
|
|
int deleteByPrimaryKey(Long id);
|
|
int deleteBatchByPrimaryKey(List<Long> list);
|
|
int insert(QualityFlashSale record);
|
|
int insertSelective(QualityFlashSale record);
|
|
QualityFlashSale selectByPrimaryKey(Long id);
|
|
int updateByPrimaryKeySelective(QualityFlashSale record);
|
|
int updateByPrimaryKey(QualityFlashSale record);
|
|
|
/**
|
* 批量插入
|
* @param list
|
* @return
|
*/
|
int insertBatch(List<QualityFlashSale> list);
|
|
|
/**
|
* 批量选择更新
|
* @param list
|
* @return
|
*/
|
int updateBatchSelective(List<QualityFlashSale> list);
|
|
/**
|
* 根据精选id删除
|
* @param id
|
* @return
|
*/
|
int deleteByQualityID(Long qid);
|
|
/**
|
* 根据精选id 批量删除
|
* @param id
|
* @return
|
*/
|
int deleteBatchByQualityID(List<Long> list);
|
|
|
/**
|
* 根据精选id查询
|
* @param list
|
* @return
|
*/
|
List<QualityFlashSale> listQueryByQualityID(List<Long> list);
|
|
|
/**
|
* 超过一定时间的抢购商品---待需删除
|
* @param start
|
* @param count
|
* @param hour
|
* @return
|
*/
|
List<Long> queryNeedRemove(@Param("start") long start, @Param("count") int count, @Param("hour") int hour);
|
|
|
|
}
|