|
@ -2,7 +2,6 @@ package com.yihu.wlyy.service.app.prescription;
|
|
|
|
|
|
import com.yihu.wlyy.entity.doctor.profile.Doctor;
|
|
import com.yihu.wlyy.entity.doctor.profile.Doctor;
|
|
import com.yihu.wlyy.entity.organization.Hospital;
|
|
import com.yihu.wlyy.entity.organization.Hospital;
|
|
import com.yihu.wlyy.entity.organization.HospitalDept;
|
|
|
|
import com.yihu.wlyy.entity.patient.Patient;
|
|
import com.yihu.wlyy.entity.patient.Patient;
|
|
import com.yihu.wlyy.entity.patient.prescription.*;
|
|
import com.yihu.wlyy.entity.patient.prescription.*;
|
|
import com.yihu.wlyy.repository.doctor.DoctorDao;
|
|
import com.yihu.wlyy.repository.doctor.DoctorDao;
|
|
@ -10,18 +9,13 @@ import com.yihu.wlyy.repository.organization.HospitalDao;
|
|
import com.yihu.wlyy.repository.patient.PatientDao;
|
|
import com.yihu.wlyy.repository.patient.PatientDao;
|
|
import com.yihu.wlyy.repository.prescription.*;
|
|
import com.yihu.wlyy.repository.prescription.*;
|
|
import com.yihu.wlyy.util.DateUtil;
|
|
import com.yihu.wlyy.util.DateUtil;
|
|
import com.yihu.wlyy.util.SystemConf;
|
|
|
|
import org.json.JSONArray;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
import java.util.Date;
|
|
import java.util.Date;
|
|
import java.util.List;
|
|
|
|
import java.util.Map;
|
|
|
|
import java.util.UUID;
|
|
import java.util.UUID;
|
|
import java.util.concurrent.ExecutionException;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
* Created by chenweida on 2017/7/27.
|
|
* Created by chenweida on 2017/7/27.
|
|
@ -41,7 +35,8 @@ public class PrescriptionExpressageService {
|
|
private PrescriptionNoticesService prescriptionNoticesService;
|
|
private PrescriptionNoticesService prescriptionNoticesService;
|
|
@Autowired
|
|
@Autowired
|
|
private PrescriptionExpressageLogDao prescriptionExpressageLogDao;
|
|
private PrescriptionExpressageLogDao prescriptionExpressageLogDao;
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
private PrescriptionService prescriptionService;
|
|
@Autowired
|
|
@Autowired
|
|
private DoctorDao doctorDao;
|
|
private DoctorDao doctorDao;
|
|
@Autowired
|
|
@Autowired
|
|
@ -328,6 +323,9 @@ public class PrescriptionExpressageService {
|
|
prescriptionLog.setUserType(2);
|
|
prescriptionLog.setUserType(2);
|
|
prescriptionLog.setRemark("团队长分配健管师配送");
|
|
prescriptionLog.setRemark("团队长分配健管师配送");
|
|
prescriptionLogDao.save(prescriptionLog);
|
|
prescriptionLogDao.save(prescriptionLog);
|
|
|
|
|
|
|
|
//提醒健管师待取药
|
|
|
|
prescriptionService.waitExpressageMessage(prescriptionCode,code);
|
|
}
|
|
}
|
|
|
|
|
|
@Transactional
|
|
@Transactional
|