Parcourir la source

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

csx il y a 3 ans
Parent
révision
63ab9598dc
1 fichiers modifiés avec 5 ajouts et 5 suppressions
  1. 5 5
      controllers/sg/his_api_controller.go

+ 5 - 5
controllers/sg/his_api_controller.go Voir le fichier

@@ -3598,7 +3598,7 @@ func (c *HisApiController) GetUploadInfo() {
3598 3598
 			data["doctor"] = roles.UserName
3599 3599
 			data["department"] = department.Name
3600 3600
 			data["org_name"] = miConfig.OrgName
3601
-			data["med_type"] = med_type
3601
+			data["med_type"] = strconv.FormatInt(reg_type, 10)
3602 3602
 			data["doctor_id"] = strconv.FormatInt(doctor_info.AdminUserId, 10)
3603 3603
 			data["fixmedins_code"] = miConfig.Code
3604 3604
 			data["insuplc_admdvs"] = miConfig.InsuplcAdmdvs
@@ -4226,7 +4226,7 @@ func (c *HisApiController) GetUploadInfo() {
4226 4226
 								"&insuplc_admdvs=" + miConfig.InsuplcAdmdvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs +
4227 4227
 								"&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(his.IdCardType, 10) +
4228 4228
 								"&certificates=" + strconv.FormatInt(his.IdType, 10) + "&cert_no=" + cert_no +
4229
-								"&insutype=" + insutype + "&total=" + allTotal + "&med_type=" + med_type + "&acct_used_flag=" + acct_used_flag + "&url=" + miConfig.Url + "&ak=" + miConfig.ChannelNumber + "&verify_number=" + psn_info.VerifyNumber
4229
+								"&insutype=" + insutype + "&total=" + allTotal + "&med_type=" + strconv.FormatInt(reg_type, 10) + "&acct_used_flag=" + acct_used_flag + "&url=" + miConfig.Url + "&ak=" + miConfig.ChannelNumber + "&verify_number=" + psn_info.VerifyNumber
4230 4230
 
4231 4231
 							resp, requestErr := http.Get(api)
4232 4232
 							if requestErr != nil {
@@ -4607,7 +4607,7 @@ func (c *HisApiController) GetUploadInfo() {
4607 4607
 					"&insuplc_admdvs=" + miConfig.InsuplcAdmdvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs +
4608 4608
 					"&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(his.IdCardType, 10) +
4609 4609
 					"&certificates=" + strconv.FormatInt(his.IdType, 10) + "&cert_no=" + cert_no +
4610
-					"&insutype=" + insutype + "&total=" + allTotal + "&med_type=" + med_type + "&acct_used_flag=" + acct_used_flag + "&url=" + miConfig.Url + "&ak=" + miConfig.ChannelNumber + "&verify_number=" + psn_info.VerifyNumber
4610
+					"&insutype=" + insutype + "&total=" + allTotal + "&med_type=" + strconv.FormatInt(reg_type, 10) + "&acct_used_flag=" + acct_used_flag + "&url=" + miConfig.Url + "&ak=" + miConfig.ChannelNumber + "&verify_number=" + psn_info.VerifyNumber
4611 4611
 
4612 4612
 				resp, requestErr := http.Get(api)
4613 4613
 				if requestErr != nil {
@@ -5463,7 +5463,7 @@ func (c *HisApiController) GetPreUploadInfo() {
5463 5463
 		data["doctor"] = roles.UserName
5464 5464
 		data["department"] = department.Name
5465 5465
 		data["org_name"] = miConfig.OrgName
5466
-		data["med_type"] = med_type
5466
+		data["med_type"] = strconv.FormatInt(reg_type, 10)
5467 5467
 		data["doctor_id"] = strconv.FormatInt(doctor_info.AdminUserId, 10)
5468 5468
 		data["fixmedins_code"] = miConfig.Code
5469 5469
 		data["insuplc_admdvs"] = miConfig.InsuplcAdmdvs
@@ -6030,7 +6030,7 @@ func (c *HisApiController) GetPreUploadInfo() {
6030 6030
 							"&insuplc_admdvs=" + miConfig.InsuplcAdmdvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs +
6031 6031
 							"&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(his.IdCardType, 10) +
6032 6032
 							"&certificates=" + strconv.FormatInt(his.IdType, 10) + "&cert_no=" + cert_no +
6033
-							"&insutype=" + insutype + "&total=" + allTotal + "&med_type=" + med_type + "&verify_number=" + psn_info.VerifyNumber + "&url=" + miConfig.Url + "&ak=" + miConfig.ChannelNumber
6033
+							"&insutype=" + insutype + "&total=" + allTotal + "&med_type=" + strconv.FormatInt(reg_type, 10) + "&verify_number=" + psn_info.VerifyNumber + "&url=" + miConfig.Url + "&ak=" + miConfig.ChannelNumber
6034 6034
 						resp, requestErr := http.Get(api)
6035 6035
 						if requestErr != nil {
6036 6036
 							c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)