| | |
| | | .isNull(ZfDoctor::getIsHide) |
| | | ); |
| | | } |
| | | if (zfDoctor.getHasAttachment() != null && zfDoctor.getHasAttachment().equals("是")) { |
| | | lqw.apply("url IS NOT NULL AND url != ''"); |
| | | }// lqw.like(StringUtils.isNotEmpty(zfDoctor.getCompanion()),ZfDoctor::getCompanion,zfDoctor.getCompanion()); |
| | | |
| | | if (zfDoctor.getHasAttachment() != null) { |
| | | if (zfDoctor.getHasAttachment().equals("是")) { |
| | | lqw.apply("url IS NOT NULL AND url != ''"); |
| | | } |
| | | else { |
| | | lqw.apply("(url IS NULL OR url = '')"); |
| | | } } |
| | | if (CollectionUtils.isNotEmpty(zfDoctor.getCompanionList())) { |
| | | List<String> companionList = zfDoctor.getCompanionList(); |
| | | |
| | |
| | | if (!companionList.isEmpty()) { |
| | | // 确保所有参与人都在companion字段中 |
| | | for (String companion : companionList) { |
| | | lqw.apply("FIND_IN_SET({0}, REPLACE(REPLACE(companion, ' ', ''), ',', ',')) > 0", |
| | | lqw.apply("FIND_IN_SET({0}, REPLACE(REPLACE(REPLACE(people, ' ', ''), ',', ','),';',',')) > 0", |
| | | companion); |
| | | } |
| | | } |