|
@ -63,10 +63,16 @@ public class MedicinedevicePrintMessageService extends BaseJpaService<Medicinede
|
|
|
}
|
|
|
return printMessage;
|
|
|
}else {
|
|
|
if (printMessageDao.findDeviceId(printMessage.getDeviceId())==null){
|
|
|
MedicineDevicePrintMessage devicePrintMessage = printMessageDao.findDeviceId(printMessage.getDeviceId());
|
|
|
if (devicePrintMessage!=null){
|
|
|
printMessage.setInfo(printMessage.getInfo());
|
|
|
printMessage.setPhone(printMessage.getPhone());
|
|
|
printMessage.setRemark(printMessage.getRemark());
|
|
|
printMessage.setRemarkEnd(printMessage.getRemarkEnd());
|
|
|
printMessage.setPicture(printMessage.getPicture());
|
|
|
return printMessageDao.save(printMessage);
|
|
|
}else {
|
|
|
throw new Exception("该设备打印设置已存在!");
|
|
|
throw new Exception("该打印设备设置找不到!");
|
|
|
}
|
|
|
|
|
|
}
|