|
|
@@ -4,6 +4,7 @@ import com.github.microservice.core.util.JsonUtil;
|
|
|
import com.github.microservice.core.util.bean.BeanUtil;
|
|
|
import com.github.microservice.pay.client.model.PayProductParameter;
|
|
|
import com.github.microservice.pay.client.model.ledger.GeneralLedgerModel;
|
|
|
+import com.github.microservice.pay.client.model.ledger.GeneralLedgerQueryModel;
|
|
|
import com.github.microservice.pay.client.model.ledger.TransactionLogModel;
|
|
|
import com.github.microservice.pay.client.model.ledger.TransferTransactionsModel;
|
|
|
import com.github.microservice.pay.client.model.weChatMiniApp.WeChatMiniAppPayRet;
|
|
|
@@ -189,7 +190,7 @@ public class BalancePayService {
|
|
|
|
|
|
public ResultContent<Long> queryUserBalance(String projectOid, String userId) {
|
|
|
PayAccount userBalance = payAccountService.getUserChildren(projectOid, userId, PaymentChannelType.BalancePayment);
|
|
|
- ResultContent<GeneralLedgerModel> ret = generalLedgerService.get(userBalance.getLedgerId());
|
|
|
+ ResultContent<GeneralLedgerQueryModel> ret = generalLedgerService.get(userBalance.getLedgerId());
|
|
|
if (ret.getState().equals(ResultState.Success)) {
|
|
|
return ResultContent.buildContent(ret.getContent().getBalance());
|
|
|
}
|