|
@@ -187,18 +187,18 @@ public class AdwebSiteServiceImpl extends ServiceImpl<AdwebSiteMapper, AdwebSite
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public String getSiteNameByCode(String siteCode) {
|
|
|
+ public AdwebSite getSiteByCode(String siteCode) {
|
|
|
try {
|
|
|
List<AdwebSite> adwebSites = this.list(new LambdaQueryWrapper<AdwebSite>()
|
|
|
.eq(AdwebSite::getCode, siteCode)
|
|
|
.ne(AdwebSite::getStatus, 0));
|
|
|
if (!adwebSites.isEmpty()) {
|
|
|
- return adwebSites.get(0).getName();
|
|
|
+ return adwebSites.get(0);
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
- log.error("获取站点名称失败");
|
|
|
+ log.error("获取站点失败, code = " + siteCode, e);
|
|
|
}
|
|
|
- return "";
|
|
|
+ return null;
|
|
|
}
|
|
|
/**
|
|
|
* 根据用户id查询所有未删除的站点
|