We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2.0.1
查询为空时,需要加判断,不然拼接sql会报错
这里要加判断是否为空
Collection<String> anntIds = sysAnnouncementSendService.queryByUserId(userId); LambdaQueryWrapper<SysAnnouncement> querySaWrapper = new LambdaQueryWrapper<SysAnnouncement>(); querySaWrapper.eq(SysAnnouncement::getMsgType, CommonConstant.MSG_TYPE_ALL); // 全部人员 querySaWrapper.eq(SysAnnouncement::getDelFlag, CommonConstant.DEL_FLAG_0); // 未删除 querySaWrapper.eq(SysAnnouncement::getSendStatus, CommonConstant.HAS_SEND); //已发布 if (!anntIds.isEmpty()) { querySaWrapper.notIn(SysAnnouncement::getId, anntIds); } List<SysAnnouncement> announcements = sysAnnouncementService.list(querySaWrapper);
The text was updated successfully, but these errors were encountered:
这块已经改了,下个版本更新上去 3Q
Sorry, something went wrong.
No branches or pull requests
版本号:
2.0.1
问题描述:
查询为空时,需要加判断,不然拼接sql会报错
截图&代码:
这里要加判断是否为空
The text was updated successfully, but these errors were encountered: