Browse Source

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

csx 2 years ago
parent
commit
f85337b2fb
1 changed files with 4 additions and 4 deletions
  1. 4 4
      controllers/sg/his_api_controller.go

+ 4 - 4
controllers/sg/his_api_controller.go View File

155
 	var fdds []*models.FsiDiagnoseDtos
155
 	var fdds []*models.FsiDiagnoseDtos
156
 	for index, item := range config {
156
 	for index, item := range config {
157
 		if index == 0 {
157
 		if index == 0 {
158
-			var fdd *models.FsiDiagnoseDtos
158
+			var fdd models.FsiDiagnoseDtos
159
 			fdd.DiseID = strconv.FormatInt(item.ID, 10)
159
 			fdd.DiseID = strconv.FormatInt(item.ID, 10)
160
 			fdd.InoutDiseType = "1"
160
 			fdd.InoutDiseType = "1"
161
 			fdd.MaindiseFlag = "1"
161
 			fdd.MaindiseFlag = "1"
163
 			fdd.DiasSrtNo = "1"
163
 			fdd.DiasSrtNo = "1"
164
 			fdd.DiseName = item.CountryContentName
164
 			fdd.DiseName = item.CountryContentName
165
 			fdd.DiseCodg = item.CountryCode
165
 			fdd.DiseCodg = item.CountryCode
166
-			fdds = append(fdds, fdd)
166
+			fdds = append(fdds, &fdd)
167
 
167
 
168
 		} else {
168
 		} else {
169
-			var fdd *models.FsiDiagnoseDtos
169
+			var fdd models.FsiDiagnoseDtos
170
 			fdd.DiseID = strconv.FormatInt(item.ID, 10)
170
 			fdd.DiseID = strconv.FormatInt(item.ID, 10)
171
 			fdd.InoutDiseType = "1"
171
 			fdd.InoutDiseType = "1"
172
 			fdd.MaindiseFlag = "1"
172
 			fdd.MaindiseFlag = "1"
174
 			fdd.DiasSrtNo = strconv.FormatInt(int64(index), 10)
174
 			fdd.DiasSrtNo = strconv.FormatInt(int64(index), 10)
175
 			fdd.DiseName = item.CountryContentName
175
 			fdd.DiseName = item.CountryContentName
176
 			fdd.DiseCodg = item.CountryCode
176
 			fdd.DiseCodg = item.CountryCode
177
-			fdds = append(fdds, fdd)
177
+			fdds = append(fdds, &fdd)
178
 		}
178
 		}
179
 	}
179
 	}
180
 	fed.DrCodg = strconv.FormatInt(doctor_info.ID, 10)
180
 	fed.DrCodg = strconv.FormatInt(doctor_info.ID, 10)