rk
2026-06-09 c467370d8741bc05ca7c22d4253c58ac0a979ef5
server/visits/admin_timer/src/main/java/com/doumee/api/InterfaceLogTimerController.java
@@ -7,8 +7,9 @@
import com.doumee.service.business.PlatformInterfaceLogService;
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.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@@ -17,6 +18,7 @@
 * @date 2023/11/30 15:33
 */
@Api(tags = "日志定时器接口")
@Slf4j
@RestController
@RequestMapping("/timer/log")
public class InterfaceLogTimerController extends BaseController {
@@ -28,8 +30,9 @@
    @Autowired
    private PlatformInterfaceLogService platformInterfaceLogService;
    @ApiOperation("开启定时接口日志清理")
    @GetMapping("/clearThreeMonthLog")
    @PostMapping("/clearThreeMonthLog")
    public ApiResponse clearThreeMonthLog() {
        log.info("定时任务执行开始:clearThreeMonthLog-清理三个月日志");
        interfaceLogService.clearThreeMonthLog();
        wmsInterfaceLogService.clearThreeMonthLog();
        platformInterfaceLogService.clearThreeMonthLog();