|
@@ -6,6 +6,7 @@ import com.redxun.knowledge.analysis.entity.vo.*;
|
|
import com.redxun.knowledge.analysis.service.AnalysisAlbumServiceImpl;
|
|
import com.redxun.knowledge.analysis.service.AnalysisAlbumServiceImpl;
|
|
import com.redxun.knowledge.analysis.service.AnalysisCommonServiceImpl;
|
|
import com.redxun.knowledge.analysis.service.AnalysisCommonServiceImpl;
|
|
import com.redxun.knowledge.analysis.service.AnalysisMapServiceImpl;
|
|
import com.redxun.knowledge.analysis.service.AnalysisMapServiceImpl;
|
|
|
|
+import com.redxun.knowledge.analysis.service.AnalysisSearchServiceImpl;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
@@ -43,6 +44,9 @@ public class AnalysisCommonController {
|
|
@Autowired
|
|
@Autowired
|
|
private AnalysisMapServiceImpl analysisMapService;
|
|
private AnalysisMapServiceImpl analysisMapService;
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
+ private AnalysisSearchServiceImpl analysisSearchService;
|
|
|
|
+
|
|
@ApiOperation("PC 各模块整体数量统计")
|
|
@ApiOperation("PC 各模块整体数量统计")
|
|
@GetMapping("totalAmount")
|
|
@GetMapping("totalAmount")
|
|
public JsonResult totalAmount() {
|
|
public JsonResult totalAmount() {
|
|
@@ -155,4 +159,20 @@ public class AnalysisCommonController {
|
|
List<MapCompanyVo> result = analysisMapService.organizationMaps(type,tops,sort);
|
|
List<MapCompanyVo> result = analysisMapService.organizationMaps(type,tops,sort);
|
|
return JsonResult.getSuccessResult(result);
|
|
return JsonResult.getSuccessResult(result);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ @ApiOperation("各业务系统分布")
|
|
|
|
+ @GetMapping("searchSystemDetailVisits")
|
|
|
|
+ public JsonResult searchSystemDetailVisits(@RequestParam("type") String type){
|
|
|
|
+ Map<String,Double> result = analysisSearchService.searchSystemDetailVisits(type);
|
|
|
|
+ return JsonResult.getSuccessResult(result);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @ApiOperation("组织访问量")
|
|
|
|
+ @GetMapping("organizationSearchs")
|
|
|
|
+ public JsonResult organizationSearchs(@RequestParam("type") String type,
|
|
|
|
+ @RequestParam(value = "tops",required = false,defaultValue = "10") Integer tops,
|
|
|
|
+ @RequestParam(value = "sort",required = false) String sort){
|
|
|
|
+ List<String> result = analysisSearchService.organizationSearchs(type,tops,sort);
|
|
|
|
+ return JsonResult.getSuccessResult(result);
|
|
|
|
+ }
|
|
}
|
|
}
|