| | |
| | | lqw.like(!StringUtils.isEmpty(zfEvent.getPeople()), ZfEvent::getPeople, zfEvent.getPeople()); |
| | | |
| | | } |
| | | if (zfEvent.getHasAttachment() != null && zfEvent.getHasAttachment().equals("是")) { |
| | | if (zfEvent.getHasAttachment() != null) { |
| | | if (zfEvent.getHasAttachment().equals("是")) { |
| | | lqw.apply("url IS NOT NULL AND url != ''"); |
| | | } |
| | | else { |
| | | lqw.apply("(url IS NULL OR url = '')"); |
| | | } |
| | | |
| | | } |
| | | // lqw.in(StringUtils.isNotEmpty(ZfEvent.getCompanionList()),ZfEvent::getCompanion,ZfEvent.getCompanionList()); |
| | | // if (ZfEvent.getYear() != 0) { |
| | |
| | | if (!companionList.isEmpty()) { |
| | | // 确保所有参与人都在companion字段中 |
| | | for (String companion : companionList) { |
| | | System.out.println("[[[[["+companion); |
| | | lqw.apply( |
| | | "FIND_IN_SET({0}, REPLACE(REPLACE(people, ' ', ''), ',', ',')) > 0", |
| | | "FIND_IN_SET({0}, REPLACE(REPLACE(REPLACE(people, ' ', ''), ',', ','),';',',')) > 0", |
| | | companion); |
| | | } |
| | | } |
| | |
| | | zfEvent.setHappenEndTime(happenEndTime); |
| | | |
| | | System.out.println("--------------"+companion+"-----------------"); |
| | | String[] split = companion.trim().replace(" ", "").replace(",", ",").split(","); |
| | | String[] split = companion.trim().replace(" ", "").replace(",", ",").replace(";",",").split(","); |
| | | |
| | | System.out.println(Arrays.toString(split)); |
| | | List<String> list = Arrays.asList(split); |
| | | |
| | | zfEvent.setCompanionList(list); |