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

Commit 99a13500 authored by jiangxiulong's avatar jiangxiulong

演出搜索也不显示结束的

parent f9090a82
......@@ -299,6 +299,9 @@ public class KylinPerformancesServiceImpl extends ServiceImpl<KylinPerformancesM
Document queryObject = new Document();
queryObject.put("title", Pattern.compile(title, Pattern.CASE_INSENSITIVE));
Query query = new BasicQuery(queryObject);
LocalDateTime nowTime = LocalDateTime.now();
String nowTimeStr = DateUtil.Formatter.yyyyMMddHHmmss.format(nowTime);
query.addCriteria(Criteria.where("timeEnd").gte(nowTimeStr));
long count = mongoTemplate.count(query, KylinPerformanceVo.class, KylinPerformanceVo.class.getSimpleName());
......
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