| | |
| | | package com.yeshi.fanli.dao.mybatis.lable; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.bus.lable.QualityFlashSale; |
| | | |
| | | public interface QualityFlashSaleMapper extends BaseMapper<QualityFlashSale>{ |
| | | |
| | | |
| | | /** |
| | | * 批量删除 |
| | | * @param list |
| | | * @return |
| | | */ |
| | | int deleteBatchByPrimaryKey(List<Long> list); |
| | | |
| | | |
| | | /** |
| | | * 批量插入 |
| | | * @param list |
| | | * @return |
| | | */ |
| | | int insertBatch(List<QualityFlashSale> list); |
| | | |
| | | |
| | | /** |
| | | * 批量选择更新 |
| | | * @param list |
| | | * @return |
| | | */ |
| | | int updateBatchSelective(List<QualityFlashSale> list); |
| | | |
| | | /** |
| | | * 根据精选id删除 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | int deleteByGoodsId(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); |
| | | |
| | | |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.lable;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.bus.lable.QualityFlashSale;
|
| | |
|
| | | public interface QualityFlashSaleMapper extends BaseMapper<QualityFlashSale>{
|
| | |
|
| | | |
| | | /**
|
| | | * 批量删除
|
| | | * @param list
|
| | | * @return
|
| | | */
|
| | | int deleteBatchByPrimaryKey(List<Long> list);
|
| | |
|
| | | |
| | | /**
|
| | | * 批量插入
|
| | | * @param list
|
| | | * @return
|
| | | */
|
| | | int insertBatch(List<QualityFlashSale> list);
|
| | | |
| | | |
| | | /**
|
| | | * 批量选择更新
|
| | | * @param list
|
| | | * @return
|
| | | */
|
| | | int updateBatchSelective(List<QualityFlashSale> list);
|
| | | |
| | | /**
|
| | | * 根据精选id删除
|
| | | * @param id
|
| | | * @return
|
| | | */
|
| | | int deleteByGoodsId(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);
|
| | | |
| | | |
| | | |
| | | } |