whyclxw
2024-07-23 12d9277646a5eeafc20f18c6bb4ea8a855d4e2c1
src/main/java/com/whyc/controller/TechnicalSpecificationController.java
@@ -49,8 +49,8 @@
    @ApiOperation("更新锁定状态")
    @PostMapping("updateLock")
    public Response updateLock(@RequestParam int id,@RequestParam int lockFlag) throws IOException {
        return service.updateLock(id,lockFlag);
    public Response updateLock(@RequestParam int id,@RequestParam int lockFlag,@RequestParam(required = false) String reason) throws IOException {
        return service.updateLock(id,lockFlag,reason);
    }
    @ApiOperation("查询技术规格书")
@@ -61,4 +61,9 @@
        return service.getInfo(applyMaterialCode,applyModel,applyCustomCode,owner,lockFlag,pageNum,pageSize);
    }
    @ApiOperation("查询指定技术规格书的所有版本")
    @PostMapping("getVersionByInfo")
    public Response getVersionByInfo(@RequestParam(required = false) String applyMaterialCode ,@RequestParam(required = false) String applyModel,@RequestParam(required = false) String applyCustomCode) {
        return service.getVersionByInfo(applyMaterialCode,applyModel,applyCustomCode);
    }
}