From 6c823dd44dbde79f008001a2a11e7bf9bc6bf8cc Mon Sep 17 00:00:00 2001 From: cloudroam <cloudroam> Date: 星期三, 04 十二月 2024 18:15:44 +0800 Subject: [PATCH] fix:合伙人列表操作日志 --- 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