Commit d01a0d7a by 林永健

fix(integral): 添加账户余额和批次总金额日志输出

- 在计算批次总金额后记录账户余额和批次总金额
- 便于排查账户余额不足的相关问题
1 parent 5328cffb
......@@ -803,6 +803,7 @@ public class IntegralTransferOutService {
.build()
);
Long allPayAmount = list.stream().mapToLong(IntegralTransferOut::getPayAmount).sum();
log.info("账户余额:{}, 批次总金额:{}", balance, allPayAmount);
if (balance < allPayAmount) {
throw new RpcServiceException("账户余额不足,请确认后重新操作");
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!