This commit is contained in:
cwchen 2024-03-27 10:43:46 +08:00
parent f63da34fab
commit 2e1fc89d63
6 changed files with 76 additions and 0 deletions

View File

@ -0,0 +1,26 @@
package com.securitycontrol.entity.screen.dto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
* @authorcwchen
* @date2024-03-27-10:28
* @version1.0
* @description大屏公共参数-dto
*/
@Data
public class ScreenDto {
@ApiModelProperty("组织机构ID")
private String orgId;
@ApiModelProperty("角色编码")
private String roleCode;
@ApiModelProperty("标段编码")
private String bidCode;
@ApiModelProperty("用户ID")
private String userId;
}

View File

@ -0,0 +1,17 @@
package com.securitycontrol.entity.screen.dto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
* @authorcwchen
* @date2024-03-27-10:30
* @version1.0
* @description大屏前端接收参数-dto
*/
@Data
public class ScreenParamDto extends ScreenDto{
@ApiModelProperty("参数")
private String param;
}

View File

@ -86,6 +86,10 @@
<groupId>net.logstash.logback</groupId>
<artifactId>logstash-logback-encoder</artifactId>
</dependency>
<dependency>
<groupId>com.securitycontrol</groupId>
<artifactId>securitycontrol-commons-entity</artifactId>
</dependency>
</dependencies>
<build>
<finalName>${project.artifactId}</finalName>

View File

@ -1,6 +1,10 @@
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.IScIndexService;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@ -18,4 +22,10 @@ public class ScIndexController {
@Resource(name = "IScIndexService")
private IScIndexService service;
@ApiOperation(value = "工程统计")
@GetMapping("proStatusStatistics")
public AjaxResult proStatusStatistics(ScreenParamDto dto){
return service.proStatusStatistics(dto);
}
}

View File

@ -1,5 +1,8 @@
package com.securitycontrol.screen.service;
import com.securitycontrol.common.core.web.domain.AjaxResult;
import com.securitycontrol.entity.screen.dto.ScreenParamDto;
/**
* @authorcwchen
* @date2024-03-27-10:14
@ -7,4 +10,13 @@ package com.securitycontrol.screen.service;
* @description省侧大屏-业务层
*/
public interface IScIndexService {
/**
* 工程统计
* @param dto
* @return AjaxResult
* @description
* @author cwchen
* @date 2024/3/27 10:42
*/
AjaxResult proStatusStatistics(ScreenParamDto dto);
}

View File

@ -1,5 +1,7 @@
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.IScIndexMapper;
import com.securitycontrol.screen.service.IScIndexService;
import lombok.extern.slf4j.Slf4j;
@ -19,4 +21,9 @@ public class ScIndexServiceImpl implements IScIndexService {
@Resource(name = "IScIndexMapper")
private IScIndexMapper mapper;
@Override
public AjaxResult proStatusStatistics(ScreenParamDto dto) {
return null;
}
}