|
@ -3051,9 +3051,10 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
/**
|
|
/**
|
|
* 获取正在进行中的视频复诊/协同门诊
|
|
* 获取正在进行中的视频复诊/协同门诊
|
|
* @param doctor
|
|
* @param doctor
|
|
|
|
* @param general_doctor
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
public List<Map<String,Object>> getVideoPrescriptionByDoctor(String doctor) {
|
|
|
|
|
|
public List<Map<String,Object>> getVideoPrescriptionByDoctor(String doctor,String general_doctor) {
|
|
String sql ="SELECT " +
|
|
String sql ="SELECT " +
|
|
"room.outpatient_id AS id," +
|
|
"room.outpatient_id AS id," +
|
|
"room.patient_id AS patient_id," +
|
|
"room.patient_id AS patient_id," +
|
|
@ -3079,9 +3080,15 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
"room.patient_id=patient.id " +
|
|
"room.patient_id=patient.id " +
|
|
"AND room.outpatient_id=outpatient.id " +
|
|
"AND room.outpatient_id=outpatient.id " +
|
|
"AND consult.relation_code=outpatient.id " +
|
|
"AND consult.relation_code=outpatient.id " +
|
|
"AND consult.status = 0 " +
|
|
|
|
"AND room.doctor='"+doctor+"' " +
|
|
|
|
"AND room.consult_type= 2";
|
|
|
|
|
|
"AND consult.status = 0 ";
|
|
|
|
if(StringUtils.isNoneBlank(doctor)){
|
|
|
|
sql = sql +"AND room.doctor='"+doctor+"' " +
|
|
|
|
"AND room.consult_type= 2";
|
|
|
|
}else if(StringUtils.isNoneBlank(general_doctor)){
|
|
|
|
sql = sql +"AND room.general_doctor='"+general_doctor+"' " +
|
|
|
|
"AND room.consult_type= 2";
|
|
|
|
}else{}
|
|
|
|
|
|
|
|
|
|
List<Map<String,Object>> list = jdbcTemplate.queryForList(sql);
|
|
List<Map<String,Object>> list = jdbcTemplate.queryForList(sql);
|
|
if(list!=null&&list.size()>0){
|
|
if(list!=null&&list.size()>0){
|