|
|
|
|
225
|
case 1:
|
225
|
case 1:
|
226
|
if miConfig.MdtrtareaAdmvs == "421300" {
|
226
|
if miConfig.MdtrtareaAdmvs == "421300" {
|
227
|
var res ResultTwo
|
227
|
var res ResultTwo
|
228
|
- api := "http://192.168.3.5:9533/" + "hbyb/1101?cert_no=" + "" +
|
|
|
|
|
228
|
+ api := "http://192.168.3.5:9532/" + "hbyb/1101?cert_no=" + "" +
|
229
|
"&org_name=" + miConfig.OrgName + "&doctor=" + roles.UserName + "&fixmedins_code=" + miConfig.Code +
|
229
|
"&org_name=" + miConfig.OrgName + "&doctor=" + roles.UserName + "&fixmedins_code=" + miConfig.Code +
|
230
|
"&insuplc_admdvs=" + miConfig.InsuplcAdmdvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(id_card_type, 10) + "&card_sn=" + "" + "&certificates=" + strconv.FormatInt(certificates, 10)
|
230
|
"&insuplc_admdvs=" + miConfig.InsuplcAdmdvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(id_card_type, 10) + "&card_sn=" + "" + "&certificates=" + strconv.FormatInt(certificates, 10)
|
231
|
resp, requestErr := http.Get(api)
|
231
|
resp, requestErr := http.Get(api)
|
|
|
|
|
249
|
|
249
|
|
250
|
respJSON = respJSON["data"].(map[string]interface{})["pre"].(map[string]interface{})
|
250
|
respJSON = respJSON["data"].(map[string]interface{})["pre"].(map[string]interface{})
|
251
|
result, _ := json.Marshal(respJSON)
|
251
|
result, _ := json.Marshal(respJSON)
|
|
|
252
|
+ fmt.Println("log")
|
|
|
253
|
+ fmt.Println(string(result))
|
252
|
|
254
|
|
253
|
if err := json.Unmarshal([]byte(result), &res); err != nil {
|
255
|
if err := json.Unmarshal([]byte(result), &res); err != nil {
|
254
|
utils.ErrorLog("解析失败:%v", err)
|
256
|
utils.ErrorLog("解析失败:%v", err)
|
|
|
|
|
1813
|
if config.IsOpen == 1 {
|
1815
|
if config.IsOpen == 1 {
|
1814
|
var res ResultTwo
|
1816
|
var res ResultTwo
|
1815
|
if miConfig.MdtrtareaAdmvs == "421300" {
|
1817
|
if miConfig.MdtrtareaAdmvs == "421300" {
|
1816
|
- api := "http://192.168.3.5:9533/" + "hbyb/1101?cert_no=" + id_card +
|
|
|
|
|
1818
|
+ api := "http://192.168.3.5:9532/" + "hbyb/1101?cert_no=" + id_card +
|
1817
|
"&org_name=" + miConfig.OrgName + "&doctor=" + roles.UserName + "&fixmedins_code=" + miConfig.Code +
|
1819
|
"&org_name=" + miConfig.OrgName + "&doctor=" + roles.UserName + "&fixmedins_code=" + miConfig.Code +
|
1818
|
"&insuplc_admdvs=" + miConfig.InsuplcAdmdvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(id_card_type, 10) + "&card_sn=" + "" + "&certificates=" + strconv.FormatInt(certificates, 10)
|
1820
|
"&insuplc_admdvs=" + miConfig.InsuplcAdmdvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(id_card_type, 10) + "&card_sn=" + "" + "&certificates=" + strconv.FormatInt(certificates, 10)
|
1819
|
resp, requestErr := http.Get(api)
|
1821
|
resp, requestErr := http.Get(api)
|
|
|
|
|
1837
|
|
1839
|
|
1838
|
respJSON = respJSON["data"].(map[string]interface{})["pre"].(map[string]interface{})
|
1840
|
respJSON = respJSON["data"].(map[string]interface{})["pre"].(map[string]interface{})
|
1839
|
result, _ := json.Marshal(respJSON)
|
1841
|
result, _ := json.Marshal(respJSON)
|
|
|
1842
|
+ fmt.Println("log")
|
|
|
1843
|
+ fmt.Println(string(result))
|
1840
|
|
1844
|
|
1841
|
if err := json.Unmarshal([]byte(result), &res); err != nil {
|
1845
|
if err := json.Unmarshal([]byte(result), &res); err != nil {
|
1842
|
utils.ErrorLog("解析失败:%v", err)
|
1846
|
utils.ErrorLog("解析失败:%v", err)
|
|
|
|
|
1951
|
//insutype = "390"
|
1955
|
//insutype = "390"
|
1952
|
var resThree ResultThree
|
1956
|
var resThree ResultThree
|
1953
|
if miConfig.MdtrtareaAdmvs == "421300" {
|
1957
|
if miConfig.MdtrtareaAdmvs == "421300" {
|
1954
|
- api := "http://192.168.3.5:9533/" + "hbyb/2201?psn_no=" + res.Output.Baseinfo.PsnNo + "&insutype=" + insutype + "&cert_no=" + res.Output.Baseinfo.Certno + "&ipt_otp_no=" + ipt_otp_no +
|
|
|
|
|
1958
|
+ api := "http://192.168.3.5:9532/" + "hbyb/2201?psn_no=" + res.Output.Baseinfo.PsnNo + "&insutype=" + insutype + "&cert_no=" + res.Output.Baseinfo.Certno + "&ipt_otp_no=" + ipt_otp_no +
|
1955
|
"&org_name=" + miConfig.OrgName + "&doctor=" + roles.UserName + "&fixmedins_code=" + miConfig.Code +
|
1959
|
"&org_name=" + miConfig.OrgName + "&doctor=" + roles.UserName + "&fixmedins_code=" + miConfig.Code +
|
1956
|
"&insuplc_admdvs=" + miConfig.InsuplcAdmdvs + "&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_id
|
1960
|
"&insuplc_admdvs=" + miConfig.InsuplcAdmdvs + "&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_id
|
1957
|
resp, requestErr := http.Get(api)
|
1961
|
resp, requestErr := http.Get(api)
|
|
|
|
|
1975
|
|
1979
|
|
1976
|
respJSON = respJSON["data"].(map[string]interface{})["pre"].(map[string]interface{})
|
1980
|
respJSON = respJSON["data"].(map[string]interface{})["pre"].(map[string]interface{})
|
1977
|
result, _ := json.Marshal(respJSON)
|
1981
|
result, _ := json.Marshal(respJSON)
|
|
|
1982
|
+ fmt.Println("log")
|
|
|
1983
|
+ fmt.Println(string(result))
|
1978
|
|
1984
|
|
1979
|
if err := json.Unmarshal([]byte(result), &resThree); err != nil {
|
1985
|
if err := json.Unmarshal([]byte(result), &resThree); err != nil {
|
1980
|
utils.ErrorLog("解析失败:%v", err)
|
1986
|
utils.ErrorLog("解析失败:%v", err)
|
|
|
|
|
2179
|
data["dept"] = department.ID
|
2185
|
data["dept"] = department.ID
|
2180
|
data["config"] = config
|
2186
|
data["config"] = config
|
2181
|
bytesData, _ := json.Marshal(data)
|
2187
|
bytesData, _ := json.Marshal(data)
|
2182
|
- req, _ := http.NewRequest("POST", "http://192.168.3.5:9533/"+"hbyb/2203", bytes.NewReader(bytesData))
|
|
|
|
|
2188
|
+ req, _ := http.NewRequest("POST", "http://192.168.3.5:9532/"+"hbyb/2203", bytes.NewReader(bytesData))
|
2183
|
resp, _ := client.Do(req)
|
2189
|
resp, _ := client.Do(req)
|
2184
|
defer resp.Body.Close()
|
2190
|
defer resp.Body.Close()
|
2185
|
body, ioErr := ioutil.ReadAll(resp.Body)
|
2191
|
body, ioErr := ioutil.ReadAll(resp.Body)
|
|
|
|
|
2197
|
|
2203
|
|
2198
|
respJSON = respJSON["data"].(map[string]interface{})["pre"].(map[string]interface{})
|
2204
|
respJSON = respJSON["data"].(map[string]interface{})["pre"].(map[string]interface{})
|
2199
|
userJSONBytes, _ := json.Marshal(respJSON)
|
2205
|
userJSONBytes, _ := json.Marshal(respJSON)
|
|
|
2206
|
+ fmt.Println("log")
|
|
|
2207
|
+ fmt.Println(string(userJSONBytes))
|
2200
|
|
2208
|
|
2201
|
if err := json.Unmarshal(userJSONBytes, &res2); err != nil {
|
2209
|
if err := json.Unmarshal(userJSONBytes, &res2); err != nil {
|
2202
|
utils.ErrorLog("解析失败:%v", err)
|
2210
|
utils.ErrorLog("解析失败:%v", err)
|
|
|
|
|
2329
|
if miConfig.MdtrtareaAdmvs == "421300" {
|
2337
|
if miConfig.MdtrtareaAdmvs == "421300" {
|
2330
|
|
2338
|
|
2331
|
bytesData, _ := json.Marshal(data)
|
2339
|
bytesData, _ := json.Marshal(data)
|
2332
|
- req, _ := http.NewRequest("POST", "http://192.168.3.5:9533/"+"hbyb/2204", bytes.NewReader(bytesData))
|
|
|
|
|
2340
|
+ req, _ := http.NewRequest("POST", "http://192.168.3.5:9532/"+"hbyb/2204", bytes.NewReader(bytesData))
|
2333
|
resp, _ := client.Do(req)
|
2341
|
resp, _ := client.Do(req)
|
2334
|
defer resp.Body.Close()
|
2342
|
defer resp.Body.Close()
|
2335
|
body, ioErr := ioutil.ReadAll(resp.Body)
|
2343
|
body, ioErr := ioutil.ReadAll(resp.Body)
|
|
|
|
|
2347
|
|
2355
|
|
2348
|
respJSON = respJSON["data"].(map[string]interface{})["pre"].(map[string]interface{})
|
2356
|
respJSON = respJSON["data"].(map[string]interface{})["pre"].(map[string]interface{})
|
2349
|
userJSONBytes, _ := json.Marshal(respJSON)
|
2357
|
userJSONBytes, _ := json.Marshal(respJSON)
|
2350
|
-
|
|
|
|
|
2358
|
+ fmt.Println("log")
|
|
|
2359
|
+ fmt.Println(string(userJSONBytes))
|
2351
|
if err := json.Unmarshal(userJSONBytes, &res); err != nil {
|
2360
|
if err := json.Unmarshal(userJSONBytes, &res); err != nil {
|
2352
|
utils.ErrorLog("解析失败:%v", err)
|
2361
|
utils.ErrorLog("解析失败:%v", err)
|
2353
|
c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
|
2362
|
c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
|
|
|
|
|
2550
|
var result2 string
|
2559
|
var result2 string
|
2551
|
if miConfig.MdtrtareaAdmvs == "441300" {
|
2560
|
if miConfig.MdtrtareaAdmvs == "441300" {
|
2552
|
|
2561
|
|
2553
|
- api := "http://127.0.0.1:9533/" + "hbyb/2207?psn_no=" + his.PsnNo + "&mdtrt_id=" +
|
|
|
|
|
2562
|
+ api := "http://127.0.0.1:9532/" + "hbyb/2207?psn_no=" + his.PsnNo + "&mdtrt_id=" +
|
2554
|
his.Number + "&chrg_bchno=" + chrg_bchno + "&org_name=" + miConfig.OrgName +
|
2563
|
his.Number + "&chrg_bchno=" + chrg_bchno + "&org_name=" + miConfig.OrgName +
|
2555
|
"&doctor=" + roles.UserName + "&fixmedins_code=" + miConfig.Code +
|
2564
|
"&doctor=" + roles.UserName + "&fixmedins_code=" + miConfig.Code +
|
2556
|
"&insuplc_admdvs=" + miConfig.InsuplcAdmdvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs +
|
2565
|
"&insuplc_admdvs=" + miConfig.InsuplcAdmdvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs +
|
|
|
|
|
2788
|
var result2 string
|
2797
|
var result2 string
|
2789
|
|
2798
|
|
2790
|
if miConfig.MdtrtareaAdmvs == "421300" {
|
2799
|
if miConfig.MdtrtareaAdmvs == "421300" {
|
2791
|
- api := "http://192.168.3.5:9533/" + "hbyb/2207?psn_no=" + his.PsnNo + "&mdtrt_id=" +
|
|
|
|
|
2800
|
+ api := "http://192.168.3.5:9532/" + "hbyb/2207?psn_no=" + his.PsnNo + "&mdtrt_id=" +
|
2792
|
his.Number + "&chrg_bchno=" + chrg_bchno + "&org_name=" + miConfig.OrgName +
|
2801
|
his.Number + "&chrg_bchno=" + chrg_bchno + "&org_name=" + miConfig.OrgName +
|
2793
|
"&doctor=" + roles.UserName + "&fixmedins_code=" + miConfig.Code +
|
2802
|
"&doctor=" + roles.UserName + "&fixmedins_code=" + miConfig.Code +
|
2794
|
"&insuplc_admdvs=" + miConfig.InsuplcAdmdvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs +
|
2803
|
"&insuplc_admdvs=" + miConfig.InsuplcAdmdvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs +
|
|
|
|
|
2817
|
|
2826
|
|
2818
|
respJSON = respJSON["data"].(map[string]interface{})["pre"].(map[string]interface{})
|
2827
|
respJSON = respJSON["data"].(map[string]interface{})["pre"].(map[string]interface{})
|
2819
|
result, _ := json.Marshal(respJSON)
|
2828
|
result, _ := json.Marshal(respJSON)
|
2820
|
-
|
|
|
|
|
2829
|
+ fmt.Println("log")
|
|
|
2830
|
+ fmt.Println(string(result))
|
2821
|
if err := json.Unmarshal([]byte(result), &res); err != nil {
|
2831
|
if err := json.Unmarshal([]byte(result), &res); err != nil {
|
2822
|
utils.ErrorLog("解析失败:%v", err)
|
2832
|
utils.ErrorLog("解析失败:%v", err)
|
2823
|
c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
|
2833
|
c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
|
|
|
|
|
3540
|
data["config"] = config
|
3550
|
data["config"] = config
|
3541
|
|
3551
|
|
3542
|
bytesData, _ := json.Marshal(data)
|
3552
|
bytesData, _ := json.Marshal(data)
|
3543
|
- req, _ := http.NewRequest("POST", "http://192.168.3.5:9533/"+"hbyb/2203", bytes.NewReader(bytesData))
|
|
|
|
|
3553
|
+ req, _ := http.NewRequest("POST", "http://192.168.3.5:9532/"+"hbyb/2203", bytes.NewReader(bytesData))
|
3544
|
resp, _ := client.Do(req)
|
3554
|
resp, _ := client.Do(req)
|
3545
|
defer resp.Body.Close()
|
3555
|
defer resp.Body.Close()
|
3546
|
body, ioErr := ioutil.ReadAll(resp.Body)
|
3556
|
body, ioErr := ioutil.ReadAll(resp.Body)
|
|
|
|
|
3558
|
|
3568
|
|
3559
|
respJSON = respJSON["data"].(map[string]interface{})["pre"].(map[string]interface{})
|
3569
|
respJSON = respJSON["data"].(map[string]interface{})["pre"].(map[string]interface{})
|
3560
|
userJSONBytes, _ := json.Marshal(respJSON)
|
3570
|
userJSONBytes, _ := json.Marshal(respJSON)
|
3561
|
-
|
|
|
|
|
3571
|
+ fmt.Println("log")
|
|
|
3572
|
+ fmt.Println(string(userJSONBytes))
|
3562
|
if err := json.Unmarshal(userJSONBytes, &res2); err != nil {
|
3573
|
if err := json.Unmarshal(userJSONBytes, &res2); err != nil {
|
3563
|
utils.ErrorLog("解析失败:%v", err)
|
3574
|
utils.ErrorLog("解析失败:%v", err)
|
3564
|
c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
|
3575
|
c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
|
|
|
|
|
3679
|
var res ResultFour
|
3690
|
var res ResultFour
|
3680
|
if miConfig.MdtrtareaAdmvs == "421300" {
|
3691
|
if miConfig.MdtrtareaAdmvs == "421300" {
|
3681
|
bytesData, _ := json.Marshal(data)
|
3692
|
bytesData, _ := json.Marshal(data)
|
3682
|
- req, _ := http.NewRequest("POST", "http://192.168.3.5:9533/"+"hbyb/2204", bytes.NewReader(bytesData))
|
|
|
|
|
3693
|
+ req, _ := http.NewRequest("POST", "http://192.168.3.5:9532/"+"hbyb/2204", bytes.NewReader(bytesData))
|
3683
|
resp, _ := client.Do(req)
|
3694
|
resp, _ := client.Do(req)
|
3684
|
defer resp.Body.Close()
|
3695
|
defer resp.Body.Close()
|
3685
|
body, ioErr := ioutil.ReadAll(resp.Body)
|
3696
|
body, ioErr := ioutil.ReadAll(resp.Body)
|
|
|
|
|
3697
|
|
3708
|
|
3698
|
respJSON = respJSON["data"].(map[string]interface{})["pre"].(map[string]interface{})
|
3709
|
respJSON = respJSON["data"].(map[string]interface{})["pre"].(map[string]interface{})
|
3699
|
userJSONBytes, _ := json.Marshal(respJSON)
|
3710
|
userJSONBytes, _ := json.Marshal(respJSON)
|
3700
|
-
|
|
|
|
|
3711
|
+ fmt.Println("log")
|
|
|
3712
|
+ fmt.Println(string(userJSONBytes))
|
3701
|
if err := json.Unmarshal(userJSONBytes, &res); err != nil {
|
3713
|
if err := json.Unmarshal(userJSONBytes, &res); err != nil {
|
3702
|
utils.ErrorLog("解析失败:%v", err)
|
3714
|
utils.ErrorLog("解析失败:%v", err)
|
3703
|
c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
|
3715
|
c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
|
|
|
|
|
3888
|
|
3900
|
|
3889
|
if miConfig.MdtrtareaAdmvs == "421300" {
|
3901
|
if miConfig.MdtrtareaAdmvs == "421300" {
|
3890
|
|
3902
|
|
3891
|
- api := "http://192.168.3.5:9533/" + "hbyb/2206?psn_no=" + his.PsnNo + "&mdtrt_id=" +
|
|
|
|
|
3903
|
+ api := "http://192.168.3.5:9532/" + "hbyb/2206?psn_no=" + his.PsnNo + "&mdtrt_id=" +
|
3892
|
his.Number + "&chrg_bchno=" + chrg_bchno + "&org_name=" + miConfig.OrgName +
|
3904
|
his.Number + "&chrg_bchno=" + chrg_bchno + "&org_name=" + miConfig.OrgName +
|
3893
|
"&doctor=" + roles.UserName + "&fixmedins_code=" + miConfig.Code +
|
3905
|
"&doctor=" + roles.UserName + "&fixmedins_code=" + miConfig.Code +
|
3894
|
"&insuplc_admdvs=" + miConfig.InsuplcAdmdvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs +
|
3906
|
"&insuplc_admdvs=" + miConfig.InsuplcAdmdvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs +
|
|
|
|
|
3916
|
|
3928
|
|
3917
|
respJSON = respJSON["data"].(map[string]interface{})["pre"].(map[string]interface{})
|
3929
|
respJSON = respJSON["data"].(map[string]interface{})["pre"].(map[string]interface{})
|
3918
|
result, _ := json.Marshal(respJSON)
|
3930
|
result, _ := json.Marshal(respJSON)
|
3919
|
-
|
|
|
|
|
3931
|
+ fmt.Println("log")
|
|
|
3932
|
+ fmt.Println(string(result))
|
3920
|
if err := json.Unmarshal([]byte(result), &res); err != nil {
|
3933
|
if err := json.Unmarshal([]byte(result), &res); err != nil {
|
3921
|
utils.ErrorLog("解析失败:%v", err)
|
3934
|
utils.ErrorLog("解析失败:%v", err)
|
3922
|
c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
|
3935
|
c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
|
|
|
|
|
4298
|
var result string
|
4311
|
var result string
|
4299
|
|
4312
|
|
4300
|
if miConfig.MdtrtareaAdmvs == "421300" {
|
4313
|
if miConfig.MdtrtareaAdmvs == "421300" {
|
4301
|
- api3 := "http://192.168.3.5:9533/" + "hbyb/2208?psn_no=" + order.PsnNo +
|
|
|
|
|
4314
|
+ api3 := "http://192.168.3.5:9532/" + "hbyb/2208?psn_no=" + order.PsnNo +
|
4302
|
"&mdtrt_id=" + order.Number + "&setl_id=" + order.SetlId + "&doctor=" + roles.UserName + "&org_name=" + miConfig.OrgName + "&fixmedins_code=" + miConfig.Code +
|
4315
|
"&mdtrt_id=" + order.Number + "&setl_id=" + order.SetlId + "&doctor=" + roles.UserName + "&org_name=" + miConfig.OrgName + "&fixmedins_code=" + miConfig.Code +
|
4303
|
"&insuplc_admdvs=" + miConfig.InsuplcAdmdvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey
|
4316
|
"&insuplc_admdvs=" + miConfig.InsuplcAdmdvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey
|
4304
|
resp3, requestErr3 := http.Get(api3)
|
4317
|
resp3, requestErr3 := http.Get(api3)
|
|
|
|
|
4321
|
|
4334
|
|
4322
|
respJSON3 = respJSON3["data"].(map[string]interface{})["pre"].(map[string]interface{})
|
4335
|
respJSON3 = respJSON3["data"].(map[string]interface{})["pre"].(map[string]interface{})
|
4323
|
userJSONBytes3, _ := json.Marshal(respJSON3)
|
4336
|
userJSONBytes3, _ := json.Marshal(respJSON3)
|
4324
|
-
|
|
|
|
|
4337
|
+ fmt.Println("log")
|
|
|
4338
|
+ fmt.Println(string(userJSONBytes3))
|
4325
|
if err := json.Unmarshal(userJSONBytes3, &res); err != nil {
|
4339
|
if err := json.Unmarshal(userJSONBytes3, &res); err != nil {
|
4326
|
utils.ErrorLog("解析失败:%v", err)
|
4340
|
utils.ErrorLog("解析失败:%v", err)
|
4327
|
c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
|
4341
|
c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
|
|
|
|
|
4350
|
|
4364
|
|
4351
|
if miConfig.MdtrtareaAdmvs == "421300" {
|
4365
|
if miConfig.MdtrtareaAdmvs == "421300" {
|
4352
|
|
4366
|
|
4353
|
- api3 := "http://192.168.3.5:9533/" + "hbyb/2205?psn_no=" + order.PsnNo +
|
|
|
|
|
4367
|
+ api3 := "http://192.168.3.5:9532/" + "hbyb/2205?psn_no=" + order.PsnNo +
|
4354
|
"&mdtrt_id=" + order.Number + "&chrg_bchno=" + order.Number + "&doctor=" + roles.UserName + "&org_name=" + miConfig.OrgName + "&fixmedins_code=" + miConfig.Code +
|
4368
|
"&mdtrt_id=" + order.Number + "&chrg_bchno=" + order.Number + "&doctor=" + roles.UserName + "&org_name=" + miConfig.OrgName + "&fixmedins_code=" + miConfig.Code +
|
4355
|
"&insuplc_admdvs=" + miConfig.InsuplcAdmdvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey
|
4369
|
"&insuplc_admdvs=" + miConfig.InsuplcAdmdvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey
|
4356
|
resp3, requestErr3 := http.Get(api3)
|
4370
|
resp3, requestErr3 := http.Get(api3)
|
|
|
|
|
4373
|
|
4387
|
|
4374
|
respJSON3 = respJSON3["data"].(map[string]interface{})["pre"].(map[string]interface{})
|
4388
|
respJSON3 = respJSON3["data"].(map[string]interface{})["pre"].(map[string]interface{})
|
4375
|
userJSONBytes3, _ := json.Marshal(respJSON3)
|
4389
|
userJSONBytes3, _ := json.Marshal(respJSON3)
|
4376
|
-
|
|
|
|
|
4390
|
+ fmt.Println("log")
|
|
|
4391
|
+ fmt.Println(string(userJSONBytes3))
|
4377
|
if err := json.Unmarshal(userJSONBytes3, &res2); err != nil {
|
4392
|
if err := json.Unmarshal(userJSONBytes3, &res2); err != nil {
|
4378
|
utils.ErrorLog("解析失败:%v", err)
|
4393
|
utils.ErrorLog("解析失败:%v", err)
|
4379
|
c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
|
4394
|
c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
|
|
|
|
|
4463
|
var res2 ResultSix
|
4478
|
var res2 ResultSix
|
4464
|
if miConfig.MdtrtareaAdmvs == "421300" {
|
4479
|
if miConfig.MdtrtareaAdmvs == "421300" {
|
4465
|
|
4480
|
|
4466
|
- api3 := "http://192.168.3.5:9533/" + "hbyb/2202?psn_no=" + his.PsnNo +
|
|
|
|
|
4481
|
+ api3 := "http://192.168.3.5:9532/" + "hbyb/2202?psn_no=" + his.PsnNo +
|
4467
|
"&mdtrt_id=" + his.Number + "&ipt_otp_no=" + his.IptOtpNo + "&doctor=" + roles.UserName + "&org_name=" + miConfig.OrgName + "&fixmedins_code=" + miConfig.Code +
|
4482
|
"&mdtrt_id=" + his.Number + "&ipt_otp_no=" + his.IptOtpNo + "&doctor=" + roles.UserName + "&org_name=" + miConfig.OrgName + "&fixmedins_code=" + miConfig.Code +
|
4468
|
"&insuplc_admdvs=" + miConfig.InsuplcAdmdvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey
|
4483
|
"&insuplc_admdvs=" + miConfig.InsuplcAdmdvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey
|
4469
|
resp3, requestErr3 := http.Get(api3)
|
4484
|
resp3, requestErr3 := http.Get(api3)
|
|
|
|
|
4487
|
|
4502
|
|
4488
|
respJSON3 = respJSON3["data"].(map[string]interface{})["pre"].(map[string]interface{})
|
4503
|
respJSON3 = respJSON3["data"].(map[string]interface{})["pre"].(map[string]interface{})
|
4489
|
userJSONBytes3, _ := json.Marshal(respJSON3)
|
4504
|
userJSONBytes3, _ := json.Marshal(respJSON3)
|
4490
|
-
|
|
|
|
|
4505
|
+ fmt.Println("log")
|
|
|
4506
|
+ fmt.Println(string(userJSONBytes3))
|
4491
|
if err := json.Unmarshal(userJSONBytes3, &res2); err != nil {
|
4507
|
if err := json.Unmarshal(userJSONBytes3, &res2); err != nil {
|
4492
|
utils.ErrorLog("解析失败:%v", err)
|
4508
|
utils.ErrorLog("解析失败:%v", err)
|
4493
|
c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
|
4509
|
c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
|
|
|
|
|
5233
|
if config.IsOpen == 1 {
|
5249
|
if config.IsOpen == 1 {
|
5234
|
if miConfig.MdtrtareaAdmvs == "421300" {
|
5250
|
if miConfig.MdtrtareaAdmvs == "421300" {
|
5235
|
|
5251
|
|
5236
|
- api := "http://192.168.3.5:9533/" + "hbyb/5203?psn_no=" + businessParams.PsnNo + "&mdtrt_id=" + businessParams.MdtrtId + "&setl_id=" + businessParams.SetlId +
|
|
|
|
|
5252
|
+ api := "http://192.168.3.5:9532/" + "hbyb/5203?psn_no=" + businessParams.PsnNo + "&mdtrt_id=" + businessParams.MdtrtId + "&setl_id=" + businessParams.SetlId +
|
5237
|
"&org_name=" + miConfig.OrgName + "&doctor=" + baseParams.Doctor + "&fixmedins_code=" + miConfig.Code +
|
5253
|
"&org_name=" + miConfig.OrgName + "&doctor=" + baseParams.Doctor + "&fixmedins_code=" + miConfig.Code +
|
5238
|
"&insuplc_admdvs=" + miConfig.InsuplcAdmdvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey
|
5254
|
"&insuplc_admdvs=" + miConfig.InsuplcAdmdvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey
|
5239
|
resp, requestErr := http.Get(api)
|
5255
|
resp, requestErr := http.Get(api)
|
|
|
|
|
5257
|
|
5273
|
|
5258
|
respJSON = respJSON["data"].(map[string]interface{})["pre"].(map[string]interface{})
|
5274
|
respJSON = respJSON["data"].(map[string]interface{})["pre"].(map[string]interface{})
|
5259
|
result, _ := json.Marshal(respJSON)
|
5275
|
result, _ := json.Marshal(respJSON)
|
5260
|
-
|
|
|
|
|
5276
|
+ fmt.Println("log")
|
|
|
5277
|
+ fmt.Println(string(result))
|
5261
|
if err := json.Unmarshal([]byte(result), &res); err != nil {
|
5278
|
if err := json.Unmarshal([]byte(result), &res); err != nil {
|
5262
|
utils.ErrorLog("解析失败:%v", err)
|
5279
|
utils.ErrorLog("解析失败:%v", err)
|
5263
|
c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
|
5280
|
c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
|