Browse Source

提交代码

陈少旭 1 month ago
parent
commit
f7482db31b
1 changed files with 14 additions and 14 deletions
  1. 14 14
      controllers/his_api_controller.go

+ 14 - 14
controllers/his_api_controller.go View File

@@ -3432,13 +3432,13 @@ func (c *HisApiController) CreateHisPrescription() {
3432 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 3440
 					//med_type := strconv.Itoa(int(items["med_type"].(float64)))
3441
-					diagnoses, _ := items["diagnoses"].(string)
3441
+					//diagnoses, _ := items["diagnoses"].(string)
3442 3442
 
3443 3443
 					//if order_status == 0 {
3444 3444
 					//	order_status = 1
@@ -3482,7 +3482,7 @@ func (c *HisApiController) CreateHisPrescription() {
3482 3482
 							PreTime:            pTime,
3483 3483
 							PType:              p_type,
3484 3484
 							MedType:            med_type,
3485
-							Diagnose:           diagnoses,
3485
+							Diagnose:           "",
3486 3486
 						}
3487 3487
 						tempPrescription = prescription
3488 3488
 						service.SaveHisPrescriptionOne(tx, tempPrescription)
@@ -3504,7 +3504,7 @@ func (c *HisApiController) CreateHisPrescription() {
3504 3504
 						//tempPrescription.OrderStatus = order_status
3505 3505
 						tempPrescription.PreTime = pTime
3506 3506
 						tempPrescription.MedType = med_type
3507
-						tempPrescription.Diagnose = diagnoses
3507
+						tempPrescription.Diagnose = ""
3508 3508
 
3509 3509
 						service.SaveHisPrescriptionOne(tx, tempPrescription)
3510 3510
 						redis := service.RedisClient()
@@ -5093,10 +5093,10 @@ func (c *HisApiController) CreateHisPrescription() {
5093 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 5101
 					if items["pre_time"] == nil || reflect.TypeOf(items["pre_time"]).String() != "string" {
5102 5102
 						utils.ErrorLog("pre_time")
@@ -5136,7 +5136,7 @@ func (c *HisApiController) CreateHisPrescription() {
5136 5136
 							PreTime:            pTime,
5137 5137
 							PType:              p_type,
5138 5138
 							MedType:            med_type,
5139
-							Diagnose:           diagnoses,
5139
+							Diagnose:           "",
5140 5140
 						}
5141 5141
 						tempPrescription = prescription
5142 5142
 						service.SaveHisPrescription(tempPrescription)
@@ -5158,7 +5158,7 @@ func (c *HisApiController) CreateHisPrescription() {
5158 5158
 						//tempPrescription.OrderStatus = order_status
5159 5159
 						tempPrescription.PreTime = pTime
5160 5160
 						tempPrescription.MedType = med_type
5161
-						tempPrescription.Diagnose = diagnoses
5161
+						tempPrescription.Diagnose = ""
5162 5162
 
5163 5163
 						service.SaveHisPrescription(tempPrescription)
5164 5164
 						redis := service.RedisClient()