陈少旭 6 месяцев назад
Родитель
Сommit
37838b2194
2 измененных файлов: 3 добавлений и 2 удалений
  1. 2 2
      controllers/his_api_controller.go
  2. 1 0
      models/patient_models.go

+ 2 - 2
controllers/his_api_controller.go Просмотреть файл

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 = ""
3507
+						tempPrescription.Diagnose = diagnoses
3508
 
3508
 
3509
 						service.SaveHisPrescriptionOne(tx, tempPrescription)
3509
 						service.SaveHisPrescriptionOne(tx, tempPrescription)
3510
 						redis := service.RedisClient()
3510
 						redis := service.RedisClient()
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 = ""
5161
+						tempPrescription.Diagnose = diagnoses
5162
 
5162
 
5163
 						service.SaveHisPrescription(tempPrescription)
5163
 						service.SaveHisPrescription(tempPrescription)
5164
 						redis := service.RedisClient()
5164
 						redis := service.RedisClient()

+ 1 - 0
models/patient_models.go Просмотреть файл

234
 	FirstLetter              string  `gorm:"column:first_letter" json:"first_letter" form:"first_letter"`
234
 	FirstLetter              string  `gorm:"column:first_letter" json:"first_letter" form:"first_letter"`
235
 	PrintDate                int64   `gorm:"column:print_date" json:"print_date" form:"print_date"`
235
 	PrintDate                int64   `gorm:"column:print_date" json:"print_date" form:"print_date"`
236
 	FamalityRecord           string  `gorm:"column:famality_record" json:"famality_record" form:"famality_record"`
236
 	FamalityRecord           string  `gorm:"column:famality_record" json:"famality_record" form:"famality_record"`
237
+	InsuplcAdmdvs            string  `gorm:"column:insuplc_admdvs" json:"insuplc_admdvs" form:"insuplc_admdvs"`
237
 }
238
 }
238
 
239
 
239
 func (Patients) TableName() string {
240
 func (Patients) TableName() string {