|
@ -339,7 +339,8 @@ public class PrescriptionExpressagePCService extends BaseService {
|
|
|
*/
|
|
|
public void dispensaryCode_2(String userCode,String patientCode, PrescriptionDispensaryCode prescriptionDispensaryCode) throws Exception {
|
|
|
//获取配送的医生信息
|
|
|
Doctor doctor = doctorDao.findByCode(userCode);
|
|
|
PrescriptionExpressage prescriptionExpressage = prescriptionExpressageDao.findByPrescriptionCode(prescriptionDispensaryCode.getPrescriptionCode());
|
|
|
Doctor doctor = doctorDao.findByCode(prescriptionExpressage.getExpressageCode());
|
|
|
|
|
|
//修改处方状态为配送中
|
|
|
Prescription prescription = prescriptionDao.findByCode(prescriptionDispensaryCode.getPrescriptionCode());
|
|
@ -357,7 +358,7 @@ public class PrescriptionExpressagePCService extends BaseService {
|
|
|
prescriptionLog.setType(PrescriptionLog.PrescriptionLogType.expressage.getValue());
|
|
|
prescriptionLog.setCreateTime(new Date());
|
|
|
prescriptionLog.setFlag(1);
|
|
|
prescriptionLog.setUserCode(userCode);
|
|
|
prescriptionLog.setUserCode(doctor.getCode());
|
|
|
prescriptionLog.setUserName(doctor.getName());
|
|
|
prescriptionLog.setUserType(2);
|
|
|
prescriptionLog.setStatus(PrescriptionLog.PrescriptionLogStatus.expressageing.getValue());
|
|
@ -375,7 +376,7 @@ public class PrescriptionExpressagePCService extends BaseService {
|
|
|
|
|
|
|
|
|
//更新配送信息
|
|
|
PrescriptionExpressage prescriptionExpressage = prescriptionExpressageDao.findByPrescriptionCode(prescriptionDispensaryCode.getPrescriptionCode());
|
|
|
|
|
|
prescriptionExpressage.setHospitalDoctor(doctorDao.findByCode(userCode).getName());
|
|
|
prescriptionExpressage.setHospitalDoctorCode(userCode);
|
|
|
prescriptionExpressage.setFetchingMedicineTime(new Date());
|