|
@@ -2617,6 +2617,12 @@ func (c *HisApiController) GetUploadInfo() {
|
2617
|
2617
|
var res ResultSeven
|
2618
|
2618
|
var src_resquest string
|
2619
|
2619
|
var result2 string
|
|
2620
|
+ var acct_used_flag string
|
|
2621
|
+ if pay_way == 5 {
|
|
2622
|
+ acct_used_flag = "1"
|
|
2623
|
+ } else {
|
|
2624
|
+ acct_used_flag = "0"
|
|
2625
|
+ }
|
2620
|
2626
|
if miConfig.MdtrtareaAdmvs == "421300" {
|
2621
|
2627
|
|
2622
|
2628
|
api := "http://192.168.124.4:9532/" + "hbyb/2207?psn_no=" + his.PsnNo + "&mdtrt_id=" +
|
|
@@ -2625,7 +2631,7 @@ func (c *HisApiController) GetUploadInfo() {
|
2625
|
2631
|
"&insuplc_admdvs=" + miConfig.InsuplcAdmdvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs +
|
2626
|
2632
|
"&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(his.IdCardType, 10) +
|
2627
|
2633
|
"&certificates=" + strconv.FormatInt(his.IdType, 10) + "&cert_no=" + cert_no +
|
2628
|
|
- "&insutype=" + insutype + "&total=" + allTotal + "&med_type=" + strconv.FormatInt(reg_type, 10)
|
|
2634
|
+ "&insutype=" + insutype + "&total=" + allTotal + "&med_type=" + strconv.FormatInt(reg_type, 10) + "&acct_used_flag=" + acct_used_flag
|
2629
|
2635
|
|
2630
|
2636
|
resp, requestErr := http.Get(api)
|
2631
|
2637
|
if requestErr != nil {
|
|
@@ -2656,7 +2662,7 @@ func (c *HisApiController) GetUploadInfo() {
|
2656
|
2662
|
}
|
2657
|
2663
|
|
2658
|
2664
|
} else {
|
2659
|
|
- result2, src_resquest = service.Gdyb2207(his.PsnNo, his.Number, chrg_bchno, cert_no, insutype, allTotal, miConfig.OrgName, roles.UserName, miConfig.Code, miConfig.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.SecretKey, strconv.FormatInt(reg_type, 10), his.IdCardType, 0, 0, 0, 0, his.IdType)
|
|
2665
|
+ result2, src_resquest = service.Gdyb2207(his.PsnNo, his.Number, chrg_bchno, cert_no, insutype, allTotal, miConfig.OrgName, roles.UserName, miConfig.Code, miConfig.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.SecretKey, strconv.FormatInt(reg_type, 10), his.IdCardType, 0, 0, 0, 0, his.IdType, acct_used_flag)
|
2660
|
2666
|
var dat map[string]interface{}
|
2661
|
2667
|
if err := json.Unmarshal([]byte(result2), &dat); err == nil {
|
2662
|
2668
|
fmt.Println(dat)
|
|
@@ -2859,6 +2865,13 @@ func (c *HisApiController) GetUploadInfo() {
|
2859
|
2865
|
var res ResultSeven
|
2860
|
2866
|
var src_resquest string
|
2861
|
2867
|
var result2 string
|
|
2868
|
+ var acct_used_flag string
|
|
2869
|
+
|
|
2870
|
+ if pay_way == 5 {
|
|
2871
|
+ acct_used_flag = "1"
|
|
2872
|
+ } else {
|
|
2873
|
+ acct_used_flag = "0"
|
|
2874
|
+ }
|
2862
|
2875
|
|
2863
|
2876
|
if miConfig.MdtrtareaAdmvs == "421300" {
|
2864
|
2877
|
api := "http://192.168.124.4:9532/" + "hbyb/2207?psn_no=" + his.PsnNo + "&mdtrt_id=" +
|
|
@@ -2867,7 +2880,7 @@ func (c *HisApiController) GetUploadInfo() {
|
2867
|
2880
|
"&insuplc_admdvs=" + miConfig.InsuplcAdmdvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs +
|
2868
|
2881
|
"&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(his.IdCardType, 10) +
|
2869
|
2882
|
"&certificates=" + strconv.FormatInt(his.IdType, 10) + "&cert_no=" + cert_no +
|
2870
|
|
- "&insutype=" + insutype + "&total=" + allTotal + "&med_type=" + strconv.FormatInt(reg_type, 10)
|
|
2883
|
+ "&insutype=" + insutype + "&total=" + allTotal + "&med_type=" + strconv.FormatInt(reg_type, 10) + "&acct_used_flag=" + acct_used_flag
|
2871
|
2884
|
|
2872
|
2885
|
resp, requestErr := http.Get(api)
|
2873
|
2886
|
if requestErr != nil {
|
|
@@ -2900,7 +2913,7 @@ func (c *HisApiController) GetUploadInfo() {
|
2900
|
2913
|
|
2901
|
2914
|
} else {
|
2902
|
2915
|
|
2903
|
|
- result2, src_resquest = service.Gdyb2207(his.PsnNo, his.Number, chrg_bchno, cert_no, insutype, allTotal, miConfig.OrgName, roles.UserName, miConfig.Code, miConfig.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.SecretKey, strconv.FormatInt(reg_type, 10), his.IdCardType, tempOrder.FulamtOwnpayAmt, tempOrder.OverlmtSelfPay, tempOrder.PreselfpayAmt, tempOrder.InscpScpAmt, his.IdType)
|
|
2916
|
+ result2, src_resquest = service.Gdyb2207(his.PsnNo, his.Number, chrg_bchno, cert_no, insutype, allTotal, miConfig.OrgName, roles.UserName, miConfig.Code, miConfig.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.SecretKey, strconv.FormatInt(reg_type, 10), his.IdCardType, tempOrder.FulamtOwnpayAmt, tempOrder.OverlmtSelfPay, tempOrder.PreselfpayAmt, tempOrder.InscpScpAmt, his.IdType, acct_used_flag)
|
2904
|
2917
|
var dat map[string]interface{}
|
2905
|
2918
|
if err := json.Unmarshal([]byte(result2), &dat); err == nil {
|
2906
|
2919
|
fmt.Println(dat)
|
|
@@ -4056,7 +4069,12 @@ func (c *HisApiController) GetPreUploadInfo() {
|
4056
|
4069
|
order.CvlservFlag = res.Output.Setlinfo.CvlservFlag
|
4057
|
4070
|
order.SetlTime = res.Output.Setlinfo.SetlTime
|
4058
|
4071
|
order.MdtrtCertType = res.Output.Setlinfo.MdtrtCertType
|
4059
|
|
- order.MedType = res.Output.Setlinfo.MedType
|
|
4072
|
+ if res.Output.Setlinfo.MedType == "140101" {
|
|
4073
|
+ order.MedType = "14"
|
|
4074
|
+
|
|
4075
|
+ } else {
|
|
4076
|
+ order.MedType = res.Output.Setlinfo.MedType
|
|
4077
|
+ }
|
4060
|
4078
|
order.MedfeeSumamt = res.Output.Setlinfo.MedfeeSumamt
|
4061
|
4079
|
order.FulamtOwnpayAmt = res.Output.Setlinfo.FulamtOwnpayAmt
|
4062
|
4080
|
order.OverlmtSelfPay = res.Output.Setlinfo.OverlmtSelfpay
|