whyclxw
2025-06-16 f3ca021ef7f962ea8e30a7bd71276decb8b8545c
src/main/java/com/whyc/controller/TechnicalSpecificationController.java
@@ -49,16 +49,21 @@
    @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("查询技术规格书")
    @PostMapping("getInfo")
    public Response getInfo(@RequestParam(required = false) String applyMaterialCode ,@RequestParam(required = false) String applyModel,@RequestParam(required = false) String applyCustomCode
                           ,@RequestParam(required = false) String owner,@RequestParam(required = false) int lockFlaq
                           ,@RequestParam int pageNum,@RequestParam Integer pageSize) {
        return service.getInfo(applyMaterialCode,applyModel,applyCustomCode,owner,lockFlaq,pageNum,pageSize);
                           ,@RequestParam(required = false) String owner,@RequestParam(required = false) Integer lockFlag
                           ,@RequestParam int pageNum,@RequestParam int pageSize) {
        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);
    }
}