|
@ -64,7 +64,7 @@ public class PrescriptionExpressageService {
|
|
|
return -1;
|
|
|
}
|
|
|
//判断是否是取药码
|
|
|
if (prescriptionDispensaryCode.getType() != 2) {
|
|
|
if (prescriptionDispensaryCode.getType() != 1||prescriptionDispensaryCode.getType() !=2) {
|
|
|
//保存取药失败的日志
|
|
|
PrescriptionLog prescriptionLog = new PrescriptionLog();
|
|
|
prescriptionLog.setCode(UUID.randomUUID().toString());
|
|
@ -81,7 +81,7 @@ public class PrescriptionExpressageService {
|
|
|
}
|
|
|
|
|
|
//修改处方状态为完成
|
|
|
prescriptionDao.updateStatus(prescriptionDispensaryCode.getPrescriptionCode(), 100);
|
|
|
prescriptionDao.updateStatus(prescriptionDispensaryCode.getPrescriptionCode(), PrescriptionLog.PrescriptionLogStatus.finish.getValue());
|
|
|
|
|
|
//保存配送成功的日志
|
|
|
PrescriptionLog prescriptionLog = new PrescriptionLog();
|