浏览代码

提交代码

陈少旭 5 个月前
父节点
当前提交
09e3ff34bc
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      controllers/his_api_controller.go

+ 4 - 4
controllers/his_api_controller.go 查看文件

3438
 					//	return
3438
 					//	return
3439
 					//}
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:           "",
3485
+							Diagnose:           diagnoses,
3486
 						}
3486
 						}
3487
 						tempPrescription = prescription
3487
 						tempPrescription = prescription
3488
 						service.SaveHisPrescriptionOne(tx, tempPrescription)
3488
 						service.SaveHisPrescriptionOne(tx, tempPrescription)
5096
 					//if items["diagnoses"] == nil || reflect.TypeOf(items["diagnoses"]).String() != "string" {
5096
 					//if items["diagnoses"] == nil || reflect.TypeOf(items["diagnoses"]).String() != "string" {
5097
 					//	utils.ErrorLog("diagnoses")
5097
 					//	utils.ErrorLog("diagnoses")
5098
 					//}
5098
 					//}
5099
-					//diagnoses, _ := items["diagnoses"].(string)
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:           "",
5139
+							Diagnose:           diagnoses,
5140
 						}
5140
 						}
5141
 						tempPrescription = prescription
5141
 						tempPrescription = prescription
5142
 						service.SaveHisPrescription(tempPrescription)
5142
 						service.SaveHisPrescription(tempPrescription)