|
@@ -28,6 +28,7 @@ import com.persagy.apm.report.dependencies.saasweb.model.vo.PartitionVO;
|
|
|
import com.persagy.apm.report.dependencies.saasweb.model.vo.SimpleProjectVO;
|
|
|
import com.persagy.apm.report.dependencies.saasweb.service.ISaasWebService;
|
|
|
import com.persagy.apm.report.common.utils.ApmStrUtils;
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.commons.lang.StringUtils;
|
|
|
import org.assertj.core.util.Lists;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -47,6 +48,7 @@ import java.util.stream.Collectors;
|
|
|
* @version V1.0 2021-05-19 10:39:15
|
|
|
*/
|
|
|
@Service
|
|
|
+@Slf4j
|
|
|
public class ReportTypeServiceImpl extends ServiceImpl<ReportTypeMapper, ReportType>
|
|
|
implements IReportTypeService {
|
|
|
@Autowired
|
|
@@ -266,6 +268,7 @@ public class ReportTypeServiceImpl extends ServiceImpl<ReportTypeMapper, ReportT
|
|
|
for (ReportType reportType : allReportTypes) {
|
|
|
List<String> availableBelongIds = saasWebService.getAvailableAreaIds(
|
|
|
ApmStrUtils.str2List(reportType.getBuildingTypes()));
|
|
|
+ log.info("报告类型:{}, 可用分区id: {}", reportType.getName(), availableBelongIds);
|
|
|
if (!CollectionUtils.isEmpty(availableBelongIds)) {
|
|
|
listItemVOList.add(packageReportTypeListItemVO(reportType, availableBelongIds));
|
|
|
}
|