账号修改状态

master
bynt 3 years ago
parent 06e54fae69
commit 8f8d3413fd

@ -222,7 +222,7 @@ public class SellerAccountServiceImpl implements SellerAccountService {
*/
sellerAccount.setShopTitle(shop.getTitle());
sellerAccount.setAppKey(miProperties.getAppKey());
sellerAccount.setStatus(DefaultNumberConstants.ONE_NUMBER);
sellerAccount.setStatus(DefaultNumberConstants.ZERO_NUMBER);
sellerAccount.setParentId(NumberUtil.parseLong(String.valueOf(DefaultNumberConstants.ZERO_NUMBER)));
sellerAccount.setNickname(EmojiUtil.toAlias(masterUserName));
sellerAccount = sellerAccountRepository.save(sellerAccount);
@ -237,7 +237,7 @@ public class SellerAccountServiceImpl implements SellerAccountService {
subAccount.setShopTitle(shop.getTitle());
subAccount.setParentId(sellerAccount.getId());
subAccount.setAppKey(miProperties.getAppKey());
subAccount.setStatus(DefaultNumberConstants.ONE_NUMBER);
subAccount.setStatus(DefaultNumberConstants.ZERO_NUMBER);
subAccount.setNickname(EmojiUtil.toAlias(nickname));
SellerAccount account = sellerAccountRepository.save(subAccount);
// 清除缓存
@ -271,7 +271,7 @@ public class SellerAccountServiceImpl implements SellerAccountService {
account.setSessionKey(accessToken);
account.setShopTitle(shop.getTitle());
account.setAppKey(miProperties.getAppKey());
account.setStatus(DefaultNumberConstants.ONE_NUMBER);
account.setStatus(DefaultNumberConstants.ZERO_NUMBER);
// TODO 查询订购信息
/* Optional<Date> max = orderTimeByToken.stream().map(ArticleSub::getDeadline).max(Date::compareTo);
max.ifPresent(sellerAccount::setExpirationTime);*/

Loading…
Cancel
Save