| | |
| | | package com.ots.project.exam.service.impl; |
| | | |
| | | import cn.hutool.core.collection.CollUtil; |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.alibaba.fastjson.JSONObject; |
| | |
| | | import org.springframework.context.i18n.LocaleContextHolder; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import java.util.*; |
| | | import java.util.stream.Collectors; |
| | | |
| | | import static com.ots.project.tool.report.reportCalculation.request.CalculationTypeEnum.*; |
| | | import static com.ots.project.tool.report.reportCalculation.request.ReportTypeEnum.firstPath; |
| | | import static com.ots.project.tool.report.reportCalculation.request.ReportTypeEnum.secondPath; |
| | |
| | | log.error("报告标题:{}",title); |
| | | |
| | | String content = tExamReportResult.getMailContent(); |
| | | //测试者接收报告模板优先使用测试包保存的报告模板 |
| | | String memberContent = tExamReportResult.getMemberTemplate(); |
| | | |
| | | StringBuilder remark = new StringBuilder(); |
| | | remark.append("失败邮箱:"); |
| | | |
| | | if (justMember) { |
| | | // 用户发邮件 |
| | | sendMemberEmail(tExamReport, fileNameResult, tExamReportResult, title, content, remark); |
| | | sendMemberEmail(tExamReport, fileNameResult, tExamReportResult, title, memberContent, remark); |
| | | } |
| | | if (justHr) { |
| | | // 发送给Hr,但取testEmail |