正在显示
1 个修改的文件
包含
6 行增加
和
1 行删除
| @@ -136,6 +136,11 @@ func (cashPoolService *CashPoolService) CreateCashPool(createCashPoolCommand *co | @@ -136,6 +136,11 @@ func (cashPoolService *CashPoolService) CreateCashPool(createCashPoolCommand *co | ||
| 136 | if err := transactionContext.CommitTransaction(); err != nil { | 136 | if err := transactionContext.CommitTransaction(); err != nil { |
| 137 | return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error()) | 137 | return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error()) |
| 138 | } | 138 | } |
| 139 | + cashPool.Rate, _ = strconv.ParseFloat(fmt.Sprintf("%.2f", cashPool.Rate), 64) | ||
| 140 | + cashPool.UnExchangeCash, _ = strconv.ParseFloat(fmt.Sprintf("%.2f", cashPool.UnExchangeCash), 64) | ||
| 141 | + cashPool.ExchangedSuMoney, _ = strconv.ParseFloat(fmt.Sprintf("%.2f", cashPool.ExchangedSuMoney), 64) | ||
| 142 | + cashPool.UnExchangeSuMoney, _ = strconv.ParseFloat(fmt.Sprintf("%.2f", cashPool.UnExchangeSuMoney), 64) | ||
| 143 | + cashPool.ExchangedCash, _ = strconv.ParseFloat(fmt.Sprintf("%.2f", cashPool.ExchangedCash), 64) | ||
| 139 | return cashPool, nil | 144 | return cashPool, nil |
| 140 | } | 145 | } |
| 141 | } | 146 | } |
| @@ -1201,7 +1206,7 @@ func (cashPoolService *CashPoolService) ImportCreateExchangeCashPerson(createExc | @@ -1201,7 +1206,7 @@ func (cashPoolService *CashPoolService) ImportCreateExchangeCashPerson(createExc | ||
| 1201 | return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error()) | 1206 | return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error()) |
| 1202 | } | 1207 | } |
| 1203 | 1208 | ||
| 1204 | - fmt.Printf("员工:%+v\n", peopleFound[0]) | 1209 | + fmt.Printf("员工:%+v\n", len(peopleFound)) |
| 1205 | 1210 | ||
| 1206 | if len(peopleFound) > 0 { // 追加素币兑换或撤回素币兑换 | 1211 | if len(peopleFound) > 0 { // 追加素币兑换或撤回素币兑换 |
| 1207 | // 获取兑换清单员工已兑换素币 | 1212 | // 获取兑换清单员工已兑换素币 |
-
请 注册 或 登录 后发表评论