公开征求意见--查询修复
This commit is contained in:
+12
-2
@@ -53,11 +53,21 @@ public class SarPublicIdeaServiceImpl extends ServiceImpl<SarPublicIdeaDao, SarP
|
||||
.ge(start != null, "start_time", start)
|
||||
.le(end != null, "end_time", end)
|
||||
.orderByDesc("start_time");
|
||||
}else if (start!=null){
|
||||
list.like(StringUtils.isNotEmpty(category), "category", category)
|
||||
.like(StringUtils.isNotEmpty(cname), "cid", cname)
|
||||
.le(start != null, "start_time", start)
|
||||
.ge(start != null, "end_time", start)
|
||||
.orderByDesc("start_time");
|
||||
}else if (end!=null){
|
||||
list.like(StringUtils.isNotEmpty(category), "category", category)
|
||||
.like(StringUtils.isNotEmpty(cname), "cid", cname)
|
||||
.le(end != null, "start_time", end)
|
||||
.ge(end != null, "end_time", end)
|
||||
.orderByDesc("start_time");
|
||||
}else {
|
||||
list.like(StringUtils.isNotEmpty(category), "category", category)
|
||||
.like(StringUtils.isNotEmpty(cname), "cid", cname)
|
||||
.ge(start != null, "start_time", start)
|
||||
.le(end != null, "end_time", end)
|
||||
.orderByDesc("start_time");
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user