admin
2021-01-27 e1a62ec62e7331d97af9302e90e1ce44af8235eb
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/HongBaoManageMapper.java
@@ -1,20 +1,42 @@
package com.yeshi.fanli.dao.mybatis;
import com.yeshi.fanli.entity.bus.user.HongBaoManage;
public interface HongBaoManageMapper {
   int deleteByPrimaryKey(Long id);
   int insert(HongBaoManage record);
   int insertSelective(HongBaoManage record);
   HongBaoManage selectByPrimaryKey(Long id);
   HongBaoManage selectByKey(String key);
   int updateByPrimaryKeySelective(HongBaoManage record);
   int updateByPrimaryKey(HongBaoManage record);
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 {
   int deleteByPrimaryKey(Long id);
   int insert(HongBaoManage record);
   int insertSelective(HongBaoManage record);
   HongBaoManage selectByPrimaryKey(Long id);
   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);
}