Browse Source

Merge branch '20230223_xt_api_new_branch' of http://git.shengws.com/csx/XT_New into 20230223_xt_api_new_branch

28169 2 months ago
parent
commit
36e90a94bc
1 changed files with 10 additions and 10 deletions
  1. 10 10
      controllers/his_api_controller.go

+ 10 - 10
controllers/his_api_controller.go View File

@@ -3432,11 +3432,11 @@ 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 3441
 					diagnoses, _ := items["diagnoses"].(string)
3442 3442
 
@@ -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,9 +5093,9 @@ 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
-					}
5096
+					//if items["diagnoses"] == nil || reflect.TypeOf(items["diagnoses"]).String() != "string" {
5097
+					//	utils.ErrorLog("diagnoses")
5098
+					//}
5099 5099
 					diagnoses, _ := items["diagnoses"].(string)
5100 5100
 
5101 5101
 					if items["pre_time"] == nil || reflect.TypeOf(items["pre_time"]).String() != "string" {
@@ -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()