cloudroam
2024-12-04 6c823dd44dbde79f008001a2a11e7bf9bc6bf8cc
src/main/java/com/mzl/flower/web/flower/FlowerMarkupPsController.java
@@ -33,9 +33,12 @@
    private FlowerMarkupPsService psService;
    @PostMapping("/list/new")
    @OperationLog(value = "新增合伙人配置", type = "markup_s_p")
    @ApiOperation(value = "新增合伙人配置")
    public ResponseEntity<ReturnDataDTO> saveMarkupPs(@RequestBody FlowerMarkupPsSaveDTO dto) {
        return returnData(R.SUCCESS.getCode(), psService.saveMarkupPs(dto));
        String content = "新增合伙人配置:合伙人id:【" + dto.getPartnerId() + "】";
        OperationRecord operationRecord = getOperationRecord(content);
        return returnData(R.SUCCESS.getCode(), psService.saveMarkupPs(dto), operationRecord);
    }
    @GetMapping("/list")
@@ -45,13 +48,16 @@
    }
    @GetMapping("/list/delete")
    @OperationLog(value = "删除合伙人配置", type = "markup_s_p")
    @ApiOperation(value = "删除合伙人配置")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "id", required = true, dataType = "String", paramType = "query")
    })
    public ResponseEntity<ReturnDataDTO<?>> deleteMarkupPs(Long id){
        psService.deleteMarkupPs(id);
        return returnData(R.SUCCESS.getCode(), null);
        String content = "删除合伙人配置id:【" + id+ "】";
        OperationRecord operationRecord = getOperationRecord(content);
        return returnData(R.SUCCESS.getCode(), null, operationRecord);
    }
    @PostMapping("/spcg/list/save/batch")
@@ -127,6 +133,7 @@
    }
    @GetMapping("/sp/list/delete")
    @OperationLog(value = "删除商品加价", type = "markup_s_p")
    @ApiOperation(value = "删除商品加价")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "partnerId", value = "合伙人id", required = true, dataType = "Long", paramType = "query"),
@@ -134,6 +141,8 @@
    })
    public ResponseEntity<ReturnDataDTO<?>> deleteMarkupSp(Long partnerId, Long flowerId){
        psService.deleteMarkupSp(partnerId, flowerId);
        return returnData(R.SUCCESS.getCode(), null);
        String content = "删除商品加价:合伙人id:【" + partnerId + "】,商品id:【"+flowerId+"】";
        OperationRecord operationRecord = getOperationRecord(content);
        return returnData(R.SUCCESS.getCode(), null,operationRecord);
    }
}