whyclxw
2024-07-25 9a48f0e7c87a371b50e5b92a2533dc14ea262374
src/main/java/com/whyc/controller/SOPLockLogController.java
@@ -1,10 +1,12 @@
package com.whyc.controller;
import com.whyc.dto.Response;
import com.whyc.pojo.SOP;
import com.whyc.service.SOPLockLogService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
@RequestMapping("sopLockLog")
@RestController
@@ -13,4 +15,10 @@
    @Autowired
    private SOPLockLogService service;
    @ApiOperation("查询指定sop的日志记录")
    @GetMapping("getSopLockLog")
    public Response getSopLockLog(@RequestParam int sopId) {
        return service.getSopLockLog(sopId);
    }
}