Browse Source

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

csx 3 years ago
parent
commit
92398bea5f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      controllers/sg/his_api_controller.go

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

1073
 
1073
 
1074
 		for _, item := range rf {
1074
 		for _, item := range rf {
1075
 			if item.FundPayType == "610100" {
1075
 			if item.FundPayType == "610100" {
1076
-				tempFunPay610100.FundPayamt = tempFunPay610100.FundPayamt + item.FundPayamt
1076
+				tempFunPay610100.FundPayamt, _ = decimal.NewFromFloat(tempFunPay610100.FundPayamt).Add(decimal.NewFromFloat(item.FundPayamt)).Float64()
1077
 				tempFunPay610100.FundPayType = item.FundPayType
1077
 				tempFunPay610100.FundPayType = item.FundPayType
1078
 			} else {
1078
 			} else {
1079
 				var tempFunPay service.CustomStruct
1079
 				var tempFunPay service.CustomStruct