| | |
| | | } |
| | | |
| | | @PostMapping("/list/pass") |
| | | @OperationLog(value = "审核通过", type = "flower_list") |
| | | @ApiOperation(value = "审核通过") |
| | | public ResponseEntity<ReturnDataDTO> passFlower(@RequestBody FlowerAuditDTO dto) { |
| | | flowerService.auditFlower(dto.getId(), dto.getAuditRemarks(), Constants.FLOWER_STATUS.UP.name()); |
| | | return returnData(R.SUCCESS.getCode(), null); |
| | | String content = "审核通过id:【" + dto.getId() + "】,审核意见为【" + dto.getAuditRemarks() + "】"; |
| | | OperationRecord operationRecord = getOperationRecord(content); |
| | | return returnData(R.SUCCESS.getCode(), null, operationRecord); |
| | | } |
| | | |
| | | @PostMapping("/list/reject") |
| | | @OperationLog(value = "审核驳回", type = "flower_list") |
| | | @ApiOperation(value = "审核驳回") |
| | | public ResponseEntity<ReturnDataDTO> rejectFlower(@RequestBody FlowerAuditDTO dto) { |
| | | flowerService.auditFlower(dto.getId(), dto.getAuditRemarks(), Constants.FLOWER_STATUS.REJECT.name()); |
| | | return returnData(R.SUCCESS.getCode(), null); |
| | | String content = "审核驳回id:【" + dto.getId() + "】,审核意见为:【" + dto.getAuditRemarks() + "】"; |
| | | OperationRecord operationRecord = getOperationRecord(content); |
| | | return returnData(R.SUCCESS.getCode(), null, operationRecord); |
| | | } |
| | | |
| | | @PostMapping("/list/pass/multi") |
| | | @OperationLog(value = "批量审核通过", type = "flower_list") |
| | | @ApiOperation(value = "批量审核通过") |
| | | public ResponseEntity<ReturnDataDTO> passFlowers(@RequestBody FlowerAuditMultipleDTO dto) { |
| | | flowerService.auditFlowers(dto, Constants.FLOWER_STATUS.UP.name()); |
| | | String content = "批量审核通过id是:【" + dto.getIds() + "】,审核意见为【" + dto.getAuditRemarks() + "】"; |
| | | String content = "批量审核通过id:【" + dto.getIds() + "】,审核意见为【" + dto.getAuditRemarks() + "】"; |
| | | OperationRecord operationRecord = getOperationRecord(content); |
| | | return returnData(R.SUCCESS.getCode(), null, operationRecord); |
| | | } |