| | |
| | |
|
| | |
|
| | | /**
|
| | | * 品牌id
|
| | | * @param brandId
|
| | | */
|
| | | public void removeByBrandId(Long brandId) {
|
| | | Query query = new Query();
|
| | | query.addCriteria(Criteria.where("brandId").is(brandId));
|
| | | mongoTemplate.remove(query, BrandShopCahe.class);
|
| | | }
|
| | | |
| | | |
| | | /**
|
| | | * 删除根据时间
|
| | | *
|
| | | * @param id
|
| | |
| | | );
|
| | | mongoTemplate.remove(query, BrandShopCahe.class);
|
| | | }
|
| | | |
| | | /**
|
| | | * 删除根据时间
|
| | | * |
| | | * @param id
|
| | | * @return
|
| | | */
|
| | | public void removeAgoByDate(Date createTime) {
|
| | | Query query = new Query();
|
| | | query.addCriteria(Criteria.where("createTime").lt(createTime));
|
| | | mongoTemplate.remove(query, BrandShopCahe.class);
|
| | | }
|
| | | }
|