mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-09 20:40:03 +08:00
update添加在途金额字段
This commit is contained in:
@@ -25,6 +25,7 @@ import com.jsowell.adapay.factory.AdapayConfigFactory;
|
||||
import com.jsowell.adapay.operation.PaymentReverseOperation;
|
||||
import com.jsowell.adapay.response.*;
|
||||
import com.jsowell.adapay.service.AdapayService;
|
||||
import com.jsowell.adapay.vo.AdapayAccountBalanceVO;
|
||||
import com.jsowell.adapay.vo.AdapayCorpMemberVO;
|
||||
import com.jsowell.adapay.vo.DrawCashDetailVO;
|
||||
import com.jsowell.adapay.vo.PaymentInfo;
|
||||
@@ -121,7 +122,7 @@ import java.util.concurrent.ScheduledExecutorService;
|
||||
import java.util.concurrent.ThreadFactory;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
@ActiveProfiles("dev")
|
||||
@ActiveProfiles("pre")
|
||||
@SpringBootTest(classes = JsowellApplication.class, webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
|
||||
@RunWith(SpringRunner.class)
|
||||
public class SpringBootTestController {
|
||||
@@ -309,6 +310,12 @@ public class SpringBootTestController {
|
||||
|
||||
private final ScheduledExecutorService scheduledExecutorService = Executors.newScheduledThreadPool(10, JsowellThreadFactory.forName("test-thread-factory"));
|
||||
|
||||
@Test
|
||||
public void queryAdapayAccountBalanceTest() throws BaseAdaPayException {
|
||||
AdapayAccountBalanceVO adapayAccountBalanceVO = adapayService.queryAdapayAccountBalance("459");
|
||||
System.out.println(adapayAccountBalanceVO);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testBatteryReport() throws InterruptedException {
|
||||
String orderCode = "C25787997784";
|
||||
|
||||
@@ -684,6 +684,7 @@ public class AdapayService {
|
||||
// 在途金额
|
||||
BigDecimal pendingAmount = BigDecimal.ZERO;
|
||||
List<WithdrawInfoVO> withdrawInfoVOS = clearingWithdrawInfoService.selectByMerchantId(merchantId);
|
||||
log.info("==查询提现在途金额param:{}, result:{}", JSON.toJSONString(withdrawInfoVOS), JSON.toJSONString(pendingAmount));
|
||||
if (CollectionUtils.isNotEmpty(withdrawInfoVOS)) {
|
||||
pendingAmount = withdrawInfoVOS.stream()
|
||||
.filter(item -> "pending".equals(item.getStatusDesc()))
|
||||
|
||||
Reference in New Issue
Block a user