csx 2 years ago
parent
commit
17232c07ec
1 changed files with 4 additions and 3 deletions
  1. 4 3
      service/ystx_service.go

+ 4 - 3
service/ystx_service.go View File

698
 	schedules, _ := GetPatientGzjhList(org_id, schedulesTime)
698
 	schedules, _ := GetPatientGzjhList(org_id, schedulesTime)
699
 	if len(schedules) > 0 {
699
 	if len(schedules) > 0 {
700
 		for _, item := range schedules {
700
 		for _, item := range schedules {
701
+			fmt.Println(item)
701
 			// if len(item.Patients.AdmissionNumber) > 0 {
702
 			// if len(item.Patients.AdmissionNumber) > 0 {
702
 			if len(patient_zy_ids) == 0 {
703
 			if len(patient_zy_ids) == 0 {
703
-				patient_zy_ids = item.Patients.IdCardNo + "-" + strconv.FormatInt(item.Patients.ID, 10) + "-" + item.Patients.AdmissionNumber
704
+				//patient_zy_ids = item.Patients.IdCardNo + "-" + strconv.FormatInt(item.Patients.ID, 10) + "-" + item.Patients.AdmissionNumber
704
 			} else {
705
 			} else {
705
-				patient_zy_ids = patient_zy_ids + "," + item.Patients.IdCardNo + "-" + strconv.FormatInt(item.Patients.ID, 10) + "-" + item.Patients.AdmissionNumber
706
+				//patient_zy_ids = patient_zy_ids + "," + item.Patients.IdCardNo + "-" + strconv.FormatInt(item.Patients.ID, 10) + "-" + item.Patients.AdmissionNumber
706
 			}
707
 			}
707
 			// }
708
 			// }
708
 		}
709
 		}
712
 	utils.InfoLog("2gdjh_patient_zy_ids:%v", patient_zy_ids)
713
 	utils.InfoLog("2gdjh_patient_zy_ids:%v", patient_zy_ids)
713
 
714
 
714
 	// 第三步: 根据获取的同步时间,同步人员,去获取医嘱信息
715
 	// 第三步: 根据获取的同步时间,同步人员,去获取医嘱信息
715
-	idArray := strings.Split(patient_zy_ids, ",")
716
+	idArray := strings.Split("", ",")
716
 	for _, idStr := range idArray {
717
 	for _, idStr := range idArray {
717
 		temp_id := strings.Split(idStr, "-")
718
 		temp_id := strings.Split(idStr, "-")
718
 		id := temp_id[0]
719
 		id := temp_id[0]