This commit is contained in:
parent
23632d13e5
commit
b92f859ee4
|
|
@ -0,0 +1,18 @@
|
||||||
|
package com.securitycontrol.entity.screen.vo;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @className:DataAnalysisVo
|
||||||
|
* @author:cwchen
|
||||||
|
* @date:2024-09-04-17:05
|
||||||
|
* @version:1.0
|
||||||
|
* @description:数据分析应用
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class DataAnalysisVo {
|
||||||
|
/**名称*/
|
||||||
|
private String dataAnalysisName;
|
||||||
|
/**数量*/
|
||||||
|
private Integer num;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,34 @@
|
||||||
|
package com.securitycontrol.screen.controller;
|
||||||
|
|
||||||
|
import com.securitycontrol.common.core.web.domain.AjaxResult;
|
||||||
|
import com.securitycontrol.entity.screen.dto.ScreenParamDto;
|
||||||
|
import com.securitycontrol.screen.service.DataAnalysisService;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @className:DataAnalysisController
|
||||||
|
* @author:cwchen
|
||||||
|
* @date:2024-09-04-16:58
|
||||||
|
* @version:1.0
|
||||||
|
* @description:数据分析应用
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/largeScreen/dataAnalysis/")
|
||||||
|
@Slf4j
|
||||||
|
public class DataAnalysisController {
|
||||||
|
|
||||||
|
@Resource(name = "DataAnalysisService")
|
||||||
|
private DataAnalysisService service;
|
||||||
|
|
||||||
|
@ApiOperation("根据类型获取数据分析应用")
|
||||||
|
@GetMapping("getDataAnalysisByType")
|
||||||
|
public AjaxResult getDataAnalysisByType(ScreenParamDto dto){
|
||||||
|
return service.getDataAnalysisByType(dto);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,14 @@
|
||||||
|
package com.securitycontrol.screen.mapper;
|
||||||
|
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @className:DataAnalysisMapper
|
||||||
|
* @author:cwchen
|
||||||
|
* @date:2024-09-04-16:59
|
||||||
|
* @version:1.0
|
||||||
|
* @description:数据分析应用
|
||||||
|
*/
|
||||||
|
@Repository(value = "DataAnalysisMapper")
|
||||||
|
public interface DataAnalysisMapper {
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,22 @@
|
||||||
|
package com.securitycontrol.screen.service;
|
||||||
|
|
||||||
|
import com.securitycontrol.common.core.web.domain.AjaxResult;
|
||||||
|
import com.securitycontrol.entity.screen.dto.ScreenParamDto;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @className:DataAnalysisService
|
||||||
|
* @author:cwchen
|
||||||
|
* @date:2024-09-04-16:58
|
||||||
|
* @version:1.0
|
||||||
|
* @description:数据分析应用
|
||||||
|
*/
|
||||||
|
public interface DataAnalysisService {
|
||||||
|
/**
|
||||||
|
* 根据类型获取数据分析应用
|
||||||
|
* @param dto
|
||||||
|
* @return AjaxResult
|
||||||
|
* @author cwchen
|
||||||
|
* @date 2024/9/4 17:03
|
||||||
|
*/
|
||||||
|
AjaxResult getDataAnalysisByType(ScreenParamDto dto);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,36 @@
|
||||||
|
package com.securitycontrol.screen.service.impl;
|
||||||
|
|
||||||
|
import com.securitycontrol.common.core.web.domain.AjaxResult;
|
||||||
|
import com.securitycontrol.entity.screen.dto.ScreenParamDto;
|
||||||
|
import com.securitycontrol.screen.mapper.DataAnalysisMapper;
|
||||||
|
import com.securitycontrol.screen.service.DataAnalysisService;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @className:DataAnalysisServiceImpl
|
||||||
|
* @author:cwchen
|
||||||
|
* @date:2024-09-04-16:58
|
||||||
|
* @version:1.0
|
||||||
|
* @description:数据分析应用
|
||||||
|
*/
|
||||||
|
@Service(value = "DataAnalysisService")
|
||||||
|
@Slf4j
|
||||||
|
public class DataAnalysisServiceImpl implements DataAnalysisService {
|
||||||
|
|
||||||
|
@Resource(name = "DataAnalysisMapper")
|
||||||
|
private DataAnalysisMapper mapper;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public AjaxResult getDataAnalysisByType(ScreenParamDto dto) {
|
||||||
|
|
||||||
|
try {
|
||||||
|
|
||||||
|
} catch (Exception e) {
|
||||||
|
log.error(e.toString(),e);
|
||||||
|
}
|
||||||
|
return AjaxResult.success();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,5 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
||||||
|
<mapper namespace="com.securitycontrol.screen.mapper.DataAnalysisMapper">
|
||||||
|
|
||||||
|
</mapper>
|
||||||
Loading…
Reference in New Issue