|
|
|
@ -1,6 +1,5 @@
|
|
|
|
|
package com.hnac.hzims.operational.maintenance.scheduled; |
|
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; |
|
|
|
|
import com.google.common.collect.Lists; |
|
|
|
|
import com.hnac.hzims.common.constant.CommonConstant; |
|
|
|
|
import com.hnac.hzims.message.MessageConstants; |
|
|
|
@ -17,7 +16,6 @@ import lombok.AllArgsConstructor;
|
|
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
|
import org.springblade.core.tool.api.R; |
|
|
|
|
import org.springblade.core.tool.utils.*; |
|
|
|
|
import org.springblade.system.feign.ISysClient; |
|
|
|
|
import org.springblade.system.user.entity.User; |
|
|
|
|
import org.springblade.system.user.feign.IUserClient; |
|
|
|
|
import org.springframework.data.redis.core.RedisTemplate; |
|
|
|
@ -31,6 +29,7 @@ import java.util.Set;
|
|
|
|
|
import java.util.stream.Collectors; |
|
|
|
|
|
|
|
|
|
import static com.hnac.hzims.operational.maintenance.constants.ScheduledConstant.REMIND_MAINTENANCE_BECOME_TASK; |
|
|
|
|
|
|
|
|
|
@Component |
|
|
|
|
@Slf4j |
|
|
|
|
@AllArgsConstructor |
|
|
|
@ -56,7 +55,7 @@ public class MaintenanceTaskRemindHandler {
|
|
|
|
|
else if(Lists.newArrayList("待领用","待执行").contains(taskEntity.getFlowTaskName())) { |
|
|
|
|
XxlJobLogger.log("开始执行id为{}的任务", Optional.ofNullable(operMaintenanceTaskEntity.getId()).orElse(0L)); |
|
|
|
|
//日常维护任务到期消息提醒,提醒对象:执行人、项目经理角色 取出
|
|
|
|
|
//this.sendMessage(taskEntity);
|
|
|
|
|
this.sendMessage(taskEntity); |
|
|
|
|
redisTemplate.opsForZSet().remove(RedisKeyConstants.MAINTENANCE_TASK_DELAY_LIST,operMaintenanceTaskEntity); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|