package com.doumee.api;
|
|
import com.doumee.core.annotation.pr.PreventRepeat;
|
import com.doumee.service.business.PlatformJobService;
|
import com.doumee.service.business.third.model.ApiResponse;
|
import com.doumee.service.system.SystemUserService;
|
import io.swagger.annotations.Api;
|
import io.swagger.annotations.ApiOperation;
|
import lombok.extern.slf4j.Slf4j;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RestController;
|
|
/**
|
* @author 江蹄蹄
|
* @date 2023/11/30 15:33
|
*/
|
@Slf4j
|
@Api(tags = "月台作业定时")
|
@RestController
|
@RequestMapping("/timer/systemUserJob")
|
public class SystemUserJobController extends BaseController {
|
|
@Autowired
|
private SystemUserService systemUserService;
|
|
|
@ApiOperation("自动释放已禁用登录用户")
|
@PostMapping("/jobForOpenProhibitStatus")
|
public ApiResponse jobForOpenProhibitStatus() {
|
log.error("========自动释放已禁用登录用户============开始"+System.currentTimeMillis()+"");
|
systemUserService.jobForOpenProhibitStatus();
|
log.error("========自动释放已禁用登录用户============开始"+System.currentTimeMillis()+"");
|
return ApiResponse.success("自动释放已禁用登录用户");
|
}
|
}
|