|
@ -47,6 +47,7 @@ public class PrescriptionExpressageService {
|
|
//获取根据wlyy_prescription_dispensary_code的code处方编码
|
|
//获取根据wlyy_prescription_dispensary_code的code处方编码
|
|
PrescriptionDispensaryCode prescriptionDispensaryCode = prescriptionDispensaryCodeDao.finByCode(code);
|
|
PrescriptionDispensaryCode prescriptionDispensaryCode = prescriptionDispensaryCodeDao.finByCode(code);
|
|
if (prescriptionDispensaryCode == null) {
|
|
if (prescriptionDispensaryCode == null) {
|
|
|
|
//保存配送失败的日志
|
|
PrescriptionLog prescriptionLog = new PrescriptionLog();
|
|
PrescriptionLog prescriptionLog = new PrescriptionLog();
|
|
prescriptionLog.setCode(UUID.randomUUID().toString());
|
|
prescriptionLog.setCode(UUID.randomUUID().toString());
|
|
prescriptionLog.setPrescriptionCode(prescriptionDispensaryCode.getPrescriptionCode());
|
|
prescriptionLog.setPrescriptionCode(prescriptionDispensaryCode.getPrescriptionCode());
|
|
@ -61,7 +62,8 @@ public class PrescriptionExpressageService {
|
|
}
|
|
}
|
|
//修改处方状态为完成
|
|
//修改处方状态为完成
|
|
prescriptionDao.updateStatus(prescriptionDispensaryCode.getPrescriptionCode(),100);
|
|
prescriptionDao.updateStatus(prescriptionDispensaryCode.getPrescriptionCode(),100);
|
|
//保存操作日志
|
|
|
|
|
|
|
|
|
|
//保存配送成功的日志
|
|
PrescriptionLog prescriptionLog = new PrescriptionLog();
|
|
PrescriptionLog prescriptionLog = new PrescriptionLog();
|
|
prescriptionLog.setPrescriptionCode(prescriptionDispensaryCode.getPrescriptionCode());
|
|
prescriptionLog.setPrescriptionCode(prescriptionDispensaryCode.getPrescriptionCode());
|
|
prescriptionLog.setCode(UUID.randomUUID().toString());
|
|
prescriptionLog.setCode(UUID.randomUUID().toString());
|