记得上下班打卡 | git大法好,push需谨慎

Commit 4a00c844 authored by jiangxiulong's avatar jiangxiulong

adam演出列表

parent 122db777
......@@ -9,4 +9,16 @@ import org.springframework.stereotype.Component;
contextId = "", path = "",
fallback = FallbackFactory.Default.class)
public interface FeignKylinClient {
// 演出列表
@GetMapping(value = "performanceList")
ResponseDto<PerformanceVo> performanceList(@RequestParam List<String> performancesIds) {
//条件
Query query = new Query();
query.addCriteria(Criteria.where("performancesId").in(performancesIds));
List<PerformanceVo> list = mongoTemplate.find(query, PerformanceVo.class, PerformanceVo.class.getSimpleName());
return list;
}
}
......@@ -279,33 +279,4 @@ public class KylinPerformancesServiceImpl extends ServiceImpl<KylinPerformancesM
return ticketTimesList;
}
public HashMap<String, Object> userList(List performancesIds, int page, int size) {
HashMap<String, Object> info = new HashMap<>();
// 排序 分页
Sort sortName = Sort.by(Sort.Direction.ASC, "timeStart");
Pageable pageable = PageRequest.of(page - 1, size, sortName);
//条件
Document queryObject = new Document();
Query query = new Query();
query.addCriteria(Criteria.where("performancesId").in(performancesIds));
// 查询总数
long count = mongoTemplate.count(query, PerformanceVo.class, PerformanceVo.class.getSimpleName());
query.getQueryObject();
query.with(pageable);
List<PerformanceVo> list = mongoTemplate.find(query, PerformanceVo.class, PerformanceVo.class.getSimpleName());
// 组合数据
info.put("total", count);
info.put("list", list);
return info;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment