Browse Source

fix: switch mail ssl failed (#68)

master
vran 3 years ago
committed by GitHub
parent
commit
d772a4b882
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      core/src/main/java/com/databasir/core/domain/system/service/SystemService.java

1
core/src/main/java/com/databasir/core/domain/system/service/SystemService.java

@ -45,6 +45,7 @@ public class SystemService {
sysMailPojo.setSmtpHost(request.getSmtpHost()); sysMailPojo.setSmtpHost(request.getSmtpHost());
sysMailPojo.setSmtpPort(request.getSmtpPort()); sysMailPojo.setSmtpPort(request.getSmtpPort());
sysMailPojo.setUsername(request.getUsername()); sysMailPojo.setUsername(request.getUsername());
sysMailPojo.setUseSsl(request.getUseSSL());
Optional<Integer> idOpt = sysMailDao.selectOptionTopOne().map(SysMailPojo::getId); Optional<Integer> idOpt = sysMailDao.selectOptionTopOne().map(SysMailPojo::getId);
idOpt.ifPresent(sysMailPojo::setId); idOpt.ifPresent(sysMailPojo::setId);

Loading…
Cancel
Save