Browse Source

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

csx 3 years ago
parent
commit
44ace72a66
2 changed files with 9 additions and 5 deletions
  1. 4 1
      controllers/sg/his_api_controller.go
  2. 5 4
      controllers/zh/zh_his_api_controller.go

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

7703
 			return
7703
 			return
7704
 		}
7704
 		}
7705
 		res.ErrMsg = res10265.ErrMsg
7705
 		res.ErrMsg = res10265.ErrMsg
7706
-		res.Output = res10265.Output
7706
+		infocode, _ := strconv.ParseInt(res10265.Infcode, 10, 64)
7707
+		res.Infcode = infocode
7707
 		res.InfRefmsgid = res10265.InfRefmsgid
7708
 		res.InfRefmsgid = res10265.InfRefmsgid
7708
 
7709
 
7709
 	} else {
7710
 	} else {
7859
 			return
7860
 			return
7860
 		}
7861
 		}
7861
 		res.ErrMsg = res10265.ErrMsg
7862
 		res.ErrMsg = res10265.ErrMsg
7863
+		infocode, _ := strconv.ParseInt(res10265.Infcode, 10, 64)
7864
+		res.Infcode = infocode
7862
 		res.Output = res10265.Output
7865
 		res.Output = res10265.Output
7863
 		res.InfRefmsgid = res10265.InfRefmsgid
7866
 		res.InfRefmsgid = res10265.InfRefmsgid
7864
 
7867
 

+ 5 - 4
controllers/zh/zh_his_api_controller.go View File

783
 				struct2401.MedType = "140104"
783
 				struct2401.MedType = "140104"
784
 			} else if med_type == 11 {
784
 			} else if med_type == 11 {
785
 				struct2401.MedType = "11"
785
 				struct2401.MedType = "11"
786
-
787
 			}
786
 			}
788
-
789
 		} else {
787
 		} else {
790
 			struct2401.MedType = strconv.FormatInt(int64(med_type), 10)
788
 			struct2401.MedType = strconv.FormatInt(int64(med_type), 10)
791
 		}
789
 		}
1363
 		}
1361
 		}
1364
 
1362
 
1365
 	} else {
1363
 	} else {
1366
-
1367
-		data["med_type"] = strconv.FormatInt(record.MedType, 10)
1364
+		if record.MedType == 1112 {
1365
+			data["med_type"] = strconv.FormatInt(11, 10)
1366
+		} else {
1367
+			data["med_type"] = strconv.FormatInt(record.MedType, 10)
1368
+		}
1368
 
1369
 
1369
 	}
1370
 	}
1370
 	data["insuplc_admdvs"] = record.InsuplcAdmdvs
1371
 	data["insuplc_admdvs"] = record.InsuplcAdmdvs