|
@@ -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,7 +2165,7 @@ 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
|
}
|
2169
|
|
-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) {
|
|
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) {
|
2170
|
2169
|
// 生成签名
|
2171
|
2170
|
timestamp := time.Now().Unix()
|
2172
|
2171
|
// 生成输入报文
|
|
@@ -2174,18 +2173,18 @@ func Jxyb3265(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float6
|
2174
|
2173
|
input := make(map[string]interface{})
|
2175
|
2174
|
inputData := make(map[string]interface{})
|
2176
|
2175
|
|
2177
|
|
- solidifyId := make(map[string]interface{})
|
|
2176
|
+ //solidifyId := make(map[string]interface{})
|
2178
|
2177
|
|
2179
|
|
- inputMessage["infno"] = "3265" // 交易编码
|
2180
|
|
- inputData["fixmedins_code"] = fixmedins_code // 对帐开始时间
|
2181
|
|
- inputData["fixmedins_name"] = org_name //对帐结束时间
|
2182
|
|
- inputData["stmt_mon"] = "" //医疗费总额
|
2183
|
|
- inputData["fix_fill_dept"] = "" //对帐结束时间
|
2184
|
|
- inputData["fix_fill_psn_id"] = "" //对帐结束时间
|
2185
|
|
- inputData["fix_fill_psn"] = "" //对帐结束时间
|
2186
|
|
- inputData["fix_fill_date"] = "" //对帐结束时间
|
2187
|
|
- inputData["stmt_loc"] = "" //医疗费总额
|
2188
|
|
- inputData["upld_btch"] = "" //医疗费总额
|
|
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 //医疗费总额
|
2189
|
2188
|
|
2190
|
2189
|
inputData["solidifyIdList"] = "" //医疗费总额
|
2191
|
2190
|
|
|
@@ -2198,9 +2197,9 @@ func Jxyb3265(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float6
|
2198
|
2197
|
return err.Error(), ""
|
2199
|
2198
|
}
|
2200
|
2199
|
request_url = request_url + "3265"
|
2201
|
|
- return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3266"), string(bytesData)
|
|
2200
|
+ return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3265"), string(bytesData)
|
2202
|
2201
|
}
|
2203
|
|
-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) {
|
|
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) {
|
2204
|
2203
|
// 生成签名
|
2205
|
2204
|
timestamp := time.Now().Unix()
|
2206
|
2205
|
// 生成输入报文
|
|
@@ -2211,14 +2210,14 @@ func Jxyb3266(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float6
|
2211
|
2210
|
inputData["fixmedins_code"] = fixmedins_code // 对帐开始时间
|
2212
|
2211
|
inputData["fixmedins_name"] = org_name //对帐结束时间
|
2213
|
2212
|
|
2214
|
|
- inputData["fix_blng_admdvs"] = setl_optins //对帐结束时间
|
2215
|
|
- inputData["stmt_mon"] = "" //医疗费总额
|
2216
|
|
- inputData["fix_fill_dept"] = setl_optins //对帐结束时间
|
2217
|
|
- inputData["fix_fill_psn_id"] = setl_optins //对帐结束时间
|
2218
|
|
- inputData["fix_fill_psn"] = setl_optins //对帐结束时间
|
2219
|
|
- inputData["fix_fill_date"] = setl_optins //对帐结束时间
|
2220
|
|
- inputData["stmt_loc"] = "" //医疗费总额
|
2221
|
|
- 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 //医疗费总额
|
2222
|
2221
|
|
2223
|
2222
|
input["data"] = inputData
|
2224
|
2223
|
inputMessage["input"] = input //交易输入
|
|
@@ -2231,7 +2230,7 @@ func Jxyb3266(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float6
|
2231
|
2230
|
request_url = request_url + "3266"
|
2232
|
2231
|
return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3266"), string(bytesData)
|
2233
|
2232
|
}
|
2234
|
|
-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) {
|
2235
|
2234
|
// 生成签名
|
2236
|
2235
|
timestamp := time.Now().Unix()
|
2237
|
2236
|
// 生成输入报文
|
|
@@ -2241,9 +2240,9 @@ func Jxyb3267(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float6
|
2241
|
2240
|
inputMessage["infno"] = "3267" // 交易编码
|
2242
|
2241
|
inputData["fixmedins_code"] = fixmedins_code // 对帐开始时间
|
2243
|
2242
|
inputData["fixmedins_name"] = org_name //对帐结束时间
|
2244
|
|
- inputData["stmt_mon"] = "" //医疗费总额
|
2245
|
|
- inputData["stmt_loc"] = "" //医疗费总额
|
2246
|
|
- inputData["upld_btch"] = "" //医疗费总额
|
|
2243
|
+ inputData["stmt_mon"] = stmt_mon //医疗费总额
|
|
2244
|
+ inputData["stmt_loc"] = stmt_loc //医疗费总额
|
|
2245
|
+ inputData["upld_btch"] = upld_btch //医疗费总额
|
2247
|
2246
|
|
2248
|
2247
|
input["data"] = inputData
|
2249
|
2248
|
inputMessage["input"] = input //交易输入
|
|
@@ -2256,7 +2255,7 @@ func Jxyb3267(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float6
|
2256
|
2255
|
request_url = request_url + "3267"
|
2257
|
2256
|
return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3267"), string(bytesData)
|
2258
|
2257
|
}
|
2259
|
|
-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) {
|
2260
|
2259
|
// 生成签名
|
2261
|
2260
|
timestamp := time.Now().Unix()
|
2262
|
2261
|
// 生成输入报文
|
|
@@ -2264,48 +2263,50 @@ func Jxyb3268(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float6
|
2264
|
2263
|
input := make(map[string]interface{})
|
2265
|
2264
|
inputData := make(map[string]interface{})
|
2266
|
2265
|
|
2267
|
|
- fixMonRecDetailFileIn := make(map[string]interface{})
|
2268
|
|
- //fixMonRecDetailFileIns := []make(map[string]interface{})
|
2269
|
2266
|
fixMonRecDetailFileIns := make([]map[string]interface{}, 0)
|
2270
|
|
-
|
2271
|
|
- fund := make(map[string]interface{})
|
2272
|
2267
|
fundList := make([]map[string]interface{}, 0)
|
2273
|
2268
|
|
2274
|
2269
|
inputMessage["infno"] = "3268" // 交易编码
|
2275
|
2270
|
inputData["fixmedins_code"] = fixmedins_code // 对帐开始时间
|
2276
|
2271
|
inputData["fixmedins_name"] = org_name //对帐结束时间
|
2277
|
2272
|
|
2278
|
|
- inputData["setl_mon"] = "" //对帐结束时间
|
2279
|
|
- inputData["fix_fill_dept"] = "" //对帐结束时间
|
2280
|
|
- inputData["fix_fill_psn_id"] = "" //对帐结束时间
|
2281
|
|
- inputData["fix_fill_psn"] = "" //对帐结束时间
|
2282
|
|
- inputData["fix_fill_date"] = "" //对帐结束时间
|
2283
|
|
- inputData["stmt_loc"] = "" //对帐结束时间
|
2284
|
|
-
|
2285
|
|
- fixMonRecDetailFileIn["setl_date"] = ""
|
2286
|
|
- fixMonRecDetailFileIn["insutype"] = ""
|
2287
|
|
- fixMonRecDetailFileIn["psn_type"] = ""
|
2288
|
|
- fixMonRecDetailFileIn["med_type"] = ""
|
2289
|
|
- fixMonRecDetailFileIn["fix_blng_admdvs"] = ""
|
2290
|
|
- fixMonRecDetailFileIn["insu_admdvs"] = ""
|
2291
|
|
- fixMonRecDetailFileIn["psn_time"] = ""
|
2292
|
|
- fixMonRecDetailFileIn["psn_cnt"] = ""
|
2293
|
|
- fixMonRecDetailFileIn["medfee_sumamt"] = ""
|
2294
|
|
- fixMonRecDetailFileIn["inscp_amt"] = ""
|
2295
|
|
- fixMonRecDetailFileIn["fund_pay_sumamt"] = ""
|
2296
|
|
- fixMonRecDetailFileIn["fund_key"] = ""
|
2297
|
|
- fixMonRecDetailFileIns = append(fixMonRecDetailFileIns, fixMonRecDetailFileIn)
|
2298
|
|
-
|
2299
|
|
- fund["fund_key"] = ""
|
2300
|
|
- fund["fix_blng_admdvs"] = ""
|
2301
|
|
- fund["insu_admdvs"] = ""
|
2302
|
|
- fund["fix_blng_admdvs"] = ""
|
2303
|
|
- fund["insu_admdvs"] = ""
|
2304
|
|
- fund["fund_code"] = ""
|
2305
|
|
- fund["fund_name"] = ""
|
2306
|
|
- fund["fund_amt"] = ""
|
2307
|
|
- fund["memo"] = ""
|
2308
|
|
- 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
|
+ }
|
2309
|
2310
|
|
2310
|
2311
|
inputData["fixDateRecDetailFileInList"] = fixMonRecDetailFileIns
|
2311
|
2312
|
inputData["fundList"] = fundList
|
|
@@ -2319,9 +2320,9 @@ func Jxyb3268(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float6
|
2319
|
2320
|
return err.Error(), ""
|
2320
|
2321
|
}
|
2321
|
2322
|
request_url = request_url + "3268"
|
2322
|
|
- 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)
|
2323
|
2324
|
}
|
2324
|
|
-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) {
|
2325
|
2326
|
// 生成签名
|
2326
|
2327
|
timestamp := time.Now().Unix()
|
2327
|
2328
|
// 生成输入报文
|
|
@@ -2331,8 +2332,8 @@ func Jxyb3269(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float6
|
2331
|
2332
|
inputMessage["infno"] = "3269" // 交易编码
|
2332
|
2333
|
inputData["fixmedins_code"] = fixmedins_code // 对帐开始时间
|
2333
|
2334
|
inputData["fixmedins_name"] = org_name //对帐结束时间
|
2334
|
|
- inputData["stmt_mon"] = "" //医疗费总额
|
2335
|
|
- inputData["stmt_loc"] = "" //医疗费总额
|
|
2335
|
+ inputData["stmt_mon"] = stmt_mon //医疗费总额
|
|
2336
|
+ inputData["stmt_loc"] = stmt_loc //医疗费总额
|
2336
|
2337
|
|
2337
|
2338
|
input["data"] = inputData
|
2338
|
2339
|
inputMessage["input"] = input //交易输入
|
|
@@ -2343,20 +2344,20 @@ func Jxyb3269(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float6
|
2343
|
2344
|
return err.Error(), ""
|
2344
|
2345
|
}
|
2345
|
2346
|
request_url = request_url + "3269"
|
2346
|
|
- 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)
|
2347
|
2348
|
}
|
2348
|
|
-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) {
|
2349
|
2350
|
// 生成签名
|
2350
|
2351
|
timestamp := time.Now().Unix()
|
2351
|
2352
|
// 生成输入报文
|
2352
|
2353
|
inputMessage := SetJXInputMessage(timestamp, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs, cainfo)
|
2353
|
2354
|
input := make(map[string]interface{})
|
2354
|
2355
|
inputData := make(map[string]interface{})
|
2355
|
|
- inputMessage["infno"] = "3267" // 交易编码
|
|
2356
|
+ inputMessage["infno"] = "3270" // 交易编码
|
2356
|
2357
|
inputData["fixmedins_code"] = fixmedins_code // 对帐开始时间
|
2357
|
2358
|
inputData["fixmedins_name"] = org_name //对帐结束时间
|
2358
|
|
- inputData["stmt_mon"] = "" //医疗费总额
|
2359
|
|
- inputData["stmt_loc"] = "" //医疗费总额
|
|
2359
|
+ inputData["stmt_mon"] = stmt_mon //医疗费总额
|
|
2360
|
+ inputData["stmt_loc"] = stmt_loc //医疗费总额
|
2360
|
2361
|
|
2361
|
2362
|
input["data"] = inputData
|
2362
|
2363
|
inputMessage["input"] = input //交易输入
|
|
@@ -2367,9 +2368,9 @@ func Jxyb3270(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float6
|
2367
|
2368
|
return err.Error(), ""
|
2368
|
2369
|
}
|
2369
|
2370
|
request_url = request_url + "3270"
|
2370
|
|
- 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)
|
2371
|
2372
|
}
|
2372
|
|
-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) {
|
2373
|
2374
|
// 生成签名
|
2374
|
2375
|
timestamp := time.Now().Unix()
|
2375
|
2376
|
// 生成输入报文
|
|
@@ -2380,11 +2381,11 @@ func Jxyb3271(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float6
|
2380
|
2381
|
inputData["fixmedins_code"] = fixmedins_code // 对帐开始时间
|
2381
|
2382
|
inputData["fixmedins_name"] = org_name //对帐结束时间
|
2382
|
2383
|
|
2383
|
|
- inputData["fix_fill_dept"] = "" //对帐结束时间
|
2384
|
|
- inputData["fix_fill_psn_id"] = "" //对帐结束时间
|
2385
|
|
- inputData["fix_fill_psn"] = "" //对帐结束时间
|
2386
|
|
- inputData["fix_fill_date"] = "" //对帐结束时间
|
2387
|
|
- 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 //医疗费总额
|
2388
|
2389
|
|
2389
|
2390
|
input["data"] = inputData
|
2390
|
2391
|
inputMessage["input"] = input //交易输入
|
|
@@ -2395,25 +2396,25 @@ func Jxyb3271(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float6
|
2395
|
2396
|
return err.Error(), ""
|
2396
|
2397
|
}
|
2397
|
2398
|
request_url = request_url + "3271"
|
2398
|
|
- 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)
|
2399
|
2400
|
}
|
2400
|
|
-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) {
|
2401
|
2402
|
// 生成签名
|
2402
|
2403
|
timestamp := time.Now().Unix()
|
2403
|
2404
|
// 生成输入报文
|
2404
|
2405
|
inputMessage := SetJXInputMessage(timestamp, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs, cainfo)
|
2405
|
2406
|
input := make(map[string]interface{})
|
2406
|
2407
|
inputData := make(map[string]interface{})
|
2407
|
|
- inputMessage["infno"] = "3272" // 交易编码
|
2408
|
|
- inputData["fixmedins_code"] = fixmedins_code // 对帐开始时间
|
2409
|
|
- inputData["fixmedins_name"] = org_name //对帐结束时间
|
2410
|
|
- inputData["fix_blng_admdvs"] = org_name //对帐结束时间
|
2411
|
|
- inputData["setl_mon"] = org_name //对帐结束时间
|
2412
|
|
- inputData["fix_fill_dept"] = org_name //对帐结束时间
|
2413
|
|
- inputData["fix_fill_psn_id"] = org_name //对帐结束时间
|
2414
|
|
- inputData["fix_fill_psn"] = org_name //
|
2415
|
|
- inputData["fix_fill_date"] = org_name //对帐结束时间
|
2416
|
|
- 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 //对帐结束时间
|
2417
|
2418
|
|
2418
|
2419
|
input["data"] = inputData
|
2419
|
2420
|
inputMessage["input"] = input //交易输入
|
|
@@ -2424,9 +2425,9 @@ func Jxyb3272(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float6
|
2424
|
2425
|
return err.Error(), ""
|
2425
|
2426
|
}
|
2426
|
2427
|
request_url = request_url + "3272"
|
2427
|
|
- 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)
|
2428
|
2429
|
}
|
2429
|
|
-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) {
|
2430
|
2431
|
// 生成签名
|
2431
|
2432
|
timestamp := time.Now().Unix()
|
2432
|
2433
|
// 生成输入报文
|
|
@@ -2436,8 +2437,8 @@ func Jxyb3273(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float6
|
2436
|
2437
|
inputMessage["infno"] = "3273" // 交易编码
|
2437
|
2438
|
inputData["fixmedins_code"] = fixmedins_code // 对帐开始时间
|
2438
|
2439
|
inputData["fixmedins_name"] = org_name //对帐结束时间
|
2439
|
|
- inputData["stmt_mon"] = "" //医疗费总额
|
2440
|
|
- inputData["stmt_loc"] = "" //医疗费总额
|
|
2440
|
+ inputData["stmt_mon"] = stmt_mon //医疗费总额
|
|
2441
|
+ inputData["stmt_loc"] = stmt_loc //医疗费总额
|
2441
|
2442
|
|
2442
|
2443
|
input["data"] = inputData
|
2443
|
2444
|
inputMessage["input"] = input //交易输入
|
|
@@ -2448,9 +2449,9 @@ func Jxyb3273(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float6
|
2448
|
2449
|
return err.Error(), ""
|
2449
|
2450
|
}
|
2450
|
2451
|
request_url = request_url + "3273"
|
2451
|
|
- 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)
|
2452
|
2453
|
}
|
2453
|
|
-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) {
|
2454
|
2455
|
// 生成签名
|
2455
|
2456
|
timestamp := time.Now().Unix()
|
2456
|
2457
|
// 生成输入报文
|
|
@@ -2461,13 +2462,13 @@ func Jxyb3274(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float6
|
2461
|
2462
|
inputData["fixmedins_code"] = fixmedins_code // 对帐开始时间
|
2462
|
2463
|
inputData["fixmedins_name"] = org_name //对帐结束时间
|
2463
|
2464
|
|
2464
|
|
- inputData["fix_blng_admdvs"] = "" //对帐结束时间
|
2465
|
|
- inputData["setl_mon"] = "" //对帐结束时间
|
2466
|
|
- inputData["fix_fill_dept"] = "" //对帐结束时间
|
2467
|
|
- inputData["fix_fill_psn_id"] = "" //对帐结束时间
|
2468
|
|
- inputData["fix_fill_psn"] = "" //
|
2469
|
|
- inputData["fix_fill_date"] = "" //对帐结束时间
|
2470
|
|
- 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 //对帐结束时间
|
2471
|
2472
|
|
2472
|
2473
|
input["data"] = inputData
|
2473
|
2474
|
inputMessage["input"] = input //交易输入
|
|
@@ -2478,9 +2479,9 @@ func Jxyb3274(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float6
|
2478
|
2479
|
return err.Error(), ""
|
2479
|
2480
|
}
|
2480
|
2481
|
request_url = request_url + "3274"
|
2481
|
|
- 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)
|
2482
|
2483
|
}
|
2483
|
|
-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) {
|
2484
|
2485
|
// 生成签名
|
2485
|
2486
|
timestamp := time.Now().Unix()
|
2486
|
2487
|
// 生成输入报文
|
|
@@ -2524,15 +2525,15 @@ func Jxyb3275(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float6
|
2524
|
2525
|
request_url = request_url + "3275"
|
2525
|
2526
|
return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3267"), string(bytesData)
|
2526
|
2527
|
}
|
2527
|
|
-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) {
|
2528
|
2529
|
// 生成签名
|
2529
|
2530
|
timestamp := time.Now().Unix()
|
2530
|
2531
|
// 生成输入报文
|
2531
|
2532
|
inputMessage := SetJXInputMessage(timestamp, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs, cainfo)
|
2532
|
2533
|
input := make(map[string]interface{})
|
2533
|
2534
|
inputData := make(map[string]interface{})
|
2534
|
|
- inputMessage["infno"] = "3276" // 交易编码
|
2535
|
|
- inputData["upld_btch_no"] = "" //医疗费总额
|
|
2535
|
+ inputMessage["infno"] = "3276" // 交易编码
|
|
2536
|
+ inputData["upld_btch_no"] = upld_btch_no //医疗费总额
|
2536
|
2537
|
input["data"] = inputData
|
2537
|
2538
|
inputMessage["input"] = input //交易输入
|
2538
|
2539
|
bytesData, err := json.Marshal(inputMessage)
|
|
@@ -2542,9 +2543,9 @@ func Jxyb3276(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float6
|
2542
|
2543
|
return err.Error(), ""
|
2543
|
2544
|
}
|
2544
|
2545
|
request_url = request_url + "3276"
|
2545
|
|
- 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)
|
2546
|
2547
|
}
|
2547
|
|
-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) {
|
2548
|
2549
|
// 生成签名
|
2549
|
2550
|
timestamp := time.Now().Unix()
|
2550
|
2551
|
// 生成输入报文
|
|
@@ -2554,7 +2555,7 @@ func Jxyb3277(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float6
|
2554
|
2555
|
inputMessage["infno"] = "3277" // 交易编码
|
2555
|
2556
|
inputData["fixmedins_code"] = fixmedins_code // 对帐开始时间
|
2556
|
2557
|
inputData["fixmedins_name"] = org_name //对帐结束时间
|
2557
|
|
- inputData["stmt_mon"] = "" //医疗费总额
|
|
2558
|
+ inputData["stmt_mon"] = stmt_mon //医疗费总额
|
2558
|
2559
|
input["data"] = inputData
|
2559
|
2560
|
inputMessage["input"] = input //交易输入
|
2560
|
2561
|
bytesData, err := json.Marshal(inputMessage)
|
|
@@ -2564,5 +2565,5 @@ func Jxyb3277(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float6
|
2564
|
2565
|
return err.Error(), ""
|
2565
|
2566
|
}
|
2566
|
2567
|
request_url = request_url + "3277"
|
2567
|
|
- 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)
|
2568
|
2569
|
}
|