陈少旭 7 miesięcy temu
rodzic
commit
f7482db31b
1 zmienionych plików z 14 dodań i 14 usunięć
  1. 14 14
      controllers/his_api_controller.go

+ 14 - 14
controllers/his_api_controller.go Wyświetl plik

3432
 						med_type = "14"
3432
 						med_type = "14"
3433
 					}
3433
 					}
3434
 
3434
 
3435
-					if items["diagnoses"] == nil || reflect.TypeOf(items["diagnoses"]).String() != "string" {
3436
-						utils.ErrorLog("diagnoses")
3437
-						c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeParamWrong)
3438
-						return
3439
-					}
3435
+					//if items["diagnoses"] == nil || reflect.TypeOf(items["diagnoses"]).String() != "string" {
3436
+					//	utils.ErrorLog("diagnoses")
3437
+					//	c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeParamWrong)
3438
+					//	return
3439
+					//}
3440
 					//med_type := strconv.Itoa(int(items["med_type"].(float64)))
3440
 					//med_type := strconv.Itoa(int(items["med_type"].(float64)))
3441
-					diagnoses, _ := items["diagnoses"].(string)
3441
+					//diagnoses, _ := items["diagnoses"].(string)
3442
 
3442
 
3443
 					//if order_status == 0 {
3443
 					//if order_status == 0 {
3444
 					//	order_status = 1
3444
 					//	order_status = 1
3482
 							PreTime:            pTime,
3482
 							PreTime:            pTime,
3483
 							PType:              p_type,
3483
 							PType:              p_type,
3484
 							MedType:            med_type,
3484
 							MedType:            med_type,
3485
-							Diagnose:           diagnoses,
3485
+							Diagnose:           "",
3486
 						}
3486
 						}
3487
 						tempPrescription = prescription
3487
 						tempPrescription = prescription
3488
 						service.SaveHisPrescriptionOne(tx, tempPrescription)
3488
 						service.SaveHisPrescriptionOne(tx, tempPrescription)
3504
 						//tempPrescription.OrderStatus = order_status
3504
 						//tempPrescription.OrderStatus = order_status
3505
 						tempPrescription.PreTime = pTime
3505
 						tempPrescription.PreTime = pTime
3506
 						tempPrescription.MedType = med_type
3506
 						tempPrescription.MedType = med_type
3507
-						tempPrescription.Diagnose = diagnoses
3507
+						tempPrescription.Diagnose = ""
3508
 
3508
 
3509
 						service.SaveHisPrescriptionOne(tx, tempPrescription)
3509
 						service.SaveHisPrescriptionOne(tx, tempPrescription)
3510
 						redis := service.RedisClient()
3510
 						redis := service.RedisClient()
5093
 					//	order_status = 1
5093
 					//	order_status = 1
5094
 					//}
5094
 					//}
5095
 
5095
 
5096
-					if items["diagnoses"] == nil || reflect.TypeOf(items["diagnoses"]).String() != "string" {
5097
-						utils.ErrorLog("diagnoses")
5098
-					}
5099
-					diagnoses, _ := items["diagnoses"].(string)
5096
+					//if items["diagnoses"] == nil || reflect.TypeOf(items["diagnoses"]).String() != "string" {
5097
+					//	utils.ErrorLog("diagnoses")
5098
+					//}
5099
+					//diagnoses, _ := items["diagnoses"].(string)
5100
 
5100
 
5101
 					if items["pre_time"] == nil || reflect.TypeOf(items["pre_time"]).String() != "string" {
5101
 					if items["pre_time"] == nil || reflect.TypeOf(items["pre_time"]).String() != "string" {
5102
 						utils.ErrorLog("pre_time")
5102
 						utils.ErrorLog("pre_time")
5136
 							PreTime:            pTime,
5136
 							PreTime:            pTime,
5137
 							PType:              p_type,
5137
 							PType:              p_type,
5138
 							MedType:            med_type,
5138
 							MedType:            med_type,
5139
-							Diagnose:           diagnoses,
5139
+							Diagnose:           "",
5140
 						}
5140
 						}
5141
 						tempPrescription = prescription
5141
 						tempPrescription = prescription
5142
 						service.SaveHisPrescription(tempPrescription)
5142
 						service.SaveHisPrescription(tempPrescription)
5158
 						//tempPrescription.OrderStatus = order_status
5158
 						//tempPrescription.OrderStatus = order_status
5159
 						tempPrescription.PreTime = pTime
5159
 						tempPrescription.PreTime = pTime
5160
 						tempPrescription.MedType = med_type
5160
 						tempPrescription.MedType = med_type
5161
-						tempPrescription.Diagnose = diagnoses
5161
+						tempPrescription.Diagnose = ""
5162
 
5162
 
5163
 						service.SaveHisPrescription(tempPrescription)
5163
 						service.SaveHisPrescription(tempPrescription)
5164
 						redis := service.RedisClient()
5164
 						redis := service.RedisClient()