admin
2024-01-23 81da61b828e29b7745e1382dfbbaeb685dc083ef
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/HongBaoManageMapper.java
@@ -1,5 +1,10 @@
package com.yeshi.fanli.dao.mybatis;
import java.util.List;
import com.yeshi.fanli.entity.SystemEnum;
import org.apache.ibatis.annotations.Param;
import com.yeshi.fanli.entity.bus.user.HongBaoManage;
public interface HongBaoManageMapper {
@@ -12,9 +17,26 @@
   HongBaoManage selectByPrimaryKey(Long id);
   HongBaoManage selectByKey(String key);
   HongBaoManage selectByKey(@Param("key") String key,@Param("system")  SystemEnum system);
   int updateByPrimaryKeySelective(HongBaoManage record);
   int updateByPrimaryKey(HongBaoManage record);
   /**
    *  按最大有效时间搜索红包对象
    * @param key
    * @param timeStamp
    * @param system
    * @return
    */
   HongBaoManage selectByKeyAndMaxValidTime(@Param("key") String key, @Param("timeStamp") long timeStamp,@Param("system")  SystemEnum system);
   /**
    * 获取所有的配置
    * @param system
    * @return
    */
   List<HongBaoManage> listAll(@Param("system")  SystemEnum system);
}