2023年6月24日 在智慧教室上添加按钮

This commit is contained in:
bai 2023-06-24 13:03:42 +08:00
parent 32ebe6da0e
commit 82b580f7d8
1 changed files with 15 additions and 0 deletions

View File

@ -33,6 +33,8 @@ import org.jeecg.modules.kc.kcJieci.entity.KcJieci;
import org.jeecg.modules.kc.kcJieci.service.IKcJieciService;
import org.jeecg.modules.kc.ktgl.entity.KcKetangbiao;
import org.jeecg.modules.kc.ktgl.service.IKcKetangbiaoService;
import org.jeecg.modules.quartz.entity.QuartzJob;
import org.jeecg.modules.quartz.service.IQuartzJobService;
import org.jeecgframework.poi.excel.ExcelImportUtil;
import org.jeecgframework.poi.excel.def.NormalExcelConstants;
import org.jeecgframework.poi.excel.entity.ExportParams;
@ -70,6 +72,9 @@ public class KcZhihuijiaoshiController extends JeecgController<KcZhihuijiaoshi,
@Autowired
private IKcKetangbiaoService kcKetangbiaoService;
@Autowired
private IQuartzJobService quartzJobService;
@Data
public class JieciIntTime {
private Integer ksTime;
@ -313,4 +318,14 @@ public class KcZhihuijiaoshiController extends JeecgController<KcZhihuijiaoshi,
}
@GetMapping(value = "/getAutoShangXianQuartz")
public Result<?> getAutoShangXianQuartz(){
QueryWrapper<QuartzJob> jobQw = new QueryWrapper<>();
jobQw.eq("job_class_name","org.jeecg.modules.kc.grab.SynchronizationService.RefreshLiveServer");
jobQw.last("limit 1");
QuartzJob quartzJob = quartzJobService.getOne(jobQw);
return Result.OK(quartzJob);
}
}