zqy
18 小时以前 31b53ed4e328090798dae35cecc9f5a60cdccd67
zhang-content/src/main/java/com/ruoyi/service/impl/ZfEventServiceImpl.java
@@ -85,8 +85,14 @@
                    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) {
@@ -107,8 +113,9 @@
            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);
                }
            }
@@ -677,7 +684,9 @@
        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);