From 350736c6c954f10f0dd84c00210a9d8c0271a232 Mon Sep 17 00:00:00 2001 From: wujingtao Date: Tue, 16 Nov 2021 17:12:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E9=80=9A=E6=B7=98=E5=AE=9D=E5=90=8C?= =?UTF-8?q?=E6=AD=A5=E6=9C=8D=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/hchbox/api/RequestCore.java | 2 ++ .../com/hchbox/service/impl/SellerAccountServiceImpl.java | 4 ++-- .../src/main/java/com/hchbox/vo/UpdateAccountsVo.java | 5 +++++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/service/trade-service-others/trade-service-others-account/src/main/java/com/hchbox/api/RequestCore.java b/service/trade-service-others/trade-service-others-account/src/main/java/com/hchbox/api/RequestCore.java index 7527a67..29d356a 100644 --- a/service/trade-service-others/trade-service-others-account/src/main/java/com/hchbox/api/RequestCore.java +++ b/service/trade-service-others/trade-service-others-account/src/main/java/com/hchbox/api/RequestCore.java @@ -141,6 +141,7 @@ public class RequestCore { Map map = new HashMap<>(); map.put("accountBalance", payOrder.getAmount()); map.put("id", payOrder.getMasterUserId()); + map.put("synchronizationDay", payOrder.getDays()); String post = HttpUtil.post(reqUrl, JSONUtil.parseObj(map).toString()); JSONObject jsonObject; try { @@ -213,6 +214,7 @@ public class RequestCore { /** * 同步历史订单信息,修改账号信息 + * * @param payTwoOrder * @return */ diff --git a/service/trade-service-source/trade-service-source-taobao/src/main/java/com/hchbox/service/impl/SellerAccountServiceImpl.java b/service/trade-service-source/trade-service-source-taobao/src/main/java/com/hchbox/service/impl/SellerAccountServiceImpl.java index 9974433..d2f659b 100644 --- a/service/trade-service-source/trade-service-source-taobao/src/main/java/com/hchbox/service/impl/SellerAccountServiceImpl.java +++ b/service/trade-service-source/trade-service-source-taobao/src/main/java/com/hchbox/service/impl/SellerAccountServiceImpl.java @@ -167,7 +167,8 @@ public class SellerAccountServiceImpl implements SellerAccountService { log.info("=============== the account nickname as {} ===============", account.getNickname()); account.setStatus(DefaultNumberConstants.ONE_NUMBER); account.setAccountBalance(updateAccountsVo.getAccountBalance()); - Boolean aBoolean = taoBaoRdsPushService.turnOnPushService(account.getSessionKey(), (long) DefaultNumberConstants.NINETY); +// Boolean aBoolean = taoBaoRdsPushService.turnOnPushService(account.getSessionKey(), (long) DefaultNumberConstants.NINETY); + Boolean aBoolean = taoBaoRdsPushService.turnOnPushService(account.getSessionKey(), updateAccountsVo.getSynchronizationDay()); taoBaoMessageService.openMessagePermit(account.getSessionKey()); log.info("================== the push service result as {} ==================", aBoolean); sellerAccountRepository.save(account); @@ -518,7 +519,6 @@ public class SellerAccountServiceImpl implements SellerAccountService { } - private SellerAccount createSellerAccount(AuthTokenResponseDTO tokenDTO) { SellerAccount seller = new SellerAccount(); seller.setLastLoginTime(DateUtil.date()); diff --git a/trade-common/src/main/java/com/hchbox/vo/UpdateAccountsVo.java b/trade-common/src/main/java/com/hchbox/vo/UpdateAccountsVo.java index f604258..4cdfd01 100644 --- a/trade-common/src/main/java/com/hchbox/vo/UpdateAccountsVo.java +++ b/trade-common/src/main/java/com/hchbox/vo/UpdateAccountsVo.java @@ -4,6 +4,10 @@ import lombok.Data; import javax.validation.constraints.NotNull; import java.math.BigDecimal; + +/** + * @author wujingtao + */ @Data public class UpdateAccountsVo { @@ -14,4 +18,5 @@ public class UpdateAccountsVo { private Long id; private Integer massNum; + private Long synchronizationDay; }