test_user il y a 1 an
Parent
révision
692d9db452

+ 97 - 96
controllers/js/jsyb_controller.go Voir le fichier

@@ -50,102 +50,103 @@ func JSybRegistRouters() {
50 50
 	beego.Router("/jsyb/4101", &JSybController{}, "post:Get4101")
51 51
 	beego.Router("/jsyb/readcard", &JSybController{}, "get:ReadCard")
52 52
 
53
-	beego.Router("/jsyb/3260", &JSybController{}, "post:Get3260")
54
-	beego.Router("/jsyb/3261", &JSybController{}, "post:Get3261")
55
-	beego.Router("/jsyb/3262", &JSybController{}, "post:Get3262")
56
-	beego.Router("/jsyb/3263", &JSybController{}, "post:Get3263")
57
-	beego.Router("/jsyb/3264", &JSybController{}, "post:Get3264")
58
-	beego.Router("/jsyb/3265", &JSybController{}, "post:Get3265")
59
-	beego.Router("/jsyb/3266", &JSybController{}, "post:Get3266")
60
-	beego.Router("/jsyb/3267", &JSybController{}, "post:Get3267")
61
-	beego.Router("/jsyb/3268", &JSybController{}, "post:Get3268")
62
-	beego.Router("/jsyb/3269", &JSybController{}, "post:Get3269")
63
-	beego.Router("/jsyb/3270", &JSybController{}, "post:Get3270")
64
-	beego.Router("/jsyb/3271", &JSybController{}, "post:Get3271")
65
-	beego.Router("/jsyb/3272", &JSybController{}, "post:Get3272")
66
-	beego.Router("/jsyb/3273", &JSybController{}, "post:Get3273")
67
-	beego.Router("/jsyb/3274", &JSybController{}, "post:Get3274")
68
-	beego.Router("/jsyb/3275", &JSybController{}, "post:Get3275")
69
-	beego.Router("/jsyb/3276", &JSybController{}, "post:Get3276")
70
-	beego.Router("/jsyb/3277", &JSybController{}, "post:Get3277")
71
-
72
-}
73
-
74
-func (c *JSybController) Get3260() {
75
-	service.Jxyb3260()
76
-}
77
-func (c *JSybController) Get3261() {
78
-	service.Jxyb3261()
79
-
80
-}
81
-func (c *JSybController) Get3262() {
82
-	service.Jxyb3262()
83
-
84
-}
85
-func (c *JSybController) Get3263() {
86
-	service.Jxyb3263()
87
-
88
-}
89
-func (c *JSybController) Get3264() {
90
-	service.Jxyb3264()
91
-
92
-}
93
-func (c *JSybController) Get3265() {
94
-	service.Jxyb3265()
95
-
96
-}
97
-func (c *JSybController) Get3266() {
98
-	service.Jxyb3266()
99
-
100
-}
101
-func (c *JSybController) Get3267() {
102
-	service.Jxyb3267()
103
-
104
-}
105
-func (c *JSybController) Get3268() {
106
-	service.Jxyb3268()
107
-
108
-}
109
-func (c *JSybController) Get3269() {
110
-	service.Jxyb3269()
111
-
112
-}
113
-func (c *JSybController) Get3270() {
114
-	service.Jxyb3270()
115
-
116
-}
117
-
118
-func (c *JSybController) Get3271() {
119
-	service.Jxyb3271()
120
-
121
-}
122
-
123
-func (c *JSybController) Get3272() {
124
-	service.Jxyb3272()
125
-
126
-}
127
-
128
-func (c *JSybController) Get3273() {
129
-	service.Jxyb3273()
130
-
131
-}
132
-
133
-func (c *JSybController) Get3274() {
134
-	service.Jxyb3274()
135
-
136
-}
137
-
138
-func (c *JSybController) Get3275() {
139
-	service.Jxyb3275()
140
-
141
-}
142
-func (c *JSybController) Get3276() {
143
-	service.Jxyb3276()
144
-
145
-}
146
-func (c *JSybController) Get3277() {
147
-	service.Jxyb3277()
148
-}
53
+	//beego.Router("/jsyb/3260", &JSybController{}, "post:Get3260")
54
+	//beego.Router("/jsyb/3261", &JSybController{}, "post:Get3261")
55
+	//beego.Router("/jsyb/3262", &JSybController{}, "post:Get3262")
56
+	//beego.Router("/jsyb/3263", &JSybController{}, "post:Get3263")
57
+	//beego.Router("/jsyb/3264", &JSybController{}, "post:Get3264")
58
+	//beego.Router("/jsyb/3265", &JSybController{}, "post:Get3265")
59
+	//beego.Router("/jsyb/3266", &JSybController{}, "post:Get3266")
60
+	//beego.Router("/jsyb/3267", &JSybController{}, "post:Get3267")
61
+	//beego.Router("/jsyb/3268", &JSybController{}, "post:Get3268")
62
+	//beego.Router("/jsyb/3269", &JSybController{}, "post:Get3269")
63
+	//beego.Router("/jsyb/3270", &JSybController{}, "post:Get3270")
64
+	//beego.Router("/jsyb/3271", &JSybController{}, "post:Get3271")
65
+	//beego.Router("/jsyb/3272", &JSybController{}, "post:Get3272")
66
+	//beego.Router("/jsyb/3273", &JSybController{}, "post:Get3273")
67
+	//beego.Router("/jsyb/3274", &JSybController{}, "post:Get3274")
68
+	//beego.Router("/jsyb/3275", &JSybController{}, "post:Get3275")
69
+	//beego.Router("/jsyb/3276", &JSybController{}, "post:Get3276")
70
+	//beego.Router("/jsyb/3277", &JSybController{}, "post:Get3277")
71
+
72
+}
73
+
74
+//
75
+//func (c *JSybController) Get3260() {
76
+//	service.Jxyb3260()
77
+//}
78
+//func (c *JSybController) Get3261() {
79
+//	service.Jxyb3261()
80
+//
81
+//}
82
+//func (c *JSybController) Get3262() {
83
+//	service.Jxyb3262()
84
+//
85
+//}
86
+//func (c *JSybController) Get3263() {
87
+//	service.Jxyb3263()
88
+//
89
+//}
90
+//func (c *JSybController) Get3264() {
91
+//	service.Jxyb3264()
92
+//
93
+//}
94
+//func (c *JSybController) Get3265() {
95
+//	service.Jxyb3265()
96
+//
97
+//}
98
+//func (c *JSybController) Get3266() {
99
+//	service.Jxyb3266()
100
+//
101
+//}
102
+//func (c *JSybController) Get3267() {
103
+//	service.Jxyb3267()
104
+//
105
+//}
106
+//func (c *JSybController) Get3268() {
107
+//	service.Jxyb3268()
108
+//
109
+//}
110
+//func (c *JSybController) Get3269() {
111
+//	service.Jxyb3269()
112
+//
113
+//}
114
+//func (c *JSybController) Get3270() {
115
+//	service.Jxyb3270()
116
+//
117
+//}
118
+//
119
+//func (c *JSybController) Get3271() {
120
+//	service.Jxyb3271()
121
+//
122
+//}
123
+//
124
+//func (c *JSybController) Get3272() {
125
+//	service.Jxyb3272()
126
+//
127
+//}
128
+//
129
+//func (c *JSybController) Get3273() {
130
+//	service.Jxyb3273()
131
+//
132
+//}
133
+//
134
+//func (c *JSybController) Get3274() {
135
+//	service.Jxyb3274()
136
+//
137
+//}
138
+//
139
+//func (c *JSybController) Get3275() {
140
+//	service.Jxyb3275()
141
+//
142
+//}
143
+//func (c *JSybController) Get3276() {
144
+//	service.Jxyb3276()
145
+//
146
+//}
147
+//func (c *JSybController) Get3277() {
148
+//	service.Jxyb3277()
149
+//}
149 150
 
150 151
 func (c *JSybController) Get3501() {
151 152
 	body, _ := ioutil.ReadAll(c.Ctx.Request.Body)

+ 317 - 286
controllers/sg/his_api_controller.go Voir le fichier

@@ -3,6 +3,8 @@ package sg
3 3
 import (
4 4
 	"archive/zip"
5 5
 	"bytes"
6
+	"math"
7
+
6 8
 	//"crypto/x509/pkix"
7 9
 	"encoding/json"
8 10
 	"fmt"
@@ -22,7 +24,7 @@ import (
22 24
 
23 25
 	"io"
24 26
 	"io/ioutil"
25
-	"math"
27
+	//"math"
26 28
 	"math/rand"
27 29
 	"net/http"
28 30
 	"net/url"
@@ -108,7 +110,7 @@ func HisManagerApiRegistRouters() {
108 110
 	beego.Router("/api/4209", &HisApiController{}, "get:Get4209")
109 111
 
110 112
 	beego.Router("/api/allopatry/get", &HisApiController{}, "get:GetAllopatry")
111
-	beego.Router("/api/comfirmallopatry/post", &HisApiController{}, "post:ComfirmAllopatry")
113
+	//beego.Router("/api/comfirmallopatry/post", &HisApiController{}, "post:ComfirmAllopatry")
112 114
 	beego.Router("/api/allopatry/refund", &HisApiController{}, "get:RefundAllopatry")
113 115
 
114 116
 	beego.Router("/api/settle/query/batch", &HisApiController{}, "get:GetBatchSettleAccounts")
@@ -128,280 +130,281 @@ func HisManagerApiRegistRouters() {
128 130
 	//beego.Router("/api/CFYLJG009", &HisApiController{}, "get:GetCFYLJG009")
129 131
 	//beego.Router("/api/2205", &HisApiController{}, "get:Get2205")
130 132
 
131
-	beego.Router("/jsyb/3260", &HisApiController{}, "get:Get3260")
132
-	beego.Router("/jsyb/3261", &HisApiController{}, "get:Get3261")
133
-	beego.Router("/jsyb/3262", &HisApiController{}, "get:Get3262")
134
-	beego.Router("/jsyb/3263", &HisApiController{}, "get:Get3263")
135
-	beego.Router("/jsyb/3264", &HisApiController{}, "get:Get3264")
136
-	beego.Router("/jsyb/3265", &HisApiController{}, "get:Get3265")
137
-	beego.Router("/jsyb/3266", &HisApiController{}, "get:Get3266")
138
-	beego.Router("/jsyb/3267", &HisApiController{}, "get:Get3267")
139
-	beego.Router("/jsyb/3268", &HisApiController{}, "get:Get3268")
140
-	beego.Router("/jsyb/3269", &HisApiController{}, "get:Get3269")
141
-	beego.Router("/jsyb/3270", &HisApiController{}, "get:Get3270")
142
-	beego.Router("/jsyb/3271", &HisApiController{}, "get:Get3271")
143
-	beego.Router("/jsyb/3272", &HisApiController{}, "get:Get3272")
144
-	beego.Router("/jsyb/3273", &HisApiController{}, "get:Get3273")
145
-	beego.Router("/jsyb/3274", &HisApiController{}, "get:Get3274")
146
-	beego.Router("/jsyb/3275", &HisApiController{}, "get:Get3275")
147
-	beego.Router("/jsyb/3276", &HisApiController{}, "get:Get3276")
148
-	beego.Router("/jsyb/3277", &HisApiController{}, "get:Get3277")
149
-
150
-}
151
-func (c *HisApiController) Get3260() {
152
-	admin_user_id, _ := c.GetInt64("admin_user_id")
153
-
154
-	curRoles, _ := service.GetAdminUserInfoByID(c.GetAdminUserInfo().CurrentOrgId, admin_user_id)
155
-	miConfig, _ := service.FindMedicalInsuranceInfo(c.GetAdminUserInfo().CurrentOrgId)
156
-	var api string
157
-	if miConfig.MdtrtareaAdmvs == "320921" {
158
-		api = "http://192.168.2.3:9532/" + "jsyb/3260?" + "org_name=" + miConfig.OrgName + "&doctor=" + curRoles.UserName + "&doctor_name=" + curRoles.UserName + "&fixmedins_code=" + miConfig.Code +
159
-			"&insuplc_admdvs=" + miConfig.MdtrtareaAdmvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&cainfo=" + miConfig.Cainfo
160
-	} else {
161
-		api = "http://192.168.5.251:9532/" + "jsyb/3260?" + "org_name=" + miConfig.OrgName + "&doctor=" + curRoles.UserName + "&doctor_name=" + curRoles.UserName + "&fixmedins_code=" + miConfig.Code +
162
-			"&insuplc_admdvs=" + miConfig.MdtrtareaAdmvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&cainfo=" + miConfig.Cainfo
163
-	}
164
-
165
-}
166
-func (c *HisApiController) Get3261() {
167
-	admin_user_id, _ := c.GetInt64("admin_user_id")
168
-
169
-	curRoles, _ := service.GetAdminUserInfoByID(c.GetAdminUserInfo().CurrentOrgId, admin_user_id)
170
-	miConfig, _ := service.FindMedicalInsuranceInfo(c.GetAdminUserInfo().CurrentOrgId)
171
-	var api string
172
-	if miConfig.MdtrtareaAdmvs == "320921" {
173
-		api = "http://192.168.2.3:9532/" + "jsyb/3260?" + "org_name=" + miConfig.OrgName + "&doctor=" + curRoles.UserName + "&doctor_name=" + curRoles.UserName + "&fixmedins_code=" + miConfig.Code +
174
-			"&insuplc_admdvs=" + miConfig.MdtrtareaAdmvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&cainfo=" + miConfig.Cainfo
175
-	} else {
176
-		api = "http://192.168.5.251:9532/" + "jsyb/3260?" + "org_name=" + miConfig.OrgName + "&doctor=" + curRoles.UserName + "&doctor_name=" + curRoles.UserName + "&fixmedins_code=" + miConfig.Code +
177
-			"&insuplc_admdvs=" + miConfig.MdtrtareaAdmvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&cainfo=" + miConfig.Cainfo
178
-	}
179
-
180
-}
181
-func (c *HisApiController) Get3262() {
182
-	admin_user_id, _ := c.GetInt64("admin_user_id")
183
-
184
-	curRoles, _ := service.GetAdminUserInfoByID(c.GetAdminUserInfo().CurrentOrgId, admin_user_id)
185
-	miConfig, _ := service.FindMedicalInsuranceInfo(c.GetAdminUserInfo().CurrentOrgId)
186
-	var api string
187
-	if miConfig.MdtrtareaAdmvs == "320921" {
188
-		api = "http://192.168.2.3:9532/" + "jsyb/3260?" + "org_name=" + miConfig.OrgName + "&doctor=" + curRoles.UserName + "&doctor_name=" + curRoles.UserName + "&fixmedins_code=" + miConfig.Code +
189
-			"&insuplc_admdvs=" + miConfig.MdtrtareaAdmvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&cainfo=" + miConfig.Cainfo
190
-	} else {
191
-		api = "http://192.168.5.251:9532/" + "jsyb/3260?" + "org_name=" + miConfig.OrgName + "&doctor=" + curRoles.UserName + "&doctor_name=" + curRoles.UserName + "&fixmedins_code=" + miConfig.Code +
192
-			"&insuplc_admdvs=" + miConfig.MdtrtareaAdmvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&cainfo=" + miConfig.Cainfo
193
-	}
194
-
195
-}
196
-func (c *HisApiController) Get3263() {
197
-	admin_user_id, _ := c.GetInt64("admin_user_id")
198
-
199
-	curRoles, _ := service.GetAdminUserInfoByID(c.GetAdminUserInfo().CurrentOrgId, admin_user_id)
200
-	miConfig, _ := service.FindMedicalInsuranceInfo(c.GetAdminUserInfo().CurrentOrgId)
201
-	var api string
202
-	if miConfig.MdtrtareaAdmvs == "320921" {
203
-		api = "http://192.168.2.3:9532/" + "jsyb/3260?" + "org_name=" + miConfig.OrgName + "&doctor=" + curRoles.UserName + "&doctor_name=" + curRoles.UserName + "&fixmedins_code=" + miConfig.Code +
204
-			"&insuplc_admdvs=" + miConfig.MdtrtareaAdmvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&cainfo=" + miConfig.Cainfo
205
-	} else {
206
-		api = "http://192.168.5.251:9532/" + "jsyb/3260?" + "org_name=" + miConfig.OrgName + "&doctor=" + curRoles.UserName + "&doctor_name=" + curRoles.UserName + "&fixmedins_code=" + miConfig.Code +
207
-			"&insuplc_admdvs=" + miConfig.MdtrtareaAdmvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&cainfo=" + miConfig.Cainfo
208
-	}
209
-
210
-}
211
-func (c *HisApiController) Get3264() {
212
-	if miConfig.MdtrtareaAdmvs == "320921" {
213
-		api = "http://192.168.2.3:9532/" + "jsyb/3264?psn_no=" + PsnNo + "&insutype=" + insutype + "&cert_no=" + cert_no + "&ipt_otp_no=" + ipt_otp_no +
214
-			"&org_name=" + miConfig.OrgName + "&doctor=" + roles.UserName + "&doctor_name=" + doctor_info.UserName + "&fixmedins_code=" + miConfig.Code +
215
-			"&insuplc_admdvs=" + insuplc_admdvs_temp + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(id_card_type, 10) + "&dept_code=" + department.Number + "&dept=" + department.Name + "&doctor_id=" + doctor_info.DoctorNumber + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&verify_number=" + psn_info.VerifyNumber + "&cainfo=" + miConfig.Cainfo
216
-
217
-	} else {
218
-		api = "http://192.168.5.251:9532/" + "jsyb/3264?psn_no=" + PsnNo + "&insutype=" + insutype + "&cert_no=" + cert_no + "&ipt_otp_no=" + ipt_otp_no +
219
-			"&org_name=" + miConfig.OrgName + "&doctor=" + roles.UserName + "&doctor_name=" + doctor_info.UserName + "&fixmedins_code=" + miConfig.Code +
220
-			"&insuplc_admdvs=" + insuplc_admdvs_temp + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(id_card_type, 10) + "&dept_code=" + department.Number + "&dept=" + department.Name + "&doctor_id=" + doctor_info.DoctorNumber + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&verify_number=" + psn_info.VerifyNumber + "&cainfo=" + miConfig.Cainfo
221
-
222
-	}
223
-
224
-}
225
-func (c *HisApiController) Get3265() {
226
-	if miConfig.MdtrtareaAdmvs == "320921" {
227
-		api = "http://192.168.2.3:9532/" + "jsyb/3265?psn_no=" + PsnNo + "&insutype=" + insutype + "&cert_no=" + cert_no + "&ipt_otp_no=" + ipt_otp_no +
228
-			"&org_name=" + miConfig.OrgName + "&doctor=" + roles.UserName + "&doctor_name=" + doctor_info.UserName + "&fixmedins_code=" + miConfig.Code +
229
-			"&insuplc_admdvs=" + insuplc_admdvs_temp + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(id_card_type, 10) + "&dept_code=" + department.Number + "&dept=" + department.Name + "&doctor_id=" + doctor_info.DoctorNumber + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&verify_number=" + psn_info.VerifyNumber + "&cainfo=" + miConfig.Cainfo
230
-
231
-	} else {
232
-		api = "http://192.168.5.251:9532/" + "jsyb/3265?psn_no=" + PsnNo + "&insutype=" + insutype + "&cert_no=" + cert_no + "&ipt_otp_no=" + ipt_otp_no +
233
-			"&org_name=" + miConfig.OrgName + "&doctor=" + roles.UserName + "&doctor_name=" + doctor_info.UserName + "&fixmedins_code=" + miConfig.Code +
234
-			"&insuplc_admdvs=" + insuplc_admdvs_temp + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(id_card_type, 10) + "&dept_code=" + department.Number + "&dept=" + department.Name + "&doctor_id=" + doctor_info.DoctorNumber + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&verify_number=" + psn_info.VerifyNumber + "&cainfo=" + miConfig.Cainfo
235
-
236
-	}
237
-}
238
-func (c *HisApiController) Get3266() {
239
-	if miConfig.MdtrtareaAdmvs == "320921" {
240
-		api = "http://192.168.2.3:9532/" + "jsyb/3266?psn_no=" + PsnNo + "&insutype=" + insutype + "&cert_no=" + cert_no + "&ipt_otp_no=" + ipt_otp_no +
241
-			"&org_name=" + miConfig.OrgName + "&doctor=" + roles.UserName + "&doctor_name=" + doctor_info.UserName + "&fixmedins_code=" + miConfig.Code +
242
-			"&insuplc_admdvs=" + insuplc_admdvs_temp + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(id_card_type, 10) + "&dept_code=" + department.Number + "&dept=" + department.Name + "&doctor_id=" + doctor_info.DoctorNumber + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&verify_number=" + psn_info.VerifyNumber + "&cainfo=" + miConfig.Cainfo
243
-
244
-	} else {
245
-		api = "http://192.168.5.251:9532/" + "jsyb/3266?psn_no=" + PsnNo + "&insutype=" + insutype + "&cert_no=" + cert_no + "&ipt_otp_no=" + ipt_otp_no +
246
-			"&org_name=" + miConfig.OrgName + "&doctor=" + roles.UserName + "&doctor_name=" + doctor_info.UserName + "&fixmedins_code=" + miConfig.Code +
247
-			"&insuplc_admdvs=" + insuplc_admdvs_temp + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(id_card_type, 10) + "&dept_code=" + department.Number + "&dept=" + department.Name + "&doctor_id=" + doctor_info.DoctorNumber + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&verify_number=" + psn_info.VerifyNumber + "&cainfo=" + miConfig.Cainfo
248
-
249
-	}
250
-
251
-}
252
-func (c *HisApiController) Get3267() {
253
-	if miConfig.MdtrtareaAdmvs == "320921" {
254
-		api = "http://192.168.2.3:9532/" + "jsyb/3267?psn_no=" + PsnNo + "&insutype=" + insutype + "&cert_no=" + cert_no + "&ipt_otp_no=" + ipt_otp_no +
255
-			"&org_name=" + miConfig.OrgName + "&doctor=" + roles.UserName + "&doctor_name=" + doctor_info.UserName + "&fixmedins_code=" + miConfig.Code +
256
-			"&insuplc_admdvs=" + insuplc_admdvs_temp + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(id_card_type, 10) + "&dept_code=" + department.Number + "&dept=" + department.Name + "&doctor_id=" + doctor_info.DoctorNumber + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&verify_number=" + psn_info.VerifyNumber + "&cainfo=" + miConfig.Cainfo
257
-
258
-	} else {
259
-		api = "http://192.168.5.251:9532/" + "jsyb/3267?psn_no=" + PsnNo + "&insutype=" + insutype + "&cert_no=" + cert_no + "&ipt_otp_no=" + ipt_otp_no +
260
-			"&org_name=" + miConfig.OrgName + "&doctor=" + roles.UserName + "&doctor_name=" + doctor_info.UserName + "&fixmedins_code=" + miConfig.Code +
261
-			"&insuplc_admdvs=" + insuplc_admdvs_temp + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(id_card_type, 10) + "&dept_code=" + department.Number + "&dept=" + department.Name + "&doctor_id=" + doctor_info.DoctorNumber + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&verify_number=" + psn_info.VerifyNumber + "&cainfo=" + miConfig.Cainfo
262
-
263
-	}
133
+	//beego.Router("/jsyb/3260", &HisApiController{}, "get:Get3260")
134
+	//beego.Router("/jsyb/3261", &HisApiController{}, "get:Get3261")
135
+	//beego.Router("/jsyb/3262", &HisApiController{}, "get:Get3262")
136
+	//beego.Router("/jsyb/3263", &HisApiController{}, "get:Get3263")
137
+	//beego.Router("/jsyb/3264", &HisApiController{}, "get:Get3264")
138
+	//beego.Router("/jsyb/3265", &HisApiController{}, "get:Get3265")
139
+	//beego.Router("/jsyb/3266", &HisApiController{}, "get:Get3266")
140
+	//beego.Router("/jsyb/3267", &HisApiController{}, "get:Get3267")
141
+	//beego.Router("/jsyb/3268", &HisApiController{}, "get:Get3268")
142
+	//beego.Router("/jsyb/3269", &HisApiController{}, "get:Get3269")
143
+	//beego.Router("/jsyb/3270", &HisApiController{}, "get:Get3270")
144
+	//beego.Router("/jsyb/3271", &HisApiController{}, "get:Get3271")
145
+	//beego.Router("/jsyb/3272", &HisApiController{}, "get:Get3272")
146
+	//beego.Router("/jsyb/3273", &HisApiController{}, "get:Get3273")
147
+	//beego.Router("/jsyb/3274", &HisApiController{}, "get:Get3274")
148
+	//beego.Router("/jsyb/3275", &HisApiController{}, "get:Get3275")
149
+	//beego.Router("/jsyb/3276", &HisApiController{}, "get:Get3276")
150
+	//beego.Router("/jsyb/3277", &HisApiController{}, "get:Get3277")
264 151
 
265 152
 }
266
-func (c *HisApiController) Get3268() {
267
-	if miConfig.MdtrtareaAdmvs == "320921" {
268
-		api = "http://192.168.2.3:9532/" + "jsyb/3268?psn_no=" + PsnNo + "&insutype=" + insutype + "&cert_no=" + cert_no + "&ipt_otp_no=" + ipt_otp_no +
269
-			"&org_name=" + miConfig.OrgName + "&doctor=" + roles.UserName + "&doctor_name=" + doctor_info.UserName + "&fixmedins_code=" + miConfig.Code +
270
-			"&insuplc_admdvs=" + insuplc_admdvs_temp + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(id_card_type, 10) + "&dept_code=" + department.Number + "&dept=" + department.Name + "&doctor_id=" + doctor_info.DoctorNumber + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&verify_number=" + psn_info.VerifyNumber + "&cainfo=" + miConfig.Cainfo
271
-
272
-	} else {
273
-		api = "http://192.168.5.251:9532/" + "jsyb/3268?psn_no=" + PsnNo + "&insutype=" + insutype + "&cert_no=" + cert_no + "&ipt_otp_no=" + ipt_otp_no +
274
-			"&org_name=" + miConfig.OrgName + "&doctor=" + roles.UserName + "&doctor_name=" + doctor_info.UserName + "&fixmedins_code=" + miConfig.Code +
275
-			"&insuplc_admdvs=" + insuplc_admdvs_temp + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(id_card_type, 10) + "&dept_code=" + department.Number + "&dept=" + department.Name + "&doctor_id=" + doctor_info.DoctorNumber + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&verify_number=" + psn_info.VerifyNumber + "&cainfo=" + miConfig.Cainfo
276
-
277
-	}
278
-
279
-}
280
-func (c *HisApiController) Get3269() {
281
-	if miConfig.MdtrtareaAdmvs == "320921" {
282
-		api = "http://192.168.2.3:9532/" + "jsyb/3269?psn_no=" + PsnNo + "&insutype=" + insutype + "&cert_no=" + cert_no + "&ipt_otp_no=" + ipt_otp_no +
283
-			"&org_name=" + miConfig.OrgName + "&doctor=" + roles.UserName + "&doctor_name=" + doctor_info.UserName + "&fixmedins_code=" + miConfig.Code +
284
-			"&insuplc_admdvs=" + insuplc_admdvs_temp + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(id_card_type, 10) + "&dept_code=" + department.Number + "&dept=" + department.Name + "&doctor_id=" + doctor_info.DoctorNumber + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&verify_number=" + psn_info.VerifyNumber + "&cainfo=" + miConfig.Cainfo
285
-
286
-	} else {
287
-		api = "http://192.168.5.251:9532/" + "jsyb/3269?psn_no=" + PsnNo + "&insutype=" + insutype + "&cert_no=" + cert_no + "&ipt_otp_no=" + ipt_otp_no +
288
-			"&org_name=" + miConfig.OrgName + "&doctor=" + roles.UserName + "&doctor_name=" + doctor_info.UserName + "&fixmedins_code=" + miConfig.Code +
289
-			"&insuplc_admdvs=" + insuplc_admdvs_temp + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(id_card_type, 10) + "&dept_code=" + department.Number + "&dept=" + department.Name + "&doctor_id=" + doctor_info.DoctorNumber + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&verify_number=" + psn_info.VerifyNumber + "&cainfo=" + miConfig.Cainfo
290
-
291
-	}
292
-
293
-}
294
-func (c *HisApiController) Get3270() {
295
-	if miConfig.MdtrtareaAdmvs == "320921" {
296
-		api = "http://192.168.2.3:9532/" + "jsyb/3270?psn_no=" + PsnNo + "&insutype=" + insutype + "&cert_no=" + cert_no + "&ipt_otp_no=" + ipt_otp_no +
297
-			"&org_name=" + miConfig.OrgName + "&doctor=" + roles.UserName + "&doctor_name=" + doctor_info.UserName + "&fixmedins_code=" + miConfig.Code +
298
-			"&insuplc_admdvs=" + insuplc_admdvs_temp + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(id_card_type, 10) + "&dept_code=" + department.Number + "&dept=" + department.Name + "&doctor_id=" + doctor_info.DoctorNumber + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&verify_number=" + psn_info.VerifyNumber + "&cainfo=" + miConfig.Cainfo
299
-
300
-	} else {
301
-		api = "http://192.168.5.251:9532/" + "jsyb/3270?psn_no=" + PsnNo + "&insutype=" + insutype + "&cert_no=" + cert_no + "&ipt_otp_no=" + ipt_otp_no +
302
-			"&org_name=" + miConfig.OrgName + "&doctor=" + roles.UserName + "&doctor_name=" + doctor_info.UserName + "&fixmedins_code=" + miConfig.Code +
303
-			"&insuplc_admdvs=" + insuplc_admdvs_temp + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(id_card_type, 10) + "&dept_code=" + department.Number + "&dept=" + department.Name + "&doctor_id=" + doctor_info.DoctorNumber + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&verify_number=" + psn_info.VerifyNumber + "&cainfo=" + miConfig.Cainfo
304
-
305
-	}
306
-
307
-}
308
-func (c *HisApiController) Get3271() {
309
-	if miConfig.MdtrtareaAdmvs == "320921" {
310
-		api = "http://192.168.2.3:9532/" + "jsyb/3271?psn_no=" + PsnNo + "&insutype=" + insutype + "&cert_no=" + cert_no + "&ipt_otp_no=" + ipt_otp_no +
311
-			"&org_name=" + miConfig.OrgName + "&doctor=" + roles.UserName + "&doctor_name=" + doctor_info.UserName + "&fixmedins_code=" + miConfig.Code +
312
-			"&insuplc_admdvs=" + insuplc_admdvs_temp + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(id_card_type, 10) + "&dept_code=" + department.Number + "&dept=" + department.Name + "&doctor_id=" + doctor_info.DoctorNumber + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&verify_number=" + psn_info.VerifyNumber + "&cainfo=" + miConfig.Cainfo
313
-
314
-	} else {
315
-		api = "http://192.168.5.251:9532/" + "jsyb/3271?psn_no=" + PsnNo + "&insutype=" + insutype + "&cert_no=" + cert_no + "&ipt_otp_no=" + ipt_otp_no +
316
-			"&org_name=" + miConfig.OrgName + "&doctor=" + roles.UserName + "&doctor_name=" + doctor_info.UserName + "&fixmedins_code=" + miConfig.Code +
317
-			"&insuplc_admdvs=" + insuplc_admdvs_temp + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(id_card_type, 10) + "&dept_code=" + department.Number + "&dept=" + department.Name + "&doctor_id=" + doctor_info.DoctorNumber + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&verify_number=" + psn_info.VerifyNumber + "&cainfo=" + miConfig.Cainfo
318
-
319
-	}
320
-
321
-}
322
-func (c *HisApiController) Get3272() {
323
-	if miConfig.MdtrtareaAdmvs == "320921" {
324
-		api = "http://192.168.2.3:9532/" + "jsyb/3272?psn_no=" + PsnNo + "&insutype=" + insutype + "&cert_no=" + cert_no + "&ipt_otp_no=" + ipt_otp_no +
325
-			"&org_name=" + miConfig.OrgName + "&doctor=" + roles.UserName + "&doctor_name=" + doctor_info.UserName + "&fixmedins_code=" + miConfig.Code +
326
-			"&insuplc_admdvs=" + insuplc_admdvs_temp + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(id_card_type, 10) + "&dept_code=" + department.Number + "&dept=" + department.Name + "&doctor_id=" + doctor_info.DoctorNumber + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&verify_number=" + psn_info.VerifyNumber + "&cainfo=" + miConfig.Cainfo
327
-
328
-	} else {
329
-		api = "http://192.168.5.251:9532/" + "jsyb/3272?psn_no=" + PsnNo + "&insutype=" + insutype + "&cert_no=" + cert_no + "&ipt_otp_no=" + ipt_otp_no +
330
-			"&org_name=" + miConfig.OrgName + "&doctor=" + roles.UserName + "&doctor_name=" + doctor_info.UserName + "&fixmedins_code=" + miConfig.Code +
331
-			"&insuplc_admdvs=" + insuplc_admdvs_temp + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(id_card_type, 10) + "&dept_code=" + department.Number + "&dept=" + department.Name + "&doctor_id=" + doctor_info.DoctorNumber + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&verify_number=" + psn_info.VerifyNumber + "&cainfo=" + miConfig.Cainfo
332
-
333
-	}
334
-
335
-}
336
-func (c *HisApiController) Get3273() {
337
-	if miConfig.MdtrtareaAdmvs == "320921" {
338
-		api = "http://192.168.2.3:9532/" + "jsyb/3273?psn_no=" + PsnNo + "&insutype=" + insutype + "&cert_no=" + cert_no + "&ipt_otp_no=" + ipt_otp_no +
339
-			"&org_name=" + miConfig.OrgName + "&doctor=" + roles.UserName + "&doctor_name=" + doctor_info.UserName + "&fixmedins_code=" + miConfig.Code +
340
-			"&insuplc_admdvs=" + insuplc_admdvs_temp + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(id_card_type, 10) + "&dept_code=" + department.Number + "&dept=" + department.Name + "&doctor_id=" + doctor_info.DoctorNumber + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&verify_number=" + psn_info.VerifyNumber + "&cainfo=" + miConfig.Cainfo
341
-
342
-	} else {
343
-		api = "http://192.168.5.251:9532/" + "jsyb/3273?psn_no=" + PsnNo + "&insutype=" + insutype + "&cert_no=" + cert_no + "&ipt_otp_no=" + ipt_otp_no +
344
-			"&org_name=" + miConfig.OrgName + "&doctor=" + roles.UserName + "&doctor_name=" + doctor_info.UserName + "&fixmedins_code=" + miConfig.Code +
345
-			"&insuplc_admdvs=" + insuplc_admdvs_temp + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(id_card_type, 10) + "&dept_code=" + department.Number + "&dept=" + department.Name + "&doctor_id=" + doctor_info.DoctorNumber + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&verify_number=" + psn_info.VerifyNumber + "&cainfo=" + miConfig.Cainfo
346
-
347
-	}
348
-
349
-}
350
-func (c *HisApiController) Get3274() {
351
-	if miConfig.MdtrtareaAdmvs == "320921" {
352
-		api = "http://192.168.2.3:9532/" + "jsyb/3274?psn_no=" + PsnNo + "&insutype=" + insutype + "&cert_no=" + cert_no + "&ipt_otp_no=" + ipt_otp_no +
353
-			"&org_name=" + miConfig.OrgName + "&doctor=" + roles.UserName + "&doctor_name=" + doctor_info.UserName + "&fixmedins_code=" + miConfig.Code +
354
-			"&insuplc_admdvs=" + insuplc_admdvs_temp + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(id_card_type, 10) + "&dept_code=" + department.Number + "&dept=" + department.Name + "&doctor_id=" + doctor_info.DoctorNumber + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&verify_number=" + psn_info.VerifyNumber + "&cainfo=" + miConfig.Cainfo
355
-
356
-	} else {
357
-		api = "http://192.168.5.251:9532/" + "jsyb/3274?psn_no=" + PsnNo + "&insutype=" + insutype + "&cert_no=" + cert_no + "&ipt_otp_no=" + ipt_otp_no +
358
-			"&org_name=" + miConfig.OrgName + "&doctor=" + roles.UserName + "&doctor_name=" + doctor_info.UserName + "&fixmedins_code=" + miConfig.Code +
359
-			"&insuplc_admdvs=" + insuplc_admdvs_temp + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(id_card_type, 10) + "&dept_code=" + department.Number + "&dept=" + department.Name + "&doctor_id=" + doctor_info.DoctorNumber + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&verify_number=" + psn_info.VerifyNumber + "&cainfo=" + miConfig.Cainfo
360
-
361
-	}
362
-
363
-}
364
-func (c *HisApiController) Get3275() {
365
-	if miConfig.MdtrtareaAdmvs == "320921" {
366
-		api = "http://192.168.2.3:9532/" + "jsyb/3275?psn_no=" + PsnNo + "&insutype=" + insutype + "&cert_no=" + cert_no + "&ipt_otp_no=" + ipt_otp_no +
367
-			"&org_name=" + miConfig.OrgName + "&doctor=" + roles.UserName + "&doctor_name=" + doctor_info.UserName + "&fixmedins_code=" + miConfig.Code +
368
-			"&insuplc_admdvs=" + insuplc_admdvs_temp + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(id_card_type, 10) + "&dept_code=" + department.Number + "&dept=" + department.Name + "&doctor_id=" + doctor_info.DoctorNumber + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&verify_number=" + psn_info.VerifyNumber + "&cainfo=" + miConfig.Cainfo
369
-
370
-	} else {
371
-		api = "http://192.168.5.251:9532/" + "jsyb/3275?psn_no=" + PsnNo + "&insutype=" + insutype + "&cert_no=" + cert_no + "&ipt_otp_no=" + ipt_otp_no +
372
-			"&org_name=" + miConfig.OrgName + "&doctor=" + roles.UserName + "&doctor_name=" + doctor_info.UserName + "&fixmedins_code=" + miConfig.Code +
373
-			"&insuplc_admdvs=" + insuplc_admdvs_temp + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(id_card_type, 10) + "&dept_code=" + department.Number + "&dept=" + department.Name + "&doctor_id=" + doctor_info.DoctorNumber + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&verify_number=" + psn_info.VerifyNumber + "&cainfo=" + miConfig.Cainfo
374
-
375
-	}
376
-
377
-}
378
-func (c *HisApiController) Get3276() {
379
-	if miConfig.MdtrtareaAdmvs == "320921" {
380
-		api = "http://192.168.2.3:9532/" + "jsyb/3276?psn_no=" + PsnNo + "&insutype=" + insutype + "&cert_no=" + cert_no + "&ipt_otp_no=" + ipt_otp_no +
381
-			"&org_name=" + miConfig.OrgName + "&doctor=" + roles.UserName + "&doctor_name=" + doctor_info.UserName + "&fixmedins_code=" + miConfig.Code +
382
-			"&insuplc_admdvs=" + insuplc_admdvs_temp + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(id_card_type, 10) + "&dept_code=" + department.Number + "&dept=" + department.Name + "&doctor_id=" + doctor_info.DoctorNumber + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&verify_number=" + psn_info.VerifyNumber + "&cainfo=" + miConfig.Cainfo
383
-
384
-	} else {
385
-		api = "http://192.168.5.251:9532/" + "jsyb/3276?psn_no=" + PsnNo + "&insutype=" + insutype + "&cert_no=" + cert_no + "&ipt_otp_no=" + ipt_otp_no +
386
-			"&org_name=" + miConfig.OrgName + "&doctor=" + roles.UserName + "&doctor_name=" + doctor_info.UserName + "&fixmedins_code=" + miConfig.Code +
387
-			"&insuplc_admdvs=" + insuplc_admdvs_temp + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(id_card_type, 10) + "&dept_code=" + department.Number + "&dept=" + department.Name + "&doctor_id=" + doctor_info.DoctorNumber + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&verify_number=" + psn_info.VerifyNumber + "&cainfo=" + miConfig.Cainfo
388
-
389
-	}
390
-
391
-}
392
-func (c *HisApiController) Get3277() {
393
-	if miConfig.MdtrtareaAdmvs == "320921" {
394
-		api = "http://192.168.2.3:9532/" + "jsyb/3277?psn_no=" + PsnNo + "&insutype=" + insutype + "&cert_no=" + cert_no + "&ipt_otp_no=" + ipt_otp_no +
395
-			"&org_name=" + miConfig.OrgName + "&doctor=" + roles.UserName + "&doctor_name=" + doctor_info.UserName + "&fixmedins_code=" + miConfig.Code +
396
-			"&insuplc_admdvs=" + insuplc_admdvs_temp + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(id_card_type, 10) + "&dept_code=" + department.Number + "&dept=" + department.Name + "&doctor_id=" + doctor_info.DoctorNumber + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&verify_number=" + psn_info.VerifyNumber + "&cainfo=" + miConfig.Cainfo
397 153
 
398
-	} else {
399
-		api = "http://192.168.5.251:9532/" + "jsyb/3277?psn_no=" + PsnNo + "&insutype=" + insutype + "&cert_no=" + cert_no + "&ipt_otp_no=" + ipt_otp_no +
400
-			"&org_name=" + miConfig.OrgName + "&doctor=" + roles.UserName + "&doctor_name=" + doctor_info.UserName + "&fixmedins_code=" + miConfig.Code +
401
-			"&insuplc_admdvs=" + insuplc_admdvs_temp + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(id_card_type, 10) + "&dept_code=" + department.Number + "&dept=" + department.Name + "&doctor_id=" + doctor_info.DoctorNumber + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&verify_number=" + psn_info.VerifyNumber + "&cainfo=" + miConfig.Cainfo
402
-
403
-	}
404
-}
154
+//func (c *HisApiController) Get3260() {
155
+//	admin_user_id, _ := c.GetInt64("admin_user_id")
156
+//
157
+//	curRoles, _ := service.GetAdminUserInfoByID(c.GetAdminUserInfo().CurrentOrgId, admin_user_id)
158
+//	miConfig, _ := service.FindMedicalInsuranceInfo(c.GetAdminUserInfo().CurrentOrgId)
159
+//	var api string
160
+//	if miConfig.MdtrtareaAdmvs == "320921" {
161
+//		api = "http://192.168.2.3:9532/" + "jsyb/3260?" + "org_name=" + miConfig.OrgName + "&doctor=" + curRoles.UserName + "&doctor_name=" + curRoles.UserName + "&fixmedins_code=" + miConfig.Code +
162
+//			"&insuplc_admdvs=" + miConfig.MdtrtareaAdmvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&cainfo=" + miConfig.Cainfo
163
+//	} else {
164
+//		api = "http://192.168.5.251:9532/" + "jsyb/3260?" + "org_name=" + miConfig.OrgName + "&doctor=" + curRoles.UserName + "&doctor_name=" + curRoles.UserName + "&fixmedins_code=" + miConfig.Code +
165
+//			"&insuplc_admdvs=" + miConfig.MdtrtareaAdmvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&cainfo=" + miConfig.Cainfo
166
+//	}
167
+//
168
+//}
169
+//func (c *HisApiController) Get3261() {
170
+//	admin_user_id, _ := c.GetInt64("admin_user_id")
171
+//
172
+//	curRoles, _ := service.GetAdminUserInfoByID(c.GetAdminUserInfo().CurrentOrgId, admin_user_id)
173
+//	miConfig, _ := service.FindMedicalInsuranceInfo(c.GetAdminUserInfo().CurrentOrgId)
174
+//	var api string
175
+//	if miConfig.MdtrtareaAdmvs == "320921" {
176
+//		api = "http://192.168.2.3:9532/" + "jsyb/3260?" + "org_name=" + miConfig.OrgName + "&doctor=" + curRoles.UserName + "&doctor_name=" + curRoles.UserName + "&fixmedins_code=" + miConfig.Code +
177
+//			"&insuplc_admdvs=" + miConfig.MdtrtareaAdmvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&cainfo=" + miConfig.Cainfo
178
+//	} else {
179
+//		api = "http://192.168.5.251:9532/" + "jsyb/3260?" + "org_name=" + miConfig.OrgName + "&doctor=" + curRoles.UserName + "&doctor_name=" + curRoles.UserName + "&fixmedins_code=" + miConfig.Code +
180
+//			"&insuplc_admdvs=" + miConfig.MdtrtareaAdmvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&cainfo=" + miConfig.Cainfo
181
+//	}
182
+//
183
+//}
184
+//func (c *HisApiController) Get3262() {
185
+//	admin_user_id, _ := c.GetInt64("admin_user_id")
186
+//
187
+//	curRoles, _ := service.GetAdminUserInfoByID(c.GetAdminUserInfo().CurrentOrgId, admin_user_id)
188
+//	miConfig, _ := service.FindMedicalInsuranceInfo(c.GetAdminUserInfo().CurrentOrgId)
189
+//	var api string
190
+//	if miConfig.MdtrtareaAdmvs == "320921" {
191
+//		api = "http://192.168.2.3:9532/" + "jsyb/3260?" + "org_name=" + miConfig.OrgName + "&doctor=" + curRoles.UserName + "&doctor_name=" + curRoles.UserName + "&fixmedins_code=" + miConfig.Code +
192
+//			"&insuplc_admdvs=" + miConfig.MdtrtareaAdmvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&cainfo=" + miConfig.Cainfo
193
+//	} else {
194
+//		api = "http://192.168.5.251:9532/" + "jsyb/3260?" + "org_name=" + miConfig.OrgName + "&doctor=" + curRoles.UserName + "&doctor_name=" + curRoles.UserName + "&fixmedins_code=" + miConfig.Code +
195
+//			"&insuplc_admdvs=" + miConfig.MdtrtareaAdmvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&cainfo=" + miConfig.Cainfo
196
+//	}
197
+//
198
+//}
199
+//func (c *HisApiController) Get3263() {
200
+//	admin_user_id, _ := c.GetInt64("admin_user_id")
201
+//
202
+//	curRoles, _ := service.GetAdminUserInfoByID(c.GetAdminUserInfo().CurrentOrgId, admin_user_id)
203
+//	miConfig, _ := service.FindMedicalInsuranceInfo(c.GetAdminUserInfo().CurrentOrgId)
204
+//	var api string
205
+//	if miConfig.MdtrtareaAdmvs == "320921" {
206
+//		api = "http://192.168.2.3:9532/" + "jsyb/3260?" + "org_name=" + miConfig.OrgName + "&doctor=" + curRoles.UserName + "&doctor_name=" + curRoles.UserName + "&fixmedins_code=" + miConfig.Code +
207
+//			"&insuplc_admdvs=" + miConfig.MdtrtareaAdmvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&cainfo=" + miConfig.Cainfo
208
+//	} else {
209
+//		api = "http://192.168.5.251:9532/" + "jsyb/3260?" + "org_name=" + miConfig.OrgName + "&doctor=" + curRoles.UserName + "&doctor_name=" + curRoles.UserName + "&fixmedins_code=" + miConfig.Code +
210
+//			"&insuplc_admdvs=" + miConfig.MdtrtareaAdmvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&cainfo=" + miConfig.Cainfo
211
+//	}
212
+//
213
+//}
214
+//func (c *HisApiController) Get3264() {
215
+//	if miConfig.MdtrtareaAdmvs == "320921" {
216
+//		api = "http://192.168.2.3:9532/" + "jsyb/3264?psn_no=" + PsnNo + "&insutype=" + insutype + "&cert_no=" + cert_no + "&ipt_otp_no=" + ipt_otp_no +
217
+//			"&org_name=" + miConfig.OrgName + "&doctor=" + roles.UserName + "&doctor_name=" + doctor_info.UserName + "&fixmedins_code=" + miConfig.Code +
218
+//			"&insuplc_admdvs=" + insuplc_admdvs_temp + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(id_card_type, 10) + "&dept_code=" + department.Number + "&dept=" + department.Name + "&doctor_id=" + doctor_info.DoctorNumber + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&verify_number=" + psn_info.VerifyNumber + "&cainfo=" + miConfig.Cainfo
219
+//
220
+//	} else {
221
+//		api = "http://192.168.5.251:9532/" + "jsyb/3264?psn_no=" + PsnNo + "&insutype=" + insutype + "&cert_no=" + cert_no + "&ipt_otp_no=" + ipt_otp_no +
222
+//			"&org_name=" + miConfig.OrgName + "&doctor=" + roles.UserName + "&doctor_name=" + doctor_info.UserName + "&fixmedins_code=" + miConfig.Code +
223
+//			"&insuplc_admdvs=" + insuplc_admdvs_temp + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(id_card_type, 10) + "&dept_code=" + department.Number + "&dept=" + department.Name + "&doctor_id=" + doctor_info.DoctorNumber + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&verify_number=" + psn_info.VerifyNumber + "&cainfo=" + miConfig.Cainfo
224
+//
225
+//	}
226
+//
227
+//}
228
+//func (c *HisApiController) Get3265() {
229
+//	if miConfig.MdtrtareaAdmvs == "320921" {
230
+//		api = "http://192.168.2.3:9532/" + "jsyb/3265?psn_no=" + PsnNo + "&insutype=" + insutype + "&cert_no=" + cert_no + "&ipt_otp_no=" + ipt_otp_no +
231
+//			"&org_name=" + miConfig.OrgName + "&doctor=" + roles.UserName + "&doctor_name=" + doctor_info.UserName + "&fixmedins_code=" + miConfig.Code +
232
+//			"&insuplc_admdvs=" + insuplc_admdvs_temp + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(id_card_type, 10) + "&dept_code=" + department.Number + "&dept=" + department.Name + "&doctor_id=" + doctor_info.DoctorNumber + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&verify_number=" + psn_info.VerifyNumber + "&cainfo=" + miConfig.Cainfo
233
+//
234
+//	} else {
235
+//		api = "http://192.168.5.251:9532/" + "jsyb/3265?psn_no=" + PsnNo + "&insutype=" + insutype + "&cert_no=" + cert_no + "&ipt_otp_no=" + ipt_otp_no +
236
+//			"&org_name=" + miConfig.OrgName + "&doctor=" + roles.UserName + "&doctor_name=" + doctor_info.UserName + "&fixmedins_code=" + miConfig.Code +
237
+//			"&insuplc_admdvs=" + insuplc_admdvs_temp + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(id_card_type, 10) + "&dept_code=" + department.Number + "&dept=" + department.Name + "&doctor_id=" + doctor_info.DoctorNumber + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&verify_number=" + psn_info.VerifyNumber + "&cainfo=" + miConfig.Cainfo
238
+//
239
+//	}
240
+//}
241
+//func (c *HisApiController) Get3266() {
242
+//	if miConfig.MdtrtareaAdmvs == "320921" {
243
+//		api = "http://192.168.2.3:9532/" + "jsyb/3266?psn_no=" + PsnNo + "&insutype=" + insutype + "&cert_no=" + cert_no + "&ipt_otp_no=" + ipt_otp_no +
244
+//			"&org_name=" + miConfig.OrgName + "&doctor=" + roles.UserName + "&doctor_name=" + doctor_info.UserName + "&fixmedins_code=" + miConfig.Code +
245
+//			"&insuplc_admdvs=" + insuplc_admdvs_temp + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(id_card_type, 10) + "&dept_code=" + department.Number + "&dept=" + department.Name + "&doctor_id=" + doctor_info.DoctorNumber + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&verify_number=" + psn_info.VerifyNumber + "&cainfo=" + miConfig.Cainfo
246
+//
247
+//	} else {
248
+//		api = "http://192.168.5.251:9532/" + "jsyb/3266?psn_no=" + PsnNo + "&insutype=" + insutype + "&cert_no=" + cert_no + "&ipt_otp_no=" + ipt_otp_no +
249
+//			"&org_name=" + miConfig.OrgName + "&doctor=" + roles.UserName + "&doctor_name=" + doctor_info.UserName + "&fixmedins_code=" + miConfig.Code +
250
+//			"&insuplc_admdvs=" + insuplc_admdvs_temp + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(id_card_type, 10) + "&dept_code=" + department.Number + "&dept=" + department.Name + "&doctor_id=" + doctor_info.DoctorNumber + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&verify_number=" + psn_info.VerifyNumber + "&cainfo=" + miConfig.Cainfo
251
+//
252
+//	}
253
+//
254
+//}
255
+//func (c *HisApiController) Get3267() {
256
+//	if miConfig.MdtrtareaAdmvs == "320921" {
257
+//		api = "http://192.168.2.3:9532/" + "jsyb/3267?psn_no=" + PsnNo + "&insutype=" + insutype + "&cert_no=" + cert_no + "&ipt_otp_no=" + ipt_otp_no +
258
+//			"&org_name=" + miConfig.OrgName + "&doctor=" + roles.UserName + "&doctor_name=" + doctor_info.UserName + "&fixmedins_code=" + miConfig.Code +
259
+//			"&insuplc_admdvs=" + insuplc_admdvs_temp + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(id_card_type, 10) + "&dept_code=" + department.Number + "&dept=" + department.Name + "&doctor_id=" + doctor_info.DoctorNumber + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&verify_number=" + psn_info.VerifyNumber + "&cainfo=" + miConfig.Cainfo
260
+//
261
+//	} else {
262
+//		api = "http://192.168.5.251:9532/" + "jsyb/3267?psn_no=" + PsnNo + "&insutype=" + insutype + "&cert_no=" + cert_no + "&ipt_otp_no=" + ipt_otp_no +
263
+//			"&org_name=" + miConfig.OrgName + "&doctor=" + roles.UserName + "&doctor_name=" + doctor_info.UserName + "&fixmedins_code=" + miConfig.Code +
264
+//			"&insuplc_admdvs=" + insuplc_admdvs_temp + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(id_card_type, 10) + "&dept_code=" + department.Number + "&dept=" + department.Name + "&doctor_id=" + doctor_info.DoctorNumber + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&verify_number=" + psn_info.VerifyNumber + "&cainfo=" + miConfig.Cainfo
265
+//
266
+//	}
267
+//
268
+//}
269
+//func (c *HisApiController) Get3268() {
270
+//	if miConfig.MdtrtareaAdmvs == "320921" {
271
+//		api = "http://192.168.2.3:9532/" + "jsyb/3268?psn_no=" + PsnNo + "&insutype=" + insutype + "&cert_no=" + cert_no + "&ipt_otp_no=" + ipt_otp_no +
272
+//			"&org_name=" + miConfig.OrgName + "&doctor=" + roles.UserName + "&doctor_name=" + doctor_info.UserName + "&fixmedins_code=" + miConfig.Code +
273
+//			"&insuplc_admdvs=" + insuplc_admdvs_temp + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(id_card_type, 10) + "&dept_code=" + department.Number + "&dept=" + department.Name + "&doctor_id=" + doctor_info.DoctorNumber + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&verify_number=" + psn_info.VerifyNumber + "&cainfo=" + miConfig.Cainfo
274
+//
275
+//	} else {
276
+//		api = "http://192.168.5.251:9532/" + "jsyb/3268?psn_no=" + PsnNo + "&insutype=" + insutype + "&cert_no=" + cert_no + "&ipt_otp_no=" + ipt_otp_no +
277
+//			"&org_name=" + miConfig.OrgName + "&doctor=" + roles.UserName + "&doctor_name=" + doctor_info.UserName + "&fixmedins_code=" + miConfig.Code +
278
+//			"&insuplc_admdvs=" + insuplc_admdvs_temp + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(id_card_type, 10) + "&dept_code=" + department.Number + "&dept=" + department.Name + "&doctor_id=" + doctor_info.DoctorNumber + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&verify_number=" + psn_info.VerifyNumber + "&cainfo=" + miConfig.Cainfo
279
+//
280
+//	}
281
+//
282
+//}
283
+//func (c *HisApiController) Get3269() {
284
+//	if miConfig.MdtrtareaAdmvs == "320921" {
285
+//		api = "http://192.168.2.3:9532/" + "jsyb/3269?psn_no=" + PsnNo + "&insutype=" + insutype + "&cert_no=" + cert_no + "&ipt_otp_no=" + ipt_otp_no +
286
+//			"&org_name=" + miConfig.OrgName + "&doctor=" + roles.UserName + "&doctor_name=" + doctor_info.UserName + "&fixmedins_code=" + miConfig.Code +
287
+//			"&insuplc_admdvs=" + insuplc_admdvs_temp + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(id_card_type, 10) + "&dept_code=" + department.Number + "&dept=" + department.Name + "&doctor_id=" + doctor_info.DoctorNumber + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&verify_number=" + psn_info.VerifyNumber + "&cainfo=" + miConfig.Cainfo
288
+//
289
+//	} else {
290
+//		api = "http://192.168.5.251:9532/" + "jsyb/3269?psn_no=" + PsnNo + "&insutype=" + insutype + "&cert_no=" + cert_no + "&ipt_otp_no=" + ipt_otp_no +
291
+//			"&org_name=" + miConfig.OrgName + "&doctor=" + roles.UserName + "&doctor_name=" + doctor_info.UserName + "&fixmedins_code=" + miConfig.Code +
292
+//			"&insuplc_admdvs=" + insuplc_admdvs_temp + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(id_card_type, 10) + "&dept_code=" + department.Number + "&dept=" + department.Name + "&doctor_id=" + doctor_info.DoctorNumber + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&verify_number=" + psn_info.VerifyNumber + "&cainfo=" + miConfig.Cainfo
293
+//
294
+//	}
295
+//
296
+//}
297
+//func (c *HisApiController) Get3270() {
298
+//	if miConfig.MdtrtareaAdmvs == "320921" {
299
+//		api = "http://192.168.2.3:9532/" + "jsyb/3270?psn_no=" + PsnNo + "&insutype=" + insutype + "&cert_no=" + cert_no + "&ipt_otp_no=" + ipt_otp_no +
300
+//			"&org_name=" + miConfig.OrgName + "&doctor=" + roles.UserName + "&doctor_name=" + doctor_info.UserName + "&fixmedins_code=" + miConfig.Code +
301
+//			"&insuplc_admdvs=" + insuplc_admdvs_temp + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(id_card_type, 10) + "&dept_code=" + department.Number + "&dept=" + department.Name + "&doctor_id=" + doctor_info.DoctorNumber + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&verify_number=" + psn_info.VerifyNumber + "&cainfo=" + miConfig.Cainfo
302
+//
303
+//	} else {
304
+//		api = "http://192.168.5.251:9532/" + "jsyb/3270?psn_no=" + PsnNo + "&insutype=" + insutype + "&cert_no=" + cert_no + "&ipt_otp_no=" + ipt_otp_no +
305
+//			"&org_name=" + miConfig.OrgName + "&doctor=" + roles.UserName + "&doctor_name=" + doctor_info.UserName + "&fixmedins_code=" + miConfig.Code +
306
+//			"&insuplc_admdvs=" + insuplc_admdvs_temp + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(id_card_type, 10) + "&dept_code=" + department.Number + "&dept=" + department.Name + "&doctor_id=" + doctor_info.DoctorNumber + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&verify_number=" + psn_info.VerifyNumber + "&cainfo=" + miConfig.Cainfo
307
+//
308
+//	}
309
+//
310
+//}
311
+//func (c *HisApiController) Get3271() {
312
+//	if miConfig.MdtrtareaAdmvs == "320921" {
313
+//		api = "http://192.168.2.3:9532/" + "jsyb/3271?psn_no=" + PsnNo + "&insutype=" + insutype + "&cert_no=" + cert_no + "&ipt_otp_no=" + ipt_otp_no +
314
+//			"&org_name=" + miConfig.OrgName + "&doctor=" + roles.UserName + "&doctor_name=" + doctor_info.UserName + "&fixmedins_code=" + miConfig.Code +
315
+//			"&insuplc_admdvs=" + insuplc_admdvs_temp + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(id_card_type, 10) + "&dept_code=" + department.Number + "&dept=" + department.Name + "&doctor_id=" + doctor_info.DoctorNumber + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&verify_number=" + psn_info.VerifyNumber + "&cainfo=" + miConfig.Cainfo
316
+//
317
+//	} else {
318
+//		api = "http://192.168.5.251:9532/" + "jsyb/3271?psn_no=" + PsnNo + "&insutype=" + insutype + "&cert_no=" + cert_no + "&ipt_otp_no=" + ipt_otp_no +
319
+//			"&org_name=" + miConfig.OrgName + "&doctor=" + roles.UserName + "&doctor_name=" + doctor_info.UserName + "&fixmedins_code=" + miConfig.Code +
320
+//			"&insuplc_admdvs=" + insuplc_admdvs_temp + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(id_card_type, 10) + "&dept_code=" + department.Number + "&dept=" + department.Name + "&doctor_id=" + doctor_info.DoctorNumber + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&verify_number=" + psn_info.VerifyNumber + "&cainfo=" + miConfig.Cainfo
321
+//
322
+//	}
323
+//
324
+//}
325
+//func (c *HisApiController) Get3272() {
326
+//	if miConfig.MdtrtareaAdmvs == "320921" {
327
+//		api = "http://192.168.2.3:9532/" + "jsyb/3272?psn_no=" + PsnNo + "&insutype=" + insutype + "&cert_no=" + cert_no + "&ipt_otp_no=" + ipt_otp_no +
328
+//			"&org_name=" + miConfig.OrgName + "&doctor=" + roles.UserName + "&doctor_name=" + doctor_info.UserName + "&fixmedins_code=" + miConfig.Code +
329
+//			"&insuplc_admdvs=" + insuplc_admdvs_temp + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(id_card_type, 10) + "&dept_code=" + department.Number + "&dept=" + department.Name + "&doctor_id=" + doctor_info.DoctorNumber + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&verify_number=" + psn_info.VerifyNumber + "&cainfo=" + miConfig.Cainfo
330
+//
331
+//	} else {
332
+//		api = "http://192.168.5.251:9532/" + "jsyb/3272?psn_no=" + PsnNo + "&insutype=" + insutype + "&cert_no=" + cert_no + "&ipt_otp_no=" + ipt_otp_no +
333
+//			"&org_name=" + miConfig.OrgName + "&doctor=" + roles.UserName + "&doctor_name=" + doctor_info.UserName + "&fixmedins_code=" + miConfig.Code +
334
+//			"&insuplc_admdvs=" + insuplc_admdvs_temp + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(id_card_type, 10) + "&dept_code=" + department.Number + "&dept=" + department.Name + "&doctor_id=" + doctor_info.DoctorNumber + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&verify_number=" + psn_info.VerifyNumber + "&cainfo=" + miConfig.Cainfo
335
+//
336
+//	}
337
+//
338
+//}
339
+//func (c *HisApiController) Get3273() {
340
+//	if miConfig.MdtrtareaAdmvs == "320921" {
341
+//		api = "http://192.168.2.3:9532/" + "jsyb/3273?psn_no=" + PsnNo + "&insutype=" + insutype + "&cert_no=" + cert_no + "&ipt_otp_no=" + ipt_otp_no +
342
+//			"&org_name=" + miConfig.OrgName + "&doctor=" + roles.UserName + "&doctor_name=" + doctor_info.UserName + "&fixmedins_code=" + miConfig.Code +
343
+//			"&insuplc_admdvs=" + insuplc_admdvs_temp + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(id_card_type, 10) + "&dept_code=" + department.Number + "&dept=" + department.Name + "&doctor_id=" + doctor_info.DoctorNumber + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&verify_number=" + psn_info.VerifyNumber + "&cainfo=" + miConfig.Cainfo
344
+//
345
+//	} else {
346
+//		api = "http://192.168.5.251:9532/" + "jsyb/3273?psn_no=" + PsnNo + "&insutype=" + insutype + "&cert_no=" + cert_no + "&ipt_otp_no=" + ipt_otp_no +
347
+//			"&org_name=" + miConfig.OrgName + "&doctor=" + roles.UserName + "&doctor_name=" + doctor_info.UserName + "&fixmedins_code=" + miConfig.Code +
348
+//			"&insuplc_admdvs=" + insuplc_admdvs_temp + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(id_card_type, 10) + "&dept_code=" + department.Number + "&dept=" + department.Name + "&doctor_id=" + doctor_info.DoctorNumber + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&verify_number=" + psn_info.VerifyNumber + "&cainfo=" + miConfig.Cainfo
349
+//
350
+//	}
351
+//
352
+//}
353
+//func (c *HisApiController) Get3274() {
354
+//	if miConfig.MdtrtareaAdmvs == "320921" {
355
+//		api = "http://192.168.2.3:9532/" + "jsyb/3274?psn_no=" + PsnNo + "&insutype=" + insutype + "&cert_no=" + cert_no + "&ipt_otp_no=" + ipt_otp_no +
356
+//			"&org_name=" + miConfig.OrgName + "&doctor=" + roles.UserName + "&doctor_name=" + doctor_info.UserName + "&fixmedins_code=" + miConfig.Code +
357
+//			"&insuplc_admdvs=" + insuplc_admdvs_temp + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(id_card_type, 10) + "&dept_code=" + department.Number + "&dept=" + department.Name + "&doctor_id=" + doctor_info.DoctorNumber + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&verify_number=" + psn_info.VerifyNumber + "&cainfo=" + miConfig.Cainfo
358
+//
359
+//	} else {
360
+//		api = "http://192.168.5.251:9532/" + "jsyb/3274?psn_no=" + PsnNo + "&insutype=" + insutype + "&cert_no=" + cert_no + "&ipt_otp_no=" + ipt_otp_no +
361
+//			"&org_name=" + miConfig.OrgName + "&doctor=" + roles.UserName + "&doctor_name=" + doctor_info.UserName + "&fixmedins_code=" + miConfig.Code +
362
+//			"&insuplc_admdvs=" + insuplc_admdvs_temp + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(id_card_type, 10) + "&dept_code=" + department.Number + "&dept=" + department.Name + "&doctor_id=" + doctor_info.DoctorNumber + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&verify_number=" + psn_info.VerifyNumber + "&cainfo=" + miConfig.Cainfo
363
+//
364
+//	}
365
+//
366
+//}
367
+//func (c *HisApiController) Get3275() {
368
+//	if miConfig.MdtrtareaAdmvs == "320921" {
369
+//		api = "http://192.168.2.3:9532/" + "jsyb/3275?psn_no=" + PsnNo + "&insutype=" + insutype + "&cert_no=" + cert_no + "&ipt_otp_no=" + ipt_otp_no +
370
+//			"&org_name=" + miConfig.OrgName + "&doctor=" + roles.UserName + "&doctor_name=" + doctor_info.UserName + "&fixmedins_code=" + miConfig.Code +
371
+//			"&insuplc_admdvs=" + insuplc_admdvs_temp + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(id_card_type, 10) + "&dept_code=" + department.Number + "&dept=" + department.Name + "&doctor_id=" + doctor_info.DoctorNumber + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&verify_number=" + psn_info.VerifyNumber + "&cainfo=" + miConfig.Cainfo
372
+//
373
+//	} else {
374
+//		api = "http://192.168.5.251:9532/" + "jsyb/3275?psn_no=" + PsnNo + "&insutype=" + insutype + "&cert_no=" + cert_no + "&ipt_otp_no=" + ipt_otp_no +
375
+//			"&org_name=" + miConfig.OrgName + "&doctor=" + roles.UserName + "&doctor_name=" + doctor_info.UserName + "&fixmedins_code=" + miConfig.Code +
376
+//			"&insuplc_admdvs=" + insuplc_admdvs_temp + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(id_card_type, 10) + "&dept_code=" + department.Number + "&dept=" + department.Name + "&doctor_id=" + doctor_info.DoctorNumber + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&verify_number=" + psn_info.VerifyNumber + "&cainfo=" + miConfig.Cainfo
377
+//
378
+//	}
379
+//
380
+//}
381
+//func (c *HisApiController) Get3276() {
382
+//	if miConfig.MdtrtareaAdmvs == "320921" {
383
+//		api = "http://192.168.2.3:9532/" + "jsyb/3276?psn_no=" + PsnNo + "&insutype=" + insutype + "&cert_no=" + cert_no + "&ipt_otp_no=" + ipt_otp_no +
384
+//			"&org_name=" + miConfig.OrgName + "&doctor=" + roles.UserName + "&doctor_name=" + doctor_info.UserName + "&fixmedins_code=" + miConfig.Code +
385
+//			"&insuplc_admdvs=" + insuplc_admdvs_temp + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(id_card_type, 10) + "&dept_code=" + department.Number + "&dept=" + department.Name + "&doctor_id=" + doctor_info.DoctorNumber + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&verify_number=" + psn_info.VerifyNumber + "&cainfo=" + miConfig.Cainfo
386
+//
387
+//	} else {
388
+//		api = "http://192.168.5.251:9532/" + "jsyb/3276?psn_no=" + PsnNo + "&insutype=" + insutype + "&cert_no=" + cert_no + "&ipt_otp_no=" + ipt_otp_no +
389
+//			"&org_name=" + miConfig.OrgName + "&doctor=" + roles.UserName + "&doctor_name=" + doctor_info.UserName + "&fixmedins_code=" + miConfig.Code +
390
+//			"&insuplc_admdvs=" + insuplc_admdvs_temp + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(id_card_type, 10) + "&dept_code=" + department.Number + "&dept=" + department.Name + "&doctor_id=" + doctor_info.DoctorNumber + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&verify_number=" + psn_info.VerifyNumber + "&cainfo=" + miConfig.Cainfo
391
+//
392
+//	}
393
+//
394
+//}
395
+//func (c *HisApiController) Get3277() {
396
+//	if miConfig.MdtrtareaAdmvs == "320921" {
397
+//		api = "http://192.168.2.3:9532/" + "jsyb/3277?psn_no=" + PsnNo + "&insutype=" + insutype + "&cert_no=" + cert_no + "&ipt_otp_no=" + ipt_otp_no +
398
+//			"&org_name=" + miConfig.OrgName + "&doctor=" + roles.UserName + "&doctor_name=" + doctor_info.UserName + "&fixmedins_code=" + miConfig.Code +
399
+//			"&insuplc_admdvs=" + insuplc_admdvs_temp + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(id_card_type, 10) + "&dept_code=" + department.Number + "&dept=" + department.Name + "&doctor_id=" + doctor_info.DoctorNumber + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&verify_number=" + psn_info.VerifyNumber + "&cainfo=" + miConfig.Cainfo
400
+//
401
+//	} else {
402
+//		api = "http://192.168.5.251:9532/" + "jsyb/3277?psn_no=" + PsnNo + "&insutype=" + insutype + "&cert_no=" + cert_no + "&ipt_otp_no=" + ipt_otp_no +
403
+//			"&org_name=" + miConfig.OrgName + "&doctor=" + roles.UserName + "&doctor_name=" + doctor_info.UserName + "&fixmedins_code=" + miConfig.Code +
404
+//			"&insuplc_admdvs=" + insuplc_admdvs_temp + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(id_card_type, 10) + "&dept_code=" + department.Number + "&dept=" + department.Name + "&doctor_id=" + doctor_info.DoctorNumber + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&verify_number=" + psn_info.VerifyNumber + "&cainfo=" + miConfig.Cainfo
405
+//
406
+//	}
407
+//}
405 408
 
406 409
 func (c *HisApiController) GetCFYLJG001() {
407 410
 	admin_user_id, _ := c.GetInt64("admin_user_id")
@@ -17808,6 +17811,7 @@ func (c *HisApiController) GetAllopatry() {
17808 17811
 		} else {
17809 17812
 			start = (curpage-1)*pagesize + 1
17810 17813
 		}
17814
+		fmt.Println(start)
17811 17815
 		//stop = curpage * pagesize
17812 17816
 		//if stop > int(res3.Output.Totalrow) {
17813 17817
 		//	stop =int(res3.Output.Totalrow)
@@ -17826,22 +17830,49 @@ func (c *HisApiController) GetAllopatry() {
17826 17830
 			c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
17827 17831
 			return
17828 17832
 		}
17829
-		//if res2.Infcode == 0 {
17830
-		//	service.Gdyb3261(miConfig.OrgName, roles.UserName, miConfig.Code, miConfig.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.SecretKey, year, month, res2, res.Output.Signinoutb.SignNo)
17831
-		//	//var dat2 map[string]interface{}
17832
-		//	//if err := json.Unmarshal([]byte(result3), &dat2); err == nil {
17833
-		//	//	fmt.Println(dat)
17834
-		//	//} else {
17835
-		//	//	fmt.Println(err)
17836
-		//	//}
17837
-		//	//c.ServeSuccessJSON(map[string]interface{}{
17838
-		//	//	"list": res2.Output.Data,
17839
-		//	//})
17840
-		//	//return
17841
-		//}
17833
+		if res2.Infcode == 0 {
17834
+			service.Gdyb3261(miConfig.OrgName, roles.UserName, miConfig.Code, miConfig.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.SecretKey, year, month, res2, res.Output.Signinoutb.SignNo)
17835
+			var dat2 map[string]interface{}
17836
+			if err := json.Unmarshal([]byte(result3), &dat2); err == nil {
17837
+				fmt.Println(dat)
17838
+			} else {
17839
+				fmt.Println(err)
17840
+			}
17841
+			//c.ServeSuccessJSON(map[string]interface{}{
17842
+			//	"list": res2.Output.Data,
17843
+			//})
17844
+			//continue
17845
+		}
17842 17846
 
17843 17847
 	}
17844 17848
 
17849
+	//result2, _ := service.Gdyb3260(miConfig.OrgName, roles.UserName, miConfig.Code, miConfig.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.SecretKey, year, month, res.Output.Signinoutb.SignNo, 101)
17850
+	//var dat2 map[string]interface{}
17851
+	//if err := json.Unmarshal([]byte(result2), &dat2); err == nil {
17852
+	//	fmt.Println(dat)
17853
+	//} else {
17854
+	//	fmt.Println(err)
17855
+	//}
17856
+	//userJSONBytes2, _ := json.Marshal(dat2)
17857
+	//var res2 models.Result3260
17858
+	//if err := json.Unmarshal(userJSONBytes2, &res2); err != nil {
17859
+	//	utils.ErrorLog("解析失败:%v", err)
17860
+	//	c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
17861
+	//	return
17862
+	//}
17863
+	//if res2.Infcode == 0 {
17864
+	//	service.Gdyb3261(miConfig.OrgName, roles.UserName, miConfig.Code, miConfig.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.SecretKey, year, month, res2, res.Output.Signinoutb.SignNo)
17865
+	//	var dat2 map[string]interface{}
17866
+	//	if err := json.Unmarshal([]byte(result3), &dat2); err == nil {
17867
+	//		fmt.Println(dat)
17868
+	//	} else {
17869
+	//		fmt.Println(err)
17870
+	//	}
17871
+	//	c.ServeSuccessJSON(map[string]interface{}{
17872
+	//		"list": res2.Output.Data,
17873
+	//	})
17874
+	//}
17875
+
17845 17876
 }
17846 17877
 
17847 17878
 func (c *HisApiController) ComfirmAllopatry() {

+ 11 - 6
main.go Voir le fichier

@@ -46,7 +46,7 @@ func main() {
46 46
 	//GetBatchSettleList()
47 47
 
48 48
 	//深圳百霖
49
-	//GetblBatchSettleList()
49
+	GetblBatchSettleList()
50 50
 
51 51
 	//深圳百霖贝尔
52 52
 	//GetbrBatchSettleList()
@@ -75,10 +75,12 @@ type ResultSeventeen struct {
75 75
 
76 76
 func GetblBatchSettleList() {
77 77
 	org_id, _ := beego.AppConfig.Int64("org_id")
78
-	var orders []*models.HisOrder
79
-	orders, _ = service.GetAllHisOrder10138()
78
+	//var orders []*models.HisOrder
79
+	var orders []*models.HisOrderError
80
+
81
+	orders, _ = service.GetOrderError10138(org_id)
80 82
 	for _, item := range orders {
81
-		order_id := item.ID
83
+		order_id := item.PatientId
82 84
 		order, _ := service.GetHisOrderByIDTwo(order_id)
83 85
 		//roles, _ := service.GetDoctorListTwo(org_id)
84 86
 		his, _ := service.GetHisPatientByNumber(order.MdtrtId)
@@ -97,6 +99,9 @@ func GetblBatchSettleList() {
97 99
 		}
98 100
 
99 101
 		sickConfig, _ := service.FindSickById(his.SickType)
102
+		if order.MedType == "1111" || order.MedType == "1112" {
103
+			order.MedType = "11"
104
+		}
100 105
 		service.Gdyb2203A(his.PsnNo, his.Number, doctor_info.UserName, department.Name, miConfig.OrgName, "14", doctor_info.DoctorNumber, miConfig.Code, his.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.SecretKey, sickConfig.ContentCode, sickConfig.ClassName, curRoles.UserName, configTwo, time.Unix(his.RecordDate, 0).Format("2006-01-02 15:04:05"))
101 106
 
102 107
 		depart, _ := service.GetDepartMentDetail(curRoles.DepartmentId)
@@ -797,7 +802,7 @@ func GetblBatchSettleList() {
797 802
 					ErrMsg:    res.ErrMsg + "解析失败",
798 803
 					Status:    1,
799 804
 					PatientId: order_id,
800
-					Stage:     10138,
805
+					Stage:     10136000,
801 806
 				}
802 807
 				service.CreateErrMsgLog(errlog)
803 808
 				continue
@@ -813,7 +818,7 @@ func GetblBatchSettleList() {
813 818
 				ErrMsg:    res.ErrMsg,
814 819
 				Status:    1,
815 820
 				PatientId: order_id,
816
-				Stage:     10138,
821
+				Stage:     10136000,
817 822
 			}
818 823
 			service.CreateErrMsgLog(errlog)
819 824
 			continue

+ 54 - 14
service/gdyb_service.go Voir le fichier

@@ -10,7 +10,6 @@ import (
10 10
 	"gdyb/models"
11 11
 	"math"
12 12
 	"strings"
13
-
14 13
 	//"gdyb/utils"
15 14
 	"github.com/astaxie/beego"
16 15
 	"io"
@@ -4917,16 +4916,18 @@ func Gdyb3261(org_name string, doctor string, fixmedins_code string, insuplc_adm
4917 4916
 		}
4918 4917
 
4919 4918
 		for _, item := range result3260.Output.Data[start-1 : stop] {
4920
-			if item.MdtrtId != "out20230406681871" && item.MdtrtId != "out20230406681868" && item.MdtrtId != "out20230418732788" {
4921
-				feedetailInfo := make(map[string]interface{})
4922
-				feedetailInfo["certno"] = item.Certno
4923
-				feedetailInfo["mdtrt_id"] = item.MdtrtId                  // 就诊 ID(来自2201接口返回)
4924
-				feedetailInfo["mdtrt_setl_time"] = item.MdtrtSetlTime     // 人员编号 (来自1101接口返回)
4925
-				feedetailInfo["setl_sn"] = item.SetlSn                    // 收费批次号
4926
-				feedetailInfo["medfee_sumamt"] = item.MedfeeSumamt        // 病种编码
4927
-				feedetailInfo["optins_pay_sumamt"] = item.OptinsPaySumamt // 处方号
4928
-				feedetailInfo["cnfm_flag"] = "1"                          // 处方号
4929
-				feedetail = append(feedetail, feedetailInfo)
4919
+			if item.MdtrtId != "out20230406681871" && item.MdtrtId != "out20230406681868" && item.MdtrtId != "out202306301104036" {
4920
+				if item.SetlSn != "420100G9000712542625" {
4921
+					feedetailInfo := make(map[string]interface{})
4922
+					feedetailInfo["certno"] = item.Certno
4923
+					feedetailInfo["mdtrt_id"] = item.MdtrtId                  // 就诊 ID(来自2201接口返回)
4924
+					feedetailInfo["mdtrt_setl_time"] = item.MdtrtSetlTime     // 人员编号 (来自1101接口返回)
4925
+					feedetailInfo["setl_sn"] = item.SetlSn                    // 收费批次号
4926
+					feedetailInfo["medfee_sumamt"] = item.MedfeeSumamt        // 病种编码
4927
+					feedetailInfo["optins_pay_sumamt"] = item.OptinsPaySumamt // 处方号
4928
+					feedetailInfo["cnfm_flag"] = "1"                          // 处方号
4929
+					feedetail = append(feedetail, feedetailInfo)
4930
+				}
4930 4931
 			}
4931 4932
 
4932 4933
 		}
@@ -4972,8 +4973,47 @@ func Gdyb3261(org_name string, doctor string, fixmedins_code string, insuplc_adm
4972 4973
 			}
4973 4974
 
4974 4975
 		}
4975
-
4976
-		inputData["totalrow"] = 314 // 人员姓名
4976
+		//for _, item := range result3260.Output.Data[start-1 : stop] {
4977
+		//	if item.SetlSn == "420100G9000712542625" {
4978
+		//		feedetailInfo := make(map[string]interface{})
4979
+		//		feedetailInfo["certno"] = item.Certno
4980
+		//		feedetailInfo["mdtrt_id"] = item.MdtrtId                  // 就诊 ID(来自2201接口返回)
4981
+		//		feedetailInfo["mdtrt_setl_time"] = item.MdtrtSetlTime     // 人员编号 (来自1101接口返回)
4982
+		//		feedetailInfo["setl_sn"] = item.SetlSn                    // 收费批次号
4983
+		//		feedetailInfo["medfee_sumamt"] = item.MedfeeSumamt        // 病种编码
4984
+		//		feedetailInfo["optins_pay_sumamt"] = item.OptinsPaySumamt // 处方号
4985
+		//		feedetailInfo["cnfm_flag"] = "0"                          // 处方号
4986
+		//		feedetail = append(feedetail, feedetailInfo)
4987
+		//	}
4988
+		//
4989
+		//}
4990
+
4991
+		inputData["totalrow"] = 180 // 人员姓名
4992
+
4993
+		// 创建一个新的 Excel 文件
4994
+		//f := excelize.NewFile()
4995
+
4996
+		// 创建一个工作表
4997
+		//index := f.NewSheet("Sheet1")
4998
+
4999
+		//for index, item := range result3260.Output.Data[start-1 : stop] {
5000
+		////	// 设置单元格的值
5001
+		//	in := strconv.FormatInt(int64(index+1),10)
5002
+		//	f.SetCellValue("Sheet1", "A" +in , item.Certno)
5003
+		//	f.SetCellValue("Sheet1", "B"+in, item.MdtrtId)
5004
+		//	f.SetCellValue("Sheet1", "C"+in, item.SetlSn)
5005
+		//}
5006
+		//
5007
+		//
5008
+		//// 设置活动工作表
5009
+		//f.SetActiveSheet(index)
5010
+		//in2 := strconv.FormatInt(int64(curpage+1),10)
5011
+		//
5012
+		//
5013
+		//// 保存文件
5014
+		//if err := f.SaveAs("output"+in2+".xlsx"); err != nil {
5015
+		//	panic(err)
5016
+		//}
4977 5017
 
4978 5018
 		input["data"] = inputData
4979 5019
 		input["detail"] = feedetail
@@ -5040,7 +5080,7 @@ func Gdyb3262(org_name string, doctor string, fixmedins_code string, insuplc_adm
5040 5080
 	inputMessage["infno"] = "3262" // 交易编码
5041 5081
 
5042 5082
 	inputData["trt_year"] = year  // 就诊凭证编号
5043
-	inputData["trt_month"] = "05" // 开始时间
5083
+	inputData["trt_month"] = "06" // 开始时间
5044 5084
 	inputData["otransid"] = "0"   // 开始时间
5045 5085
 
5046 5086
 	input["data"] = inputData

+ 7 - 2
service/his_service.go Voir le fichier

@@ -1424,7 +1424,7 @@ func GetMonthHisPrescriptionTwo(org_id int64, patient_id int64, start_time int64
1424 1424
 }
1425 1425
 
1426 1426
 func GetNewHisPatientInfoFour(org_id int64, id int64) (info models.HisPatient, err error) {
1427
-	err = readDb.Model(&models.HisPatient{}).Where("user_org_id = ? AND status = 1 AND id = ?", org_id, id).First(&info).Error
1427
+	err = readDb.Model(&models.HisPatient{}).Where("user_org_id = ? AND status = 1 AND patient_id = ?", org_id, id).First(&info).Error
1428 1428
 	return
1429 1429
 }
1430 1430
 
@@ -1491,10 +1491,15 @@ func GetAllHisOrder10106(org_id int64) (his []*models.HisOrder, err error) {
1491 1491
 }
1492 1492
 
1493 1493
 func GetAllHisOrder10138() (his []*models.HisOrder, err error) {
1494
-	err = readDb.Model(&models.HisOrder{}).Where("user_org_id = 10138  AND status = 1  AND  order_status = 2 AND setl_id <> ''  AND med_type = '14' AND setl_time >= '2023-04-01 00:00:00'").Order("setl_time asc").Find(&his).Error
1494
+	err = readDb.Model(&models.HisOrder{}).Where("user_org_id = 10138  AND status = 1  AND  order_status = 2 AND  setl_id <> ''  AND setl_time >= '2023-06-01 00:00:00' AND setl_time <= '2023-06-30 23:00:00' and mdtrt_id not like '%out%'").Order("setl_time asc").Find(&his).Error
1495 1495
 	fmt.Println(err)
1496 1496
 	return
1497 1497
 }
1498
+func GetOrderError10138(org_id int64) (order []*models.HisOrderError, err error) {
1499
+	err = readDb.Model(&models.HisOrderError{}).Where("user_org_id = ? AND status = 1 AND stage = 10139000", org_id).Find(&order).Error
1500
+	return
1501
+}
1502
+
1498 1503
 func GetAllHisOrder10278() (his []*models.HisOrder, err error) {
1499 1504
 	err = readDb.Model(&models.HisOrder{}).Where("id = 263631 and user_org_id = 10278  AND status = 1  AND  order_status = 2 AND setl_id <> ''  AND med_type = '14' AND setl_time >= '2023-04-01 00:00:00'").Order("setl_time asc").Find(&his).Error
1500 1505
 	fmt.Println(err)

+ 34 - 33
service/jsyb_service.go Voir le fichier

@@ -2166,40 +2166,41 @@ func Jxyb3264(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float6
2166 2166
 	request_url = request_url + "3264"
2167 2167
 	return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3264"), string(bytesData)
2168 2168
 }
2169
-func Jxyb3265(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float64, medfee_sumamt float64, stmt_begndate string, stmt_enddate string, setl_optins string, clr_type string, insutype string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
2170
-	// 生成签名
2171
-	timestamp := time.Now().Unix()
2172
-	// 生成输入报文
2173
-	inputMessage := SetJXInputMessage(timestamp, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs, cainfo)
2174
-	input := make(map[string]interface{})
2175
-	inputData := make(map[string]interface{})
2176
-
2177
-	solidifyId := make(map[string]interface{})
2178
-
2179
-	inputMessage["infno"] = "3265"               // 交易编码
2180
-	inputData["fixmedins_code"] = fixmedins_code // 对帐开始时间
2181
-	inputData["fixmedins_name"] = org_name       //对帐结束时间
2182
-	inputData["stmt_mon"] = ""                   //医疗费总额
2183
-	inputData["fix_fill_dept"] = ""              //对帐结束时间
2184
-	inputData["fix_fill_psn_id"] = ""            //对帐结束时间
2185
-	inputData["fix_fill_psn"] = ""               //对帐结束时间
2186
-	inputData["fix_fill_date"] = ""              //对帐结束时间
2187
-	inputData["stmt_loc"] = ""                   //医疗费总额
2188
-	inputData["upld_btch"] = ""                  //医疗费总额
2189
-
2190
-	inputData["solidifyIdList"] = "" //医疗费总额
2191 2169
 
2192
-	input["data"] = inputData
2193
-	inputMessage["input"] = input //交易输入
2194
-	bytesData, err := json.Marshal(inputMessage)
2195
-	fmt.Println(string(bytesData))
2196
-	if err != nil {
2197
-		fmt.Println(err.Error())
2198
-		return err.Error(), ""
2199
-	}
2200
-	request_url = request_url + "3265"
2201
-	return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3266"), string(bytesData)
2202
-}
2170
+//func Jxyb3265(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float64, medfee_sumamt float64, stmt_begndate string, stmt_enddate string, setl_optins string, clr_type string, insutype string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
2171
+//	// 生成签名
2172
+//	timestamp := time.Now().Unix()
2173
+//	// 生成输入报文
2174
+//	inputMessage := SetJXInputMessage(timestamp, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs, cainfo)
2175
+//	input := make(map[string]interface{})
2176
+//	inputData := make(map[string]interface{})
2177
+//
2178
+//	solidifyId := make(map[string]interface{})
2179
+//
2180
+//	inputMessage["infno"] = "3265"               // 交易编码
2181
+//	inputData["fixmedins_code"] = fixmedins_code // 对帐开始时间
2182
+//	inputData["fixmedins_name"] = org_name       //对帐结束时间
2183
+//	inputData["stmt_mon"] = ""                   //医疗费总额
2184
+//	inputData["fix_fill_dept"] = ""              //对帐结束时间
2185
+//	inputData["fix_fill_psn_id"] = ""            //对帐结束时间
2186
+//	inputData["fix_fill_psn"] = ""               //对帐结束时间
2187
+//	inputData["fix_fill_date"] = ""              //对帐结束时间
2188
+//	inputData["stmt_loc"] = ""                   //医疗费总额
2189
+//	inputData["upld_btch"] = ""                  //医疗费总额
2190
+//
2191
+//	inputData["solidifyIdList"] = "" //医疗费总额
2192
+//
2193
+//	input["data"] = inputData
2194
+//	inputMessage["input"] = input //交易输入
2195
+//	bytesData, err := json.Marshal(inputMessage)
2196
+//	fmt.Println(string(bytesData))
2197
+//	if err != nil {
2198
+//		fmt.Println(err.Error())
2199
+//		return err.Error(), ""
2200
+//	}
2201
+//	request_url = request_url + "3265"
2202
+//	return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3266"), string(bytesData)
2203
+//}
2203 2204
 func Jxyb3266(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float64, medfee_sumamt float64, stmt_begndate string, stmt_enddate string, setl_optins string, clr_type string, insutype string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
2204 2205
 	// 生成签名
2205 2206
 	timestamp := time.Now().Unix()