项目全览
This commit is contained in:
parent
72af6f543a
commit
b6293c0bc7
|
|
@ -0,0 +1,42 @@
|
|||
package com.bonus.base.screen.controller;
|
||||
|
||||
|
||||
import com.bonus.base.basic.domain.TtSysUserCheckReqVo;
|
||||
import com.bonus.base.screen.service.ProjectOverviewService;
|
||||
import com.bonus.common.core.web.domain.AjaxResult;
|
||||
import com.bonus.common.security.annotation.RequiresPermissions;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
/**
|
||||
* 项目全览
|
||||
*/
|
||||
@Slf4j
|
||||
@RestController
|
||||
@RequestMapping("/projectOverview")
|
||||
public class ProjectOverviewController {
|
||||
|
||||
|
||||
@Resource
|
||||
private ProjectOverviewService projectOverviewService;
|
||||
|
||||
|
||||
@ApiOperation(value = "感知设备")
|
||||
@RequiresPermissions("tt:userCheck:list")
|
||||
@PostMapping("/getTtSysUserCheckList")
|
||||
public AjaxResult getTtSysUserCheckList(@RequestBody TtSysUserCheckReqVo ttSysUserCheckReqVo) {
|
||||
try {
|
||||
|
||||
return null;
|
||||
}catch (Exception e){
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,30 @@
|
|||
package com.bonus.base.screen.domain;
|
||||
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class ProjectOverviewVo {
|
||||
|
||||
/**
|
||||
* 感知设备总数
|
||||
*/
|
||||
private Integer totalQuantity;
|
||||
|
||||
/**
|
||||
* 设备在线总数
|
||||
*/
|
||||
private Integer onlineQuantity;
|
||||
|
||||
/**
|
||||
* 设备异常总数
|
||||
*/
|
||||
private Integer totalExceptionCount;
|
||||
|
||||
/**
|
||||
* 设备报警次数
|
||||
*/
|
||||
private Integer deviceAlarms;
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
package com.bonus.base.screen.mapper;
|
||||
|
||||
public interface ProjectOverviewMapper {
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
package com.bonus.base.screen.service;
|
||||
|
||||
public interface ProjectOverviewService {
|
||||
}
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
package com.bonus.base.screen.service.impl;
|
||||
|
||||
import com.bonus.base.screen.service.ProjectOverviewService;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@Slf4j
|
||||
@Service
|
||||
public class ProjectOverviewServiceImpl implements ProjectOverviewService {
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -1,5 +1,6 @@
|
|||
package com.bonus.base.screen.service;
|
||||
package com.bonus.base.screen.service.impl;
|
||||
|
||||
import com.bonus.base.screen.service.ScreenDevModelService;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
|
|
@ -9,5 +10,5 @@ import org.springframework.stereotype.Service;
|
|||
*/
|
||||
@Service
|
||||
@Slf4j
|
||||
public class ScreenDevModelServiceImpl implements ScreenDevModelService{
|
||||
public class ScreenDevModelServiceImpl implements ScreenDevModelService {
|
||||
}
|
||||
|
|
@ -2,6 +2,6 @@
|
|||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.bonus.base.bigScrap.mapper.ProjectOverviewMapper">
|
||||
<mapper namespace="com.bonus.base.screen.mapper.ProjectOverviewMapper">
|
||||
|
||||
</mapper>
|
||||
|
|
|
|||
Loading…
Reference in New Issue