| | |
| | | package com.yeshi.fanli.dao.mybatis.push;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.push.PushCoupon;
|
| | |
|
| | | public interface PushCouponMapper extends BaseMapper<PushCoupon> {
|
| | |
|
| | | /**
|
| | | * 后端列表查询
|
| | | * @param start
|
| | | * @param count
|
| | | * @param key
|
| | | * @return
|
| | | */
|
| | | List<PushCoupon> listQuery(@Param("start") long start, @Param("count") int count,
|
| | | @Param("key") String key, @Param("state") Integer state);
|
| | | |
| | | long countQuery(@Param("key") String key, @Param("state") Integer state);
|
| | | |
| | | |
| | | /**
|
| | | * 有效活动
|
| | | * @return
|
| | | */
|
| | | List<PushCoupon> listQueryEffective();
|
| | | package com.yeshi.fanli.dao.mybatis.push; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.yeshi.fanli.entity.SystemEnum; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.push.PushCoupon; |
| | | |
| | | public interface PushCouponMapper extends BaseMapper<PushCoupon> { |
| | | |
| | | /** |
| | | * 后端列表查询 |
| | | * @param start |
| | | * @param count |
| | | * @param key |
| | | * @return |
| | | */ |
| | | List<PushCoupon> listQuery(@Param("start") long start, @Param("count") int count, |
| | | @Param("key") String key, @Param("state") Integer state, @Param("system")SystemEnum system); |
| | | |
| | | long countQuery(@Param("key") String key, @Param("state") Integer state, @Param("system")SystemEnum system); |
| | | |
| | | |
| | | /** |
| | | * 有效活动 |
| | | * @return |
| | | */ |
| | | List<PushCoupon> listQueryEffective(@Param("system")SystemEnum system); |
| | | } |