admin
2025-02-25 30d8e227e8d823b6c38c3b9c90ac2df03b63befe
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);
}