|
@@ -149,7 +149,7 @@ func Jsyb1101(certNo string, org_name string, doctor string, fixmedins_code stri
|
149
|
149
|
return HttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData)), inputLog
|
150
|
150
|
}
|
151
|
151
|
|
152
|
|
-//人员基本信息版本2
|
|
152
|
+// 人员基本信息版本2
|
153
|
153
|
func Jsyb1101A(certNo string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, secret_key string, id_card_type int64, card_sn string, certificates string, request_url string, access_key string, pBusiCardInfo string, id_card_no string, cainfo string) (string, string) {
|
154
|
154
|
timestamp := time.Now().Unix()
|
155
|
155
|
//生成输入报文
|
|
@@ -475,7 +475,7 @@ func Jsyb2203A(psnNo string, mdtrtId string, doctor string, department string, o
|
475
|
475
|
return HttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData)), requestLog
|
476
|
476
|
}
|
477
|
477
|
|
478
|
|
-// 门诊费用明细信息上传
|
|
478
|
+// 门诊费用明细信息上传
|
479
|
479
|
func Jsyb2204(psnNo string, mdtrtId string, hisPrescription []*models.HisPrescription, chrg_bchno string, org_name string, doctor string, dept string, fixmedins_code string, dept_code string, doctor_id string, insuplc_admdvs string, mdtrtarea_admvs string, secret_key string, balance_accounts_type string, diag_code string, request_url string, access_key string, new_doctor_name string, time_stamp_2203 string, cainfo string) (string, string) {
|
480
|
480
|
// 生成签名
|
481
|
481
|
//timestamp := time.Now().Unix()
|
|
@@ -679,7 +679,7 @@ func Jsyb2204(psnNo string, mdtrtId string, hisPrescription []*models.HisPrescri
|
679
|
679
|
return HttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData)), requestLog
|
680
|
680
|
}
|
681
|
681
|
|
682
|
|
-// 门诊费用明细信息撤销
|
|
682
|
+// 门诊费用明细信息撤销
|
683
|
683
|
func Jsyb2205(psnNo string, mdtrtId string, chrgBchno string, org_name string, doctor string, insuplc_admdvs string, mdtrtarea_admvs string, secret_key string, fixmedins_code string, request_url string, access_key string, cainfo string) (string, string) {
|
684
|
684
|
|
685
|
685
|
timestamp := time.Now().Unix()
|
|
@@ -712,7 +712,7 @@ func Jsyb2205(psnNo string, mdtrtId string, chrgBchno string, org_name string, d
|
712
|
712
|
return HttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData)), requestLog
|
713
|
713
|
}
|
714
|
714
|
|
715
|
|
-// 门诊预结算
|
|
715
|
+// 门诊预结算
|
716
|
716
|
func Jsyb2206(psnNo string, mdtrtId string, chrgBchno string, certNo string, insutype string, total string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, secret_key string, med_type string, id_card_type int64, fulamt_ownpay_amt float64, overlmt_selfpay float64, preselfpay_amt float64, inscp_scp_amt float64, certificates int64, request_url string, access_key string, verify_number string, cainfo string, mdtrt_grp_type string) (string, string) {
|
717
|
717
|
|
718
|
718
|
// 生成签名
|
|
@@ -785,7 +785,7 @@ func Jsyb2206(psnNo string, mdtrtId string, chrgBchno string, certNo string, ins
|
785
|
785
|
|
786
|
786
|
}
|
787
|
787
|
|
788
|
|
-// 门诊结算
|
|
788
|
+// 门诊结算
|
789
|
789
|
func Jsyb2207(psnNo string, mdtrtId string, chrgBchno string, certNo string, insutype string, total string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, secret_key string, med_type string, id_card_type int64, fulamt_ownpay_amt float64, overlmt_selfpay float64, preselfpay_amt float64, inscp_scp_amt float64, certificates int64, acct_used_flag string, request_url string, access_key string, verify_number string, cainfo string, mdtrt_grp_type string) (string, string) {
|
790
|
790
|
// 生成签名
|
791
|
791
|
timestamp := time.Now().Unix()
|
|
@@ -922,7 +922,7 @@ func Jsyb2207A(psnNo string, mdtrtId string, chrgBchno string, certNo string, in
|
922
|
922
|
|
923
|
923
|
}
|
924
|
924
|
|
925
|
|
-// 门诊结算撤销
|
|
925
|
+// 门诊结算撤销
|
926
|
926
|
func Jsyb2208(psnNo string, mdtrtId string, setlId string, org_name string, doctor string, secret_key string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, cainfo string) (string, string) {
|
927
|
927
|
timestamp := time.Now().Unix()
|
928
|
928
|
// 生成输入报文
|
|
@@ -974,7 +974,7 @@ func Jsyb5203(baseParams models.BaseParams, businessParams models.BusinessParams
|
974
|
974
|
return HttpRequest(baseParams.RequestUrl, baseParams.AccessKey, baseParams.SecretKey, timestamp, string(bytesData)), string(bytesData)
|
975
|
975
|
}
|
976
|
976
|
|
977
|
|
-//CBS总线
|
|
977
|
+// CBS总线
|
978
|
978
|
func HttpRequest(url string, ak string, sk string, timestamp int64, json string) string {
|
979
|
979
|
fmt.Println(url)
|
980
|
980
|
//step 1. 设置请求参数
|
|
@@ -1220,7 +1220,7 @@ func Jsyb9001(org_name string, doctor string, fixmedins_code string, insuplc_adm
|
1220
|
1220
|
|
1221
|
1221
|
}
|
1222
|
1222
|
|
1223
|
|
-//获取本机ip
|
|
1223
|
+// 获取本机ip
|
1224
|
1224
|
func GetLocalIpTwo() string {
|
1225
|
1225
|
addrs, err := net.InterfaceAddrs()
|
1226
|
1226
|
if err != nil {
|
|
@@ -1236,7 +1236,7 @@ func GetLocalIpTwo() string {
|
1236
|
1236
|
return ""
|
1237
|
1237
|
}
|
1238
|
1238
|
|
1239
|
|
-//获取本机Mac
|
|
1239
|
+// 获取本机Mac
|
1240
|
1240
|
func GetMacTwo() string {
|
1241
|
1241
|
interfaces, err := net.Interfaces()
|
1242
|
1242
|
if err != nil {
|
|
@@ -2003,7 +2003,7 @@ func Jsyb3507(struct3507 models.Struct3507) (string, string) {
|
2003
|
2003
|
|
2004
|
2004
|
}
|
2005
|
2005
|
|
2006
|
|
-//对账权限查询
|
|
2006
|
+// 对账权限查询
|
2007
|
2007
|
func Jxyb3260(setl_optins string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
|
2008
|
2008
|
// 生成签名
|
2009
|
2009
|
timestamp := time.Now().Unix()
|
|
@@ -2028,7 +2028,7 @@ func Jxyb3260(setl_optins string, org_name string, doctor string, fixmedins_code
|
2028
|
2028
|
return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3260"), string(bytesData)
|
2029
|
2029
|
}
|
2030
|
2030
|
|
2031
|
|
-//月度对账状态查询
|
|
2031
|
+// 月度对账状态查询
|
2032
|
2032
|
func Jxyb3261(stmt_mon string, setl_optins string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
|
2033
|
2033
|
// 生成签名
|
2034
|
2034
|
timestamp := time.Now().Unix()
|
|
@@ -2053,7 +2053,7 @@ func Jxyb3261(stmt_mon string, setl_optins string, org_name string, doctor strin
|
2053
|
2053
|
request_url = request_url + "3261"
|
2054
|
2054
|
return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3261"), string(bytesData)
|
2055
|
2055
|
}
|
2056
|
|
-func Jxyb3262(stmt_mon string, setl_optins string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
|
|
2056
|
+func Jxyb3262(org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string, upld_btch string, fix_fill_dept string, fix_fill_psn_id string, fix_fill_psn string, fix_fill_date string, stmt_loc string, hp []models.FixMonRecDetailFileIn, funds []models.Fund) (string, string) {
|
2057
|
2057
|
// 生成签名
|
2058
|
2058
|
timestamp := time.Now().Unix()
|
2059
|
2059
|
// 生成输入报文
|
|
@@ -2061,50 +2061,49 @@ func Jxyb3262(stmt_mon string, setl_optins string, org_name string, doctor strin
|
2061
|
2061
|
input := make(map[string]interface{})
|
2062
|
2062
|
inputData := make(map[string]interface{})
|
2063
|
2063
|
|
2064
|
|
- fixMonRecDetailFileIn := make(map[string]interface{})
|
2065
|
|
- //fixMonRecDetailFileIns := []make(map[string]interface{})
|
2066
|
2064
|
fixMonRecDetailFileIns := make([]map[string]interface{}, 0)
|
2067
|
|
-
|
2068
|
|
- fund := make(map[string]interface{})
|
2069
|
2065
|
fundList := make([]map[string]interface{}, 0)
|
2070
|
|
-
|
2071
|
2066
|
inputMessage["infno"] = "3262" // 交易编码
|
2072
|
2067
|
inputData["fixmedins_code"] = fixmedins_code
|
2073
|
2068
|
inputData["fixmedins_name"] = org_name
|
2074
|
|
- inputData["fix_fill_dept"] = ""
|
2075
|
|
- inputData["fix_fill_psn_id"] = ""
|
2076
|
|
- inputData["fix_fill_psn"] = ""
|
2077
|
|
- inputData["fix_fill_date"] = ""
|
2078
|
|
- inputData["stmt_loc"] = ""
|
2079
|
|
- inputData["upld_btch"] = ""
|
2080
|
|
-
|
2081
|
|
- fixMonRecDetailFileIn["insutype"] = ""
|
2082
|
|
- fixMonRecDetailFileIn["psn_type"] = ""
|
2083
|
|
- fixMonRecDetailFileIn["med_type"] = ""
|
2084
|
|
- fixMonRecDetailFileIn["fix_blng_admdvs"] = ""
|
2085
|
|
- fixMonRecDetailFileIn["insu_admdvs"] = ""
|
2086
|
|
- fixMonRecDetailFileIn["psn_time"] = ""
|
2087
|
|
- fixMonRecDetailFileIn["psn_cnt"] = ""
|
2088
|
|
- fixMonRecDetailFileIn["medfee_sumamt"] = ""
|
2089
|
|
- fixMonRecDetailFileIn["inscp_amt"] = ""
|
2090
|
|
- fixMonRecDetailFileIn["fund_pay_sumamt"] = ""
|
2091
|
|
- fixMonRecDetailFileIn["fund_key"] = ""
|
2092
|
|
- fixMonRecDetailFileIns = append(fixMonRecDetailFileIns, fixMonRecDetailFileIn)
|
2093
|
|
-
|
2094
|
|
- fund["fund_key"] = ""
|
2095
|
|
- fund["fix_blng_admdvs"] = ""
|
2096
|
|
- fund["insu_admdvs"] = ""
|
2097
|
|
- fund["fix_blng_admdvs"] = ""
|
2098
|
|
- fund["insu_admdvs"] = ""
|
2099
|
|
- fund["fund_code"] = ""
|
2100
|
|
- fund["fund_name"] = ""
|
2101
|
|
- fund["fund_amt"] = ""
|
2102
|
|
- fund["memo"] = ""
|
2103
|
|
- fundList = append(fundList, fund)
|
|
2069
|
+ inputData["fix_fill_dept"] = fix_fill_dept
|
|
2070
|
+ inputData["fix_fill_psn_id"] = fix_fill_psn_id
|
|
2071
|
+ inputData["fix_fill_psn"] = fix_fill_psn
|
|
2072
|
+ inputData["fix_fill_date"] = fix_fill_date
|
|
2073
|
+ inputData["stmt_loc"] = stmt_loc
|
|
2074
|
+ inputData["upld_btch"] = upld_btch
|
|
2075
|
+
|
|
2076
|
+ for _, item := range hp {
|
|
2077
|
+ fixMonRecDetailFileIn := make(map[string]interface{})
|
|
2078
|
+ fixMonRecDetailFileIn["insutype"] = item.Insutype
|
|
2079
|
+ fixMonRecDetailFileIn["psn_type"] = item.PsnType
|
|
2080
|
+ fixMonRecDetailFileIn["med_type"] = item.MedType
|
|
2081
|
+ fixMonRecDetailFileIn["fix_blng_admdvs"] = item.FixBlngAdmdvs
|
|
2082
|
+ fixMonRecDetailFileIn["insu_admdvs"] = item.InsuAdmdvs
|
|
2083
|
+ fixMonRecDetailFileIn["psn_time"] = item.PsnTime
|
|
2084
|
+ fixMonRecDetailFileIn["psn_cnt"] = item.PsnCnt
|
|
2085
|
+ fixMonRecDetailFileIn["medfee_sumamt"] = item.MedfeeSumAmt
|
|
2086
|
+ fixMonRecDetailFileIn["inscp_amt"] = item.InscpAmt
|
|
2087
|
+ fixMonRecDetailFileIn["fund_pay_sumamt"] = item.FundPaySumAmt
|
|
2088
|
+ fixMonRecDetailFileIn["fund_key"] = item.FundKey
|
|
2089
|
+ fixMonRecDetailFileIns = append(fixMonRecDetailFileIns, fixMonRecDetailFileIn)
|
|
2090
|
+ }
|
|
2091
|
+ for _, item := range funds {
|
|
2092
|
+ fund := make(map[string]interface{})
|
|
2093
|
+ fund["fund_key"] = item.FundKey
|
|
2094
|
+ fund["fix_blng_admdvs"] = item.FixBlngAdmdvs
|
|
2095
|
+ fund["insu_admdvs"] = item.InsuAdmdvs
|
|
2096
|
+ fund["fix_blng_admdvs"] = item.FixBlngAdmdvs
|
|
2097
|
+ fund["insu_admdvs"] = item.InsuAdmdvs
|
|
2098
|
+ fund["fund_code"] = item.FundCode
|
|
2099
|
+ fund["fund_name"] = item.FundName
|
|
2100
|
+ fund["fund_amt"] = item.FundAmt
|
|
2101
|
+ fund["memo"] = ""
|
|
2102
|
+ fundList = append(fundList, fund)
|
|
2103
|
+ }
|
2104
|
2104
|
|
2105
|
2105
|
inputData["fixMonRecDetailFileInList"] = fixMonRecDetailFileIns
|
2106
|
2106
|
inputData["fundList"] = fundList
|
2107
|
|
-
|
2108
|
2107
|
input["data"] = inputData
|
2109
|
2108
|
inputMessage["input"] = input //交易输入
|
2110
|
2109
|
bytesData, err := json.Marshal(inputMessage)
|
|
@@ -2114,9 +2113,9 @@ func Jxyb3262(stmt_mon string, setl_optins string, org_name string, doctor strin
|
2114
|
2113
|
return err.Error(), ""
|
2115
|
2114
|
}
|
2116
|
2115
|
request_url = request_url + "3262"
|
2117
|
|
- return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3261"), string(bytesData)
|
|
2116
|
+ return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3262"), string(bytesData)
|
2118
|
2117
|
}
|
2119
|
|
-func Jxyb3263(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float64, medfee_sumamt float64, stmt_begndate string, stmt_enddate string, setl_optins string, clr_type string, insutype string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
|
|
2118
|
+func Jxyb3263(stmt_mon string, stmt_loc string, upld_btch string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
|
2120
|
2119
|
// 生成签名
|
2121
|
2120
|
timestamp := time.Now().Unix()
|
2122
|
2121
|
// 生成输入报文
|
|
@@ -2126,9 +2125,9 @@ func Jxyb3263(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float6
|
2126
|
2125
|
inputMessage["infno"] = "3263" // 交易编码
|
2127
|
2126
|
inputData["fixmedins_code"] = fixmedins_code // 对帐开始时间
|
2128
|
2127
|
inputData["fixmedins_name"] = org_name //对帐结束时间
|
2129
|
|
- inputData["stmt_mon"] = "" //医疗费总额
|
2130
|
|
- inputData["stmt_loc"] = "" //医疗费总额
|
2131
|
|
- inputData["upld_btch"] = "" //医疗费总额
|
|
2128
|
+ inputData["stmt_mon"] = stmt_mon //医疗费总额
|
|
2129
|
+ inputData["stmt_loc"] = stmt_loc //医疗费总额
|
|
2130
|
+ inputData["upld_btch"] = upld_btch //医疗费总额
|
2132
|
2131
|
|
2133
|
2132
|
input["data"] = inputData
|
2134
|
2133
|
inputMessage["input"] = input //交易输入
|
|
@@ -2141,7 +2140,7 @@ func Jxyb3263(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float6
|
2141
|
2140
|
request_url = request_url + "3263"
|
2142
|
2141
|
return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3263"), string(bytesData)
|
2143
|
2142
|
}
|
2144
|
|
-func Jxyb3264(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float64, medfee_sumamt float64, stmt_begndate string, stmt_enddate string, setl_optins string, clr_type string, insutype string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
|
|
2143
|
+func Jxyb3264(stmt_mon string, stmt_loc string, upld_btch string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
|
2145
|
2144
|
// 生成签名
|
2146
|
2145
|
timestamp := time.Now().Unix()
|
2147
|
2146
|
// 生成输入报文
|
|
@@ -2151,9 +2150,9 @@ func Jxyb3264(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float6
|
2151
|
2150
|
inputMessage["infno"] = "3264" // 交易编码
|
2152
|
2151
|
inputData["fixmedins_code"] = fixmedins_code // 对帐开始时间
|
2153
|
2152
|
inputData["fixmedins_name"] = org_name //对帐结束时间
|
2154
|
|
- inputData["stmt_mon"] = "" //医疗费总额
|
2155
|
|
- inputData["stmt_loc"] = "" //医疗费总额
|
2156
|
|
- inputData["upld_btch"] = "" //医疗费总额
|
|
2153
|
+ inputData["stmt_mon"] = stmt_mon //医疗费总额
|
|
2154
|
+ inputData["stmt_loc"] = stmt_loc //医疗费总额
|
|
2155
|
+ inputData["upld_btch"] = upld_btch //医疗费总额
|
2157
|
2156
|
|
2158
|
2157
|
input["data"] = inputData
|
2159
|
2158
|
inputMessage["input"] = input //交易输入
|
|
@@ -2166,42 +2165,41 @@ func Jxyb3264(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float6
|
2166
|
2165
|
request_url = request_url + "3264"
|
2167
|
2166
|
return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3264"), string(bytesData)
|
2168
|
2167
|
}
|
|
2168
|
+func Jxyb3265(stmt_mon string, fix_fill_dept string, fix_fill_psn_id string, fix_fill_psn string, fix_fill_date string, stmt_loc string, upld_btch string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
|
|
2169
|
+ // 生成签名
|
|
2170
|
+ timestamp := time.Now().Unix()
|
|
2171
|
+ // 生成输入报文
|
|
2172
|
+ inputMessage := SetJXInputMessage(timestamp, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs, cainfo)
|
|
2173
|
+ input := make(map[string]interface{})
|
|
2174
|
+ inputData := make(map[string]interface{})
|
|
2175
|
+
|
|
2176
|
+ //solidifyId := make(map[string]interface{})
|
2169
|
2177
|
|
2170
|
|
-//func Jxyb3265(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float64, medfee_sumamt float64, stmt_begndate string, stmt_enddate string, setl_optins string, clr_type string, insutype string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
|
2171
|
|
-// // 生成签名
|
2172
|
|
-// timestamp := time.Now().Unix()
|
2173
|
|
-// // 生成输入报文
|
2174
|
|
-// inputMessage := SetJXInputMessage(timestamp, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs, cainfo)
|
2175
|
|
-// input := make(map[string]interface{})
|
2176
|
|
-// inputData := make(map[string]interface{})
|
2177
|
|
-//
|
2178
|
|
-// solidifyId := make(map[string]interface{})
|
2179
|
|
-//
|
2180
|
|
-// inputMessage["infno"] = "3265" // 交易编码
|
2181
|
|
-// inputData["fixmedins_code"] = fixmedins_code // 对帐开始时间
|
2182
|
|
-// inputData["fixmedins_name"] = org_name //对帐结束时间
|
2183
|
|
-// inputData["stmt_mon"] = "" //医疗费总额
|
2184
|
|
-// inputData["fix_fill_dept"] = "" //对帐结束时间
|
2185
|
|
-// inputData["fix_fill_psn_id"] = "" //对帐结束时间
|
2186
|
|
-// inputData["fix_fill_psn"] = "" //对帐结束时间
|
2187
|
|
-// inputData["fix_fill_date"] = "" //对帐结束时间
|
2188
|
|
-// inputData["stmt_loc"] = "" //医疗费总额
|
2189
|
|
-// inputData["upld_btch"] = "" //医疗费总额
|
2190
|
|
-//
|
2191
|
|
-// inputData["solidifyIdList"] = "" //医疗费总额
|
2192
|
|
-//
|
2193
|
|
-// input["data"] = inputData
|
2194
|
|
-// inputMessage["input"] = input //交易输入
|
2195
|
|
-// bytesData, err := json.Marshal(inputMessage)
|
2196
|
|
-// fmt.Println(string(bytesData))
|
2197
|
|
-// if err != nil {
|
2198
|
|
-// fmt.Println(err.Error())
|
2199
|
|
-// return err.Error(), ""
|
2200
|
|
-// }
|
2201
|
|
-// request_url = request_url + "3265"
|
2202
|
|
-// return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3266"), string(bytesData)
|
2203
|
|
-//}
|
2204
|
|
-func Jxyb3266(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float64, medfee_sumamt float64, stmt_begndate string, stmt_enddate string, setl_optins string, clr_type string, insutype string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
|
|
2178
|
+ inputMessage["infno"] = "3265" // 交易编码
|
|
2179
|
+ inputData["fixmedins_code"] = fixmedins_code // 对帐开始时间
|
|
2180
|
+ inputData["fixmedins_name"] = org_name //对帐结束时间
|
|
2181
|
+ inputData["stmt_mon"] = stmt_mon //医疗费总额
|
|
2182
|
+ inputData["fix_fill_dept"] = fix_fill_dept //对帐结束时间
|
|
2183
|
+ inputData["fix_fill_psn_id"] = fix_fill_psn_id //对帐结束时间
|
|
2184
|
+ inputData["fix_fill_psn"] = fix_fill_psn //对帐结束时间
|
|
2185
|
+ inputData["fix_fill_date"] = fix_fill_date //对帐结束时间
|
|
2186
|
+ inputData["stmt_loc"] = stmt_loc //医疗费总额
|
|
2187
|
+ inputData["upld_btch"] = upld_btch //医疗费总额
|
|
2188
|
+
|
|
2189
|
+ inputData["solidifyIdList"] = "" //医疗费总额
|
|
2190
|
+
|
|
2191
|
+ input["data"] = inputData
|
|
2192
|
+ inputMessage["input"] = input //交易输入
|
|
2193
|
+ bytesData, err := json.Marshal(inputMessage)
|
|
2194
|
+ fmt.Println(string(bytesData))
|
|
2195
|
+ if err != nil {
|
|
2196
|
+ fmt.Println(err.Error())
|
|
2197
|
+ return err.Error(), ""
|
|
2198
|
+ }
|
|
2199
|
+ request_url = request_url + "3265"
|
|
2200
|
+ return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3265"), string(bytesData)
|
|
2201
|
+}
|
|
2202
|
+func Jxyb3266(stmt_mon string, fix_fill_dept string, fix_fill_psn_id string, fix_fill_psn string, fix_fill_date string, stmt_loc string, upld_btch string, fix_blng_admdvs string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
|
2205
|
2203
|
// 生成签名
|
2206
|
2204
|
timestamp := time.Now().Unix()
|
2207
|
2205
|
// 生成输入报文
|
|
@@ -2212,14 +2210,14 @@ func Jxyb3266(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float6
|
2212
|
2210
|
inputData["fixmedins_code"] = fixmedins_code // 对帐开始时间
|
2213
|
2211
|
inputData["fixmedins_name"] = org_name //对帐结束时间
|
2214
|
2212
|
|
2215
|
|
- inputData["fix_blng_admdvs"] = setl_optins //对帐结束时间
|
2216
|
|
- inputData["stmt_mon"] = "" //医疗费总额
|
2217
|
|
- inputData["fix_fill_dept"] = setl_optins //对帐结束时间
|
2218
|
|
- inputData["fix_fill_psn_id"] = setl_optins //对帐结束时间
|
2219
|
|
- inputData["fix_fill_psn"] = setl_optins //对帐结束时间
|
2220
|
|
- inputData["fix_fill_date"] = setl_optins //对帐结束时间
|
2221
|
|
- inputData["stmt_loc"] = "" //医疗费总额
|
2222
|
|
- inputData["upld_btch"] = "" //医疗费总额
|
|
2213
|
+ inputData["fix_blng_admdvs"] = fix_blng_admdvs //对帐结束时间
|
|
2214
|
+ inputData["stmt_mon"] = stmt_mon //医疗费总额
|
|
2215
|
+ inputData["fix_fill_dept"] = fix_fill_dept //对帐结束时间
|
|
2216
|
+ inputData["fix_fill_psn_id"] = fix_fill_psn_id //对帐结束时间
|
|
2217
|
+ inputData["fix_fill_psn"] = fix_fill_psn //对帐结束时间
|
|
2218
|
+ inputData["fix_fill_date"] = fix_fill_date //对帐结束时间
|
|
2219
|
+ inputData["stmt_loc"] = stmt_loc //医疗费总额
|
|
2220
|
+ inputData["upld_btch"] = upld_btch //医疗费总额
|
2223
|
2221
|
|
2224
|
2222
|
input["data"] = inputData
|
2225
|
2223
|
inputMessage["input"] = input //交易输入
|
|
@@ -2232,7 +2230,7 @@ func Jxyb3266(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float6
|
2232
|
2230
|
request_url = request_url + "3266"
|
2233
|
2231
|
return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3266"), string(bytesData)
|
2234
|
2232
|
}
|
2235
|
|
-func Jxyb3267(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float64, medfee_sumamt float64, stmt_begndate string, stmt_enddate string, setl_optins string, clr_type string, insutype string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
|
|
2233
|
+func Jxyb3267(stmt_mon string, stmt_loc string, upld_btch string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
|
2236
|
2234
|
// 生成签名
|
2237
|
2235
|
timestamp := time.Now().Unix()
|
2238
|
2236
|
// 生成输入报文
|
|
@@ -2242,9 +2240,9 @@ func Jxyb3267(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float6
|
2242
|
2240
|
inputMessage["infno"] = "3267" // 交易编码
|
2243
|
2241
|
inputData["fixmedins_code"] = fixmedins_code // 对帐开始时间
|
2244
|
2242
|
inputData["fixmedins_name"] = org_name //对帐结束时间
|
2245
|
|
- inputData["stmt_mon"] = "" //医疗费总额
|
2246
|
|
- inputData["stmt_loc"] = "" //医疗费总额
|
2247
|
|
- inputData["upld_btch"] = "" //医疗费总额
|
|
2243
|
+ inputData["stmt_mon"] = stmt_mon //医疗费总额
|
|
2244
|
+ inputData["stmt_loc"] = stmt_loc //医疗费总额
|
|
2245
|
+ inputData["upld_btch"] = upld_btch //医疗费总额
|
2248
|
2246
|
|
2249
|
2247
|
input["data"] = inputData
|
2250
|
2248
|
inputMessage["input"] = input //交易输入
|
|
@@ -2257,7 +2255,7 @@ func Jxyb3267(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float6
|
2257
|
2255
|
request_url = request_url + "3267"
|
2258
|
2256
|
return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3267"), string(bytesData)
|
2259
|
2257
|
}
|
2260
|
|
-func Jxyb3268(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float64, medfee_sumamt float64, stmt_begndate string, stmt_enddate string, setl_optins string, clr_type string, insutype string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
|
|
2258
|
+func Jxyb3268(org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string, upld_btch string, fix_fill_dept string, fix_fill_psn_id string, fix_fill_psn string, fix_fill_date string, stmt_loc string, hp []models.FixMonRecDetailFileIn, funds []models.Fund) (string, string) {
|
2261
|
2259
|
// 生成签名
|
2262
|
2260
|
timestamp := time.Now().Unix()
|
2263
|
2261
|
// 生成输入报文
|
|
@@ -2265,48 +2263,50 @@ func Jxyb3268(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float6
|
2265
|
2263
|
input := make(map[string]interface{})
|
2266
|
2264
|
inputData := make(map[string]interface{})
|
2267
|
2265
|
|
2268
|
|
- fixMonRecDetailFileIn := make(map[string]interface{})
|
2269
|
|
- //fixMonRecDetailFileIns := []make(map[string]interface{})
|
2270
|
2266
|
fixMonRecDetailFileIns := make([]map[string]interface{}, 0)
|
2271
|
|
-
|
2272
|
|
- fund := make(map[string]interface{})
|
2273
|
2267
|
fundList := make([]map[string]interface{}, 0)
|
2274
|
2268
|
|
2275
|
2269
|
inputMessage["infno"] = "3268" // 交易编码
|
2276
|
2270
|
inputData["fixmedins_code"] = fixmedins_code // 对帐开始时间
|
2277
|
2271
|
inputData["fixmedins_name"] = org_name //对帐结束时间
|
2278
|
2272
|
|
2279
|
|
- inputData["setl_mon"] = "" //对帐结束时间
|
2280
|
|
- inputData["fix_fill_dept"] = "" //对帐结束时间
|
2281
|
|
- inputData["fix_fill_psn_id"] = "" //对帐结束时间
|
2282
|
|
- inputData["fix_fill_psn"] = "" //对帐结束时间
|
2283
|
|
- inputData["fix_fill_date"] = "" //对帐结束时间
|
2284
|
|
- inputData["stmt_loc"] = "" //对帐结束时间
|
2285
|
|
-
|
2286
|
|
- fixMonRecDetailFileIn["setl_date"] = ""
|
2287
|
|
- fixMonRecDetailFileIn["insutype"] = ""
|
2288
|
|
- fixMonRecDetailFileIn["psn_type"] = ""
|
2289
|
|
- fixMonRecDetailFileIn["med_type"] = ""
|
2290
|
|
- fixMonRecDetailFileIn["fix_blng_admdvs"] = ""
|
2291
|
|
- fixMonRecDetailFileIn["insu_admdvs"] = ""
|
2292
|
|
- fixMonRecDetailFileIn["psn_time"] = ""
|
2293
|
|
- fixMonRecDetailFileIn["psn_cnt"] = ""
|
2294
|
|
- fixMonRecDetailFileIn["medfee_sumamt"] = ""
|
2295
|
|
- fixMonRecDetailFileIn["inscp_amt"] = ""
|
2296
|
|
- fixMonRecDetailFileIn["fund_pay_sumamt"] = ""
|
2297
|
|
- fixMonRecDetailFileIn["fund_key"] = ""
|
2298
|
|
- fixMonRecDetailFileIns = append(fixMonRecDetailFileIns, fixMonRecDetailFileIn)
|
2299
|
|
-
|
2300
|
|
- fund["fund_key"] = ""
|
2301
|
|
- fund["fix_blng_admdvs"] = ""
|
2302
|
|
- fund["insu_admdvs"] = ""
|
2303
|
|
- fund["fix_blng_admdvs"] = ""
|
2304
|
|
- fund["insu_admdvs"] = ""
|
2305
|
|
- fund["fund_code"] = ""
|
2306
|
|
- fund["fund_name"] = ""
|
2307
|
|
- fund["fund_amt"] = ""
|
2308
|
|
- fund["memo"] = ""
|
2309
|
|
- fundList = append(fundList, fund)
|
|
2273
|
+ inputData["setl_mon"] = "" //对帐结束时间
|
|
2274
|
+ inputData["fix_fill_dept"] = fix_fill_dept
|
|
2275
|
+ inputData["fix_fill_psn_id"] = fix_fill_psn_id
|
|
2276
|
+ inputData["fix_fill_psn"] = fix_fill_psn
|
|
2277
|
+ inputData["fix_fill_date"] = fix_fill_date
|
|
2278
|
+ inputData["stmt_loc"] = stmt_loc
|
|
2279
|
+
|
|
2280
|
+ for _, item := range hp {
|
|
2281
|
+ fixMonRecDetailFileIn := make(map[string]interface{})
|
|
2282
|
+ fixMonRecDetailFileIn["setl_date"] = ""
|
|
2283
|
+ fixMonRecDetailFileIn["insutype"] = item.Insutype
|
|
2284
|
+ fixMonRecDetailFileIn["psn_type"] = item.PsnType
|
|
2285
|
+ fixMonRecDetailFileIn["med_type"] = item.MedType
|
|
2286
|
+ fixMonRecDetailFileIn["fix_blng_admdvs"] = item.FixBlngAdmdvs
|
|
2287
|
+ fixMonRecDetailFileIn["insu_admdvs"] = item.InsuAdmdvs
|
|
2288
|
+ fixMonRecDetailFileIn["psn_time"] = item.PsnTime
|
|
2289
|
+ fixMonRecDetailFileIn["psn_cnt"] = item.PsnCnt
|
|
2290
|
+ fixMonRecDetailFileIn["medfee_sumamt"] = item.MedfeeSumAmt
|
|
2291
|
+ fixMonRecDetailFileIn["inscp_amt"] = item.InscpAmt
|
|
2292
|
+ fixMonRecDetailFileIn["fund_pay_sumamt"] = item.FundPaySumAmt
|
|
2293
|
+ fixMonRecDetailFileIn["fund_key"] = item.FundKey
|
|
2294
|
+ fixMonRecDetailFileIns = append(fixMonRecDetailFileIns, fixMonRecDetailFileIn)
|
|
2295
|
+ }
|
|
2296
|
+
|
|
2297
|
+ for _, item := range funds {
|
|
2298
|
+ fund := make(map[string]interface{})
|
|
2299
|
+ fund["fund_key"] = item.FundKey
|
|
2300
|
+ fund["fix_blng_admdvs"] = item.FixBlngAdmdvs
|
|
2301
|
+ fund["insu_admdvs"] = item.InsuAdmdvs
|
|
2302
|
+ fund["fix_blng_admdvs"] = item.FixBlngAdmdvs
|
|
2303
|
+ fund["insu_admdvs"] = item.InsuAdmdvs
|
|
2304
|
+ fund["fund_code"] = item.FundCode
|
|
2305
|
+ fund["fund_name"] = item.FundName
|
|
2306
|
+ fund["fund_amt"] = item.FundAmt
|
|
2307
|
+ fund["memo"] = ""
|
|
2308
|
+ fundList = append(fundList, fund)
|
|
2309
|
+ }
|
2310
|
2310
|
|
2311
|
2311
|
inputData["fixDateRecDetailFileInList"] = fixMonRecDetailFileIns
|
2312
|
2312
|
inputData["fundList"] = fundList
|
|
@@ -2320,9 +2320,9 @@ func Jxyb3268(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float6
|
2320
|
2320
|
return err.Error(), ""
|
2321
|
2321
|
}
|
2322
|
2322
|
request_url = request_url + "3268"
|
2323
|
|
- return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3267"), string(bytesData)
|
|
2323
|
+ return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3268"), string(bytesData)
|
2324
|
2324
|
}
|
2325
|
|
-func Jxyb3269(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float64, medfee_sumamt float64, stmt_begndate string, stmt_enddate string, setl_optins string, clr_type string, insutype string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
|
|
2325
|
+func Jxyb3269(stmt_mon string, stmt_loc string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
|
2326
|
2326
|
// 生成签名
|
2327
|
2327
|
timestamp := time.Now().Unix()
|
2328
|
2328
|
// 生成输入报文
|
|
@@ -2332,8 +2332,8 @@ func Jxyb3269(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float6
|
2332
|
2332
|
inputMessage["infno"] = "3269" // 交易编码
|
2333
|
2333
|
inputData["fixmedins_code"] = fixmedins_code // 对帐开始时间
|
2334
|
2334
|
inputData["fixmedins_name"] = org_name //对帐结束时间
|
2335
|
|
- inputData["stmt_mon"] = "" //医疗费总额
|
2336
|
|
- inputData["stmt_loc"] = "" //医疗费总额
|
|
2335
|
+ inputData["stmt_mon"] = stmt_mon //医疗费总额
|
|
2336
|
+ inputData["stmt_loc"] = stmt_loc //医疗费总额
|
2337
|
2337
|
|
2338
|
2338
|
input["data"] = inputData
|
2339
|
2339
|
inputMessage["input"] = input //交易输入
|
|
@@ -2344,20 +2344,20 @@ func Jxyb3269(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float6
|
2344
|
2344
|
return err.Error(), ""
|
2345
|
2345
|
}
|
2346
|
2346
|
request_url = request_url + "3269"
|
2347
|
|
- return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3267"), string(bytesData)
|
|
2347
|
+ return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3269"), string(bytesData)
|
2348
|
2348
|
}
|
2349
|
|
-func Jxyb3270(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float64, medfee_sumamt float64, stmt_begndate string, stmt_enddate string, setl_optins string, clr_type string, insutype string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
|
|
2349
|
+func Jxyb3270(stmt_mon string, stmt_loc string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
|
2350
|
2350
|
// 生成签名
|
2351
|
2351
|
timestamp := time.Now().Unix()
|
2352
|
2352
|
// 生成输入报文
|
2353
|
2353
|
inputMessage := SetJXInputMessage(timestamp, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs, cainfo)
|
2354
|
2354
|
input := make(map[string]interface{})
|
2355
|
2355
|
inputData := make(map[string]interface{})
|
2356
|
|
- inputMessage["infno"] = "3267" // 交易编码
|
|
2356
|
+ inputMessage["infno"] = "3270" // 交易编码
|
2357
|
2357
|
inputData["fixmedins_code"] = fixmedins_code // 对帐开始时间
|
2358
|
2358
|
inputData["fixmedins_name"] = org_name //对帐结束时间
|
2359
|
|
- inputData["stmt_mon"] = "" //医疗费总额
|
2360
|
|
- inputData["stmt_loc"] = "" //医疗费总额
|
|
2359
|
+ inputData["stmt_mon"] = stmt_mon //医疗费总额
|
|
2360
|
+ inputData["stmt_loc"] = stmt_loc //医疗费总额
|
2361
|
2361
|
|
2362
|
2362
|
input["data"] = inputData
|
2363
|
2363
|
inputMessage["input"] = input //交易输入
|
|
@@ -2368,9 +2368,9 @@ func Jxyb3270(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float6
|
2368
|
2368
|
return err.Error(), ""
|
2369
|
2369
|
}
|
2370
|
2370
|
request_url = request_url + "3270"
|
2371
|
|
- return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3267"), string(bytesData)
|
|
2371
|
+ return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3270"), string(bytesData)
|
2372
|
2372
|
}
|
2373
|
|
-func Jxyb3271(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float64, medfee_sumamt float64, stmt_begndate string, stmt_enddate string, setl_optins string, clr_type string, insutype string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
|
|
2373
|
+func Jxyb3271(fix_fill_dept string, fix_fill_psn_id string, fix_fill_psn string, fix_fill_date string, stmt_loc string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
|
2374
|
2374
|
// 生成签名
|
2375
|
2375
|
timestamp := time.Now().Unix()
|
2376
|
2376
|
// 生成输入报文
|
|
@@ -2381,11 +2381,11 @@ func Jxyb3271(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float6
|
2381
|
2381
|
inputData["fixmedins_code"] = fixmedins_code // 对帐开始时间
|
2382
|
2382
|
inputData["fixmedins_name"] = org_name //对帐结束时间
|
2383
|
2383
|
|
2384
|
|
- inputData["fix_fill_dept"] = "" //对帐结束时间
|
2385
|
|
- inputData["fix_fill_psn_id"] = "" //对帐结束时间
|
2386
|
|
- inputData["fix_fill_psn"] = "" //对帐结束时间
|
2387
|
|
- inputData["fix_fill_date"] = "" //对帐结束时间
|
2388
|
|
- inputData["stmt_loc"] = "" //医疗费总额
|
|
2384
|
+ inputData["fix_fill_dept"] = fix_fill_dept //对帐结束时间
|
|
2385
|
+ inputData["fix_fill_psn_id"] = fix_fill_psn_id //对帐结束时间
|
|
2386
|
+ inputData["fix_fill_psn"] = fix_fill_psn //对帐结束时间
|
|
2387
|
+ inputData["fix_fill_date"] = fix_fill_date //对帐结束时间
|
|
2388
|
+ inputData["stmt_loc"] = stmt_loc //医疗费总额
|
2389
|
2389
|
|
2390
|
2390
|
input["data"] = inputData
|
2391
|
2391
|
inputMessage["input"] = input //交易输入
|
|
@@ -2396,25 +2396,25 @@ func Jxyb3271(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float6
|
2396
|
2396
|
return err.Error(), ""
|
2397
|
2397
|
}
|
2398
|
2398
|
request_url = request_url + "3271"
|
2399
|
|
- return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3267"), string(bytesData)
|
|
2399
|
+ return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3271"), string(bytesData)
|
2400
|
2400
|
}
|
2401
|
|
-func Jxyb3272(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float64, medfee_sumamt float64, stmt_begndate string, stmt_enddate string, setl_optins string, clr_type string, insutype string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
|
|
2401
|
+func Jxyb3272(setl_mon string, fix_fill_dept string, fix_fill_psn_id string, fix_fill_psn string, fix_fill_date string, stmt_loc string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
|
2402
|
2402
|
// 生成签名
|
2403
|
2403
|
timestamp := time.Now().Unix()
|
2404
|
2404
|
// 生成输入报文
|
2405
|
2405
|
inputMessage := SetJXInputMessage(timestamp, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs, cainfo)
|
2406
|
2406
|
input := make(map[string]interface{})
|
2407
|
2407
|
inputData := make(map[string]interface{})
|
2408
|
|
- inputMessage["infno"] = "3272" // 交易编码
|
2409
|
|
- inputData["fixmedins_code"] = fixmedins_code // 对帐开始时间
|
2410
|
|
- inputData["fixmedins_name"] = org_name //对帐结束时间
|
2411
|
|
- inputData["fix_blng_admdvs"] = org_name //对帐结束时间
|
2412
|
|
- inputData["setl_mon"] = org_name //对帐结束时间
|
2413
|
|
- inputData["fix_fill_dept"] = org_name //对帐结束时间
|
2414
|
|
- inputData["fix_fill_psn_id"] = org_name //对帐结束时间
|
2415
|
|
- inputData["fix_fill_psn"] = org_name //
|
2416
|
|
- inputData["fix_fill_date"] = org_name //对帐结束时间
|
2417
|
|
- inputData["stmt_loc"] = org_name //对帐结束时间
|
|
2408
|
+ inputMessage["infno"] = "3272" // 交易编码
|
|
2409
|
+ inputData["fixmedins_code"] = fixmedins_code // 对帐开始时间
|
|
2410
|
+ inputData["fixmedins_name"] = org_name //对帐结束时间
|
|
2411
|
+ inputData["fix_blng_admdvs"] = mdtrtarea_admvs //对帐结束时间
|
|
2412
|
+ inputData["setl_mon"] = setl_mon //对帐结束时间
|
|
2413
|
+ inputData["fix_fill_dept"] = fix_fill_dept //对帐结束时间
|
|
2414
|
+ inputData["fix_fill_psn_id"] = fix_fill_psn_id //对帐结束时间
|
|
2415
|
+ inputData["fix_fill_psn"] = fix_fill_psn //
|
|
2416
|
+ inputData["fix_fill_date"] = fix_fill_date //对帐结束时间
|
|
2417
|
+ inputData["stmt_loc"] = stmt_loc //对帐结束时间
|
2418
|
2418
|
|
2419
|
2419
|
input["data"] = inputData
|
2420
|
2420
|
inputMessage["input"] = input //交易输入
|
|
@@ -2425,9 +2425,9 @@ func Jxyb3272(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float6
|
2425
|
2425
|
return err.Error(), ""
|
2426
|
2426
|
}
|
2427
|
2427
|
request_url = request_url + "3272"
|
2428
|
|
- return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3267"), string(bytesData)
|
|
2428
|
+ return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3272"), string(bytesData)
|
2429
|
2429
|
}
|
2430
|
|
-func Jxyb3273(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float64, medfee_sumamt float64, stmt_begndate string, stmt_enddate string, setl_optins string, clr_type string, insutype string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
|
|
2430
|
+func Jxyb3273(stmt_mon string, stmt_loc string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
|
2431
|
2431
|
// 生成签名
|
2432
|
2432
|
timestamp := time.Now().Unix()
|
2433
|
2433
|
// 生成输入报文
|
|
@@ -2437,8 +2437,8 @@ func Jxyb3273(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float6
|
2437
|
2437
|
inputMessage["infno"] = "3273" // 交易编码
|
2438
|
2438
|
inputData["fixmedins_code"] = fixmedins_code // 对帐开始时间
|
2439
|
2439
|
inputData["fixmedins_name"] = org_name //对帐结束时间
|
2440
|
|
- inputData["stmt_mon"] = "" //医疗费总额
|
2441
|
|
- inputData["stmt_loc"] = "" //医疗费总额
|
|
2440
|
+ inputData["stmt_mon"] = stmt_mon //医疗费总额
|
|
2441
|
+ inputData["stmt_loc"] = stmt_loc //医疗费总额
|
2442
|
2442
|
|
2443
|
2443
|
input["data"] = inputData
|
2444
|
2444
|
inputMessage["input"] = input //交易输入
|
|
@@ -2449,9 +2449,9 @@ func Jxyb3273(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float6
|
2449
|
2449
|
return err.Error(), ""
|
2450
|
2450
|
}
|
2451
|
2451
|
request_url = request_url + "3273"
|
2452
|
|
- return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3267"), string(bytesData)
|
|
2452
|
+ return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3273"), string(bytesData)
|
2453
|
2453
|
}
|
2454
|
|
-func Jxyb3274(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float64, medfee_sumamt float64, stmt_begndate string, stmt_enddate string, setl_optins string, clr_type string, insutype string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
|
|
2454
|
+func Jxyb3274(setl_mon string, fix_fill_dept string, fix_fill_psn_id string, fix_fill_psn string, fix_fill_date string, stmt_loc string, upld_btch string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
|
2455
|
2455
|
// 生成签名
|
2456
|
2456
|
timestamp := time.Now().Unix()
|
2457
|
2457
|
// 生成输入报文
|
|
@@ -2462,13 +2462,13 @@ func Jxyb3274(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float6
|
2462
|
2462
|
inputData["fixmedins_code"] = fixmedins_code // 对帐开始时间
|
2463
|
2463
|
inputData["fixmedins_name"] = org_name //对帐结束时间
|
2464
|
2464
|
|
2465
|
|
- inputData["fix_blng_admdvs"] = "" //对帐结束时间
|
2466
|
|
- inputData["setl_mon"] = "" //对帐结束时间
|
2467
|
|
- inputData["fix_fill_dept"] = "" //对帐结束时间
|
2468
|
|
- inputData["fix_fill_psn_id"] = "" //对帐结束时间
|
2469
|
|
- inputData["fix_fill_psn"] = "" //
|
2470
|
|
- inputData["fix_fill_date"] = "" //对帐结束时间
|
2471
|
|
- inputData["stmt_loc"] = "" //对帐结束时间
|
|
2465
|
+ inputData["fix_blng_admdvs"] = mdtrtarea_admvs //对帐结束时间
|
|
2466
|
+ inputData["setl_mon"] = setl_mon //对帐结束时间
|
|
2467
|
+ inputData["fix_fill_dept"] = fix_fill_dept //对帐结束时间
|
|
2468
|
+ inputData["fix_fill_psn_id"] = fix_fill_psn_id //对帐结束时间
|
|
2469
|
+ inputData["fix_fill_psn"] = fix_fill_psn //
|
|
2470
|
+ inputData["fix_fill_date"] = fix_fill_date //对帐结束时间
|
|
2471
|
+ inputData["stmt_loc"] = stmt_loc //对帐结束时间
|
2472
|
2472
|
|
2473
|
2473
|
input["data"] = inputData
|
2474
|
2474
|
inputMessage["input"] = input //交易输入
|
|
@@ -2479,9 +2479,9 @@ func Jxyb3274(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float6
|
2479
|
2479
|
return err.Error(), ""
|
2480
|
2480
|
}
|
2481
|
2481
|
request_url = request_url + "3274"
|
2482
|
|
- return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3267"), string(bytesData)
|
|
2482
|
+ return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3274"), string(bytesData)
|
2483
|
2483
|
}
|
2484
|
|
-func Jxyb3275(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float64, medfee_sumamt float64, stmt_begndate string, stmt_enddate string, setl_optins string, clr_type string, insutype string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
|
|
2484
|
+func Jxyb3275(org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
|
2485
|
2485
|
// 生成签名
|
2486
|
2486
|
timestamp := time.Now().Unix()
|
2487
|
2487
|
// 生成输入报文
|
|
@@ -2525,15 +2525,15 @@ func Jxyb3275(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float6
|
2525
|
2525
|
request_url = request_url + "3275"
|
2526
|
2526
|
return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3267"), string(bytesData)
|
2527
|
2527
|
}
|
2528
|
|
-func Jxyb3276(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float64, medfee_sumamt float64, stmt_begndate string, stmt_enddate string, setl_optins string, clr_type string, insutype string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
|
|
2528
|
+func Jxyb3276(upld_btch_no, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
|
2529
|
2529
|
// 生成签名
|
2530
|
2530
|
timestamp := time.Now().Unix()
|
2531
|
2531
|
// 生成输入报文
|
2532
|
2532
|
inputMessage := SetJXInputMessage(timestamp, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs, cainfo)
|
2533
|
2533
|
input := make(map[string]interface{})
|
2534
|
2534
|
inputData := make(map[string]interface{})
|
2535
|
|
- inputMessage["infno"] = "3276" // 交易编码
|
2536
|
|
- inputData["upld_btch_no"] = "" //医疗费总额
|
|
2535
|
+ inputMessage["infno"] = "3276" // 交易编码
|
|
2536
|
+ inputData["upld_btch_no"] = upld_btch_no //医疗费总额
|
2537
|
2537
|
input["data"] = inputData
|
2538
|
2538
|
inputMessage["input"] = input //交易输入
|
2539
|
2539
|
bytesData, err := json.Marshal(inputMessage)
|
|
@@ -2543,9 +2543,9 @@ func Jxyb3276(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float6
|
2543
|
2543
|
return err.Error(), ""
|
2544
|
2544
|
}
|
2545
|
2545
|
request_url = request_url + "3276"
|
2546
|
|
- return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3267"), string(bytesData)
|
|
2546
|
+ return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3276"), string(bytesData)
|
2547
|
2547
|
}
|
2548
|
|
-func Jxyb3277(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float64, medfee_sumamt float64, stmt_begndate string, stmt_enddate string, setl_optins string, clr_type string, insutype string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
|
|
2548
|
+func Jxyb3277(stmt_mon string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
|
2549
|
2549
|
// 生成签名
|
2550
|
2550
|
timestamp := time.Now().Unix()
|
2551
|
2551
|
// 生成输入报文
|
|
@@ -2555,7 +2555,7 @@ func Jxyb3277(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float6
|
2555
|
2555
|
inputMessage["infno"] = "3277" // 交易编码
|
2556
|
2556
|
inputData["fixmedins_code"] = fixmedins_code // 对帐开始时间
|
2557
|
2557
|
inputData["fixmedins_name"] = org_name //对帐结束时间
|
2558
|
|
- inputData["stmt_mon"] = "" //医疗费总额
|
|
2558
|
+ inputData["stmt_mon"] = stmt_mon //医疗费总额
|
2559
|
2559
|
input["data"] = inputData
|
2560
|
2560
|
inputMessage["input"] = input //交易输入
|
2561
|
2561
|
bytesData, err := json.Marshal(inputMessage)
|
|
@@ -2565,5 +2565,5 @@ func Jxyb3277(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float6
|
2565
|
2565
|
return err.Error(), ""
|
2566
|
2566
|
}
|
2567
|
2567
|
request_url = request_url + "3277"
|
2568
|
|
- return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3267"), string(bytesData)
|
|
2568
|
+ return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3277"), string(bytesData)
|
2569
|
2569
|
}
|