日志与手动激活定时任务
This commit is contained in:
@@ -14,6 +14,7 @@ import com.adc.da.slrs.sarStandWarning.entity.WarningDate;
|
||||
import com.adc.da.slrs.sarStandWarning.service.IWarningDateService;
|
||||
import com.adc.da.slrs.sarStandardsInfo.dao.SarStandardsInfoDao;
|
||||
import com.adc.da.slrs.sarStandardsInfo.entity.SarStandardsInfo;
|
||||
import com.adc.da.slrs.sarUpdLog.service.ISarUpdLogService;
|
||||
import com.adc.da.util.UUIDUtils;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
@@ -175,7 +176,8 @@ public class ScheduledJob {
|
||||
|
||||
|
||||
|
||||
|
||||
@Autowired
|
||||
private ISarUpdLogService sarUpdLogEOService;
|
||||
|
||||
|
||||
/**
|
||||
@@ -299,6 +301,7 @@ public class ScheduledJob {
|
||||
|
||||
|
||||
try {
|
||||
// sarUpdLogEOService.createUpdateLog(sarStandardsInfoEO.getStandType() + "_STAND", sarStandardsInfoEO.getId(), oldMap, newMap, content);
|
||||
sarStandardsInfoDao.updateById(sarStandardsInfo);
|
||||
}catch (Exception e){
|
||||
System.out.println("代替标准状态更新:id为"+key+"文本状态更新失败");
|
||||
|
||||
@@ -4,6 +4,7 @@ package com.adc.da.scheduled.controller;
|
||||
import com.adc.da.scheduled.ScheduledJob;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@@ -16,8 +17,15 @@ public class Controller {
|
||||
@Autowired
|
||||
ScheduledJob scheduledJob;
|
||||
|
||||
@PostMapping
|
||||
public void run(){
|
||||
@PutMapping("/warning")
|
||||
public void warning(){
|
||||
scheduledJob.warningSchedulingTasks();
|
||||
}
|
||||
|
||||
@PutMapping("textStatus")
|
||||
public void textStatus(){
|
||||
scheduledJob.TextStatusSchedulingTasks();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user