File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
eladmin-system/src/main/java/me/zhengjie/modules/quartz/utils Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 42
42
* @date 2019-01-07
43
43
*/
44
44
@ Async
45
- @ SuppressWarnings ({"unchecked" ,"all" })
46
45
public class ExecutionJob extends QuartzJobBean {
47
46
48
47
/** 该处仅供参考 */
@@ -108,8 +107,10 @@ public void executeInternal(JobExecutionContext context) {
108
107
if (quartzJob .getEmail () != null ){
109
108
EmailService emailService = SpringContextHolder .getBean (EmailService .class );
110
109
// 邮箱报警
111
- EmailVo emailVo = taskAlarm (quartzJob , ThrowableUtil .getStackTrace (e ));
112
- emailService .send (emailVo , emailService .find ());
110
+ if (StringUtils .isNoneBlank (quartzJob .getEmail ())){
111
+ EmailVo emailVo = taskAlarm (quartzJob , ThrowableUtil .getStackTrace (e ));
112
+ emailService .send (emailVo , emailService .find ());
113
+ }
113
114
}
114
115
} finally {
115
116
quartzLogRepository .save (log );
Original file line number Diff line number Diff line change 33
33
<log4jdbc .version>1.16</log4jdbc .version>
34
34
<swagger .version>2.9.2</swagger .version>
35
35
<fastjson .version>1.2.70</fastjson .version>
36
- <druid .version>1.1.22 </druid .version>
36
+ <druid .version>1.1.24 </druid .version>
37
37
<commons-pool2 .version>2.5.0</commons-pool2 .version>
38
38
<mapstruct .version>1.3.1.Final</mapstruct .version>
39
39
</properties >
You can’t perform that action at this time.
0 commit comments