JobQuartzCtrl.java
1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package com.ui.ctrl;
import com.ui.http.HttpRestClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
/**
* 定时模块
*/
@Controller
@RequestMapping("/job")
public class JobQuartzCtrl {
@Autowired
HttpRestClient httpRestClient;
@RequestMapping("/toJob")
public ModelAndView toJob() {
return new ModelAndView("quartz/showjobs");
}
@RequestMapping("/toCreateJob")
public ModelAndView toCreateJob() {
return new ModelAndView("quartz/createjob");
}
@RequestMapping("/toJobDetail")
public ModelAndView toJobDetail(Model model,String jobname,String jobgroup,String module) {
model.addAttribute("jobname",jobname);
model.addAttribute("jobgroup",jobgroup);
model.addAttribute("module",module);
return new ModelAndView("quartz/showdetailjob");
}
}