|
@@ -2009,15 +2009,15 @@ func Jxyb3260(setl_optins string, org_name string, doctor string, fixmedins_code
|
2009
|
2009
|
timestamp := time.Now().Unix()
|
2010
|
2010
|
// 生成输入报文
|
2011
|
2011
|
inputMessage := SetJXInputMessage(timestamp, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs, cainfo)
|
2012
|
|
- input := make(map[string]interface{})
|
|
2012
|
+ //input := make(map[string]interface{})
|
2013
|
2013
|
inputData := make(map[string]interface{})
|
2014
|
2014
|
inputMessage["infno"] = "3260" // 交易编码
|
2015
|
2015
|
inputData["fixmedins_code"] = fixmedins_code // 对帐开始时间
|
2016
|
2016
|
inputData["fixmedins_name"] = org_name //对帐结束时间
|
2017
|
2017
|
inputData["fix_blng_admdvs"] = setl_optins //医疗费总额
|
2018
|
2018
|
|
2019
|
|
- input["data"] = inputData
|
2020
|
|
- inputMessage["input"] = input //交易输入
|
|
2019
|
+ //input["data"] = inputData
|
|
2020
|
+ inputMessage["input"] = inputData //交易输入
|
2021
|
2021
|
bytesData, err := json.Marshal(inputMessage)
|
2022
|
2022
|
fmt.Println(string(bytesData))
|
2023
|
2023
|
if err != nil {
|
|
@@ -2025,7 +2025,7 @@ func Jxyb3260(setl_optins string, org_name string, doctor string, fixmedins_code
|
2025
|
2025
|
return err.Error(), ""
|
2026
|
2026
|
}
|
2027
|
2027
|
request_url = request_url + "3260"
|
2028
|
|
- return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3260"), string(bytesData)
|
|
2028
|
+ return HttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData)), string(bytesData)
|
2029
|
2029
|
}
|
2030
|
2030
|
|
2031
|
2031
|
// 月度对账状态查询
|
|
@@ -2034,7 +2034,7 @@ func Jxyb3261(stmt_mon string, setl_optins string, org_name string, doctor strin
|
2034
|
2034
|
timestamp := time.Now().Unix()
|
2035
|
2035
|
// 生成输入报文
|
2036
|
2036
|
inputMessage := SetJXInputMessage(timestamp, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs, cainfo)
|
2037
|
|
- input := make(map[string]interface{})
|
|
2037
|
+ //input := make(map[string]interface{})
|
2038
|
2038
|
inputData := make(map[string]interface{})
|
2039
|
2039
|
inputMessage["infno"] = "3261" // 交易编码
|
2040
|
2040
|
inputData["fixmedins_code"] = fixmedins_code // 对帐开始时间
|
|
@@ -2042,8 +2042,8 @@ func Jxyb3261(stmt_mon string, setl_optins string, org_name string, doctor strin
|
2042
|
2042
|
inputData["fix_blng_admdvs"] = setl_optins //医疗费总额
|
2043
|
2043
|
inputData["stmt_mon"] = stmt_mon //医疗费总额
|
2044
|
2044
|
|
2045
|
|
- input["data"] = inputData
|
2046
|
|
- inputMessage["input"] = input //交易输入
|
|
2045
|
+ //input["data"] = inputData
|
|
2046
|
+ inputMessage["input"] = inputData //交易输入
|
2047
|
2047
|
bytesData, err := json.Marshal(inputMessage)
|
2048
|
2048
|
fmt.Println(string(bytesData))
|
2049
|
2049
|
if err != nil {
|
|
@@ -2051,14 +2051,14 @@ func Jxyb3261(stmt_mon string, setl_optins string, org_name string, doctor strin
|
2051
|
2051
|
return err.Error(), ""
|
2052
|
2052
|
}
|
2053
|
2053
|
request_url = request_url + "3261"
|
2054
|
|
- return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3261"), string(bytesData)
|
|
2054
|
+ return HttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData)), string(bytesData)
|
2055
|
2055
|
}
|
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) {
|
|
2056
|
+func Jxyb3262(setl_mon, 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.FixMonRecDetailFileInTwo, funds []models.Fund) (string, string) {
|
2057
|
2057
|
// 生成签名
|
2058
|
2058
|
timestamp := time.Now().Unix()
|
2059
|
2059
|
// 生成输入报文
|
2060
|
2060
|
inputMessage := SetJXInputMessage(timestamp, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs, cainfo)
|
2061
|
|
- input := make(map[string]interface{})
|
|
2061
|
+ //input := make(map[string]interface{})
|
2062
|
2062
|
inputData := make(map[string]interface{})
|
2063
|
2063
|
|
2064
|
2064
|
fixMonRecDetailFileIns := make([]map[string]interface{}, 0)
|
|
@@ -2072,14 +2072,15 @@ func Jxyb3262(org_name string, doctor string, fixmedins_code string, insuplc_adm
|
2072
|
2072
|
inputData["fix_fill_date"] = fix_fill_date
|
2073
|
2073
|
inputData["stmt_loc"] = stmt_loc
|
2074
|
2074
|
inputData["upld_btch"] = upld_btch
|
|
2075
|
+ inputData["setl_mon"] = setl_mon
|
2075
|
2076
|
|
2076
|
2077
|
for _, item := range hp {
|
2077
|
2078
|
fixMonRecDetailFileIn := make(map[string]interface{})
|
2078
|
2079
|
fixMonRecDetailFileIn["insutype"] = item.Insutype
|
2079
|
2080
|
fixMonRecDetailFileIn["psn_type"] = item.PsnType
|
2080
|
2081
|
fixMonRecDetailFileIn["med_type"] = item.MedType
|
2081
|
|
- fixMonRecDetailFileIn["fix_blng_admdvs"] = item.FixBlngAdmdvs
|
2082
|
|
- fixMonRecDetailFileIn["insu_admdvs"] = item.InsuAdmdvs
|
|
2082
|
+ fixMonRecDetailFileIn["fix_blng_admdvs"] = mdtrtarea_admvs
|
|
2083
|
+ fixMonRecDetailFileIn["insu_admdvs"] = insuplc_admdvs
|
2083
|
2084
|
fixMonRecDetailFileIn["psn_time"] = item.PsnTime
|
2084
|
2085
|
fixMonRecDetailFileIn["psn_cnt"] = item.PsnCnt
|
2085
|
2086
|
fixMonRecDetailFileIn["medfee_sumamt"] = item.MedfeeSumAmt
|
|
@@ -2104,8 +2105,8 @@ func Jxyb3262(org_name string, doctor string, fixmedins_code string, insuplc_adm
|
2104
|
2105
|
|
2105
|
2106
|
inputData["fixMonRecDetailFileInList"] = fixMonRecDetailFileIns
|
2106
|
2107
|
inputData["fundList"] = fundList
|
2107
|
|
- input["data"] = inputData
|
2108
|
|
- inputMessage["input"] = input //交易输入
|
|
2108
|
+ //input["data"] = inputData
|
|
2109
|
+ inputMessage["input"] = inputData //交易输入
|
2109
|
2110
|
bytesData, err := json.Marshal(inputMessage)
|
2110
|
2111
|
fmt.Println(string(bytesData))
|
2111
|
2112
|
if err != nil {
|
|
@@ -2113,24 +2114,24 @@ func Jxyb3262(org_name string, doctor string, fixmedins_code string, insuplc_adm
|
2113
|
2114
|
return err.Error(), ""
|
2114
|
2115
|
}
|
2115
|
2116
|
request_url = request_url + "3262"
|
2116
|
|
- return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3262"), string(bytesData)
|
|
2117
|
+ return HttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData)), string(bytesData)
|
2117
|
2118
|
}
|
2118
|
2119
|
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) {
|
2119
|
2120
|
// 生成签名
|
2120
|
2121
|
timestamp := time.Now().Unix()
|
2121
|
2122
|
// 生成输入报文
|
2122
|
2123
|
inputMessage := SetJXInputMessage(timestamp, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs, cainfo)
|
2123
|
|
- input := make(map[string]interface{})
|
|
2124
|
+ //input := make(map[string]interface{})
|
2124
|
2125
|
inputData := make(map[string]interface{})
|
2125
|
2126
|
inputMessage["infno"] = "3263" // 交易编码
|
2126
|
2127
|
inputData["fixmedins_code"] = fixmedins_code // 对帐开始时间
|
2127
|
2128
|
inputData["fixmedins_name"] = org_name //对帐结束时间
|
2128
|
|
- inputData["stmt_mon"] = stmt_mon //医疗费总额
|
|
2129
|
+ inputData["setl_mon"] = stmt_mon //医疗费总额
|
2129
|
2130
|
inputData["stmt_loc"] = stmt_loc //医疗费总额
|
2130
|
2131
|
inputData["upld_btch"] = upld_btch //医疗费总额
|
2131
|
2132
|
|
2132
|
|
- input["data"] = inputData
|
2133
|
|
- inputMessage["input"] = input //交易输入
|
|
2133
|
+ //input["data"] = inputData
|
|
2134
|
+ inputMessage["input"] = inputData //交易输入
|
2134
|
2135
|
bytesData, err := json.Marshal(inputMessage)
|
2135
|
2136
|
fmt.Println(string(bytesData))
|
2136
|
2137
|
if err != nil {
|
|
@@ -2138,24 +2139,30 @@ func Jxyb3263(stmt_mon string, stmt_loc string, upld_btch string, org_name strin
|
2138
|
2139
|
return err.Error(), ""
|
2139
|
2140
|
}
|
2140
|
2141
|
request_url = request_url + "3263"
|
2141
|
|
- return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3263"), string(bytesData)
|
|
2142
|
+ return HttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData)), string(bytesData)
|
2142
|
2143
|
}
|
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) {
|
|
2144
|
+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, hp []string) (string, string) {
|
2144
|
2145
|
// 生成签名
|
2145
|
2146
|
timestamp := time.Now().Unix()
|
2146
|
2147
|
// 生成输入报文
|
2147
|
2148
|
inputMessage := SetJXInputMessage(timestamp, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs, cainfo)
|
2148
|
|
- input := make(map[string]interface{})
|
|
2149
|
+ //input := make(map[string]interface{})
|
2149
|
2150
|
inputData := make(map[string]interface{})
|
2150
|
2151
|
inputMessage["infno"] = "3264" // 交易编码
|
2151
|
2152
|
inputData["fixmedins_code"] = fixmedins_code // 对帐开始时间
|
2152
|
2153
|
inputData["fixmedins_name"] = org_name //对帐结束时间
|
2153
|
|
- inputData["stmt_mon"] = stmt_mon //医疗费总额
|
|
2154
|
+ inputData["setl_mon"] = stmt_mon //医疗费总额
|
2154
|
2155
|
inputData["stmt_loc"] = stmt_loc //医疗费总额
|
2155
|
2156
|
inputData["upld_btch"] = upld_btch //医疗费总额
|
|
2157
|
+ //inputData["solidifyIdList"] = hp //医疗费总额
|
|
2158
|
+ if len(hp) == 0 {
|
|
2159
|
+ inputData["solidifyIdList"] = make([]string, 0) //医疗费总额
|
|
2160
|
+ } else {
|
|
2161
|
+ inputData["solidifyIdList"] = hp //医疗费总额
|
2156
|
2162
|
|
2157
|
|
- input["data"] = inputData
|
2158
|
|
- inputMessage["input"] = input //交易输入
|
|
2163
|
+ }
|
|
2164
|
+ //input["data"] = inputData
|
|
2165
|
+ inputMessage["input"] = inputData //交易输入
|
2159
|
2166
|
bytesData, err := json.Marshal(inputMessage)
|
2160
|
2167
|
fmt.Println(string(bytesData))
|
2161
|
2168
|
if err != nil {
|
|
@@ -2163,14 +2170,14 @@ func Jxyb3264(stmt_mon string, stmt_loc string, upld_btch string, org_name strin
|
2163
|
2170
|
return err.Error(), ""
|
2164
|
2171
|
}
|
2165
|
2172
|
request_url = request_url + "3264"
|
2166
|
|
- return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3264"), string(bytesData)
|
|
2173
|
+ return HttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData)), string(bytesData)
|
2167
|
2174
|
}
|
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) {
|
|
2175
|
+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, hp []string) (string, string) {
|
2169
|
2176
|
// 生成签名
|
2170
|
2177
|
timestamp := time.Now().Unix()
|
2171
|
2178
|
// 生成输入报文
|
2172
|
2179
|
inputMessage := SetJXInputMessage(timestamp, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs, cainfo)
|
2173
|
|
- input := make(map[string]interface{})
|
|
2180
|
+ //input := make(map[string]interface{})
|
2174
|
2181
|
inputData := make(map[string]interface{})
|
2175
|
2182
|
|
2176
|
2183
|
//solidifyId := make(map[string]interface{})
|
|
@@ -2178,18 +2185,23 @@ func Jxyb3265(stmt_mon string, fix_fill_dept string, fix_fill_psn_id string, fix
|
2178
|
2185
|
inputMessage["infno"] = "3265" // 交易编码
|
2179
|
2186
|
inputData["fixmedins_code"] = fixmedins_code // 对帐开始时间
|
2180
|
2187
|
inputData["fixmedins_name"] = org_name //对帐结束时间
|
2181
|
|
- inputData["stmt_mon"] = stmt_mon //医疗费总额
|
|
2188
|
+ inputData["setl_mon"] = stmt_mon //医疗费总额
|
2182
|
2189
|
inputData["fix_fill_dept"] = fix_fill_dept //对帐结束时间
|
2183
|
2190
|
inputData["fix_fill_psn_id"] = fix_fill_psn_id //对帐结束时间
|
2184
|
2191
|
inputData["fix_fill_psn"] = fix_fill_psn //对帐结束时间
|
2185
|
2192
|
inputData["fix_fill_date"] = fix_fill_date //对帐结束时间
|
2186
|
2193
|
inputData["stmt_loc"] = stmt_loc //医疗费总额
|
2187
|
2194
|
inputData["upld_btch"] = upld_btch //医疗费总额
|
|
2195
|
+ fmt.Println(hp)
|
|
2196
|
+ if len(hp) == 0 {
|
|
2197
|
+ inputData["solidifyIdList"] = make([]string, 0) //医疗费总额
|
|
2198
|
+ } else {
|
|
2199
|
+ inputData["solidifyIdList"] = hp //医疗费总额
|
2188
|
2200
|
|
2189
|
|
- inputData["solidifyIdList"] = "" //医疗费总额
|
|
2201
|
+ }
|
2190
|
2202
|
|
2191
|
|
- input["data"] = inputData
|
2192
|
|
- inputMessage["input"] = input //交易输入
|
|
2203
|
+ //input["data"] = inputData
|
|
2204
|
+ inputMessage["input"] = inputData //交易输入
|
2193
|
2205
|
bytesData, err := json.Marshal(inputMessage)
|
2194
|
2206
|
fmt.Println(string(bytesData))
|
2195
|
2207
|
if err != nil {
|
|
@@ -2197,21 +2209,21 @@ func Jxyb3265(stmt_mon string, fix_fill_dept string, fix_fill_psn_id string, fix
|
2197
|
2209
|
return err.Error(), ""
|
2198
|
2210
|
}
|
2199
|
2211
|
request_url = request_url + "3265"
|
2200
|
|
- return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3265"), string(bytesData)
|
|
2212
|
+ return HttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData)), string(bytesData)
|
2201
|
2213
|
}
|
2202
|
2214
|
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) {
|
2203
|
2215
|
// 生成签名
|
2204
|
2216
|
timestamp := time.Now().Unix()
|
2205
|
2217
|
// 生成输入报文
|
2206
|
2218
|
inputMessage := SetJXInputMessage(timestamp, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs, cainfo)
|
2207
|
|
- input := make(map[string]interface{})
|
|
2219
|
+ //input := make(map[string]interface{})
|
2208
|
2220
|
inputData := make(map[string]interface{})
|
2209
|
2221
|
inputMessage["infno"] = "3266" // 交易编码
|
2210
|
2222
|
inputData["fixmedins_code"] = fixmedins_code // 对帐开始时间
|
2211
|
2223
|
inputData["fixmedins_name"] = org_name //对帐结束时间
|
2212
|
2224
|
|
2213
|
2225
|
inputData["fix_blng_admdvs"] = fix_blng_admdvs //对帐结束时间
|
2214
|
|
- inputData["stmt_mon"] = stmt_mon //医疗费总额
|
|
2226
|
+ inputData["setl_mon"] = stmt_mon //医疗费总额
|
2215
|
2227
|
inputData["fix_fill_dept"] = fix_fill_dept //对帐结束时间
|
2216
|
2228
|
inputData["fix_fill_psn_id"] = fix_fill_psn_id //对帐结束时间
|
2217
|
2229
|
inputData["fix_fill_psn"] = fix_fill_psn //对帐结束时间
|
|
@@ -2219,8 +2231,8 @@ func Jxyb3266(stmt_mon string, fix_fill_dept string, fix_fill_psn_id string, fix
|
2219
|
2231
|
inputData["stmt_loc"] = stmt_loc //医疗费总额
|
2220
|
2232
|
inputData["upld_btch"] = upld_btch //医疗费总额
|
2221
|
2233
|
|
2222
|
|
- input["data"] = inputData
|
2223
|
|
- inputMessage["input"] = input //交易输入
|
|
2234
|
+ //input["data"] = inputData
|
|
2235
|
+ inputMessage["input"] = inputData //交易输入
|
2224
|
2236
|
bytesData, err := json.Marshal(inputMessage)
|
2225
|
2237
|
fmt.Println(string(bytesData))
|
2226
|
2238
|
if err != nil {
|
|
@@ -2228,24 +2240,24 @@ func Jxyb3266(stmt_mon string, fix_fill_dept string, fix_fill_psn_id string, fix
|
2228
|
2240
|
return err.Error(), ""
|
2229
|
2241
|
}
|
2230
|
2242
|
request_url = request_url + "3266"
|
2231
|
|
- return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3266"), string(bytesData)
|
|
2243
|
+ return HttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData)), string(bytesData)
|
2232
|
2244
|
}
|
2233
|
2245
|
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) {
|
2234
|
2246
|
// 生成签名
|
2235
|
2247
|
timestamp := time.Now().Unix()
|
2236
|
2248
|
// 生成输入报文
|
2237
|
2249
|
inputMessage := SetJXInputMessage(timestamp, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs, cainfo)
|
2238
|
|
- input := make(map[string]interface{})
|
|
2250
|
+ //input := make(map[string]interface{})
|
2239
|
2251
|
inputData := make(map[string]interface{})
|
2240
|
2252
|
inputMessage["infno"] = "3267" // 交易编码
|
2241
|
2253
|
inputData["fixmedins_code"] = fixmedins_code // 对帐开始时间
|
2242
|
2254
|
inputData["fixmedins_name"] = org_name //对帐结束时间
|
2243
|
|
- inputData["stmt_mon"] = stmt_mon //医疗费总额
|
|
2255
|
+ inputData["setl_mon"] = stmt_mon //医疗费总额
|
2244
|
2256
|
inputData["stmt_loc"] = stmt_loc //医疗费总额
|
2245
|
2257
|
inputData["upld_btch"] = upld_btch //医疗费总额
|
2246
|
2258
|
|
2247
|
|
- input["data"] = inputData
|
2248
|
|
- inputMessage["input"] = input //交易输入
|
|
2259
|
+ //input["data"] = inputData
|
|
2260
|
+ inputMessage["input"] = inputData //交易输入
|
2249
|
2261
|
bytesData, err := json.Marshal(inputMessage)
|
2250
|
2262
|
fmt.Println(string(bytesData))
|
2251
|
2263
|
if err != nil {
|
|
@@ -2253,14 +2265,14 @@ func Jxyb3267(stmt_mon string, stmt_loc string, upld_btch string, org_name strin
|
2253
|
2265
|
return err.Error(), ""
|
2254
|
2266
|
}
|
2255
|
2267
|
request_url = request_url + "3267"
|
2256
|
|
- return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3267"), string(bytesData)
|
|
2268
|
+ return HttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData)), string(bytesData)
|
2257
|
2269
|
}
|
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) {
|
|
2270
|
+func Jxyb3268(setl_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, 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.FixMonRecDetailFileInTwo, funds []models.Fund) (string, string) {
|
2259
|
2271
|
// 生成签名
|
2260
|
2272
|
timestamp := time.Now().Unix()
|
2261
|
2273
|
// 生成输入报文
|
2262
|
2274
|
inputMessage := SetJXInputMessage(timestamp, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs, cainfo)
|
2263
|
|
- input := make(map[string]interface{})
|
|
2275
|
+ //input := make(map[string]interface{})
|
2264
|
2276
|
inputData := make(map[string]interface{})
|
2265
|
2277
|
|
2266
|
2278
|
fixMonRecDetailFileIns := make([]map[string]interface{}, 0)
|
|
@@ -2269,8 +2281,9 @@ func Jxyb3268(org_name string, doctor string, fixmedins_code string, insuplc_adm
|
2269
|
2281
|
inputMessage["infno"] = "3268" // 交易编码
|
2270
|
2282
|
inputData["fixmedins_code"] = fixmedins_code // 对帐开始时间
|
2271
|
2283
|
inputData["fixmedins_name"] = org_name //对帐结束时间
|
|
2284
|
+ inputData["upld_btch"] = upld_btch
|
2272
|
2285
|
|
2273
|
|
- inputData["setl_mon"] = "" //对帐结束时间
|
|
2286
|
+ inputData["setl_mon"] = setl_mon //对帐结束时间
|
2274
|
2287
|
inputData["fix_fill_dept"] = fix_fill_dept
|
2275
|
2288
|
inputData["fix_fill_psn_id"] = fix_fill_psn_id
|
2276
|
2289
|
inputData["fix_fill_psn"] = fix_fill_psn
|
|
@@ -2279,12 +2292,12 @@ func Jxyb3268(org_name string, doctor string, fixmedins_code string, insuplc_adm
|
2279
|
2292
|
|
2280
|
2293
|
for _, item := range hp {
|
2281
|
2294
|
fixMonRecDetailFileIn := make(map[string]interface{})
|
2282
|
|
- fixMonRecDetailFileIn["setl_date"] = ""
|
|
2295
|
+ fixMonRecDetailFileIn["setl_date"] = item.SetlDate
|
2283
|
2296
|
fixMonRecDetailFileIn["insutype"] = item.Insutype
|
2284
|
2297
|
fixMonRecDetailFileIn["psn_type"] = item.PsnType
|
2285
|
2298
|
fixMonRecDetailFileIn["med_type"] = item.MedType
|
2286
|
|
- fixMonRecDetailFileIn["fix_blng_admdvs"] = item.FixBlngAdmdvs
|
2287
|
|
- fixMonRecDetailFileIn["insu_admdvs"] = item.InsuAdmdvs
|
|
2299
|
+ fixMonRecDetailFileIn["fix_blng_admdvs"] = mdtrtarea_admvs
|
|
2300
|
+ fixMonRecDetailFileIn["insu_admdvs"] = insuplc_admdvs
|
2288
|
2301
|
fixMonRecDetailFileIn["psn_time"] = item.PsnTime
|
2289
|
2302
|
fixMonRecDetailFileIn["psn_cnt"] = item.PsnCnt
|
2290
|
2303
|
fixMonRecDetailFileIn["medfee_sumamt"] = item.MedfeeSumAmt
|
|
@@ -2311,8 +2324,8 @@ func Jxyb3268(org_name string, doctor string, fixmedins_code string, insuplc_adm
|
2311
|
2324
|
inputData["fixDateRecDetailFileInList"] = fixMonRecDetailFileIns
|
2312
|
2325
|
inputData["fundList"] = fundList
|
2313
|
2326
|
|
2314
|
|
- input["data"] = inputData
|
2315
|
|
- inputMessage["input"] = input //交易输入
|
|
2327
|
+ //input["data"] = inputData
|
|
2328
|
+ inputMessage["input"] = inputData //交易输入
|
2316
|
2329
|
bytesData, err := json.Marshal(inputMessage)
|
2317
|
2330
|
fmt.Println(string(bytesData))
|
2318
|
2331
|
if err != nil {
|
|
@@ -2320,23 +2333,23 @@ func Jxyb3268(org_name string, doctor string, fixmedins_code string, insuplc_adm
|
2320
|
2333
|
return err.Error(), ""
|
2321
|
2334
|
}
|
2322
|
2335
|
request_url = request_url + "3268"
|
2323
|
|
- return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3268"), string(bytesData)
|
|
2336
|
+ return HttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData)), string(bytesData)
|
2324
|
2337
|
}
|
2325
|
2338
|
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
|
2339
|
// 生成签名
|
2327
|
2340
|
timestamp := time.Now().Unix()
|
2328
|
2341
|
// 生成输入报文
|
2329
|
2342
|
inputMessage := SetJXInputMessage(timestamp, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs, cainfo)
|
2330
|
|
- input := make(map[string]interface{})
|
|
2343
|
+ //input := make(map[string]interface{})
|
2331
|
2344
|
inputData := make(map[string]interface{})
|
2332
|
2345
|
inputMessage["infno"] = "3269" // 交易编码
|
2333
|
2346
|
inputData["fixmedins_code"] = fixmedins_code // 对帐开始时间
|
2334
|
2347
|
inputData["fixmedins_name"] = org_name //对帐结束时间
|
2335
|
|
- inputData["stmt_mon"] = stmt_mon //医疗费总额
|
|
2348
|
+ inputData["setl_mon"] = stmt_mon //医疗费总额
|
2336
|
2349
|
inputData["stmt_loc"] = stmt_loc //医疗费总额
|
2337
|
2350
|
|
2338
|
|
- input["data"] = inputData
|
2339
|
|
- inputMessage["input"] = input //交易输入
|
|
2351
|
+ //input["data"] = inputData
|
|
2352
|
+ inputMessage["input"] = inputData //交易输入
|
2340
|
2353
|
bytesData, err := json.Marshal(inputMessage)
|
2341
|
2354
|
fmt.Println(string(bytesData))
|
2342
|
2355
|
if err != nil {
|
|
@@ -2344,23 +2357,29 @@ func Jxyb3269(stmt_mon string, stmt_loc string, org_name string, doctor string,
|
2344
|
2357
|
return err.Error(), ""
|
2345
|
2358
|
}
|
2346
|
2359
|
request_url = request_url + "3269"
|
2347
|
|
- return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3269"), string(bytesData)
|
|
2360
|
+ return HttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData)), string(bytesData)
|
2348
|
2361
|
}
|
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) {
|
|
2362
|
+func Jxyb3270(setl_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, hp []string) (string, string) {
|
2350
|
2363
|
// 生成签名
|
2351
|
2364
|
timestamp := time.Now().Unix()
|
2352
|
2365
|
// 生成输入报文
|
2353
|
2366
|
inputMessage := SetJXInputMessage(timestamp, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs, cainfo)
|
2354
|
|
- input := make(map[string]interface{})
|
|
2367
|
+ //input := make(map[string]interface{})
|
2355
|
2368
|
inputData := make(map[string]interface{})
|
2356
|
2369
|
inputMessage["infno"] = "3270" // 交易编码
|
2357
|
2370
|
inputData["fixmedins_code"] = fixmedins_code // 对帐开始时间
|
2358
|
2371
|
inputData["fixmedins_name"] = org_name //对帐结束时间
|
2359
|
|
- inputData["stmt_mon"] = stmt_mon //医疗费总额
|
|
2372
|
+ inputData["setl_mon"] = setl_mon //医疗费总额
|
2360
|
2373
|
inputData["stmt_loc"] = stmt_loc //医疗费总额
|
|
2374
|
+ //inputData["solidifyIdList"] = hp //医疗费总额
|
|
2375
|
+ if len(hp) == 0 {
|
|
2376
|
+ inputData["solidifyIdList"] = make([]string, 0) //医疗费总额
|
|
2377
|
+ } else {
|
|
2378
|
+ inputData["solidifyIdList"] = hp //医疗费总额
|
2361
|
2379
|
|
2362
|
|
- input["data"] = inputData
|
2363
|
|
- inputMessage["input"] = input //交易输入
|
|
2380
|
+ }
|
|
2381
|
+ //input["data"] = inputData
|
|
2382
|
+ inputMessage["input"] = inputData //交易输入
|
2364
|
2383
|
bytesData, err := json.Marshal(inputMessage)
|
2365
|
2384
|
fmt.Println(string(bytesData))
|
2366
|
2385
|
if err != nil {
|
|
@@ -2368,27 +2387,33 @@ func Jxyb3270(stmt_mon string, stmt_loc string, org_name string, doctor string,
|
2368
|
2387
|
return err.Error(), ""
|
2369
|
2388
|
}
|
2370
|
2389
|
request_url = request_url + "3270"
|
2371
|
|
- return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3270"), string(bytesData)
|
|
2390
|
+ return HttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData)), string(bytesData)
|
2372
|
2391
|
}
|
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) {
|
|
2392
|
+func Jxyb3271(stmt_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, hp []string) (string, string) {
|
2374
|
2393
|
// 生成签名
|
2375
|
2394
|
timestamp := time.Now().Unix()
|
2376
|
2395
|
// 生成输入报文
|
2377
|
2396
|
inputMessage := SetJXInputMessage(timestamp, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs, cainfo)
|
2378
|
|
- input := make(map[string]interface{})
|
|
2397
|
+ //input := make(map[string]interface{})
|
2379
|
2398
|
inputData := make(map[string]interface{})
|
2380
|
2399
|
inputMessage["infno"] = "3271" // 交易编码
|
2381
|
2400
|
inputData["fixmedins_code"] = fixmedins_code // 对帐开始时间
|
2382
|
2401
|
inputData["fixmedins_name"] = org_name //对帐结束时间
|
|
2402
|
+ inputData["setl_mon"] = stmt_mon //医疗费总额
|
2383
|
2403
|
|
2384
|
2404
|
inputData["fix_fill_dept"] = fix_fill_dept //对帐结束时间
|
2385
|
2405
|
inputData["fix_fill_psn_id"] = fix_fill_psn_id //对帐结束时间
|
2386
|
2406
|
inputData["fix_fill_psn"] = fix_fill_psn //对帐结束时间
|
2387
|
2407
|
inputData["fix_fill_date"] = fix_fill_date //对帐结束时间
|
2388
|
2408
|
inputData["stmt_loc"] = stmt_loc //医疗费总额
|
|
2409
|
+ if len(hp) == 0 {
|
|
2410
|
+ inputData["solidifyIdList"] = make([]string, 0) //医疗费总额
|
|
2411
|
+ } else {
|
|
2412
|
+ inputData["solidifyIdList"] = hp //医疗费总额
|
2389
|
2413
|
|
2390
|
|
- input["data"] = inputData
|
2391
|
|
- inputMessage["input"] = input //交易输入
|
|
2414
|
+ }
|
|
2415
|
+ //input["data"] = inputData
|
|
2416
|
+ inputMessage["input"] = inputData //交易输入
|
2392
|
2417
|
bytesData, err := json.Marshal(inputMessage)
|
2393
|
2418
|
fmt.Println(string(bytesData))
|
2394
|
2419
|
if err != nil {
|
|
@@ -2396,14 +2421,14 @@ func Jxyb3271(fix_fill_dept string, fix_fill_psn_id string, fix_fill_psn string,
|
2396
|
2421
|
return err.Error(), ""
|
2397
|
2422
|
}
|
2398
|
2423
|
request_url = request_url + "3271"
|
2399
|
|
- return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3271"), string(bytesData)
|
|
2424
|
+ return HttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData)), string(bytesData)
|
2400
|
2425
|
}
|
2401
|
2426
|
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
|
2427
|
// 生成签名
|
2403
|
2428
|
timestamp := time.Now().Unix()
|
2404
|
2429
|
// 生成输入报文
|
2405
|
2430
|
inputMessage := SetJXInputMessage(timestamp, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs, cainfo)
|
2406
|
|
- input := make(map[string]interface{})
|
|
2431
|
+ //input := make(map[string]interface{})
|
2407
|
2432
|
inputData := make(map[string]interface{})
|
2408
|
2433
|
inputMessage["infno"] = "3272" // 交易编码
|
2409
|
2434
|
inputData["fixmedins_code"] = fixmedins_code // 对帐开始时间
|
|
@@ -2416,8 +2441,8 @@ func Jxyb3272(setl_mon string, fix_fill_dept string, fix_fill_psn_id string, fix
|
2416
|
2441
|
inputData["fix_fill_date"] = fix_fill_date //对帐结束时间
|
2417
|
2442
|
inputData["stmt_loc"] = stmt_loc //对帐结束时间
|
2418
|
2443
|
|
2419
|
|
- input["data"] = inputData
|
2420
|
|
- inputMessage["input"] = input //交易输入
|
|
2444
|
+ //input["data"] = inputData
|
|
2445
|
+ inputMessage["input"] = inputData //交易输入
|
2421
|
2446
|
bytesData, err := json.Marshal(inputMessage)
|
2422
|
2447
|
fmt.Println(string(bytesData))
|
2423
|
2448
|
if err != nil {
|
|
@@ -2425,23 +2450,23 @@ func Jxyb3272(setl_mon string, fix_fill_dept string, fix_fill_psn_id string, fix
|
2425
|
2450
|
return err.Error(), ""
|
2426
|
2451
|
}
|
2427
|
2452
|
request_url = request_url + "3272"
|
2428
|
|
- return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3272"), string(bytesData)
|
|
2453
|
+ return HttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData)), string(bytesData)
|
2429
|
2454
|
}
|
2430
|
2455
|
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
|
2456
|
// 生成签名
|
2432
|
2457
|
timestamp := time.Now().Unix()
|
2433
|
2458
|
// 生成输入报文
|
2434
|
2459
|
inputMessage := SetJXInputMessage(timestamp, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs, cainfo)
|
2435
|
|
- input := make(map[string]interface{})
|
|
2460
|
+ //input := make(map[string]interface{})
|
2436
|
2461
|
inputData := make(map[string]interface{})
|
2437
|
2462
|
inputMessage["infno"] = "3273" // 交易编码
|
2438
|
2463
|
inputData["fixmedins_code"] = fixmedins_code // 对帐开始时间
|
2439
|
2464
|
inputData["fixmedins_name"] = org_name //对帐结束时间
|
2440
|
|
- inputData["stmt_mon"] = stmt_mon //医疗费总额
|
|
2465
|
+ inputData["setl_mon"] = stmt_mon //医疗费总额
|
2441
|
2466
|
inputData["stmt_loc"] = stmt_loc //医疗费总额
|
2442
|
2467
|
|
2443
|
|
- input["data"] = inputData
|
2444
|
|
- inputMessage["input"] = input //交易输入
|
|
2468
|
+ //input["data"] = inputData
|
|
2469
|
+ inputMessage["input"] = inputData //交易输入
|
2445
|
2470
|
bytesData, err := json.Marshal(inputMessage)
|
2446
|
2471
|
fmt.Println(string(bytesData))
|
2447
|
2472
|
if err != nil {
|
|
@@ -2449,7 +2474,7 @@ func Jxyb3273(stmt_mon string, stmt_loc string, org_name string, doctor string,
|
2449
|
2474
|
return err.Error(), ""
|
2450
|
2475
|
}
|
2451
|
2476
|
request_url = request_url + "3273"
|
2452
|
|
- return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3273"), string(bytesData)
|
|
2477
|
+ return HttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData)), string(bytesData)
|
2453
|
2478
|
}
|
2454
|
2479
|
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
|
2480
|
// 生成签名
|
|
@@ -2479,7 +2504,7 @@ func Jxyb3274(setl_mon string, fix_fill_dept string, fix_fill_psn_id string, fix
|
2479
|
2504
|
return err.Error(), ""
|
2480
|
2505
|
}
|
2481
|
2506
|
request_url = request_url + "3274"
|
2482
|
|
- return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3274"), string(bytesData)
|
|
2507
|
+ return HttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData)), string(bytesData)
|
2483
|
2508
|
}
|
2484
|
2509
|
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
|
2510
|
// 生成签名
|