Prechádzať zdrojové kódy

git-svn-id: https://192.168.57.71/svn/jsgkj@546 931142cf-59ea-a443-aa0e-51397b428577

xt_yuanxd 9 rokov pred
rodič
commit
2ae676ca79

+ 3 - 3
xtdsp/trunk/src/main/java/com/xt/dsp/common/InitServlet.java

@@ -8,7 +8,7 @@ import org.quartz.SchedulerException;
 import org.springframework.web.context.WebApplicationContext;
 import org.springframework.web.context.support.WebApplicationContextUtils;
 
-import com.xt.dsp.service.JobService;
+import com.xt.dsp.system.DspContext;
 
 /**
  * 系统初始化处理
@@ -37,8 +37,8 @@ public class InitServlet extends HttpServlet {
 	private void initSchedule() throws SchedulerException {
 		WebApplicationContext wac = WebApplicationContextUtils
 				.getRequiredWebApplicationContext(this.getServletContext());
-		JobService jobService = wac.getBean(JobService.class);
+		DspContext dspContext = wac.getBean(DspContext.class);
 		// 启动
-		jobService.start();
+		dspContext.init();
 	}
 }

+ 2 - 2
xtdsp/trunk/src/main/java/com/xt/dsp/controller/JobCtl.java

@@ -58,7 +58,7 @@ public class JobCtl extends BaseAction {
 			vo.setRows(1);
 		}
 		PageHelper.startPage(vo.getPage(), vo.getRows());
-		List<JobBean> list = jobService.queryAllJob();
+		List<JobBean> list = jobService.queryAllJobBean();
 		PageInfo<JobBean> pageResult = new PageInfo<>(list);
 		return pageResult;
 	}
@@ -168,7 +168,7 @@ public class JobCtl extends BaseAction {
 	@RequestMapping("getJobForDdl")
 	@ResponseBody
 	public List<JobBean> getJobForDdl(Model model) {
-		List<JobBean> list = jobService.queryAllJob();
+		List<JobBean> list = jobService.queryAllJobBean();
 		return list;
 	}
 }