|
@@ -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() {
|