|
|
@ -80,16 +80,16 @@ public class PrinterController {
|
|
|
|
printer.setCreatedDateTime(nowDate);
|
|
|
|
printer.setCreatedDateTime(nowDate);
|
|
|
|
printer.setModifiedDateTime(nowDate);
|
|
|
|
printer.setModifiedDateTime(nowDate);
|
|
|
|
printerService.save(printer);
|
|
|
|
printerService.save(printer);
|
|
|
|
|
|
|
|
return R.ok("保存成功");
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
printerModel.setDescription(printer.getDescription());
|
|
|
|
printerModel.setDescription(printer.getDescription());
|
|
|
|
printerModel.setModifiedDateTime(nowDate);
|
|
|
|
printerModel.setModifiedDateTime(nowDate);
|
|
|
|
printerService.updateById(printerModel);
|
|
|
|
printerService.updateById(printerModel);
|
|
|
|
|
|
|
|
return R.ok("修改成功");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} catch (Exception e) {
|
|
|
|
} catch (Exception e) {
|
|
|
|
return R.failed(e.getMessage());
|
|
|
|
return R.failed(e.getMessage());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return R.ok();
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ResponseBody
|
|
|
|
@ResponseBody
|
|
|
|
@PostMapping("/delPrinter")
|
|
|
|
@PostMapping("/delPrinter")
|
|
|
|