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);
    }
}