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