Browse Source

Merge branch 'master' of http://git.shengws.com/csx/gdyb

csx 2 years ago
parent
commit
baf71f5281
1 changed files with 6 additions and 6 deletions
  1. 6 6
      controllers/sg/his_api_controller.go

+ 6 - 6
controllers/sg/his_api_controller.go View File

@@ -670,12 +670,12 @@ func (c *HisApiController) Check3102() {
670 670
 	}
671 671
 	//处方医嘱信息
672 672
 	fed.MatnStas = "0"
673
-	fed.MedfeeSumamt = strconv.FormatFloat(order.MedfeeSumamt, 'E', -1, 64)
674
-	fed.OwnpayAmt = strconv.FormatFloat(order.FulamtOwnpayAmt, 'E', -1, 64)
675
-	fed.SelfpayAmt = strconv.FormatFloat(order.PreselfpayAmt, 'E', -1, 64)
676
-	fed.AcctPayamt = strconv.FormatFloat(order.AcctPay, 'E', -1, 64)
677
-	fed.MaAmt = strconv.FormatFloat(order.MafPay, 'E', -1, 64)
678
-	fed.HifpPayamt = strconv.FormatFloat(order.HifpPay, 'E', -1, 64)
673
+	fed.MedfeeSumamt = fmt.Sprintf("%.2f", order.MedfeeSumamt)
674
+	fed.OwnpayAmt = fmt.Sprintf("%.2f", order.FulamtOwnpayAmt)
675
+	fed.SelfpayAmt = fmt.Sprintf("%.2f", order.PreselfpayAmt)
676
+	fed.AcctPayamt = fmt.Sprintf("%.2f", order.AcctPay)
677
+	fed.MaAmt = fmt.Sprintf("%.2f", order.MafPay)
678
+	fed.HifpPayamt = fmt.Sprintf("%.2f", order.HifpPay)
679 679
 	fed.SetlTotlnum = "1"
680 680
 	fed.Insutype = his.Insutype
681 681
 	fed.ReimFlag = "0"