| | |
| | | import com.doumee.service.system.SystemDictDataService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.shiro.SecurityUtils; |
| | | import org.apache.shiro.mgt.DefaultSecurityManager; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | * @date 2023/11/30 15:33 |
| | | */ |
| | | @Api(tags = "断路器远程控制定时器") |
| | | @Slf4j |
| | | @RestController |
| | | @RequestMapping("/timer/duanluqi") |
| | | public class DuanluqiTimerController extends BaseController { |
| | |
| | | @ApiOperation("开启定时远程控制断路器分闸") |
| | | @PostMapping("/autoCloseCmd") |
| | | public ApiResponse autoCloseCmd() { |
| | | log.info("定时任务执行开始:autoCloseCmd-远程控制断路器分闸"); |
| | | deviceService.autoCloseCmdTimer(); |
| | | return ApiResponse.success("开启定时远程控制断路器分闸成功"); |
| | | } |