|
@@ -3558,11 +3558,18 @@ func (c *HisApiController) GetUploadInfo() {
|
3558
|
3558
|
fmt.Println("log")
|
3559
|
3559
|
fmt.Println(string(userJSONBytes))
|
3560
|
3560
|
|
3561
|
|
- if err := json.Unmarshal(userJSONBytes, &res2); err != nil {
|
|
3561
|
+ if err := json.Unmarshal(userJSONBytes, &ressix10265); err != nil {
|
3562
|
3562
|
utils.ErrorLog("解析失败:%v", err)
|
3563
|
3563
|
c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
|
3564
|
3564
|
return
|
3565
|
3565
|
}
|
|
3566
|
+ res2.InfRefmsgid = ressix10265.InfRefmsgid
|
|
3567
|
+ res2.Output = ressix10265.Output
|
|
3568
|
+ res2.ErrMsg = ressix10265.ErrMsg
|
|
3569
|
+ res2.Cainfo = ressix10265.Cainfo
|
|
3570
|
+ res2.WarnMsg = ressix10265.WarnMsg
|
|
3571
|
+ infocode, _ := strconv.ParseInt(ressix10265.Infcode, 10, 64)
|
|
3572
|
+ res2.Infcode = infocode
|
3566
|
3573
|
|
3567
|
3574
|
} else {
|
3568
|
3575
|
if miConfig.MdtrtareaAdmvs == "440781" { //
|
|
@@ -3781,11 +3788,18 @@ func (c *HisApiController) GetUploadInfo() {
|
3781
|
3788
|
userJSONBytes, _ := json.Marshal(respJSON)
|
3782
|
3789
|
fmt.Println("log")
|
3783
|
3790
|
fmt.Println(string(userJSONBytes))
|
3784
|
|
- if err := json.Unmarshal(userJSONBytes, &res); err != nil {
|
|
3791
|
+ if err := json.Unmarshal(userJSONBytes, &resFour10265); err != nil {
|
3785
|
3792
|
utils.ErrorLog("解析失败:%v", err)
|
3786
|
3793
|
c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
|
3787
|
3794
|
return
|
3788
|
3795
|
}
|
|
3796
|
+ res.InfRefmsgid = resFour10265.InfRefmsgid
|
|
3797
|
+ res.Output = resFour10265.Output
|
|
3798
|
+ res.ErrMsg = resFour10265.ErrMsg
|
|
3799
|
+ res.Cainfo = resFour10265.Cainfo
|
|
3800
|
+ res.WarnMsg = resFour10265.WarnMsg
|
|
3801
|
+ infocode, _ := strconv.ParseInt(resFour10265.Infcode, 10, 64)
|
|
3802
|
+ res.Infcode = infocode
|
3789
|
3803
|
|
3790
|
3804
|
} else {
|
3791
|
3805
|
|
|
@@ -4126,12 +4140,20 @@ func (c *HisApiController) GetUploadInfo() {
|
4126
|
4140
|
respJSON = respJSON["data"].(map[string]interface{})["pre"].(map[string]interface{})
|
4127
|
4141
|
result, _ := json.Marshal(respJSON)
|
4128
|
4142
|
|
4129
|
|
- if err := json.Unmarshal([]byte(result), &res); err != nil {
|
|
4143
|
+ if err := json.Unmarshal([]byte(result), &resSeven10265); err != nil {
|
4130
|
4144
|
utils.ErrorLog("解析失败:%v", err)
|
4131
|
4145
|
c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
|
4132
|
4146
|
return
|
4133
|
4147
|
}
|
4134
|
4148
|
|
|
4149
|
+ res.InfRefmsgid = resSeven10265.InfRefmsgid
|
|
4150
|
+ res.Output = resSeven10265.Output
|
|
4151
|
+ res.ErrMsg = resSeven10265.ErrMsg
|
|
4152
|
+ res.Cainfo = resSeven10265.Cainfo
|
|
4153
|
+ res.WarnMsg = resSeven10265.WarnMsg
|
|
4154
|
+ infocode, _ := strconv.ParseInt(resSeven10265.Infcode, 10, 64)
|
|
4155
|
+ res.Infcode = infocode
|
|
4156
|
+
|
4135
|
4157
|
} else {
|
4136
|
4158
|
if miConfig.Code == "H15049901371" {
|
4137
|
4159
|
//赤峰地区国家医保医疗类别
|
|
@@ -4469,12 +4491,20 @@ func (c *HisApiController) GetUploadInfo() {
|
4469
|
4491
|
result, _ := json.Marshal(respJSON)
|
4470
|
4492
|
fmt.Println("log")
|
4471
|
4493
|
fmt.Println(string(result))
|
4472
|
|
- if err := json.Unmarshal([]byte(result), &res); err != nil {
|
|
4494
|
+ if err := json.Unmarshal([]byte(result), &resSeven10265); err != nil {
|
4473
|
4495
|
utils.ErrorLog("解析失败:%v", err)
|
4474
|
4496
|
c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
|
4475
|
4497
|
return
|
4476
|
4498
|
}
|
4477
|
4499
|
|
|
4500
|
+ res.InfRefmsgid = resSeven10265.InfRefmsgid
|
|
4501
|
+ res.Output = resSeven10265.Output
|
|
4502
|
+ res.ErrMsg = resSeven10265.ErrMsg
|
|
4503
|
+ res.Cainfo = resSeven10265.Cainfo
|
|
4504
|
+ res.WarnMsg = resSeven10265.WarnMsg
|
|
4505
|
+ infocode, _ := strconv.ParseInt(resSeven10265.Infcode, 10, 64)
|
|
4506
|
+ res.Infcode = infocode
|
|
4507
|
+
|
4478
|
4508
|
} else {
|
4479
|
4509
|
|
4480
|
4510
|
var src_resquest string
|
|
@@ -6258,12 +6288,20 @@ func (c *HisApiController) Refund() {
|
6258
|
6288
|
|
6259
|
6289
|
respJSON3 = respJSON3["data"].(map[string]interface{})["pre"].(map[string]interface{})
|
6260
|
6290
|
userJSONBytes3, _ := json.Marshal(respJSON3)
|
6261
|
|
- if err := json.Unmarshal(userJSONBytes3, &res); err != nil {
|
|
6291
|
+ if err := json.Unmarshal(userJSONBytes3, &resSixteen10265); err != nil {
|
6262
|
6292
|
utils.ErrorLog("解析失败:%v", err)
|
6263
|
6293
|
c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
|
6264
|
6294
|
return
|
6265
|
6295
|
}
|
6266
|
6296
|
|
|
6297
|
+ res.InfRefmsgid = resSixteen10265.InfRefmsgid
|
|
6298
|
+ res.Output = resSixteen10265.Output
|
|
6299
|
+ res.ErrMsg = resSixteen10265.ErrMsg
|
|
6300
|
+ res.Cainfo = resSixteen10265.Cainfo
|
|
6301
|
+ res.WarnMsg = resSixteen10265.WarnMsg
|
|
6302
|
+ infocode, _ := strconv.ParseInt(resSixteen10265.Infcode, 10, 64)
|
|
6303
|
+ res.Infcode = infocode
|
|
6304
|
+
|
6267
|
6305
|
} else {
|
6268
|
6306
|
|
6269
|
6307
|
if miConfig.Code == "H15049901371" {
|
|
@@ -6375,12 +6413,20 @@ func (c *HisApiController) Refund() {
|
6375
|
6413
|
userJSONBytes3, _ := json.Marshal(respJSON3)
|
6376
|
6414
|
fmt.Println("log")
|
6377
|
6415
|
fmt.Println(string(userJSONBytes3))
|
6378
|
|
- if err := json.Unmarshal(userJSONBytes3, &res2); err != nil {
|
|
6416
|
+ if err := json.Unmarshal(userJSONBytes3, &resSix10265); err != nil {
|
6379
|
6417
|
utils.ErrorLog("解析失败:%v", err)
|
6380
|
6418
|
c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
|
6381
|
6419
|
return
|
6382
|
6420
|
}
|
6383
|
6421
|
|
|
6422
|
+ res2.InfRefmsgid = resSix10265.InfRefmsgid
|
|
6423
|
+ res2.Output = resSix10265.Output
|
|
6424
|
+ res2.ErrMsg = resSix10265.ErrMsg
|
|
6425
|
+ res2.Cainfo = resSix10265.Cainfo
|
|
6426
|
+ res2.WarnMsg = resSix10265.WarnMsg
|
|
6427
|
+ infocode, _ := strconv.ParseInt(resSix10265.Infcode, 10, 64)
|
|
6428
|
+ res2.Infcode = infocode
|
|
6429
|
+
|
6384
|
6430
|
} else {
|
6385
|
6431
|
|
6386
|
6432
|
if miConfig.Code == "H15049901371" {
|
|
@@ -6548,14 +6594,20 @@ func (c *HisApiController) RefundNumber() {
|
6548
|
6594
|
|
6549
|
6595
|
respJSON3 = respJSON3["data"].(map[string]interface{})["pre"].(map[string]interface{})
|
6550
|
6596
|
userJSONBytes3, _ := json.Marshal(respJSON3)
|
6551
|
|
- fmt.Println("log")
|
6552
|
|
- fmt.Println(string(userJSONBytes3))
|
6553
|
|
- if err := json.Unmarshal(userJSONBytes3, &res2); err != nil {
|
|
6597
|
+ if err := json.Unmarshal(userJSONBytes3, &resSix10265); err != nil {
|
6554
|
6598
|
utils.ErrorLog("解析失败:%v", err)
|
6555
|
6599
|
c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
|
6556
|
6600
|
return
|
6557
|
6601
|
}
|
6558
|
6602
|
|
|
6603
|
+ res2.InfRefmsgid = resSix10265.InfRefmsgid
|
|
6604
|
+ res2.Output = resSix10265.Output
|
|
6605
|
+ res2.ErrMsg = resSix10265.ErrMsg
|
|
6606
|
+ res2.Cainfo = resSix10265.Cainfo
|
|
6607
|
+ res2.WarnMsg = resSix10265.WarnMsg
|
|
6608
|
+ infocode, _ := strconv.ParseInt(resSix10265.Infcode, 10, 64)
|
|
6609
|
+ res2.Infcode = infocode
|
|
6610
|
+
|
6559
|
6611
|
} else {
|
6560
|
6612
|
var api3 string
|
6561
|
6613
|
|
|
@@ -6731,6 +6783,8 @@ func (c *HisApiController) RefundDetail() {
|
6731
|
6783
|
return
|
6732
|
6784
|
}
|
6733
|
6785
|
} else if miConfig.MdtrtareaAdmvs == "320921" {
|
|
6786
|
+ var resSix10265 ResultSix10265
|
|
6787
|
+
|
6734
|
6788
|
api3 := "http://192.168.3.111:9532/" + "jsyb/2205?psn_no=" + order.PsnNo +
|
6735
|
6789
|
"&mdtrt_id=" + order.MdtrtId + "&chrg_bchno=" + order.Number + "&doctor=" + patientPrescription.Doctor + "&org_name=" + miConfig.OrgName + "&fixmedins_code=" + miConfig.Code +
|
6736
|
6790
|
"&insuplc_admdvs=" + miConfig.InsuplcAdmdvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&url=" + miConfig.Url + "&ak=" + miConfig.ChannelNumber
|
|
@@ -6756,12 +6810,20 @@ func (c *HisApiController) RefundDetail() {
|
6756
|
6810
|
userJSONBytes3, _ := json.Marshal(respJSON3)
|
6757
|
6811
|
fmt.Println("log")
|
6758
|
6812
|
fmt.Println(string(userJSONBytes3))
|
6759
|
|
- if err := json.Unmarshal(userJSONBytes3, &res2); err != nil {
|
|
6813
|
+ if err := json.Unmarshal(userJSONBytes3, &resSix10265); err != nil {
|
6760
|
6814
|
utils.ErrorLog("解析失败:%v", err)
|
6761
|
6815
|
c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
|
6762
|
6816
|
return
|
6763
|
6817
|
}
|
6764
|
6818
|
|
|
6819
|
+ res2.InfRefmsgid = resSix10265.InfRefmsgid
|
|
6820
|
+ res2.Output = resSix10265.Output
|
|
6821
|
+ res2.ErrMsg = resSix10265.ErrMsg
|
|
6822
|
+ res2.Cainfo = resSix10265.Cainfo
|
|
6823
|
+ res2.WarnMsg = resSix10265.WarnMsg
|
|
6824
|
+ infocode, _ := strconv.ParseInt(resSix10265.Infcode, 10, 64)
|
|
6825
|
+ res2.Infcode = infocode
|
|
6826
|
+
|
6765
|
6827
|
err := service.UpdataOrderStatus(order_id, number, adminUser.CurrentOrgId, "", "")
|
6766
|
6828
|
if err == nil {
|
6767
|
6829
|
c.ServeSuccessJSON(map[string]interface{}{
|
|
@@ -7492,12 +7554,20 @@ func (c *HisApiController) GetSettleAccounts() {
|
7492
|
7554
|
result, _ := json.Marshal(respJSON)
|
7493
|
7555
|
fmt.Println("log")
|
7494
|
7556
|
fmt.Println(string(result))
|
7495
|
|
- if err := json.Unmarshal([]byte(result), &res); err != nil {
|
|
7557
|
+ if err := json.Unmarshal([]byte(result), &resEleven10265); err != nil {
|
7496
|
7558
|
utils.ErrorLog("解析失败:%v", err)
|
7497
|
7559
|
c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
|
7498
|
7560
|
return
|
7499
|
7561
|
}
|
7500
|
7562
|
|
|
7563
|
+ res.InfRefmsgid = resEleven10265.InfRefmsgid
|
|
7564
|
+ res.Output = resEleven10265.Output
|
|
7565
|
+ res.ErrMsg = resEleven10265.ErrMsg
|
|
7566
|
+ res.Cainfo = resEleven10265.Cainfo
|
|
7567
|
+ res.WarnMsg = resEleven10265.WarnMsg
|
|
7568
|
+ infocode, _ := strconv.ParseInt(resEleven10265.Infcode, 10, 64)
|
|
7569
|
+ res.Infcode = infocode
|
|
7570
|
+
|
7501
|
7571
|
} else {
|
7502
|
7572
|
result2 := service.Gdyb5204(baseParams, businessParams)
|
7503
|
7573
|
saveLog(result2, "", "5204", "查询")
|