Browse Source

提交代码

陈少旭 9 months ago
parent
commit
e358718913
2 changed files with 20 additions and 8 deletions
  1. 18 8
      models/inspection_models.go
  2. 2 0
      service/pharmacy_service.go

+ 18 - 8
models/inspection_models.go View File

@@ -237,17 +237,27 @@ func (XtPatientsTenOne) TableName() string {
237 237
 	return "xt_patients"
238 238
 }
239 239
 
240
+type InspectionValue struct {
241
+	Name  string `gorm:"-" json:"name" form:"name"`
242
+	Value string `gorm:"-" json:"value" form:"value"`
243
+}
244
+
240 245
 type InspectionTen struct {
241
-	ID        int64  `gorm:"column:id" json:"id" form:"id"`
242
-	PatientId int64  `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
243
-	Name      string `gorm:"-" json:"name" form:"name"`
244
-	Ipth      string `gorm:"-" json:"ipth" form:"ipth"`
245
-	Xuejia    string `gorm:"-" json:"xuejia" form:"xuejia"`
246
-	Xuelin    string `gorm:"-" json:"xuelin" form:"xuelin"`
247
-	Bdb       string `gorm:"-" json:"bdb" form:"bdb"`
248
-	Xhdb      string `gorm:"-" json:"xhdb" form:"xhdb"`
246
+	ID        int64             `gorm:"column:id" json:"id" form:"id"`
247
+	PatientId int64             `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
248
+	Name      string            `gorm:"-" json:"name" form:"name"`
249
+	Values    []InspectionValue `gorm:"-" json:"values" form:"values"`
249 250
 }
250 251
 
251 252
 func (InspectionTen) TableName() string {
252 253
 	return "xt_inspection"
253 254
 }
255
+
256
+type InspectionTenOne struct {
257
+	ID           int64  `gorm:"-" json:"id" form:"id"`
258
+	PatientId    int64  `gorm:"-" json:"patient_id" form:"patient_id"`
259
+	Name         string `gorm:"-" json:"name" form:"name"`
260
+	ItemName     string `gorm:"-" json:"item_name" form:"item_name"`
261
+	InspectValue string `gorm:"-" json:"inspect_value" form:"inspect_value"`
262
+	ItemID       string `gorm:"-" json:"item_id" form:"item_id"`
263
+}

+ 2 - 0
service/pharmacy_service.go View File

@@ -336,6 +336,7 @@ func GetPatientMedication(orgid, patient_id, stime, etime, is_medicine int64) (p
336 336
 				ExecutionState: v.ExecutionState,
337 337
 				ExecutionStaff: v.ExecutionStaff,
338 338
 				ExecutionTime:  v.ExecutionTime,
339
+				Price:          v.Price,
339 340
 			})
340 341
 		}
341 342
 
@@ -369,6 +370,7 @@ func GetPatientMedication(orgid, patient_id, stime, etime, is_medicine int64) (p
369 370
 				ExecutionState: v.ExecutionState,
370 371
 				ExecutionStaff: v.ExecutionStaff,
371 372
 				ExecutionTime:  v.ExecutionTime,
373
+				Price:          v.Price,
372 374
 			})
373 375
 		}
374 376
 		return