From 2f7990cc874c1a8675e304de356d82e0180a196c Mon Sep 17 00:00:00 2001 From: weizhiqiang <598748873@qq.com> Date: Wed, 4 Dec 2024 20:11:08 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=A7=A3=E5=86=B3=E5=95=86=E5=9F=8E?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E4=B8=8B=E5=8D=95=E6=97=B6=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E5=88=9B=E5=BB=BA=E5=AE=9A=E6=97=B6=E4=BB=BB=E5=8A=A1=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/skyeye/eve/service/impl/SysQuartzServiceImpl.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/skyeye-promote/skyeye-quartz/src/main/java/com/skyeye/eve/service/impl/SysQuartzServiceImpl.java b/skyeye-promote/skyeye-quartz/src/main/java/com/skyeye/eve/service/impl/SysQuartzServiceImpl.java index 5c0fa89b..0718b6ab 100644 --- a/skyeye-promote/skyeye-quartz/src/main/java/com/skyeye/eve/service/impl/SysQuartzServiceImpl.java +++ b/skyeye-promote/skyeye-quartz/src/main/java/com/skyeye/eve/service/impl/SysQuartzServiceImpl.java @@ -4,6 +4,7 @@ package com.skyeye.eve.service.impl; +import cn.hutool.core.collection.CollectionUtil; import com.alibaba.fastjson.JSON; import com.skyeye.common.client.ExecuteFeignClient; import com.skyeye.common.constans.QuartzConstants; @@ -62,7 +63,11 @@ public class SysQuartzServiceImpl implements SysQuartzService { private XxlJobInfo getXxlJobInfo(String objectId, String groupId, String delayedTime, String jobDesc, String taskType, String userId) { XxlJobInfo xxlJobInfo = new XxlJobInfo(); Map user = iAuthUserService.queryDataMationById(userId); - xxlJobInfo.setAuthor(user.get("name").toString()); + String author = "商城用户"; + if (CollectionUtil.isNotEmpty(user)) { + author = user.get("name").toString(); + } + xxlJobInfo.setAuthor(author); xxlJobInfo.setJobGroup(Integer.parseInt(groupId)); xxlJobInfo.setJobDesc(QuartzConstants.QuartzMateMationJobType.getRemarkPrefixByTaskType(taskType, jobDesc)); xxlJobInfo.setScheduleType("CRON");