| | |
| | | package com.se.system.utils; |
| | | |
| | | import com.se.common.core.utils.StringUtils; |
| | | import com.se.system.service.impl.SysSoftServiceImpl; |
| | | import com.se.system.service.impl.SysStatusCtrlServiceImpl; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | /** |
| | | * 定时任务调度 |
| | |
| | | */ |
| | | @Component("ryTask") |
| | | public class RyTask { |
| | | @Resource |
| | | SysSoftServiceImpl sysSoftService; |
| | | |
| | | @Resource |
| | | SysStatusCtrlServiceImpl sysStatusCtrlService; |
| | | |
| | | private static final Logger log = LoggerFactory.getLogger(RyTask.class); |
| | | |
| | | public void ryMultipleParams(String s, Boolean b, Long l, Double d, Integer i) { |
| | | System.out.println(StringUtils.format("执行多参方法: 字符串类型{},布尔类型{},长整型{},浮点型{},整形{}", s, b, l, d, i)); |
| | | } |
| | |
| | | System.out.println("执行无参方法"); |
| | | } |
| | | |
| | | public void runSoftTest() { |
| | | public void runSoftTest() throws Exception { |
| | | System.out.println("ryTask.runSoftTest()"); |
| | | sysSoftService.runSoftTest(); |
| | | } |
| | | |
| | | public void runSubSysTest() { |
| | | public void runSubSysTest() throws Exception { |
| | | System.out.println("ryTask.runSubSysTest()"); |
| | | sysStatusCtrlService.runSubSysTest(); |
| | | } |
| | | } |