Browse Source

耗材参数

XMLWAN 4 years ago
parent
commit
faaa449d84
1 changed files with 7 additions and 2 deletions
  1. 7 2
      controllers/mobile_api_controllers/patient_api_controller.go

+ 7 - 2
controllers/mobile_api_controllers/patient_api_controller.go View File

@@ -1545,9 +1545,14 @@ func predialysisEvaluationFormData(evaluation *models.PredialysisEvaluation, dat
1545 1545
 		internal_fistula_skin := dataBody["internal_fistula_skin"].(string)
1546 1546
 		evaluation.InternalFistulaSkin = internal_fistula_skin
1547 1547
 	}
1548
+	if dataBody["is_hemorrhage"] != nil && reflect.TypeOf(dataBody["is_hemorrhage"]).String() == "string" {
1549
+		ishemorrhage, _ := dataBody["is_hemorrhage"].(string)
1550
+		is_hemorrhage, _ := strconv.ParseInt(ishemorrhage, 10, 64)
1551
+		evaluation.IsHemorrhage = is_hemorrhage
1548 1552
 
1549
-	if dataBody["is_hemorrhage"] != nil && reflect.TypeOf(dataBody["is_hemorrhage"]).String() == "float64" {
1550
-		is_hemorrhage := int64(dataBody["is_hemorrhage"].(float64))
1553
+		//if dataBody["is_hemorrhage"] != nil && reflect.TypeOf(dataBody["is_hemorrhage"]).String() == "float64" {
1554
+		//	is_hemorrhage := int64(dataBody["is_hemorrhage"].(float64))
1555
+		//	fmt.Println("is_hemorrhage2222222222222222",is_hemorrhage)
1551 1556
 		if is_hemorrhage != 1 && is_hemorrhage != 2 {
1552 1557
 			is_hemorrhage = 0
1553 1558
 		}