whyclxw
2024-07-23 8884215b0a00aa40751ed020a6b0c46bef993ad0
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);
    }
}