zqy
3 天以前 3eb37463a952fb69d586769ca660886b956cb016
zhang-content/src/main/java/com/ruoyi/service/impl/PeopleSearchServiceImpl.java
@@ -5,6 +5,7 @@
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.MapUtils;
import com.ruoyi.common.utils.StringUtils;
import com.ruoyi.domain.ZfEvent;
import com.ruoyi.domain.dto.zfEventdto;
import com.ruoyi.domain.PeopleSea;
@@ -62,14 +63,21 @@
                for (String pe : pes) {
                    lqw.like(ZfEvent::getPeople, pe);
                }
                peopleS.setIsHIde("否");
                lqw.eq(!StringUtils.isEmpty(peopleS.getIsHIde()), ZfEvent::getIsHide, "否");
                lqw.between(peopleS.getStartTime() != null && peopleS.getEndTime() != null, ZfEvent::getHappenTime, peopleS.getStartTime(), peopleS.getEndTime());
                if(peopleS.getHasAttachment().equals("是"))
                if(peopleS.getHasAttachment()!=null&&peopleS.getHasAttachment().equals("是"))
                {
                    lqw.isNotNull(ZfEvent::getUrl);
                    System.out.println("not null!");
                    lqw.isNotNull(ZfEvent::getUrl).and(r->r.apply("url!=''"));
                }else
                {
                    lqw.eq(!StringUtils.isEmpty(peopleS.getHasAttachment()), ZfEvent::getUrl, "");
                }
                Page<ZfEvent> zfEventPage = new Page<>(pageNum, pageSize);
              //  if(peopleS.getIsHIde()!=null)
               Page<ZfEvent> zfEventPage = new Page<>(pageNum, pageSize);
                Page<ZfEvent> pageResult = zfEventService.page(zfEventPage, lqw);
                List<ZfEvent> beanRecords = pageResult.getRecords();//得到查询出来的数据