Преглед на файлове

Merge branch 'master' of http://git.shengws.com/csx/gdyb

csx преди 3 години
родител
ревизия
af24676b4b
променени са 1 файла, в които са добавени 5 реда и са изтрити 5 реда
  1. 5 5
      controllers/zh/zh_his_api_controller.go

+ 5 - 5
controllers/zh/zh_his_api_controller.go Целия файл

643
 
643
 
644
 	}
644
 	}
645
 
645
 
646
-	if record.InHospitalStatus == 1 && record.OutHospitalStatus == 1 {
646
+	if record.InHospitalStatus == 1 && record.OutHospitalStatus == 0 {
647
 		c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeHospitalNoExistDataException)
647
 		c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeHospitalNoExistDataException)
648
 		return
648
 		return
649
 	}
649
 	}
852
 		return
852
 		return
853
 	}
853
 	}
854
 
854
 
855
-	if record.InHospitalStatus == 1 && record.OutHospitalStatus == 0 {
856
-		c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeHospitalNoExistDataException)
857
-		return
858
-	}
855
+	//if record.InHospitalStatus == 1 && record.OutHospitalStatus == 0 {
856
+	//	c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeHospitalNoExistDataException)
857
+	//	return
858
+	//}
859
 
859
 
860
 	timestamp := time.Now().Unix()
860
 	timestamp := time.Now().Unix()
861
 	tempTime := time.Unix(timestamp, 0)
861
 	tempTime := time.Unix(timestamp, 0)