打印机维护修改

master
zpl 3 years ago
parent 338a4fbe40
commit dd26cd8e5f

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

Loading…
Cancel
Save