| package com.matrix.system.hive.dao; | 
|   | 
| import com.matrix.core.pojo.PaginationVO; | 
| import com.matrix.system.app.dto.ShoppingGoodsListDto; | 
| import com.matrix.system.app.vo.ShoppingGoodsListVo; | 
| import com.matrix.system.hive.bean.ShoppingGoods; | 
| import org.apache.ibatis.annotations.Param; | 
|   | 
| import java.util.List; | 
|   | 
|   | 
|   | 
| /** | 
|  * | 
|  * @date 2016-07-30 09:54 | 
|  */ | 
|   | 
|   | 
| public interface ShoppingGoodsDao{ | 
|   | 
|     public int insert(ShoppingGoods shoppingGoods); | 
|         | 
|     public int update(ShoppingGoods shoppingGoods); | 
|      | 
|     public int update2(Long id); | 
|      | 
|     public int deleteByIds(@Param("list") List<Long> list); | 
|      | 
|     public int deleteById(Long id); | 
|      | 
|     public List<ShoppingGoods> selectInPage(@Param("record") ShoppingGoods shoppingGoods, @Param("pageVo") PaginationVO pageVo); | 
|      | 
|     public List<ShoppingGoods> selectAll(@Param("record") ShoppingGoods shoppingGoods); | 
|   | 
|     public List<ShoppingGoods> selectByModel(@Param("record") ShoppingGoods shoppingGoods); | 
|      | 
|     public List<ShoppingGoods> selectByModel1(@Param("record") ShoppingGoods shoppingGoods); | 
|      | 
|     public int  selectTotalRecord(@Param("record") ShoppingGoods shoppingGoods); | 
|      | 
|     public ShoppingGoods  selectById(Long id); | 
|     /** | 
|      * 查询用户购买某个商品的次数 | 
|     * @Title: selectBuyCount  | 
|     * @author:jyy | 
|     * @param goodsId | 
|     * @param vipId | 
|     * @return     | 
|     * int    返回类型  | 
|     * @date 2016年9月22日 上午10:13:23  | 
|     * @throws | 
|      */ | 
|     public int selectBuyCount(@Param("goodsId") Long goodsId, @Param("vipId") Long vipId); | 
|     /** | 
|      * 查询除套餐以外的商品 | 
|      * @param shoppingGoods | 
|      * @return | 
|      */ | 
|     public List<ShoppingGoods> selectInPageNoTaocan(ShoppingGoods shoppingGoods); | 
|      | 
|     /** | 
|      * 查询除套餐以外的商品的数目 | 
|      * @param shoppingGoods | 
|      * @return | 
|      */ | 
|     public int selectTotalNoTaocan(ShoppingGoods shoppingGoods); | 
|      | 
|     /** | 
|      *    商品自动下架 | 
|      */ | 
|     public void automaticUpdate(); | 
|     /** | 
|      * 数据迁移专用查找返回简单对象 | 
|      * @param shoppingGoods | 
|      * @return | 
|      */ | 
|     public List<ShoppingGoods> selectByModelData(@Param("record") ShoppingGoods shoppingGoods); | 
|   | 
|     public int  bachUpdate(@Param("list")List<Long> strToCollToLong, @Param("value")String value,@Param("filed")String filed); | 
|   | 
|     public ShoppingGoods findByCode(String code); | 
|   | 
|     /** | 
|      * 获取会员充值商品,全局唯一不可删除 | 
|      * @return | 
|      */ | 
|     public ShoppingGoods selectVipCzGoods(); | 
|   | 
|     List<ShoppingGoodsListVo> selectShoppingGoodsApiInPage(@Param("record") ShoppingGoodsListDto shoppingGoodsListDto, @Param("pageVo") PaginationVO pageVo); | 
|   | 
|     int selectShopppingGoodsAipTotal(@Param("record") ShoppingGoodsListDto shoppingGoodsListDto); | 
|   | 
|     public List<ShoppingGoods> selectByIds(@Param("ids")List<Integer> ids); | 
|   | 
|     int updateInvalidProduct(); | 
| } |