|
@ -205,7 +205,8 @@ public class SpecialistService{
|
|
|
" lb.labelName as health, " +
|
|
|
" lb.label AS healthcode ," +
|
|
|
" s.health_assistant AS healthAssistant," +
|
|
|
" s.health_assistant_name AS healthAssistantName" +
|
|
|
" s.health_assistant_name AS healthAssistantName," +
|
|
|
" s.is_manage AS isManage" +
|
|
|
" FROM " +
|
|
|
" ( " +
|
|
|
" SELECT " +
|
|
@ -237,7 +238,8 @@ public class SpecialistService{
|
|
|
"d.label_name AS health," +
|
|
|
"d.label AS healthcode," +
|
|
|
"a.health_assistant AS healthAssistant," +
|
|
|
"a.health_assistant_name AS healthAssistantName " +
|
|
|
"a.health_assistant_name AS healthAssistantName, " +
|
|
|
"a.is_manage AS isManage " +
|
|
|
"FROM wlyy_specialist.wlyy_specialist_patient_relation a " +
|
|
|
"JOIN "+basedb+".wlyy_patient_disease_server b ON a.id=b.specialist_relation_code AND b.disease=" +labelCode+" and b.del=1 "+
|
|
|
"JOIN "+basedb+".wlyy_patient c ON a.patient=c.CODE " +
|
|
@ -257,6 +259,7 @@ public class SpecialistService{
|
|
|
"c.photo," +
|
|
|
"a.health_assistant AS healthAssistant," +
|
|
|
"a.health_assistant_name AS healthAssistantName " +
|
|
|
"a.is_manage AS isManage, " +
|
|
|
"FROM wlyy_specialist.wlyy_specialist_patient_relation a " +
|
|
|
"JOIN "+basedb+".wlyy_patient c ON a.patient=c.CODE " +
|
|
|
" WHERE a.sign_status> 0 AND a.`status`>=0 AND (a.is_manage = 0 or a.is_manage is null)" +
|