csx 4 年 前
コミット
2dd64ad75d
共有2 個のファイルを変更した16 個の追加12 個の削除を含む
  1. 4 1
      controllers/gdyb_controller.go
  2. 12 11
      controllers/his_api_controller.go

+ 4 - 1
controllers/gdyb_controller.go ファイルの表示

@@ -328,6 +328,8 @@ func (c *GdybController) PostNine() {
328 328
 }
329 329
 
330 330
 func (c *GdybController) PostTen() {
331
+	fmt.Println("11222333-----")
332
+
331 333
 	insutype := c.GetString("insutype")
332 334
 	clrType := c.GetString("clr_type")
333 335
 	setlOptins := c.GetString("setl_optins")
@@ -343,7 +345,6 @@ func (c *GdybController) PostTen() {
343 345
 	secret_key := c.GetString("secret_key")
344 346
 	org_name := c.GetString("org_name")
345 347
 	doctor := c.GetString("doctor")
346
-	fmt.Println("11222333-----")
347 348
 
348 349
 	fmt.Println(insutype)
349 350
 	fmt.Println(clrType)
@@ -391,6 +392,8 @@ func (c *GdybController) PostTen() {
391 392
 }
392 393
 
393 394
 func (c *GdybController) PostEleven() {
395
+	fmt.Println("777777666666-----")
396
+
394 397
 	file_byte := c.GetString("file_byte")
395 398
 	file_name := c.GetString("file_name")
396 399
 	fixmedins_code := c.GetString("fixmedins_code")

+ 12 - 11
controllers/his_api_controller.go ファイルの表示

@@ -2184,21 +2184,22 @@ func (c *HisApiController) GetCheckAccount() {
2184 2184
 	}
2185 2185
 
2186 2186
 	if config.IsOpen == 1 {
2187
-		api := "http://127.0.0.1:9532/" + "gdyb/ten?insutype=" + insutype +
2187
+		api := "http://127.0.0.1:9532/" + "gdyb/ten?" +
2188
+			"insutype=" + insutype +
2188 2189
 			"&clr_type=" + clr_type +
2189 2190
 			"&setl_optins=" + miConfig.OrgName +
2190 2191
 			"&stmt_begndate=" + start_time +
2191 2192
 			"&stm_enddate=" + end_time +
2192
-			"&medfee_sumamt=" + fmt.Sprintf("%2f", medfee_sumamt) +
2193
-			"&fund_pay_sumamt=" + fmt.Sprintf("%2f", fund_pay_sumamt) +
2194
-			"&acct_pay=" + fmt.Sprintf("%2f", acct_pay) +
2193
+			"&medfee_sumamt=" + fmt.Sprintf("%.2f", medfee_sumamt) +
2194
+			"&fund_pay_sumamt=" + fmt.Sprintf("%.2f", fund_pay_sumamt) +
2195
+			"&acct_pay=" + fmt.Sprintf("%.2f", acct_pay) +
2195 2196
 			"&fixmedins_setl_cnt=" + strconv.FormatInt(fixmedins_setl_cnt, 10) +
2196 2197
 			"&fixmedins_code=" + miConfig.Code +
2197 2198
 			"&insuplc_admdvs=" + miConfig.InsuplcAdmdvs +
2198 2199
 			"&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs +
2199 2200
 			"&secret_key=" + miConfig.SecretKey +
2200 2201
 			"&org_name=" + miConfig.OrgName +
2201
-			"&doctor= 某人"
2202
+			"&doctor=某人"
2202 2203
 
2203 2204
 		fmt.Println(api)
2204 2205
 		resp, requestErr := http.Get(api)
@@ -2289,9 +2290,9 @@ func (c *HisApiController) GetCheckDetailAccount() {
2289 2290
 			str = item.SetlId + "	" +
2290 2291
 				item.MdtrtId + "	" +
2291 2292
 				item.PsnNo + "	" +
2292
-				fmt.Sprintf("%2f", item.MedfeeSumamt) + "	" +
2293
-				fmt.Sprintf("%2f", item.FundPaySumamt) + "	" +
2294
-				fmt.Sprintf("%2f", item.AcctPay) + "	" + refd_setl_flag + "\n"
2293
+				fmt.Sprintf("%.2f", item.MedfeeSumamt) + "	" +
2294
+				fmt.Sprintf("%.2f", item.FundPaySumamt) + "	" +
2295
+				fmt.Sprintf("%.2f", item.AcctPay) + "	" + refd_setl_flag + "\n"
2295 2296
 			_, err = f.Write([]byte(str))
2296 2297
 		}
2297 2298
 
@@ -2341,9 +2342,9 @@ func (c *HisApiController) GetCheckDetailAccount() {
2341 2342
 				"&setl_optins=" + miConfig.OrgName +
2342 2343
 				"&stmt_begndate=" + start_time +
2343 2344
 				"&stm_enddate=" + end_time +
2344
-				"&medfee_sumamt=" + fmt.Sprintf("%2f", medfee_sumamt) +
2345
-				"&fund_pay_sumamt=" + fmt.Sprintf("%2f", fund_pay_sumamt) +
2346
-				"&cash_payamt=" + fmt.Sprintf("%2f", psn_cash_pay) +
2345
+				"&medfee_sumamt=" + fmt.Sprintf("%.2f", medfee_sumamt) +
2346
+				"&fund_pay_sumamt=" + fmt.Sprintf("%.2f", fund_pay_sumamt) +
2347
+				"&cash_payamt=" + fmt.Sprintf("%.2f", psn_cash_pay) +
2347 2348
 				"&fixmedins_setl_cnt=" + strconv.FormatInt(fixmedins_setl_cnt, 10) +
2348 2349
 				"&fixmedins_code=" + miConfig.Code +
2349 2350
 				"&insuplc_admdvs=" + miConfig.InsuplcAdmdvs +