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")