临时修改:global-award 邮件发送

This commit is contained in:
2026-04-21 17:02:26 +08:00
parent ca6d2dcb87
commit eba6fb512f
4 changed files with 7 additions and 7 deletions

View File

@@ -1055,7 +1055,7 @@ public class SendEmailUtil {
// 根据邮件类型设置不同的主题和模板 // 根据邮件类型设置不同的主题和模板
String subject = ""; String subject = "";
Template template = new Template(); Template template = new Template();
subject = "From Idea to Wow. \uD83D\uDD25 | AiDA Demo & Global Awards \n灵感开挂创作起飞 \uD83D\uDD25 | AiDA Demo & 全球设计大奖"; subject = "AiDA Global Design Awards 2026 | The Journey Starts Now ! \nAiDA 全球设计大奖 2026 | 从现在开始你的创作之旅 !";
template.setTemplateID(EN_GLOBAL_AWARDS); template.setTemplateID(EN_GLOBAL_AWARDS);
/*if (language.equals("ENGLISH")) { /*if (language.equals("ENGLISH")) {
subject = "From Idea to Wow. \uD83D\uDD25 | AiDA Demo & Global Awards"; subject = "From Idea to Wow. \uD83D\uDD25 | AiDA Demo & Global Awards";

View File

@@ -380,12 +380,12 @@ public class AccountController {
return Response.success(accountService.subAccountImport(file)); return Response.success(accountService.subAccountImport(file));
} }
/*@GetMapping("/send618Email") @GetMapping("/send618Email")
@Operation(summary = "618邮件发送") @Operation(summary = "618邮件发送")
public Response<String> send618PromotionEmailTemp() { public Response<String> send618PromotionEmailTemp() {
accountService.send618PromotionEmailTemp(); accountService.send618PromotionEmailTemp();
return Response.success("success"); return Response.success("success");
}*/ }
/*@GetMapping("/refreshCreditsMonthly") /*@GetMapping("/refreshCreditsMonthly")
@Operation(summary = "刷新子账号积分") @Operation(summary = "刷新子账号积分")

View File

@@ -239,7 +239,7 @@ public interface AccountService extends IService<Account> {
Set<String> organizationNameSearch(String type, String name); Set<String> organizationNameSearch(String type, String name);
/*void send618PromotionEmailTemp();*/ void send618PromotionEmailTemp();
void checkEduAdminExpireStatus(); void checkEduAdminExpireStatus();

View File

@@ -3670,13 +3670,13 @@ public class AccountServiceImpl extends ServiceImpl<AccountMapper, Account> impl
return new HashSet<>(); return new HashSet<>();
} }
/* @Override @Override
public void send618PromotionEmailTemp() { public void send618PromotionEmailTemp() {
QueryWrapper<Account> queryWrapper = new QueryWrapper<>(); QueryWrapper<Account> queryWrapper = new QueryWrapper<>();
queryWrapper.lambda() queryWrapper.lambda()
.isNotNull(Account::getUserEmail) .isNotNull(Account::getUserEmail)
// .in(Account::getUserEmail, "xupei3360@163.com", "kimwong@code-create.com.hk", "kaicpang.pang@connect.polyu.hk", "chelseayu@code-create.com.hk") .in(Account::getUserEmail, "xupei3360@163.com", "kimwong@code-create.com.hk", "kaicpang.pang@connect.polyu.hk", "chelseayu@code-create.com.hk")
.apply("LENGTH(TRIM(user_email)) > 0"); .apply("LENGTH(TRIM(user_email)) > 0");
List<Account> accounts = baseMapper.selectList(queryWrapper); List<Account> accounts = baseMapper.selectList(queryWrapper);
@@ -3729,7 +3729,7 @@ public class AccountServiceImpl extends ServiceImpl<AccountMapper, Account> impl
} }
log.info("邮件发送完成,成功:{},失败:{}", successCount, failCount); log.info("邮件发送完成,成功:{},失败:{}", successCount, failCount);
}*/ }
@Override @Override
public void checkEduAdminExpireStatus() { public void checkEduAdminExpireStatus() {