소스 검색

协同bug解决

liuwenbin 6 년 전
부모
커밋
2c87997ef8
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      patient-co-manage/wlyy-manage/src/main/java/com/yihu/wlyy/service/synergy/SynergyManageService.java

+ 1 - 1
patient-co-manage/wlyy-manage/src/main/java/com/yihu/wlyy/service/synergy/SynergyManageService.java

@ -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 ";