Commit 705b1d0a authored by renjie's avatar renjie

企业认证添加公司名

parent 2fe9d45b
......@@ -1201,11 +1201,15 @@ public class AccountServiceImpl implements AccountService {
throw new ClientRequestException(AccountErrorCode.NAMENOTEXIST);
if (isAgree) {
account.setAuthorized(2);
CompanyAuthorize companyAuthorize = companyAuthorizeRepository.findByUsername(username);
account.setCompanyName(companyAuthorize.getCompanyName());
repository.save(account);
}
else {
account.setAuthorized(3);
account.setCompanyName(null);
repository.save(account);
CompanyAuthorize companyAuthorize = companyAuthorizeRepository.findByUsername(username);
if (companyAuthorize != null) {
if (companyAuthorize.getCompanyLicenseId() != null)
......
......@@ -400,7 +400,7 @@ public class AdministratorServiceImpl implements AdministratorService {
accountPromotionDtos.add(new AccountPromotionDto(account1));
});
}
log.error(accountPromotionDtos.size() +"");
Page<AccountPromotionDto> accountPromotionDtoPage = new PageImpl<AccountPromotionDto>(accountPromotionDtos);
promotionQueryResultDto.setUsers(accountPromotionDtoPage);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment