| | |
| | | package com.yeshi.fanli.dao.ad;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.springframework.data.mongodb.core.query.Criteria;
|
| | | import org.springframework.data.mongodb.core.query.Query;
|
| | | import org.springframework.stereotype.Repository;
|
| | |
| | | @Repository
|
| | | public class DouYinClickEventDao extends MongodbBaseDao<DouYinClickEvent> {
|
| | |
|
| | | public DouYinClickEvent selectByAid(String aid) {
|
| | | public DouYinClickEvent selectByCallBack(String callback) {
|
| | | Query query = new Query();
|
| | | query.addCriteria(Criteria.where("aid").is(aid));
|
| | | query.addCriteria(Criteria.where("callback").is(callback));
|
| | | return findOne(query);
|
| | | }
|
| | |
|
| | | public DouYinClickEvent selectByUuid(String uuid) {
|
| | | Query query = new Query();
|
| | | query.addCriteria(Criteria.where("uuid").is(uuid));
|
| | | return findOne(query);
|
| | | }
|
| | |
|
| | | /**
|
| | | * 查询所有
|
| | | * |
| | | * @param start
|
| | | * @param count
|
| | | * @return
|
| | | */
|
| | | public List<DouYinClickEvent> listAll(int start, int count) {
|
| | | Query query = new Query();
|
| | | query.skip(start);
|
| | | query.limit(count);
|
| | | return findList(query);
|
| | | }
|
| | |
|
| | | }
|