From 4ecc52d0f6558cbbcec1c86647c9dba04ac66b7d Mon Sep 17 00:00:00 2001 From: cloudroam <cloudroam> Date: 星期五, 06 十二月 2024 17:35:33 +0800 Subject: [PATCH] add: 供应商子账号 --- src/main/java/com/mzl/flower/web/flower/FlowerMarkupPsController.java | 15 ++++++++++++--- 1 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/mzl/flower/web/flower/FlowerMarkupPsController.java b/src/main/java/com/mzl/flower/web/flower/FlowerMarkupPsController.java index 48cf2cf..4c6d264 100644 --- a/src/main/java/com/mzl/flower/web/flower/FlowerMarkupPsController.java +++ b/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); } } -- Gitblit v1.9.3