JobQuartzCtrl.java 1.04 KB
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");
    }




}