| | |
| | | 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") |
| | |
| | | } |
| | | |
| | | @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") |
| | |
| | | } |
| | | |
| | | @GetMapping("/sp/list/delete") |
| | | @OperationLog(value = "删除商品加价", type = "markup_s_p") |
| | | @ApiOperation(value = "删除商品加价") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "partnerId", value = "合伙人id", required = true, dataType = "Long", paramType = "query"), |
| | |
| | | }) |
| | | 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); |
| | | } |
| | | } |