|
|
@@ -14,6 +14,7 @@ import com.zhiqiyun.open.mvc.params.statistics.QueryPopularFeelingsParam;
|
|
|
import com.zhiqiyun.open.mvc.params.statistics.SavePopularFeelingsParam;
|
|
|
import com.zhiqiyun.open.utils.DateUtil;
|
|
|
import com.zhiqiyun.open.utils.ServletContext;
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
@@ -47,6 +48,18 @@ public class PopularFeelingsController {
|
|
|
|
|
|
QueryWrapper<PopularFeelings> wrapper = new QueryWrapper<>();
|
|
|
|
|
|
+ if (StringUtils.isNotBlank(param.getTitle())) {
|
|
|
+ wrapper.like("title", param.getTitle());
|
|
|
+ }
|
|
|
+
|
|
|
+ if (StringUtils.isNotBlank(param.getKeywords())) {
|
|
|
+ wrapper.like("keywords", param.getKeywords());
|
|
|
+ }
|
|
|
+
|
|
|
+ if (StringUtils.isNotBlank(param.getSiteUrl())) {
|
|
|
+ wrapper.like("site_url", param.getSiteUrl());
|
|
|
+ }
|
|
|
+
|
|
|
Page<PopularFeelings> page = param.getPage();
|
|
|
page.addOrder(OrderItem.desc("id"));
|
|
|
|