fix: 修复一些问题

This commit is contained in:
曹鹏飞 2025-03-10 21:42:18 +08:00
parent dbf72adab6
commit fac782d6b5
2 changed files with 18 additions and 15 deletions

View File

@ -208,6 +208,7 @@ public class AppUserController extends ControllerBase {
List<Integer> companyIds = appUserService.lambdaQuery()
.select(AppUser::getCompanyId)
.eq(AppUser::getIsPrimary, true)
.eq(AppUser::getIsDel, false)
.ne(AppUser::getId, request.getId())
.list()
.stream()

View File

@ -65,6 +65,7 @@ public class TicketReplyEvent extends ApplicationEvent implements ApplicationCon
private void sendUserMessage(){
//我的待办
if(StrUtil.isNotBlank(ticket.getHandle())) {
List<Integer> userIds = Arrays.stream(ticket.getHandle().split(",")).filter(StrUtil::isNotBlank).map(Integer::parseInt).collect(Collectors.toList());
List<AdminUser> adminUsers = adminUserService.listByIds(userIds);
if (CollectionUtil.isNotEmpty(adminUsers)) {
@ -82,6 +83,7 @@ public class TicketReplyEvent extends ApplicationEvent implements ApplicationCon
);
}
}
}
private void sendEmail() {
try {