| | |
| | | import org.springframework.data.mongodb.core.query.Query;
|
| | | import org.springframework.stereotype.Repository;
|
| | |
|
| | | import com.yeshi.fanli.dao.MongodbBaseDao;
|
| | | import com.yeshi.common.MongodbBaseDao;
|
| | | import com.yeshi.fanli.entity.bus.user.ThreeSaleDetail;
|
| | |
|
| | | @Repository
|
| | |
| | | return count(query);
|
| | | }
|
| | |
|
| | | |
| | | public long countByBossUidAndMaxLevel(Long bossUid, int minLevel) {
|
| | | Query query = new Query();
|
| | | query.addCriteria(new Criteria().andOperator(Criteria.where("bossUid").is(bossUid),
|
| | | Criteria.where("level").lte(minLevel)));
|
| | | return count(query);
|
| | | }
|
| | | |
| | | public List<ThreeSaleDetail> listByWorkerUid(Long uid) {
|
| | | Query query = new Query();
|
| | | query.addCriteria(Criteria.where("workerUid").is(uid));
|
| | | return findList(query);
|
| | | }
|
| | | |
| | | }
|