admin
2019-12-06 cd637932a970e7935b17d41568fe89c92775bccc
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/redpack/RedPackBalanceMapper.java
@@ -1,11 +1,13 @@
package com.yeshi.fanli.dao.mybatis.redpack;
import java.math.BigDecimal;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.yeshi.fanli.dao.BaseMapper;
import com.yeshi.fanli.entity.redpack.RedPackBalance;
import com.yeshi.fanli.vo.redpack.RedPackBalanceVO;
public interface RedPackBalanceMapper extends BaseMapper<RedPackBalance> {
   
@@ -31,4 +33,33 @@
    * @return
    */
   RedPackBalance selectForUpdate(long id);
   /**
    * 商品列表查询
    *
    * @param key
    * @param state
    * @param start
    * @param count
    * @return
    */
   List<RedPackBalanceVO> query(@Param("start") long start,@Param("count") int count, @Param("key") String key,
         @Param("state") Integer state, @Param("order") Integer order);
   /**
    * 商品计数
    *
    * @param key
    * @param state
    * @return
    */
   long count(@Param("key") String key, @Param("state") Integer state);
   /**
    * 重置红包
    * @param id
    * @return
    */
   void resetRedPack(long id);
}