| | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | import com.yeshi.fanli.entity.SystemEnum; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.entity.push.PushGoods; |
| | |
| | | * @return |
| | | */ |
| | | List<PushGoods> listQuery(@Param("start") long start, @Param("count") int count, |
| | | @Param("key") String key, @Param("state") Integer state); |
| | | @Param("key") String key, @Param("state") Integer state, @Param("system") SystemEnum system); |
| | | |
| | | long countQuery(@Param("key") String key, @Param("state") Integer state); |
| | | long countQuery(@Param("key") String key, @Param("state") Integer state, @Param("system") SystemEnum system); |
| | | |
| | | |
| | | /** |
| | |
| | | * @return |
| | | */ |
| | | List<PushGoods> listHistoryByPushTime(@Param("start") long start, @Param("count") int count, |
| | | @Param("pushTime") Date pushTime); |
| | | |
| | | @Param("uid") Long uid, @Param("pushTime") Date pushTime, @Param("system") SystemEnum system); |
| | | |
| | | /** |
| | | * 统计历史推送商品信息 |
| | | * @param start |
| | | * @param count |
| | | * @param uid |
| | | * @param pushTime |
| | | * @param system |
| | | * @return |
| | | */ |
| | | long countHistoryByPushTime(@Param("pushTime") Date pushTime); |
| | | long countHistoryByPushTime(@Param("uid") Long uid, @Param("pushTime") Date pushTime, @Param("system") SystemEnum system); |
| | | |
| | | /** |
| | | * 查询已推送记录 |
| | |
| | | List<PushGoods> listByPushState(List<Long> list); |
| | | |
| | | |
| | | /** |
| | | * 需要执行推送的任务 |
| | | * @return |
| | | */ |
| | | List<PushGoods> listTask( @Param("system") SystemEnum system); |
| | | |
| | | } |