Commit a4942c50 by gonglei

加入框架代码

1 parent 4798f03d
...@@ -101,6 +101,7 @@ public class AccountService extends AbstractAuctionService { ...@@ -101,6 +101,7 @@ public class AccountService extends AbstractAuctionService {
if (StringUtils.hasText(recommendCode)) { if (StringUtils.hasText(recommendCode)) {
accountTagDao.findTopByRecommendCode(recommendCode).ifPresent(accountTag -> { accountTagDao.findTopByRecommendCode(recommendCode).ifPresent(accountTag -> {
save.getAccountTags().add(accountTag); save.getAccountTags().add(accountTag);
accountTagDao.updateAccountCount();
}); });
} }
return save; return save;
...@@ -271,6 +272,7 @@ public class AccountService extends AbstractAuctionService { ...@@ -271,6 +272,7 @@ public class AccountService extends AbstractAuctionService {
if (StringUtils.hasText(recommendCode)) { if (StringUtils.hasText(recommendCode)) {
accountTagDao.findTopByRecommendCode(recommendCode).ifPresent(accountTag -> { accountTagDao.findTopByRecommendCode(recommendCode).ifPresent(accountTag -> {
account.getAccountTags().add(accountTag); account.getAccountTags().add(accountTag);
accountTagDao.updateAccountCount();
}); });
} }
} else if (account.getAccountType() == Account.AccountType.PERSON) { } else if (account.getAccountType() == Account.AccountType.PERSON) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!