rk
昨天 19321e1348baefa2a9f5211c42f8b797c0fcccd1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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("自动释放已禁用登录用户");
    }
}