|
@ -487,7 +487,7 @@ public class SynergyManageService extends BaseJpaService {
|
|
whereSql+=" and aa.label LIKE '%,3"+diseaseCode+",%' ";
|
|
whereSql+=" and aa.label LIKE '%,3"+diseaseCode+",%' ";
|
|
}
|
|
}
|
|
if(isFollow!=null&&isFollow==1){//跟进
|
|
if(isFollow!=null&&isFollow==1){//跟进
|
|
leftSql+=" LEFT JOIN manage_synergy_workorder_servicer_log ll on ll.service_patient_code=s.code ";
|
|
|
|
|
|
leftSql+=" LEFT JOIN manage_synergy_workorder_servicer_log ll on ll.workorder_service_code=s.code ";
|
|
whereSql+=" and ll.follow_up=2 and ll.workorder_service_code not in (select DISTINCT lll.workorder_service_code from manage_synergy_workorder_servicer_log lll where lll.follow_up=1 and lll.workorder_code='"+workorderCode+"') ";
|
|
whereSql+=" and ll.follow_up=2 and ll.workorder_service_code not in (select DISTINCT lll.workorder_service_code from manage_synergy_workorder_servicer_log lll where lll.follow_up=1 and lll.workorder_code='"+workorderCode+"') ";
|
|
orderBySql=" ll.id desc";
|
|
orderBySql=" ll.id desc";
|
|
whereSql+=" and s.status=3 ";
|
|
whereSql+=" and s.status=3 ";
|