csx 2 anni fa
parent
commit
17232c07ec
1 ha cambiato i file con 4 aggiunte e 3 eliminazioni
  1. 4 3
      service/ystx_service.go

+ 4 - 3
service/ystx_service.go Vedi File

@@ -698,11 +698,12 @@ func SyncGzjhyz() (err error) {
698 698
 	schedules, _ := GetPatientGzjhList(org_id, schedulesTime)
699 699
 	if len(schedules) > 0 {
700 700
 		for _, item := range schedules {
701
+			fmt.Println(item)
701 702
 			// if len(item.Patients.AdmissionNumber) > 0 {
702 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 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,7 +713,7 @@ func SyncGzjhyz() (err error) {
712 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 717
 	for _, idStr := range idArray {
717 718
 		temp_id := strings.Split(idStr, "-")
718 719
 		id := temp_id[0]