guoyujie
2025-06-18 873494885861271331bf7e51b679f537961f8def
north-glass-erp/src/main/java/com/example/erp/controller/sd/ProductController.java
@@ -39,14 +39,14 @@
    @ApiOperation("产品保存接口")
    @SaCheckPermission("createProduct.add")
    @PostMapping("/saveProduct")
    public Result saveProduct(@RequestBody Map<String,Object> product){
        return Result.seccess(productService.saveProduct(product));
    @PostMapping("/saveProduct/{operator}")
    public Result saveProduct(@PathVariable String operator,@RequestBody Map<String,Object> product){
        return Result.seccess(productService.saveProduct(product,operator));
    }
    @ApiOperation("其他系统产品保存接口")
    @PostMapping("/otherSysSaveProduct")
    public Result otherSysSaveProduct(@RequestBody Map<String,Object> product){
        return Result.seccess(productService.saveProduct(product));
        return Result.seccess(productService.saveProduct(product,null));
    }
    @ApiOperation("产品查重接口")
@@ -58,16 +58,16 @@
    @ApiOperation("产品删除接口")
    @SaCheckPermission("selectProduct.delete")
    @PostMapping("/deleteProductById/{id}")
    public Result deleteProductById(@PathVariable Integer id){
        return Result.seccess(productService.deleteProductById(id));
    @PostMapping("/deleteProductById/{id}/{operator}")
    public Result deleteProductById(@PathVariable Integer id,@PathVariable String operator){
        return Result.seccess(productService.deleteProductById(id,operator));
    }
    @ApiOperation("产品审核状态修改接口")
    @SaCheckPermission("createProduct.review")
    @PostMapping("/updateProductStateById/{id}/{state}")
    public Result updateProductStateById(@PathVariable Integer id,@PathVariable Integer state){
        return Result.seccess(productService.updateProductStateById(id,state));
    @PostMapping("/updateProductStateById/{id}/{state}/{operator}")
    public Result updateProductStateById(@PathVariable Integer id,@PathVariable Integer state,@PathVariable String operator){
        return Result.seccess(productService.updateProductStateById(id,state,operator));
    }
    @ApiOperation("根据产品id查询产品接口")
    @SaCheckPermission("selectProduct.edit")