...
|
...
|
@@ -136,6 +136,11 @@ func (cashPoolService *CashPoolService) CreateCashPool(createCashPoolCommand *co |
|
|
if err := transactionContext.CommitTransaction(); err != nil {
|
|
|
return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
|
|
|
}
|
|
|
cashPool.Rate, _ = strconv.ParseFloat(fmt.Sprintf("%.2f", cashPool.Rate), 64)
|
|
|
cashPool.UnExchangeCash, _ = strconv.ParseFloat(fmt.Sprintf("%.2f", cashPool.UnExchangeCash), 64)
|
|
|
cashPool.ExchangedSuMoney, _ = strconv.ParseFloat(fmt.Sprintf("%.2f", cashPool.ExchangedSuMoney), 64)
|
|
|
cashPool.UnExchangeSuMoney, _ = strconv.ParseFloat(fmt.Sprintf("%.2f", cashPool.UnExchangeSuMoney), 64)
|
|
|
cashPool.ExchangedCash, _ = strconv.ParseFloat(fmt.Sprintf("%.2f", cashPool.ExchangedCash), 64)
|
|
|
return cashPool, nil
|
|
|
}
|
|
|
}
|
...
|
...
|
@@ -1201,7 +1206,7 @@ func (cashPoolService *CashPoolService) ImportCreateExchangeCashPerson(createExc |
|
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
|
|
}
|
|
|
|
|
|
fmt.Printf("员工:%+v\n", peopleFound[0])
|
|
|
fmt.Printf("员工:%+v\n", len(peopleFound))
|
|
|
|
|
|
if len(peopleFound) > 0 { // 追加素币兑换或撤回素币兑换
|
|
|
// 获取兑换清单员工已兑换素币
|
...
|
...
|
|