Bläddra i källkod

Merge branch 'master' of http://git.shengws.com/csx/gdyb

csx 2 år sedan
förälder
incheckning
88b1b7d135
1 ändrade filer med 4 tillägg och 4 borttagningar
  1. 4 4
      controllers/sg/his_api_controller.go

+ 4 - 4
controllers/sg/his_api_controller.go Visa fil

@@ -427,7 +427,7 @@ func (c *HisApiController) Check3102() {
427 427
 	var fdds []*models.FsiDiagnoseDtos
428 428
 	for index, item := range config {
429 429
 		if index == 0 {
430
-			var fdd *models.FsiDiagnoseDtos
430
+			var fdd models.FsiDiagnoseDtos
431 431
 			fdd.DiseID = strconv.FormatInt(item.ID, 10)
432 432
 			fdd.InoutDiseType = "1"
433 433
 			fdd.MaindiseFlag = "1"
@@ -435,10 +435,10 @@ func (c *HisApiController) Check3102() {
435 435
 			fdd.DiasSrtNo = "1"
436 436
 			fdd.DiseName = item.CountryContentName
437 437
 			fdd.DiseCodg = item.CountryCode
438
-			fdds = append(fdds, fdd)
438
+			fdds = append(fdds, &fdd)
439 439
 
440 440
 		} else {
441
-			var fdd *models.FsiDiagnoseDtos
441
+			var fdd models.FsiDiagnoseDtos
442 442
 			fdd.DiseID = strconv.FormatInt(item.ID, 10)
443 443
 			fdd.InoutDiseType = "1"
444 444
 			fdd.MaindiseFlag = "1"
@@ -446,7 +446,7 @@ func (c *HisApiController) Check3102() {
446 446
 			fdd.DiasSrtNo = strconv.FormatInt(int64(index), 10)
447 447
 			fdd.DiseName = item.CountryContentName
448 448
 			fdd.DiseCodg = item.CountryCode
449
-			fdds = append(fdds, fdd)
449
+			fdds = append(fdds, &fdd)
450 450
 		}
451 451
 	}
452 452
 	fed.DrCodg = strconv.FormatInt(doctor_info.ID, 10)