修改:
1.直接返回查询TK账号统计次数 2.修复查询主播国家 sqlXML BUG 3.添加主播HostInfo日期格式化注解
This commit is contained in:
@@ -21,15 +21,16 @@ public class CommonServiceImpl implements CommonService {
|
||||
private RedisTemplate redisTemplate;
|
||||
|
||||
@Override
|
||||
public AccountCrawlCount getAccountCrawlCount(String accountName) {
|
||||
public Integer getAccountCrawlCount(String accountName) {
|
||||
AccountCrawlCount accountCrawlCount = new AccountCrawlCount();
|
||||
accountCrawlCount.setAccountName(accountName);
|
||||
Object o = redisTemplate.opsForValue().get("tkaccount:" + accountName);
|
||||
if (o != null) {
|
||||
accountCrawlCount.setCount(Integer.valueOf(o.toString()));
|
||||
return accountCrawlCount;
|
||||
return accountCrawlCount.getCount();
|
||||
}else{
|
||||
throw new BusinessException(ErrorCode.NOT_FOUND_ERROR);
|
||||
accountCrawlCount.setCount(0);
|
||||
return accountCrawlCount.getCount();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user