From dd26cd8e5f50f33cc7cf7f96cefccf154ad550dd Mon Sep 17 00:00:00 2001 From: zpl Date: Thu, 12 Aug 2021 08:53:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=8D=B0=E6=9C=BA=E7=BB=B4=E6=8A=A4?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mesnac/common/controller/PrinterController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/src/main/java/com/foreverwin/mesnac/common/controller/PrinterController.java b/common/src/main/java/com/foreverwin/mesnac/common/controller/PrinterController.java index 2ef737bb..3c6eebdb 100644 --- a/common/src/main/java/com/foreverwin/mesnac/common/controller/PrinterController.java +++ b/common/src/main/java/com/foreverwin/mesnac/common/controller/PrinterController.java @@ -80,16 +80,16 @@ public class PrinterController { printer.setCreatedDateTime(nowDate); printer.setModifiedDateTime(nowDate); printerService.save(printer); + return R.ok("保存成功"); } else { printerModel.setDescription(printer.getDescription()); printerModel.setModifiedDateTime(nowDate); printerService.updateById(printerModel); + return R.ok("修改成功"); } } catch (Exception e) { return R.failed(e.getMessage()); } - - return R.ok(); } @ResponseBody @PostMapping("/delPrinter")