初始化项目
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
package com.shining.cloud.config;
|
||||
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.ComponentScan;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
|
||||
|
||||
import springfox.documentation.builders.ApiInfoBuilder;
|
||||
import springfox.documentation.builders.RequestHandlerSelectors;
|
||||
import springfox.documentation.service.ApiInfo;
|
||||
import springfox.documentation.spi.DocumentationType;
|
||||
import springfox.documentation.spring.web.plugins.Docket;
|
||||
import springfox.documentation.swagger2.annotations.EnableSwagger2;
|
||||
|
||||
/**
|
||||
* @author hongawen
|
||||
* @date: 2019/9/19 18:29
|
||||
* swagger基础配置
|
||||
*/
|
||||
@Configuration
|
||||
@EnableSwagger2
|
||||
@ComponentScan(basePackages= {"com.shining.cloud.controller"})
|
||||
@EnableWebMvc
|
||||
public class SwaggerConfig {
|
||||
|
||||
@Bean
|
||||
public Docket api() {
|
||||
return new Docket(DocumentationType.SWAGGER_2)
|
||||
.select()
|
||||
.apis(RequestHandlerSelectors.any())
|
||||
.build()
|
||||
.apiInfo(apiInfo());
|
||||
}
|
||||
|
||||
private ApiInfo apiInfo() {
|
||||
return new ApiInfoBuilder()
|
||||
.title("灿能云接口API 文档")
|
||||
.description("HTTP对外开放接口")
|
||||
.version("1.0.0")
|
||||
// .termsOfServiceUrl("http://xxx.xxx.com")
|
||||
// .license("LICENSE")
|
||||
// .licenseUrl("http://xxx.xxx.com")
|
||||
.build();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,75 @@
|
||||
package com.shining.cloud.controller.AdminStatistic;
|
||||
|
||||
import com.njcn.enums.app.ReturnCode;
|
||||
import com.njcn.pojo.commons.DataIntegrMsgData;
|
||||
import com.njcn.pojo.commons.ResponseMsgData;
|
||||
import com.njcn.utils.PubUtils;
|
||||
import com.njcn.utils.UserUtil;
|
||||
import com.shining.cloud.enums.AdminStatistic.DataIntegrityEnums;
|
||||
import com.shining.cloud.enums.information.DevMsgCodeEnum;
|
||||
import com.shining.cloud.pojo.AdminStatistic.DataIntegrity;
|
||||
import com.shining.cloud.pojo.AdminStatistic.Integrity;
|
||||
import com.shining.cloud.pojo.information.DevMsgDetail;
|
||||
import com.shining.cloud.service.AdminStatistic.DataIntegrityService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiImplicitParams;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import static sun.security.krb5.Confounder.longValue;
|
||||
|
||||
/**
|
||||
* @description: 统计终端在线率
|
||||
* @author: denghuajun
|
||||
* @time: 2020-01-02 09:53:02
|
||||
**/
|
||||
@RestController
|
||||
@RequestMapping("/dataIntegrity")
|
||||
@Api(tags = "统计数据完整性率接口")
|
||||
public class DataIntegrityController {
|
||||
@Autowired
|
||||
private DataIntegrityService dataIntegrityService;
|
||||
@Autowired
|
||||
UserUtil userUtil;
|
||||
|
||||
/**
|
||||
* 统计数据完整性率
|
||||
*/
|
||||
@PostMapping("getDataIntegrity")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "userId", value = "用户ID", required = true, paramType = "query"),
|
||||
})
|
||||
@ApiOperation(value = "统计数据完整性率入口", notes = "统计数据完整性率列表", response = ResponseMsgData.class)
|
||||
public DataIntegrMsgData deviceMsgList(String userId, HttpServletRequest request) {
|
||||
DataIntegrMsgData responseData = null;
|
||||
if (PubUtils.isBlank(userId)) {
|
||||
responseData = PubUtils.assignmentAppDataIntgrResponse(ReturnCode.RETURN_FAIL, DataIntegrityEnums.USERID_WRONG.getCode(), DataIntegrityEnums.USERID_WRONG.getMsg(), null, null, null,null);
|
||||
return responseData;
|
||||
}
|
||||
|
||||
try {
|
||||
//获取相应的值
|
||||
Integrity integrity = new Integrity();
|
||||
List<Integer> lineIndex = new ArrayList<>();
|
||||
lineIndex = userUtil.ApplistLine(userId);
|
||||
if(!lineIndex.isEmpty()){
|
||||
integrity=dataIntegrityService.getIngrity(lineIndex);
|
||||
List<DataIntegrity> dataIntegrities = dataIntegrityService.getDataIntegrity(lineIndex);
|
||||
responseData = PubUtils.assignmentAppDataIntgrResponse(ReturnCode.RETURN_SUCCESS,DataIntegrityEnums.GETDATAINTEGRITY_SUCCESS.getCode(), DataIntegrityEnums.GETDATAINTEGRITY_SUCCESS.getMsg(), integrity.getTimeStart(), integrity.getTimeEnd(),integrity.getIntegrityz(),dataIntegrities);
|
||||
}else {
|
||||
responseData = PubUtils.assignmentAppDataIntgrResponse(ReturnCode.RETURN_FAIL,DataIntegrityEnums.GETDATAINTEGRITY_FALL.getCode(), DataIntegrityEnums.GETDATAINTEGRITY_FALL.getMsg(), null, null, null,null);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
responseData = PubUtils.assignmentAppDataIntgrResponse(ReturnCode.RETURN_FAIL,DataIntegrityEnums.GETDATAINTEGRITY_FALL.getCode(), DataIntegrityEnums.GETDATAINTEGRITY_FALL.getMsg(), null, null, null,null);
|
||||
}
|
||||
return responseData;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
package com.shining.cloud.controller.AdminStatistic;
|
||||
|
||||
import com.njcn.enums.app.ReturnCode;
|
||||
import com.njcn.pojo.commons.DataIntegrMsgData;
|
||||
import com.njcn.pojo.commons.ResponseMsgData;
|
||||
import com.njcn.pojo.commons.StaticMsgData;
|
||||
import com.njcn.utils.PubUtils;
|
||||
import com.njcn.utils.UserUtil;
|
||||
import com.shining.cloud.enums.AdminStatistic.DataIntegrityEnums;
|
||||
import com.shining.cloud.enums.AdminStatistic.StaticaEnums;
|
||||
import com.shining.cloud.pojo.AdminStatistic.DataIntegrity;
|
||||
import com.shining.cloud.pojo.AdminStatistic.DevStatic;
|
||||
import com.shining.cloud.pojo.AdminStatistic.Integrity;
|
||||
import com.shining.cloud.pojo.AdminStatistic.StaticInfo;
|
||||
import com.shining.cloud.service.AdminStatistic.DataIntegrityService;
|
||||
import com.shining.cloud.service.AdminStatistic.StaticService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiImplicitParams;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @description: 监测点统计
|
||||
* @author: denghuajun
|
||||
* @time: 2020-01-02 09:56:25
|
||||
**/
|
||||
@RestController
|
||||
@RequestMapping("/dataIntegrity")
|
||||
@Api(tags = "统计装置在线率接口")
|
||||
public class StaticController {
|
||||
@Autowired
|
||||
private StaticService staticService;
|
||||
@Autowired
|
||||
UserUtil userUtil;
|
||||
|
||||
/**
|
||||
* 统计数据完整性率
|
||||
*/
|
||||
@PostMapping("getDevStatus")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "userId", value = "用户ID", required = true, paramType = "query"),
|
||||
})
|
||||
@ApiOperation(value = "统计装置在线率入口", notes = "统计装置在线率列表", response = ResponseMsgData.class)
|
||||
public StaticMsgData getDevStatus(String userId, HttpServletRequest request) {
|
||||
StaticMsgData responseData = null;
|
||||
if (PubUtils.isBlank(userId)) {
|
||||
responseData = PubUtils.assignmentAppStaticResponse(ReturnCode.RETURN_FAIL, StaticaEnums.USERID_WRONG.getCode(), StaticaEnums.USERID_WRONG.getMsg(), null,null,null,0,null);
|
||||
return responseData;
|
||||
}
|
||||
|
||||
try {
|
||||
//获取相应的值
|
||||
StaticInfo integrity = new StaticInfo();
|
||||
integrity=staticService.getStatic(userUtil.ApplistDev(userId));
|
||||
List<DevStatic> dataIntegrities = staticService.getDevStatic(userUtil.ApplistDev(userId));
|
||||
responseData = PubUtils.assignmentAppStaticResponse(ReturnCode.RETURN_SUCCESS,StaticaEnums.GETDEVSTATUS_SUCCESS.getCode(), StaticaEnums.GETDEVSTATUS_SUCCESS.getMsg(), integrity.getTimeStart(), integrity.getTimeEnd(),integrity.getOnlineRatez(),integrity.getComError(),dataIntegrities);
|
||||
} catch (Exception e) {
|
||||
responseData = PubUtils.assignmentAppStaticResponse(ReturnCode.RETURN_FAIL,StaticaEnums.GETDEVSTATUS_FALL.getCode(), StaticaEnums.GETDEVSTATUS_FALL.getMsg(), null, null, null,0,null);
|
||||
}
|
||||
return responseData;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
package com.shining.cloud.controller.Business;
|
||||
|
||||
import cn.hutool.core.io.FileUtil;
|
||||
import com.njcn.enums.ProjectEnum;
|
||||
import com.njcn.pojo.system.SubSystem;
|
||||
import com.njcn.service.system.SystemService;
|
||||
import com.njcn.shiro.token.TokenManager;
|
||||
import com.njcn.utils.AppConfig;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpSession;
|
||||
import java.io.File;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* @author denghuajun
|
||||
* @date 2019/11/18 22:41
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("business")
|
||||
public class BusinessController {
|
||||
|
||||
@RequestMapping("companyInfo")
|
||||
public String companyInfo(HttpServletRequest request) {
|
||||
return "Introduce/companyInfo";
|
||||
}
|
||||
|
||||
@RequestMapping("userAgreement")
|
||||
public String userAgreement(HttpServletRequest request) {
|
||||
return "Introduce/userAgreement";
|
||||
}
|
||||
|
||||
@RequestMapping("appInfo")
|
||||
public String appInfo(HttpServletRequest request) {
|
||||
return "Introduce/appInfo";
|
||||
}
|
||||
|
||||
@RequestMapping("privacyAgreement")
|
||||
public String privacyAgreement(HttpServletRequest request) {
|
||||
return "Introduce/privacyAgreement";
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package com.shining.cloud.controller;
|
||||
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import springfox.documentation.annotations.ApiIgnore;
|
||||
|
||||
/**
|
||||
* @author hongawen
|
||||
* @date: 2019/9/20 10:54
|
||||
*/
|
||||
@Controller
|
||||
@ApiIgnore
|
||||
public class PageController {
|
||||
|
||||
@GetMapping("swagger-ui.html")
|
||||
public String swagger(){
|
||||
return "swagger";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,145 @@
|
||||
package com.shining.cloud.controller.RealTimeInfo;
|
||||
|
||||
import com.njcn.enums.app.ReturnCode;
|
||||
import com.njcn.pojo.commons.ResponseData;
|
||||
import com.njcn.pojo.commons.ResponseInfoData;
|
||||
import com.njcn.pojo.commons.ResponseMsgData;
|
||||
import com.njcn.utils.PubUtils;
|
||||
import com.njcn.utils.SocketClient;
|
||||
import com.shining.cloud.enums.information.RealTimeInfoEnum;
|
||||
import com.shining.cloud.mapper.RealTimeInfo.RealTimeInfoMapper;
|
||||
import com.shining.cloud.pojo.RealTimeInfo.*;
|
||||
import com.shining.cloud.service.RealTimeInfo.RealTimeInfoService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiImplicitParams;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import net.sf.json.JSONArray;
|
||||
import net.sf.json.JSONObject;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @description: 实时数据列表
|
||||
* @author: denghuajun
|
||||
* @time: 2019-12-16 10:30:11
|
||||
**/
|
||||
@RestController
|
||||
@RequestMapping("/realtimeinfo")
|
||||
@Api(tags = "实时数据接口")
|
||||
public class RealTimeInfoController {
|
||||
|
||||
Logger logger = LoggerFactory.getLogger(RealTimeInfoController.class);
|
||||
|
||||
@Autowired
|
||||
RealTimeInfoService realTimeInfoService;
|
||||
|
||||
@Resource
|
||||
private RealTimeInfoMapper realTimeInfoMapper;
|
||||
|
||||
@PostMapping("getLineBaseInfo")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "lineIndex", value = "监测点ID", required = true, paramType = "query"),
|
||||
})
|
||||
@ApiOperation(value = "监测点信息接口", notes = "监测点信息", response = ResponseMsgData.class)
|
||||
public ResponseData getLineBaseInfo(int lineIndex) {
|
||||
ResponseData responseData;
|
||||
|
||||
try {
|
||||
LineBaseInfo lineBaseInfo = new LineBaseInfo();
|
||||
lineBaseInfo = realTimeInfoService.getLineBaseInfo(lineIndex);
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_SUCCESS, RealTimeInfoEnum.GETLINEBASEINFO_SUCCESS.getCode(), RealTimeInfoEnum.GETLINEBASEINFO_SUCCESS.getMsg(), lineBaseInfo);
|
||||
} catch (Exception e) {
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL, RealTimeInfoEnum.GETLINEBASEINFO_FALL.getCode(), RealTimeInfoEnum.GETLINEBASEINFO_FALL.getMsg(), null);
|
||||
}
|
||||
return responseData;
|
||||
}
|
||||
|
||||
@PostMapping("getRealData")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "lineIndex", value = "监测点ID", required = true, paramType = "query"),
|
||||
})
|
||||
@ApiOperation(value = "实时数据接口", notes = "实时数据", response = ResponseMsgData.class)
|
||||
public ResponseData getRealData(int lineIndex) {
|
||||
ResponseData responseData;
|
||||
try {
|
||||
RealTimeInfo realTimeInfo = realTimeInfoService.getRealTimeInfo(lineIndex);
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_SUCCESS, RealTimeInfoEnum.GETREALTIMEINFO_SUCCESS.getCode(), RealTimeInfoEnum.GETREALTIMEINFO_SUCCESS.getMsg(), realTimeInfo);
|
||||
} catch (Exception e) {
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL, RealTimeInfoEnum.GETREALTIMEINFO_FALL.getCode(), RealTimeInfoEnum.GETREALTIMEINFO_FALL.getMsg(), null);
|
||||
}
|
||||
logger.info("调用getRealData**********************************");
|
||||
logger.info(responseData.toString());
|
||||
return responseData;
|
||||
}
|
||||
|
||||
@PostMapping("getHarmRateI")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "lineIndex", value = "监测点ID", required = true, paramType = "query"),
|
||||
})
|
||||
@ApiOperation(value = "谐波电流幅值接口", notes = "谐波电流幅值", response = ResponseMsgData.class)
|
||||
public ResponseData getHarmRateI(int lineIndex) {
|
||||
ResponseData responseData;
|
||||
|
||||
try {
|
||||
|
||||
HarmRateIAndV harmRateIAndV = realTimeInfoService.RealRedisData(lineIndex,2);
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_SUCCESS, RealTimeInfoEnum.GETHARMRATEIINFO_SUCCESS.getCode(), RealTimeInfoEnum.GETHARMRATEIINFO_SUCCESS.getMsg(), harmRateIAndV);
|
||||
} catch (Exception e) {
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL, RealTimeInfoEnum.GETHARMRATEIINFO_FALL.getCode(), RealTimeInfoEnum.GETHARMRATEIINFO_FALL.getMsg(), null);
|
||||
}
|
||||
logger.info("调用getHarmRateI**************");
|
||||
logger.info(responseData.toString());
|
||||
return responseData;
|
||||
}
|
||||
|
||||
@PostMapping("getHarmRateV")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "lineIndex", value = "监测点ID", required = true, paramType = "query"),
|
||||
})
|
||||
@ApiOperation(value = "谐波电压含有率接口", notes = "谐波电压含有率", response = ResponseMsgData.class)
|
||||
public ResponseData getHarmRateV(int lineIndex) {
|
||||
ResponseData responseData;
|
||||
|
||||
try {
|
||||
HarmRateIAndV harmRateIAndV = realTimeInfoService.RealRedisData(lineIndex,1);
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_SUCCESS, RealTimeInfoEnum.GETHARMRATEVINFO_SUCCESS.getCode(), RealTimeInfoEnum.GETHARMRATEVINFO_SUCCESS.getMsg(), harmRateIAndV);
|
||||
} catch (Exception e) {
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL, RealTimeInfoEnum.GETHARMRATEVINFO_FALL.getCode(), RealTimeInfoEnum.GETHARMRATEVINFO_FALL.getMsg(), null);
|
||||
}
|
||||
logger.info("调用getHarmRateV**************");
|
||||
logger.info(responseData.toString());
|
||||
return responseData;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@PostMapping("getLineId")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "userIndex", value = "用户ID", required = true, paramType = "query"),
|
||||
})
|
||||
@ApiOperation(value = "默认监测点接口", notes = "默认监测点", response = ResponseMsgData.class)
|
||||
public ResponseData getLineId(String userIndex) {
|
||||
ResponseData responseData;
|
||||
|
||||
try {
|
||||
LineInfo lineInfo = new LineInfo();
|
||||
lineInfo = realTimeInfoService.getLineId(userIndex);
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_SUCCESS, RealTimeInfoEnum.GETLINEID_SUCCESS.getCode(), RealTimeInfoEnum.GETLINEID_SUCCESS.getMsg(), lineInfo);
|
||||
} catch (Exception e) {
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL, RealTimeInfoEnum.GETLINEID_FALL.getCode(), RealTimeInfoEnum.GETLINEID_FALL.getMsg(), null);
|
||||
}
|
||||
return responseData;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,73 @@
|
||||
package com.shining.cloud.controller.information;
|
||||
|
||||
import com.njcn.enums.app.ReturnCode;
|
||||
import com.njcn.pojo.commons.ResponseInfoData;
|
||||
import com.njcn.pojo.commons.ResponseMsgData;
|
||||
import com.njcn.utils.PubUtils;
|
||||
import com.shining.cloud.enums.information.EventMsgCodeEnum;
|
||||
import com.shining.cloud.mapper.information.DevMsgMapper;
|
||||
import com.shining.cloud.mapper.information.EventMsgMapper;
|
||||
import com.shining.cloud.mapper.information.SteadyMsgMapper;
|
||||
import com.shining.cloud.pojo.information.EventMsgDetail;
|
||||
import io.swagger.annotations.*;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @description: 清理消息
|
||||
* @author: denghuajun
|
||||
* @time: 2019-11-27 11:49:39
|
||||
**/
|
||||
@RestController
|
||||
@RequestMapping("/cleanmsg")
|
||||
@Api(tags = "清空消息接口")
|
||||
public class CleanMsgInfoController {
|
||||
private static final Logger logger = LoggerFactory.getLogger(EventMsgController.class);
|
||||
@Resource
|
||||
EventMsgMapper eventMsgMapper;
|
||||
@Resource
|
||||
DevMsgMapper devMsgMapper;
|
||||
@Resource
|
||||
SteadyMsgMapper steadyMsgMapper;
|
||||
|
||||
/**
|
||||
* 暂态消息获取
|
||||
*/
|
||||
@PostMapping("clearMsg")
|
||||
@ApiOperation(value = "清空消息接口入口", response = ResponseInfoData.class)
|
||||
public ResponseInfoData eventDetailList(@RequestParam("eventMsgList") List<String> eventMsgList,
|
||||
@RequestParam("steadyMsgList") List<String> steadyMsgList,
|
||||
@RequestParam("deviceMsgList") List<String> deviceMsgList) {
|
||||
ResponseInfoData responseData;
|
||||
|
||||
try {
|
||||
if (eventMsgList != null && eventMsgList.size() > 0) {
|
||||
for (int i = 0; i < eventMsgList.size(); i++) {
|
||||
eventMsgMapper.updateEventState(eventMsgList.get(i));
|
||||
}
|
||||
}
|
||||
if (steadyMsgList != null && steadyMsgList.size() > 0) {
|
||||
for (int i = 0; i < steadyMsgList.size(); i++) {
|
||||
steadyMsgMapper.updateSteadyState(deviceMsgList.get(i));
|
||||
}
|
||||
}
|
||||
if (deviceMsgList != null && deviceMsgList.size() > 0) {
|
||||
for (int i = 0; i < deviceMsgList.size(); i++) {
|
||||
devMsgMapper.updateDevMsgState(deviceMsgList.get(i));
|
||||
}
|
||||
}
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_SUCCESS, EventMsgCodeEnum.CLEANMSGINFO_SUCCESS.getCode(), EventMsgCodeEnum.CLEANMSGINFO_SUCCESS.getMsg());
|
||||
} catch (Exception e) {
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL, EventMsgCodeEnum.CLEANMSGINFO_SUCCESS.getCode(), EventMsgCodeEnum.CLEANMSGINFO_FALL.getMsg());
|
||||
}
|
||||
return responseData;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,162 @@
|
||||
package com.shining.cloud.controller.information;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import com.njcn.enums.app.ReturnCode;
|
||||
import com.njcn.pojo.commons.ResponseData;
|
||||
import com.njcn.pojo.commons.ResponseMsgData;
|
||||
import com.njcn.utils.PubUtils;
|
||||
import com.shining.cloud.enums.information.DevMsgCodeEnum;
|
||||
import com.shining.cloud.pojo.information.DevComInfo;
|
||||
import com.shining.cloud.pojo.information.DevComTJ;
|
||||
import com.shining.cloud.pojo.information.DevMsgAssInfo;
|
||||
import com.shining.cloud.pojo.information.DevMsgDetail;
|
||||
import com.shining.cloud.pojo.information.DevMsgDetailInfo;
|
||||
import com.shining.cloud.service.information.DevMsgAssService;
|
||||
import com.shining.cloud.service.information.DevMsgService;
|
||||
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiImplicitParams;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
|
||||
/**
|
||||
* @description: 终端消息业务层
|
||||
* @author: denghuajun
|
||||
* @time: 2019-10-17 14:33:55
|
||||
**/
|
||||
@RestController
|
||||
@RequestMapping("/deviceMsg")
|
||||
@Api(tags = "终端状态信息接口")
|
||||
public class DevMsgController {
|
||||
|
||||
@Autowired
|
||||
private DevMsgService devMsgService;
|
||||
|
||||
@Autowired
|
||||
private DevMsgAssService devMsgAssService;
|
||||
|
||||
/**
|
||||
* 终端消息列表获取
|
||||
*/
|
||||
@PostMapping("deviceMsgList")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "userId", value = "用户ID", required = true, paramType = "query"),
|
||||
@ApiImplicitParam(name = "page", value = "当前页", required = true, paramType = "query"),
|
||||
@ApiImplicitParam(name = "num", value = "每页数量", required = true, paramType = "query"),
|
||||
})
|
||||
@ApiOperation(value = "终端消息列表入口", notes = "终端消息列表", response = ResponseMsgData.class)
|
||||
public ResponseMsgData deviceMsgList(String userId, int page, int num, HttpServletRequest request) {
|
||||
ResponseMsgData responseData = null;
|
||||
if (PubUtils.isBlank(userId)) {
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL,DevMsgCodeEnum.USERID_WRONG.getCode(), DevMsgCodeEnum.USERID_WRONG.getMsg(), 0, null);
|
||||
return responseData;
|
||||
}
|
||||
|
||||
try {
|
||||
List<DevMsgDetail> devMsgDetails = devMsgService.deviceMsgList(userId, page, num);
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_SUCCESS,DevMsgCodeEnum.GETDEVMSG_SUCCESS.getCode(), DevMsgCodeEnum.GETDEVMSG_SUCCESS.getMsg(), devMsgService.unState(userId), devMsgDetails);
|
||||
} catch (Exception e) {
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL,DevMsgCodeEnum.GETDEVMSG_FALL.getCode(), DevMsgCodeEnum.GETDEVMSG_FALL.getMsg(), 0, null);
|
||||
}
|
||||
return responseData;
|
||||
}
|
||||
|
||||
/**
|
||||
* 终端列表获取
|
||||
*/
|
||||
@PostMapping("deviceList")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "devMsgIndex", value = "终端ID", required = true, paramType = "query"),
|
||||
@ApiImplicitParam(name = "page", value = "当前页", required = true, paramType = "query"),
|
||||
@ApiImplicitParam(name = "num", value = "每页数量", required = true, paramType = "query"),
|
||||
})
|
||||
@ApiOperation(value = "终端列表入口", notes = "终端列表", response = ResponseMsgData.class)
|
||||
public ResponseMsgData deviceList(String devMsgIndex, int page, int num, HttpServletRequest request) {
|
||||
ResponseMsgData responseData = null;
|
||||
|
||||
if (PubUtils.isBlank(devMsgIndex)) {
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL,DevMsgCodeEnum.DEVINDEX_WRONG.getCode(), DevMsgCodeEnum.DEVINDEX_WRONG.getMsg(), 0, null);
|
||||
return responseData;
|
||||
}
|
||||
|
||||
try {
|
||||
List<DevMsgDetailInfo> devMsgDetailInfos = devMsgAssService.deviceList(devMsgIndex, page, num);
|
||||
int state = devMsgAssService.state(devMsgIndex);
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_SUCCESS,DevMsgCodeEnum.GETDEVLIST_SUCCESS.getCode(), DevMsgCodeEnum.GETDEVLIST_SUCCESS.getMsg(), state, devMsgDetailInfos);
|
||||
} catch (Exception e) {
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL,DevMsgCodeEnum.GETDEVLIST_FALL.getCode(), DevMsgCodeEnum.GETDEVLIST_FALL.getMsg(), 0, null);
|
||||
}
|
||||
return responseData;
|
||||
}
|
||||
|
||||
/**
|
||||
* 终端列表获取
|
||||
*/
|
||||
@PostMapping("devMsgInfo")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "devIndex", value = "终端ID", required = true, paramType = "query"),
|
||||
@ApiImplicitParam(name = "timeID", value = "统计时间", required = true, paramType = "query",dataType = "Long"),
|
||||
})
|
||||
@ApiOperation(value = "终端消息详情列表入口", notes = "终端消息详情", response = ResponseMsgData.class)
|
||||
public ResponseData devMsgInfo(int devIndex, Long timeID, HttpServletRequest request) {
|
||||
ResponseData responseData = null;
|
||||
try {
|
||||
String dateTime = PubUtils.timeStamp3Date(timeID,"");
|
||||
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
||||
Date date = sdf.parse(dateTime);
|
||||
DevMsgAssInfo devMsgAssInfos = devMsgAssService.devMsgInfo(devIndex,date);
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_SUCCESS,DevMsgCodeEnum.GETDEVINFO_SUCCESS.getCode(), DevMsgCodeEnum.GETDEVINFO_SUCCESS.getMsg(), devMsgAssInfos);
|
||||
} catch (Exception e) {
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL,DevMsgCodeEnum.GETDEVINFO_FALL.getCode(), DevMsgCodeEnum.GETDEVINFO_FALL.getMsg(), null);
|
||||
}
|
||||
return responseData;
|
||||
}
|
||||
|
||||
/**
|
||||
* 终端通讯状态统计
|
||||
*/
|
||||
@PostMapping("devCountTJ")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "userId", value = "用户ID", required = true, paramType = "query")
|
||||
})
|
||||
@ApiOperation(value = "终端通讯状态统计入口", notes = "终端通讯状态统计", response = ResponseMsgData.class)
|
||||
public ResponseData devCountTJ(String userId, HttpServletRequest request) {
|
||||
ResponseData responseData = null;
|
||||
try {
|
||||
DevComTJ devMsgAssInfos = devMsgAssService.getDevComTJ(userId);
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_SUCCESS,DevMsgCodeEnum.GETDEVCOMTJ_SUCCESS.getCode(), DevMsgCodeEnum.GETDEVCOMTJ_SUCCESS.getMsg(), devMsgAssInfos);
|
||||
} catch (Exception e) {
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL,DevMsgCodeEnum.GETDEVCOMTJ_FALL.getCode(), DevMsgCodeEnum.GETDEVCOMTJ_FALL.getMsg(), null);
|
||||
}
|
||||
return responseData;
|
||||
}
|
||||
|
||||
/**
|
||||
* 终端通讯信息
|
||||
*/
|
||||
@PostMapping("devComInfo")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "userId", value = "用户ID", required = true, paramType = "query")
|
||||
})
|
||||
@ApiOperation(value = "终端通讯信息入口", notes = "终端通讯", response = ResponseMsgData.class)
|
||||
public ResponseData devComnfo(String userId, HttpServletRequest request) {
|
||||
ResponseData responseData = null;
|
||||
try {
|
||||
List<DevComInfo> devMsgAssInfos = devMsgAssService.getDevComInfo(userId);
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_SUCCESS,DevMsgCodeEnum.GETDEVCOMINFO_SUCCESS.getCode(), DevMsgCodeEnum.GETDEVCOMINFO_SUCCESS.getMsg(), devMsgAssInfos);
|
||||
} catch (Exception e) {
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL,DevMsgCodeEnum.GETDEVCOMINFO_FALL.getCode(), DevMsgCodeEnum.GETDEVCOMINFO_FALL.getMsg(), null);
|
||||
}
|
||||
return responseData;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,191 @@
|
||||
package com.shining.cloud.controller.information;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.util.CollectionUtils;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import com.njcn.enums.app.ReturnCode;
|
||||
import com.njcn.pojo.commons.EventEigDetail;
|
||||
import com.njcn.pojo.commons.EventInfoDetail;
|
||||
import com.njcn.pojo.commons.ResponseData;
|
||||
import com.njcn.pojo.commons.ResponseEigMsgData;
|
||||
import com.njcn.pojo.commons.ResponseInfoData;
|
||||
import com.njcn.pojo.commons.ResponseMsgData;
|
||||
import com.njcn.utils.PubUtils;
|
||||
import com.shining.cloud.enums.information.EventMsgCodeEnum;
|
||||
import com.shining.cloud.pojo.information.EventMsgDetail;
|
||||
import com.shining.cloud.pojo.information.EventWaveDetail;
|
||||
import com.shining.cloud.service.information.EventInfoService;
|
||||
import com.shining.cloud.service.information.EventMsgService;
|
||||
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiImplicitParams;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
|
||||
/**
|
||||
* @description: 暂态消息业务层
|
||||
* @author: denghuajun
|
||||
* @time: 2019-10-17 14:33:55
|
||||
**/
|
||||
@RestController
|
||||
@RequestMapping("/eventmsg")
|
||||
@Api(tags = "暂态消息接口")
|
||||
public class EventMsgController {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(EventMsgController.class);
|
||||
@Autowired
|
||||
private EventMsgService eventMsgService;
|
||||
@Autowired
|
||||
private EventInfoService eventInfoService;
|
||||
|
||||
/**
|
||||
* 暂态消息获取
|
||||
*/
|
||||
@PostMapping("eventDetailList")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "userId", value = "用户ID", required = true, paramType = "query"),
|
||||
@ApiImplicitParam(name = "page", value = "当前页", required = true, paramType = "query"),
|
||||
@ApiImplicitParam(name = "num", value = "每页数量", required = true, paramType = "query"),
|
||||
})
|
||||
@ApiOperation(value = "暂态消息获取入口", notes = "暂态消息", response = ResponseMsgData.class)
|
||||
public ResponseMsgData eventDetailList(String userId, int page, int num, HttpServletRequest request) {
|
||||
ResponseMsgData responseData;
|
||||
|
||||
if (PubUtils.isBlank(userId)) {
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL, EventMsgCodeEnum.USERID_WRONG.getCode(), EventMsgCodeEnum.USERID_WRONG.getMsg(), 0, null);
|
||||
return responseData;
|
||||
}
|
||||
|
||||
try {
|
||||
List<EventMsgDetail> eventMsgs = new ArrayList<>();
|
||||
// eventMsgs = eventMsgService.eventDetailList(userId, page, num);
|
||||
eventMsgs = eventMsgService.eventDetailAppList(userId, page, num);
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_SUCCESS, EventMsgCodeEnum.GETDETAIL_SUCCESS.getCode(), EventMsgCodeEnum.GETDETAIL_SUCCESS.getMsg(), eventMsgService.getUnState(userId), eventMsgs);
|
||||
} catch (Exception e) {
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL, EventMsgCodeEnum.GETDETAIL_FALL.getCode(), EventMsgCodeEnum.GETDETAIL_FALL.getMsg(), 0, null);
|
||||
}
|
||||
return responseData;
|
||||
}
|
||||
|
||||
/**
|
||||
* 暂态事件基本信息获取
|
||||
*/
|
||||
@PostMapping("eventDetailBaseInfo")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "eventMsgIndex", value = "暂降事件id", required = true, paramType = "query"),
|
||||
})
|
||||
@ApiOperation(value = "暂态事件基本信息入口", notes = "暂态事件基本信息", response = ResponseData.class)
|
||||
public ResponseData eventDetailBaseInfo(String eventMsgIndex, HttpServletRequest request) {
|
||||
ResponseData responseData;
|
||||
if (PubUtils.isBlank(eventMsgIndex)) {
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL, EventMsgCodeEnum.eventDetailIndex_WRONG.getCode(), EventMsgCodeEnum.eventDetailIndex_WRONG.getMsg(), null);
|
||||
return responseData;
|
||||
}
|
||||
try {
|
||||
EventInfoDetail eventInfoList = eventInfoService.eventDetailBaseInfo(eventMsgIndex);
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_SUCCESS, EventMsgCodeEnum.GETBASEDETAIL_SUCCESS.getCode(), EventMsgCodeEnum.GETBASEDETAIL_SUCCESS.getMsg(), eventInfoList);
|
||||
} catch (Exception e) {
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL, EventMsgCodeEnum.GETBASEDETAIL_FALL.getCode(), EventMsgCodeEnum.GETBASEDETAIL_FALL.getMsg(), null);
|
||||
}
|
||||
return responseData;
|
||||
}
|
||||
|
||||
/**
|
||||
* 暂态事件特征幅值
|
||||
*/
|
||||
@PostMapping("eventDetailEigenvalue")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "eventDetailIndex", value = "暂降事件id", required = true, paramType = "query"),
|
||||
})
|
||||
@ApiOperation(value = "暂态事件特征幅值入口", notes = "暂态事件特征幅值", response = ResponseData.class)
|
||||
public ResponseEigMsgData eventDetailEigenvalue(String eventDetailIndex, HttpServletRequest request) {
|
||||
ResponseEigMsgData responseData;
|
||||
logger.error("计算特征幅值,事件索引为:{}",eventDetailIndex);
|
||||
responseData = PubUtils.assignmentAppEigResponse(ReturnCode.RETURN_SUCCESS, EventMsgCodeEnum.GETEIGVALUEDETAIL_SUCCESS.getCode(), EventMsgCodeEnum.GETEIGVALUEDETAIL_SUCCESS.getMsg(), -1, null, null);
|
||||
return responseData;
|
||||
// if (PubUtils.isBlank(eventDetailIndex)) {
|
||||
// responseData = PubUtils.assignmentAppEigResponse(ReturnCode.RETURN_FAIL, EventMsgCodeEnum.eventDetailIndex_WRONG.getCode(), EventMsgCodeEnum.eventDetailIndex_WRONG.getMsg(), -1, null, null);
|
||||
// return responseData;
|
||||
// }
|
||||
//
|
||||
// try {
|
||||
// List<EventEigDetail> eventDetailEigenvalue = eventInfoService.eventDetailEigenvalue(eventDetailIndex);
|
||||
// int backNumber = 0;
|
||||
// String sagReason = "";
|
||||
// if (!CollectionUtils.isEmpty(eventDetailEigenvalue)) {
|
||||
// sagReason = eventDetailEigenvalue.get(0).sagReason;
|
||||
// backNumber = eventInfoService.backNumber();
|
||||
// } else {
|
||||
// backNumber = 0;
|
||||
// sagReason = "无";
|
||||
// }
|
||||
// responseData = PubUtils.assignmentAppEigResponse(ReturnCode.RETURN_SUCCESS, EventMsgCodeEnum.GETEIGVALUEDETAIL_SUCCESS.getCode(), EventMsgCodeEnum.GETEIGVALUEDETAIL_SUCCESS.getMsg(), backNumber, sagReason, eventDetailEigenvalue);
|
||||
// } catch (Exception e) {
|
||||
// logger.error(e.toString());
|
||||
// responseData = PubUtils.assignmentAppEigResponse(ReturnCode.RETURN_FAIL, EventMsgCodeEnum.GETEIGVALUEDETAIL_FALL.getCode(), EventMsgCodeEnum.GETEIGVALUEDETAIL_FALL.getMsg(), -1, null, null);
|
||||
// }
|
||||
// return responseData;
|
||||
}
|
||||
|
||||
/**
|
||||
* 暂态事件波形图
|
||||
*/
|
||||
@PostMapping("eventDetailWave")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "eventDetailIndex", value = "暂降事件id", required = true, paramType = "query"),
|
||||
})
|
||||
@ApiOperation(value = "暂态事件波形图入口", notes = "暂态事件波形图", response = ResponseData.class)
|
||||
public ResponseData eventDetailWave(String eventDetailIndex, HttpServletRequest request) {
|
||||
ResponseData responseData;
|
||||
|
||||
if (PubUtils.isBlank(eventDetailIndex)) {
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL, EventMsgCodeEnum.eventDetailIndex_WRONG.getCode(), EventMsgCodeEnum.eventDetailIndex_WRONG.getMsg(), null);
|
||||
return responseData;
|
||||
}
|
||||
|
||||
try {
|
||||
EventWaveDetail eventWaveDetails = eventInfoService.eventDetailWave(eventDetailIndex, request);
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_SUCCESS, EventMsgCodeEnum.GETWAVEDETAIL_SUCCESS.getCode(), EventMsgCodeEnum.GETWAVEDETAIL_SUCCESS.getMsg(), eventWaveDetails);
|
||||
} catch (Exception e) {
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL, EventMsgCodeEnum.GETWAVEDETAIL_FALL.getCode(), EventMsgCodeEnum.GETWAVEDETAIL_FALL.getMsg(), null);
|
||||
}
|
||||
return responseData;
|
||||
}
|
||||
|
||||
/**
|
||||
* 暂态评价
|
||||
*/
|
||||
@PostMapping("eventDetailEvaluate")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "eventDetailIndex", value = "暂降事件id", required = true, paramType = "query"),
|
||||
@ApiImplicitParam(name = "evaluate", value = "暂态评价", required = true, paramType = "query"),
|
||||
@ApiImplicitParam(name = "userId", value = "用户ID", required = true, paramType = "query"),
|
||||
})
|
||||
@ApiOperation(value = "暂态评价入口", notes = "暂态评价获取", response = ResponseInfoData.class)
|
||||
public ResponseInfoData eventDetailEvaluate(String eventDetailIndex, int evaluate, String userId, HttpServletRequest request) {
|
||||
ResponseInfoData responseInfoData;
|
||||
if (PubUtils.isBlank(eventDetailIndex)) {
|
||||
responseInfoData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL, EventMsgCodeEnum.eventDetailIndex_WRONG.getCode(), EventMsgCodeEnum.eventDetailIndex_WRONG.getMsg());
|
||||
return responseInfoData;
|
||||
}
|
||||
try {
|
||||
eventInfoService.eventDetailEvaluate(eventDetailIndex, evaluate, userId);
|
||||
responseInfoData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_SUCCESS, EventMsgCodeEnum.GETEVADETAIL_SUCCESS.getCode(), EventMsgCodeEnum.GETEVADETAIL_SUCCESS.getMsg());
|
||||
} catch (Exception e) {
|
||||
responseInfoData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL, EventMsgCodeEnum.GETEVADETAIL_FALL.getCode(), EventMsgCodeEnum.GETEVADETAIL_FALL.getMsg());
|
||||
}
|
||||
return responseInfoData;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,192 @@
|
||||
package com.shining.cloud.controller.information;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import com.njcn.enums.app.ReturnCode;
|
||||
import com.njcn.pojo.commons.ResponseData;
|
||||
import com.njcn.pojo.commons.ResponseMsgData;
|
||||
import com.njcn.utils.PubUtils;
|
||||
import com.shining.cloud.enums.information.SteadyMsgCodeEnum;
|
||||
import com.shining.cloud.mapper.information.SteadyMsgMapper;
|
||||
import com.shining.cloud.pojo.information.SteadyMsg;
|
||||
import com.shining.cloud.pojo.information.SteadyMsgDetail;
|
||||
import com.shining.cloud.pojo.information.SteadyTarget;
|
||||
import com.shining.cloud.pojo.information.SteadyUrl;
|
||||
import com.shining.cloud.service.information.SteadyAssService;
|
||||
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiImplicitParams;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
|
||||
/**
|
||||
* @description: 稳态消息详情业务层
|
||||
* @author: gbl
|
||||
* @time: 2019-11-27
|
||||
**/
|
||||
@RestController
|
||||
@RequestMapping("/steadymsg")
|
||||
@Api(tags = "稳态消息接口")
|
||||
public class SteadyAssController {
|
||||
@Autowired
|
||||
private SteadyAssService steadyAssService;
|
||||
@Autowired
|
||||
private SteadyMsgMapper steadyMsgMapper;
|
||||
|
||||
/**
|
||||
* @description: 稳态越限列表
|
||||
* @author gbl
|
||||
* @param userId 用户ID
|
||||
* @param page 当前页数
|
||||
* @param num 每页数量
|
||||
*/
|
||||
@PostMapping("steadyState")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "userId", value = "用户ID", required = true, paramType = "query"),
|
||||
@ApiImplicitParam(name = "page", value = "当前页", required = true, paramType = "query"),
|
||||
@ApiImplicitParam(name = "num", value = "每页数量", required = true, paramType = "query")
|
||||
})
|
||||
@ApiOperation(value = "稳态越限列表", notes = "稳态越限列表", response = ResponseData.class)
|
||||
public ResponseMsgData steadyState(String userId, int page, int num, HttpServletRequest request) {
|
||||
ResponseMsgData responseData = new ResponseMsgData();
|
||||
|
||||
try {
|
||||
List<SteadyMsg> msgs = new ArrayList<>();
|
||||
msgs = steadyAssService.getSteadyState(userId, page, num);
|
||||
|
||||
Integer unread = steadyMsgMapper.getSteadyUnState(userId);
|
||||
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_SUCCESS,SteadyMsgCodeEnum.GETSTATE_SUCCESS.getCode(), SteadyMsgCodeEnum.GETSTATE_SUCCESS.getMsg(),unread, msgs);
|
||||
} catch (Exception e) {
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL,SteadyMsgCodeEnum.GETSTATE_FALL.getCode(), SteadyMsgCodeEnum.GETSTATE_FALL.getMsg(),0, null);
|
||||
}
|
||||
return responseData;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 稳态越限列表详细信息
|
||||
* @author gbl
|
||||
* @param steadyIndex 稳态越限列表ID
|
||||
*/
|
||||
@PostMapping("steadyStateInfo")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "steadyIndex", value = "稳态越限列表ID", required = true, paramType = "query")
|
||||
})
|
||||
@ApiOperation(value = "稳态越限列表详细信息", notes = "稳态越限详细信息", response = ResponseData.class)
|
||||
public ResponseData steadyStateInfo(String steadyIndex, HttpServletRequest request) {
|
||||
ResponseData responseData = new ResponseData();
|
||||
try {
|
||||
List<SteadyMsgDetail> msgs = new ArrayList<>();
|
||||
msgs = steadyAssService.getSteadyDetail(steadyIndex);
|
||||
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_SUCCESS,SteadyMsgCodeEnum.GETSTATEINFO_SUCCESS.getCode(), SteadyMsgCodeEnum.GETSTATEINFO_SUCCESS.getMsg(), msgs);
|
||||
} catch (Exception e) {
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL,SteadyMsgCodeEnum.GETSTATEINFO_FALL.getCode(), SteadyMsgCodeEnum.GETSTATEINFO_FALL.getMsg(), null);
|
||||
}
|
||||
|
||||
return responseData;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 稳态越限涉及指标
|
||||
* @author gbl
|
||||
* @param lineIndex 监测点ID
|
||||
* @param timeID 统计时间
|
||||
*/
|
||||
@PostMapping("steadyTarget")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "lineIndex", value = "监测点ID", required = true, paramType = "query"),
|
||||
@ApiImplicitParam(name = "timeID", value = "统计时间", required = true, paramType = "query")
|
||||
})
|
||||
@ApiOperation(value = "稳态越限涉及指标", notes = "稳态越限指标", response = ResponseData.class)
|
||||
public ResponseData steadyTarget(int lineIndex,Long timeID, HttpServletRequest request) {
|
||||
ResponseData responseData = new ResponseData();
|
||||
|
||||
try {
|
||||
List<SteadyTarget> msgs = new ArrayList<>();
|
||||
String dateTime = PubUtils.timeStamp3Date(timeID,"");
|
||||
Date time = PubUtils.string2Date(dateTime, "yyyy-MM-dd");
|
||||
msgs = steadyAssService.getSteadyTarget(lineIndex,time);
|
||||
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_SUCCESS,SteadyMsgCodeEnum.GETTARGET_SUCCESS.getCode(), SteadyMsgCodeEnum.GETTARGET_SUCCESS.getMsg(), msgs);
|
||||
} catch (Exception e) {
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL,SteadyMsgCodeEnum.GETTARGET_FALL.getCode(), SteadyMsgCodeEnum.GETTARGET_FALL.getMsg(), null);
|
||||
}
|
||||
return responseData;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 稳态越限指标图形
|
||||
* @author gbl
|
||||
* @param lineIndex 监测点ID
|
||||
* @param timeID 统计时间
|
||||
* @param typeCode
|
||||
*/
|
||||
@PostMapping("steadyTargetUrl")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "lineIndex", value = "监测点ID", required = true, paramType = "query"),
|
||||
@ApiImplicitParam(name = "timeID", value = "统计时间", required = true, paramType = "query"),
|
||||
@ApiImplicitParam(name = "typeCode", value = "指标编码", required = true, paramType = "query")
|
||||
})
|
||||
@ApiOperation(value = "稳态越限指标图形", notes = "稳态越限图形", response = ResponseData.class)
|
||||
public ResponseData steadyTargetUrl(int lineIndex,Long timeID,int typeCode, HttpServletRequest request,HttpServletResponse response) {
|
||||
ResponseData responseData = new ResponseData();
|
||||
|
||||
try {
|
||||
SteadyUrl msgs = new SteadyUrl();
|
||||
String dateTime = PubUtils.timeStamp3Date(timeID,"");
|
||||
Date time = PubUtils.string2Date(dateTime, "yyyy-MM-dd");
|
||||
msgs = steadyAssService.getSteadyTargetUrl(lineIndex,time,typeCode);
|
||||
if(msgs == null){
|
||||
request.getRequestDispatcher("steadyImage").forward(request,response);
|
||||
msgs = steadyAssService.getSteadyTargetUrl(lineIndex,time,typeCode);
|
||||
}
|
||||
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_SUCCESS,SteadyMsgCodeEnum.GETTARGET_SUCCESS.getCode(), SteadyMsgCodeEnum.GETTARGET_SUCCESS.getMsg(), msgs);
|
||||
} catch (Exception e) {
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL,SteadyMsgCodeEnum.GETTARGET_FALL.getCode(), SteadyMsgCodeEnum.GETTARGET_FALL.getMsg(), null);
|
||||
}
|
||||
return responseData;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 生成稳态越限指标图形
|
||||
* @author gbl
|
||||
* @param lineIndex 监测点ID
|
||||
* @param timeID 统计时间
|
||||
* @param typeCode
|
||||
*/
|
||||
@PostMapping("steadyImage")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "lineIndex", value = "监测点ID", required = true, paramType = "query"),
|
||||
@ApiImplicitParam(name = "timeID", value = "统计时间", required = true, paramType = "query"),
|
||||
@ApiImplicitParam(name = "typeCode", value = "指标编码", required = true, paramType = "query")
|
||||
})
|
||||
@ApiOperation(value = "生成稳态越限指标图形", notes = "稳态越限图形", response = ResponseData.class)
|
||||
public ResponseData steadyImage(int lineIndex,Long timeID,int typeCode, HttpServletRequest request) {
|
||||
ResponseData responseData = new ResponseData();
|
||||
|
||||
try {
|
||||
SteadyUrl msgs = new SteadyUrl();
|
||||
String dateTime = PubUtils.timeStamp3Date(timeID,"");
|
||||
Date time = PubUtils.string2Date(dateTime, "yyyy-MM-dd");
|
||||
msgs = steadyAssService.getUrl(request,lineIndex,time,typeCode);
|
||||
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_SUCCESS,SteadyMsgCodeEnum.GETTARGET_SUCCESS.getCode(), SteadyMsgCodeEnum.GETTARGET_SUCCESS.getMsg(), msgs);
|
||||
} catch (Exception e) {
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL,SteadyMsgCodeEnum.GETTARGET_FALL.getCode(), SteadyMsgCodeEnum.GETTARGET_FALL.getMsg(), null);
|
||||
}
|
||||
return responseData;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package com.shining.cloud.controller.information;
|
||||
|
||||
/**
|
||||
* @description: 稳态消息业务层
|
||||
* @author: denghuajun
|
||||
* @time: 2019-10-17 14:33:55
|
||||
**/
|
||||
|
||||
public class SteadyMsgController {
|
||||
}
|
||||
@@ -0,0 +1,137 @@
|
||||
package com.shining.cloud.controller.message;
|
||||
|
||||
import com.njcn.enums.app.ReturnCode;
|
||||
import com.njcn.enums.app.UserCodeEnum;
|
||||
import com.njcn.pojo.commons.ResponseData;
|
||||
import com.njcn.utils.PubUtils;
|
||||
import com.shining.cloud.service.information.EventMsgService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiImplicitParams;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import net.sf.json.JSONObject;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.util.StringUtils;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
|
||||
|
||||
/**
|
||||
* @author hongawen
|
||||
* @date: 2019/11/11 14:51
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/msg")
|
||||
@Api(tags = "内部消息推送")
|
||||
public class EventMsgPushController {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(EventMsgPushController.class);
|
||||
|
||||
@Autowired
|
||||
private EventMsgService eventMsgService;
|
||||
|
||||
|
||||
/**
|
||||
* 暂态消息推送
|
||||
*/
|
||||
@PostMapping("sendEventMsg")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "eventDetailIndex", value = "暂降索引", required = true, paramType = "query"),
|
||||
@ApiImplicitParam(name = "lineId", value = "监测点索引", required = true, paramType = "query"),
|
||||
})
|
||||
@ApiOperation(value = "暂态消息推送", notes = "暂态消息推送", response = ResponseData.class)
|
||||
public ResponseData sendEventMsg(String eventDetailIndex, int lineId, HttpServletRequest request) {
|
||||
logger.error("推送暂降事件:事件索引:{},监测点ID为:{}",eventDetailIndex,lineId);
|
||||
ResponseData responseData;
|
||||
if (StringUtils.isEmpty(eventDetailIndex) || StringUtils.isEmpty(lineId)) {
|
||||
return PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL, UserCodeEnum.INVALID_PARAMETER.getCode(), UserCodeEnum.INVALID_PARAMETER.getMsg(), null);
|
||||
}
|
||||
try {
|
||||
eventMsgService.sendEventMsg(eventDetailIndex, lineId,request);
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_SUCCESS, UserCodeEnum.EVENT_MSG_SUCCESS.getCode(), UserCodeEnum.EVENT_MSG_SUCCESS.getMsg(), null);
|
||||
} catch (Exception e) {
|
||||
logger.error("暂降消息推送,异常为:" + e.getMessage());
|
||||
if (e.getMessage().length() < 10) {
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL, UserCodeEnum.getCodeByMsg(e.getMessage()), e.getMessage(), null);
|
||||
} else {
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL, UserCodeEnum.EVENT_MSG_FAIL.getCode(), UserCodeEnum.EVENT_MSG_FAIL.getMsg(), null);
|
||||
}
|
||||
}
|
||||
return responseData;
|
||||
}
|
||||
|
||||
/**
|
||||
* 稳态消息推送
|
||||
*/
|
||||
@PostMapping("sendSteadyMsg")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "userIndex", value = "用户索引", required = true, paramType = "query"),
|
||||
@ApiImplicitParam(name = "timeID", value = "统计时间", required = true, paramType = "query"),
|
||||
@ApiImplicitParam(name = "lineNum", value = "监测点个数", required = true, paramType = "query"),
|
||||
})
|
||||
@ApiOperation(value = "稳态消息推送", notes = "稳态消息推送", response = ResponseData.class)
|
||||
public ResponseData sendSteadyMsg(String userIndex, Long timeID, Integer lineNum) {
|
||||
ResponseData responseData;
|
||||
logger.error("稳态消息推送:用户索引:{},统计时间:{},监测点个数:{}",userIndex,timeID,lineNum);
|
||||
if (StringUtils.isEmpty(userIndex) || StringUtils.isEmpty(timeID) || StringUtils.isEmpty(lineNum)) {
|
||||
return PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL, UserCodeEnum.INVALID_PARAMETER.getCode(), UserCodeEnum.INVALID_PARAMETER.getMsg(), null);
|
||||
}
|
||||
try {
|
||||
String msgIndex = eventMsgService.sendSteadyMsg(userIndex, timeID, lineNum);
|
||||
JSONObject jsonObject = new JSONObject();
|
||||
jsonObject.put("msgIndex", msgIndex);
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_SUCCESS, UserCodeEnum.STEADY_MSG_SUCCESS.getCode(), UserCodeEnum.STEADY_MSG_SUCCESS.getMsg(), jsonObject);
|
||||
} catch (Exception e) {
|
||||
logger.error("稳态消息推送,异常为:" + e.getMessage());
|
||||
if (e.getMessage().length() < 10) {
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL, UserCodeEnum.getCodeByMsg(e.getMessage()), e.getMessage(), null);
|
||||
} else {
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL, UserCodeEnum.STEADY_MSG_FAIL.getCode(), UserCodeEnum.STEADY_MSG_FAIL.getMsg(), null);
|
||||
}
|
||||
}
|
||||
return responseData;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 终端消息推送
|
||||
*/
|
||||
@PostMapping("sendTargetMsg")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "userIndex", value = "用户索引", required = true, paramType = "query"),
|
||||
@ApiImplicitParam(name = "timeID", value = "统计时间", required = true, paramType = "query"),
|
||||
@ApiImplicitParam(name = "devNum", value = "终端个数", required = true, paramType = "query"),
|
||||
@ApiImplicitParam(name = "alarmNum", value = "终端警告次数", paramType = "query"),
|
||||
@ApiImplicitParam(name = "comOutNum", value = "通讯状态", paramType = "query"),
|
||||
@ApiImplicitParam(name = "flowNum", value = "流量百分比", paramType = "query"),
|
||||
@ApiImplicitParam(name = "flag", value = "强制推送标志",required = true, paramType = "query"),
|
||||
})
|
||||
@ApiOperation(value = "终端消息推送", notes = "终端消息推送", response = ResponseData.class)
|
||||
public ResponseData sendTargetMsg(String userIndex, Long timeID,Integer devNum, Integer alarmNum, Integer comOutNum, Float flowNum, int flag) {
|
||||
logger.error("稳态消息推送:用户索引:{},统计时间:{},终端个数:{}",userIndex,timeID,devNum);
|
||||
ResponseData responseData;
|
||||
if (StringUtils.isEmpty(userIndex) || StringUtils.isEmpty(timeID) || StringUtils.isEmpty(flag)) {
|
||||
return PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL, UserCodeEnum.INVALID_PARAMETER.getCode(), UserCodeEnum.INVALID_PARAMETER.getMsg(), null);
|
||||
}
|
||||
try {
|
||||
String msgIndex = eventMsgService.sendTargetMsg(userIndex, timeID, devNum,alarmNum,comOutNum,flowNum,flag);
|
||||
JSONObject jsonObject = new JSONObject();
|
||||
jsonObject.put("msgIndex", msgIndex);
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_SUCCESS, UserCodeEnum.DEVICE_MSG_SUCCESS.getCode(), UserCodeEnum.DEVICE_MSG_SUCCESS.getMsg(), jsonObject);
|
||||
} catch (Exception e) {
|
||||
logger.error("终端消息推送,异常为:" + e.getMessage());
|
||||
if (e.getMessage().length() < 10) {
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL, UserCodeEnum.getCodeByMsg(e.getMessage()), e.getMessage(), null);
|
||||
} else {
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL, UserCodeEnum.DEVICE_MSG_FAIL.getCode(), UserCodeEnum.DEVICE_MSG_FAIL.getMsg(), null);
|
||||
}
|
||||
}
|
||||
return responseData;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,266 @@
|
||||
package com.shining.cloud.controller.report;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import com.njcn.enums.app.ReturnCode;
|
||||
import com.njcn.pojo.commons.ResponseData;
|
||||
import com.njcn.pojo.configuration.GDInformation;
|
||||
import com.njcn.pojo.configuration.Line;
|
||||
import com.njcn.pojo.configuration.Province;
|
||||
import com.njcn.pojo.configuration.SubStation;
|
||||
import com.njcn.utils.PubUtils;
|
||||
import com.shining.cloud.enums.information.DevMsgCodeEnum;
|
||||
import com.shining.cloud.service.report.ShiningDeviceService;
|
||||
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiImplicitParams;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/device")
|
||||
@Api(tags = "监测点信息接口")
|
||||
public class ShiningDeviceController {
|
||||
@Autowired
|
||||
private ShiningDeviceService deviceService;
|
||||
|
||||
private class ProInfo {
|
||||
Long provinceIndex;
|
||||
String provinceName;
|
||||
public Long getProvinceIndex() {
|
||||
return provinceIndex;
|
||||
}
|
||||
public String getProvinceName() {
|
||||
return provinceName;
|
||||
}
|
||||
public void setProvinceIndex(Long provinceIndex) {
|
||||
this.provinceIndex = provinceIndex;
|
||||
}
|
||||
public void setProvinceName(String provinceName) {
|
||||
this.provinceName = provinceName;
|
||||
}
|
||||
}
|
||||
|
||||
private class GDInfo {
|
||||
Long gdIndex;
|
||||
String gdName;
|
||||
public Long getGdIndex() {
|
||||
return gdIndex;
|
||||
}
|
||||
public String getGdName() {
|
||||
return gdName;
|
||||
}
|
||||
public void setGdIndex(Long gdIndex) {
|
||||
this.gdIndex = gdIndex;
|
||||
}
|
||||
public void setGdName(String gdName) {
|
||||
this.gdName = gdName;
|
||||
}
|
||||
}
|
||||
|
||||
private class SubInfo {
|
||||
Long subIndex;
|
||||
String subName;
|
||||
public Long getSubIndex() {
|
||||
return subIndex;
|
||||
}
|
||||
public String getSubName() {
|
||||
return subName;
|
||||
}
|
||||
public void setSubIndex(Long subIndex) {
|
||||
this.subIndex = subIndex;
|
||||
}
|
||||
public void setSubName(String subName) {
|
||||
this.subName = subName;
|
||||
}
|
||||
}
|
||||
|
||||
private class LineInfo {
|
||||
Long lineIndex;
|
||||
String lineName;
|
||||
public Long getLineIndex() {
|
||||
return lineIndex;
|
||||
}
|
||||
public String getLineName() {
|
||||
return lineName;
|
||||
}
|
||||
public void setLineIndex(Long lineIndex) {
|
||||
this.lineIndex = lineIndex;
|
||||
}
|
||||
public void setLineName(String lineName) {
|
||||
this.lineName = lineName;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 获取省
|
||||
* @author gbl
|
||||
* @param userId 用户ID
|
||||
*/
|
||||
@PostMapping("getProvince")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "userId", value = "用户ID", required = true, paramType = "query")
|
||||
})
|
||||
@ApiOperation(value = "获取省", notes = "获取省", response = ResponseData.class)
|
||||
public ResponseData getProvince(String userId, HttpServletRequest request) {
|
||||
ResponseData responseData = new ResponseData();
|
||||
|
||||
try {
|
||||
List<Province> msgs = new ArrayList<>();
|
||||
msgs = deviceService.getProvince(userId);
|
||||
List<ProInfo> result = new ArrayList<>();
|
||||
for(Province msg : msgs){
|
||||
ProInfo tmp = new ProInfo();
|
||||
tmp.setProvinceIndex(msg.getProvinceIndex());
|
||||
tmp.setProvinceName(msg.getName());
|
||||
result.add(tmp);
|
||||
}
|
||||
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_SUCCESS,DevMsgCodeEnum.GETPROVINCE_SUCCESS.getCode(), DevMsgCodeEnum.GETPROVINCE_SUCCESS.getMsg(), result);
|
||||
} catch (Exception e) {
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL,DevMsgCodeEnum.GETPROVINCE_FALL.getCode(), DevMsgCodeEnum.GETPROVINCE_FALL.getMsg(), null);
|
||||
}
|
||||
return responseData;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 获取供电公司
|
||||
* @author gbl
|
||||
* @param userId 用户ID
|
||||
* @param provinceIndex 省份ID
|
||||
*/
|
||||
@PostMapping("getGDInfo")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "userId", value = "用户ID", required = true, paramType = "query"),
|
||||
@ApiImplicitParam(name = "provinceIndex", value = "省份ID", required = true, paramType = "query")
|
||||
})
|
||||
@ApiOperation(value = "获取供电公司", notes = "获取供电公司", response = ResponseData.class)
|
||||
public ResponseData getGDInfo(String userId, Long provinceIndex, HttpServletRequest request) {
|
||||
ResponseData responseData = new ResponseData();
|
||||
|
||||
try {
|
||||
List<GDInformation> msgs = new ArrayList<>();
|
||||
msgs = deviceService.getGdInfo(userId, provinceIndex);
|
||||
List<GDInfo> result = new ArrayList<>();
|
||||
for(GDInformation msg : msgs){
|
||||
GDInfo tmp = new GDInfo();
|
||||
tmp.setGdIndex(msg.getGdIndex());
|
||||
tmp.setGdName(msg.getName());
|
||||
result.add(tmp);
|
||||
}
|
||||
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_SUCCESS,DevMsgCodeEnum.GETGDINFO_SUCCESS.getCode(), DevMsgCodeEnum.GETGDINFO_SUCCESS.getMsg(), result);
|
||||
} catch (Exception e) {
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL,DevMsgCodeEnum.GETGDINFO_FALL.getCode(), DevMsgCodeEnum.GETGDINFO_FALL.getMsg(), null);
|
||||
}
|
||||
return responseData;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 获取变电站
|
||||
* @author gbl
|
||||
* @param userId 用户ID
|
||||
* @param gdIndex 供电公司ID
|
||||
*/
|
||||
@PostMapping("getSubInfo")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "userId", value = "用户ID", required = true, paramType = "query"),
|
||||
@ApiImplicitParam(name = "gdIndex", value = "供电公司ID", required = true, paramType = "query")
|
||||
})
|
||||
@ApiOperation(value = "获取变电站", notes = "获取变电站", response = ResponseData.class)
|
||||
public ResponseData getSubInfo(String userId, Long gdIndex, HttpServletRequest request) {
|
||||
ResponseData responseData = new ResponseData();
|
||||
|
||||
try {
|
||||
List<SubStation> msgs = new ArrayList<>();
|
||||
msgs = deviceService.getSubInfo(userId, gdIndex);
|
||||
List<SubInfo> result = new ArrayList<>();
|
||||
for(SubStation msg : msgs){
|
||||
SubInfo tmp = new SubInfo();
|
||||
tmp.setSubIndex(msg.getSubIndex());
|
||||
tmp.setSubName(msg.getName());
|
||||
result.add(tmp);
|
||||
}
|
||||
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_SUCCESS,DevMsgCodeEnum.GETSUBINFO_SUCCESS.getCode(), DevMsgCodeEnum.GETSUBINFO_SUCCESS.getMsg(), result);
|
||||
} catch (Exception e) {
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL,DevMsgCodeEnum.GETSUBINFO_FALL.getCode(), DevMsgCodeEnum.GETSUBINFO_FALL.getMsg(), null);
|
||||
}
|
||||
return responseData;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 获取监测点
|
||||
* @author gbl
|
||||
* @param userId 用户ID
|
||||
* @param subIndex 变电站ID
|
||||
*/
|
||||
@PostMapping("getLineInfo")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "userId", value = "用户ID", required = true, paramType = "query"),
|
||||
@ApiImplicitParam(name = "subIndex", value = "变电站ID", required = true, paramType = "query"),
|
||||
@ApiImplicitParam(name = "type", value = "排序标志", required = true, paramType = "query")
|
||||
})
|
||||
@ApiOperation(value = "获取监测点", notes = "获取监测点", response = ResponseData.class)
|
||||
public ResponseData getLineInfo(String userId, Long subIndex,int type, HttpServletRequest request) {
|
||||
ResponseData responseData = new ResponseData();
|
||||
|
||||
try {
|
||||
List<Line> msgs = new ArrayList<>();
|
||||
msgs = deviceService.getLineInfo(userId, subIndex,type);
|
||||
List<LineInfo> result = new ArrayList<>();
|
||||
for(Line msg : msgs){
|
||||
LineInfo tmp = new LineInfo();
|
||||
tmp.setLineIndex(msg.getLineIndex());
|
||||
tmp.setLineName(msg.getName());
|
||||
result.add(tmp);
|
||||
}
|
||||
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_SUCCESS,DevMsgCodeEnum.GETLINEINFO_SUCCESS.getCode(), DevMsgCodeEnum.GETLINEINFO_SUCCESS.getMsg(), result);
|
||||
} catch (Exception e) {
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL,DevMsgCodeEnum.GETLINEINFO_FALL.getCode(), DevMsgCodeEnum.GETLINEINFO_FALL.getMsg(), null);
|
||||
}
|
||||
return responseData;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 监测点模糊查询
|
||||
* @author gbl
|
||||
* @param userId
|
||||
* @param lineName
|
||||
*/
|
||||
@PostMapping("queryByName")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "userId", value = "用户ID", required = true, paramType = "query"),
|
||||
@ApiImplicitParam(name = "lineName", value = "监测点名称", required = false , paramType = "query")
|
||||
})
|
||||
@ApiOperation(value = "监测点模糊查询", notes = "监测点模糊查询", response = ResponseData.class)
|
||||
public ResponseData queryByName(String userId,String lineName, HttpServletRequest request) {
|
||||
ResponseData responseData = new ResponseData();
|
||||
|
||||
try {
|
||||
List<Line> msgs ;
|
||||
msgs = deviceService.queryByName(userId,lineName);
|
||||
List<LineInfo> result = new ArrayList<>();
|
||||
for(Line msg : msgs){
|
||||
LineInfo tmp = new LineInfo();
|
||||
tmp.setLineIndex(msg.getLineIndex());
|
||||
tmp.setLineName(msg.getName());
|
||||
result.add(tmp);
|
||||
}
|
||||
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_SUCCESS,DevMsgCodeEnum.QUERYLINE_SUCCESS.getCode(), DevMsgCodeEnum.QUERYLINE_SUCCESS.getMsg(), result);
|
||||
} catch (Exception e) {
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL,DevMsgCodeEnum.QUERYLINE_FALL.getCode(), DevMsgCodeEnum.QUERYLINE_FALL.getMsg(), null);
|
||||
}
|
||||
return responseData;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,275 @@
|
||||
package com.shining.cloud.controller.report;
|
||||
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
import com.njcn.enums.app.ReturnCode;
|
||||
import com.njcn.pojo.commons.ResponseData;
|
||||
import com.njcn.sso.pojo.user.User;
|
||||
import com.shining.cloud.enums.information.EventMsgCodeEnum;
|
||||
import com.shining.cloud.pojo.information.EventInfo;
|
||||
import com.shining.cloud.pojo.report.ReportData;
|
||||
import com.shining.cloud.service.report.ShiningReportService;
|
||||
import com.shining.cloud.serviceImpl.report.ShiningReportServiceImpl;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiImplicitParams;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import net.sf.json.JSONObject;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Calendar;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/report")
|
||||
@Api(tags = "报告查询接口")
|
||||
public class ShiningReportController {
|
||||
@Autowired
|
||||
private ShiningReportService shiningReportService;
|
||||
|
||||
@PostMapping("reportList")
|
||||
@ApiImplicitParams({@ApiImplicitParam(name = "userId", value = "用户ID", required = true, paramType = "query")
|
||||
, @ApiImplicitParam(name = "systemType", value = "系统类型,1-暂态,2-稳态", required = true, paramType = "query")
|
||||
, @ApiImplicitParam(name = "reportType", value = "报告类型,1-周报,2-月报,3-季报,4-年报,5-自定义报告", required = true, paramType = "query")
|
||||
, @ApiImplicitParam(name = "lineIndex", value = "监测点ID", paramType = "query")
|
||||
, @ApiImplicitParam(name = "startTime", value = "查询的开始时间", paramType = "query")
|
||||
, @ApiImplicitParam(name = "endTime", value = "查询的结束时间", paramType = "query")
|
||||
, @ApiImplicitParam(name = "page", value = "当前页", required = true, paramType = "query")
|
||||
, @ApiImplicitParam(name = "num", value = "每页数量", required = true, paramType = "query")})
|
||||
@ApiOperation(value = "获取报告入口", notes = "获取报告列表", response = ResponseData.class)
|
||||
public ResponseData reportList(@RequestParam("userId") String userId, @RequestParam("systemType") Integer systemType
|
||||
, @RequestParam("reportType") Integer reportType, @RequestParam("page") Integer page, @RequestParam("num") Integer num
|
||||
, @Param("startTime") Long startTime, @Param("endTime") Long endTime, @Param("lineIndex") Long lineIndex) {
|
||||
ResponseData responseData = new ResponseData();
|
||||
|
||||
/********************************************************************************
|
||||
默认:
|
||||
月报,查前三个月;周报,查当前月;所有监测点
|
||||
自定义:
|
||||
没有监测点,查询符合条件所有监测点信息
|
||||
没有时间按默认的时间段查询
|
||||
开始时间或者结束时间落在报告起止时间内的都列举出来
|
||||
*******************************************************************************/
|
||||
|
||||
try {
|
||||
List<ReportData> list = shiningReportService.reportList(userId, systemType, reportType, page, num, lineIndex, startTime, endTime);
|
||||
responseData.setResultCode(ReturnCode.RETURN_SUCCESS);
|
||||
responseData.setMsgCode(EventMsgCodeEnum.REPORTLIST_SUCCESS.getCode());
|
||||
responseData.setData(list);
|
||||
responseData.setMsg(EventMsgCodeEnum.REPORTLIST_SUCCESS.getMsg());
|
||||
} catch (Exception e) {
|
||||
responseData.setResultCode(ReturnCode.RETURN_FAIL);
|
||||
responseData.setMsgCode(EventMsgCodeEnum.REPORTLIST_FAIL.getCode());
|
||||
responseData.setData(new ArrayList<>());
|
||||
responseData.setMsg(EventMsgCodeEnum.REPORTLIST_FAIL.getMsg());
|
||||
}
|
||||
|
||||
return responseData;
|
||||
}
|
||||
|
||||
@PostMapping("customReport")
|
||||
@ApiImplicitParams({@ApiImplicitParam(name = "userId", value = "用户ID", required = true, paramType = "query")
|
||||
, @ApiImplicitParam(name = "lineIndex", value = "监测点ID", paramType = "query")
|
||||
, @ApiImplicitParam(name = "systemType", value = "系统类型,1-暂态,2-稳态", required = true, paramType = "query")
|
||||
, @ApiImplicitParam(name = "startTime", value = "查询的开始时间", paramType = "query")
|
||||
, @ApiImplicitParam(name = "endTime", value = "查询的结束时间", paramType = "query")
|
||||
, @ApiImplicitParam(name = "year", value = "年份", paramType = "query")
|
||||
, @ApiImplicitParam(name = "quarter", value = "季度", paramType = "query")})
|
||||
@ApiOperation(value = "自定义时间报告申请入口", notes = "自定义报告申请", response = ResponseData.class)
|
||||
public ResponseData customReport(@RequestParam("userId") String userId, @RequestParam("systemType") Integer systemType
|
||||
, @Param("lineIndex") Long lineIndex, @Param("startTime") Long startTime, @Param("endTime") Long endTime, @Param("year") Integer year, @Param("quarter") Integer quarter, HttpServletRequest request) {
|
||||
ResponseData responseData = new ResponseData();
|
||||
Date start;
|
||||
Date end;
|
||||
|
||||
try {
|
||||
if (year == null) {
|
||||
start = new Date(startTime);
|
||||
end = new Date(endTime);
|
||||
} else if (quarter == 0) {
|
||||
Calendar calendar = Calendar.getInstance();
|
||||
calendar.set(Calendar.YEAR, year);
|
||||
start = DateUtil.beginOfYear(calendar.getTime());
|
||||
|
||||
if (calendar.get(Calendar.YEAR) != Calendar.getInstance().get(Calendar.YEAR)) {
|
||||
end = DateUtil.endOfYear(calendar.getTime());
|
||||
} else {
|
||||
end = new Date();
|
||||
}
|
||||
} else {
|
||||
Calendar starttime = Calendar.getInstance();
|
||||
starttime.set(Calendar.YEAR, year);
|
||||
Calendar endtime = Calendar.getInstance();
|
||||
endtime.set(Calendar.YEAR, year);
|
||||
switch (quarter) {
|
||||
case 1:
|
||||
starttime.set(starttime.get(Calendar.YEAR), 0, 1, 0, 0, 0);
|
||||
start = starttime.getTime();
|
||||
endtime.set(starttime.get(Calendar.YEAR), 3, 1, 0, 0, 0);
|
||||
end = new Date(endtime.getTime().getTime() - 1000);
|
||||
break;
|
||||
case 2:
|
||||
starttime.set(starttime.get(Calendar.YEAR), 3, 1, 0, 0, 0);
|
||||
start = starttime.getTime();
|
||||
endtime.set(starttime.get(Calendar.YEAR), 6, 1, 0, 0, 0);
|
||||
end = new Date(endtime.getTime().getTime() - 1000);
|
||||
break;
|
||||
case 3:
|
||||
starttime.set(starttime.get(Calendar.YEAR), 6, 1, 0, 0, 0);
|
||||
start = starttime.getTime();
|
||||
endtime.set(starttime.get(Calendar.YEAR), 9, 1, 0, 0, 0);
|
||||
end = new Date(endtime.getTime().getTime() - 1000);
|
||||
break;
|
||||
case 4:
|
||||
starttime.set(starttime.get(Calendar.YEAR), 9, 1, 0, 0, 0);
|
||||
start = starttime.getTime();
|
||||
endtime.set(starttime.get(Calendar.YEAR) + 1, 0, 1, 0, 0, 0);
|
||||
end = new Date(endtime.getTime().getTime() - 1000);
|
||||
break;
|
||||
default:
|
||||
starttime.set(starttime.get(Calendar.YEAR), 0, 1, 0, 0, 0);
|
||||
start = starttime.getTime();
|
||||
endtime.set(starttime.get(Calendar.YEAR), 3, 1, 0, 0, 0);
|
||||
end = new Date(endtime.getTime().getTime() - 1000);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
start = getDate(start); //去除毫秒,数据库date类型没有保存毫秒
|
||||
end = getDate(end);
|
||||
int result = shiningReportService.customReport(userId, lineIndex, systemType, start, end, 5, request);
|
||||
|
||||
if (result == ShiningReportServiceImpl.RESULTCODE.RESULT_SUCCESS.getCode()) {
|
||||
responseData.setResultCode(ReturnCode.RETURN_SUCCESS);
|
||||
responseData.setMsgCode(EventMsgCodeEnum.CUSTOMREPORT_SUCCESS.getCode());
|
||||
responseData.setMsg(EventMsgCodeEnum.CUSTOMREPORT_SUCCESS.getMsg());
|
||||
|
||||
return responseData;
|
||||
}
|
||||
} catch (Exception e) {
|
||||
//do something
|
||||
}
|
||||
|
||||
responseData.setResultCode(ReturnCode.RETURN_FAIL);
|
||||
responseData.setMsgCode(EventMsgCodeEnum.CUSTOMREPORT_FAIL.getCode());
|
||||
responseData.setMsg(EventMsgCodeEnum.CUSTOMREPORT_FAIL.getMsg());
|
||||
|
||||
return responseData;
|
||||
}
|
||||
|
||||
private Date getDate(Date date) {
|
||||
Calendar calendar = Calendar.getInstance();
|
||||
calendar.setTime(date);
|
||||
calendar.set(Calendar.MILLISECOND, 0);
|
||||
date = calendar.getTime();
|
||||
return date;
|
||||
}
|
||||
|
||||
|
||||
@PostMapping("eventDetailReportApply")
|
||||
@ApiImplicitParams({@ApiImplicitParam(name = "userId", value = "用户ID", required = true, paramType = "query")
|
||||
, @ApiImplicitParam(name = "eventDetailIndex", value = "暂降事件ID", required = true, paramType = "query")})
|
||||
@ApiOperation(value = "暂降事件报告申请入口", notes = "暂降事件报告申请", response = ResponseData.class)
|
||||
public ResponseData eventDetailReportApply(@RequestParam("userId") String userId, @RequestParam("eventDetailIndex") String eventDetailIndex, HttpServletRequest request) {
|
||||
ResponseData responseData = new ResponseData();
|
||||
|
||||
try {
|
||||
int result = shiningReportService.eventDetailReportApply(userId, eventDetailIndex, request);
|
||||
|
||||
if (result == ShiningReportServiceImpl.RESULTCODE.RESULT_NODATA.getCode()) {
|
||||
responseData.setResultCode(ReturnCode.RETURN_FAIL);
|
||||
responseData.setMsgCode(EventMsgCodeEnum.EVENTDETAILREPORTAPPLY_NODATA.getCode());
|
||||
responseData.setMsg(EventMsgCodeEnum.EVENTDETAILREPORTAPPLY_NODATA.getMsg());
|
||||
|
||||
return responseData;
|
||||
}
|
||||
|
||||
if (result == ShiningReportServiceImpl.RESULTCODE.RESULT_SUCCESS.getCode()) {
|
||||
responseData.setResultCode(ReturnCode.RETURN_SUCCESS);
|
||||
responseData.setMsgCode(EventMsgCodeEnum.EVENTDETAILREPORTAPPLY_SUCCESS.getCode());
|
||||
responseData.setMsg(EventMsgCodeEnum.EVENTDETAILREPORTAPPLY_SUCCESS.getMsg());
|
||||
|
||||
return responseData;
|
||||
}
|
||||
} catch (Exception e) {
|
||||
//do something
|
||||
}
|
||||
|
||||
responseData.setResultCode(ReturnCode.RETURN_FAIL);
|
||||
responseData.setMsgCode(EventMsgCodeEnum.EVENTDETAILREPORTAPPLY_FAIL.getCode());
|
||||
responseData.setMsg(EventMsgCodeEnum.EVENTDETAILREPORTAPPLY_FAIL.getMsg());
|
||||
|
||||
return responseData;
|
||||
}
|
||||
|
||||
@PostMapping("eventDetailReportDownLoad")
|
||||
@ApiImplicitParams({@ApiImplicitParam(name = "userId", value = "用户ID", required = true, paramType = "query")
|
||||
, @ApiImplicitParam(name = "eventDetailIndex", value = "暂降事件ID", required = true, paramType = "query")})
|
||||
@ApiOperation(value = "暂降事件报告下载入口", notes = "暂降事件报告下载", response = ResponseData.class)
|
||||
public ResponseData eventDetailReportDownLoad(@RequestParam("userId") String userId, @RequestParam("eventDetailIndex") String eventDetailIndex) {
|
||||
ResponseData responseData = new ResponseData();
|
||||
JSONObject jsonObject = new JSONObject();
|
||||
|
||||
try {
|
||||
EventInfo reportData = shiningReportService.getDownLoadPath(userId, eventDetailIndex);
|
||||
|
||||
if (reportData == null) {
|
||||
responseData.setResultCode(ReturnCode.RETURN_FAIL);
|
||||
responseData.setMsgCode(EventMsgCodeEnum.EVENTDETAILREPORTDOWNLOAD_FAIL.getCode());
|
||||
responseData.setMsg(EventMsgCodeEnum.EVENTDETAILREPORTDOWNLOAD_FAIL.getMsg());
|
||||
jsonObject.put("reportUrl", null);
|
||||
} else if (reportData.getReportState() == 3) {
|
||||
responseData.setResultCode(ReturnCode.RETURN_FAIL);
|
||||
responseData.setMsgCode(EventMsgCodeEnum.EVENTDETAILREPORTDOWNLOAD_ERROR.getCode());
|
||||
responseData.setMsg(EventMsgCodeEnum.EVENTDETAILREPORTDOWNLOAD_ERROR.getMsg());
|
||||
jsonObject.put("reportUrl", null);
|
||||
} else {
|
||||
responseData.setResultCode(ReturnCode.RETURN_SUCCESS);
|
||||
responseData.setMsgCode(EventMsgCodeEnum.EVENTDETAILREPORTDOWNLOAD_SUCCESS.getCode());
|
||||
responseData.setMsg(EventMsgCodeEnum.EVENTDETAILREPORTDOWNLOAD_SUCCESS.getMsg());
|
||||
jsonObject.put("reportUrl", reportData.getReportPath());
|
||||
}
|
||||
} catch (Exception e) {
|
||||
responseData.setResultCode(ReturnCode.RETURN_FAIL);
|
||||
responseData.setMsgCode(EventMsgCodeEnum.EVENTDETAILREPORTDOWNLOAD_FAIL.getCode());
|
||||
responseData.setMsg(EventMsgCodeEnum.EVENTDETAILREPORTDOWNLOAD_FAIL.getMsg());
|
||||
jsonObject.put("reportUrl", null);
|
||||
}
|
||||
|
||||
responseData.setData(jsonObject);
|
||||
|
||||
return responseData;
|
||||
}
|
||||
|
||||
@PostMapping("marketingUserInfo")
|
||||
@ApiImplicitParams({@ApiImplicitParam(name = "userId", value = "用户ID", required = true, paramType = "query")})
|
||||
@ApiOperation(value = "获取营销人员信息", notes = "获取营销人员信息", response = ResponseData.class)
|
||||
public ResponseData getmarketingUserInfo(@RequestParam("userId") String userId) {
|
||||
ResponseData responseData = new ResponseData();
|
||||
JSONObject jsonObject = new JSONObject();
|
||||
|
||||
try {
|
||||
User user = shiningReportService.getmarketingUserInfo(userId);
|
||||
responseData.setResultCode(ReturnCode.RETURN_SUCCESS);
|
||||
responseData.setMsgCode(EventMsgCodeEnum.MARKETINGUSERINFO_SUCCESS.getCode());
|
||||
responseData.setMsg(EventMsgCodeEnum.MARKETINGUSERINFO_SUCCESS.getMsg());
|
||||
jsonObject.put("name", user.getName());
|
||||
jsonObject.put("phone", user.getPhone());
|
||||
responseData.setData(jsonObject);
|
||||
} catch (Exception e) {
|
||||
responseData.setResultCode(ReturnCode.RETURN_FAIL);
|
||||
responseData.setMsgCode(EventMsgCodeEnum.MARKETINGUSERINFO_FAIL.getCode());
|
||||
responseData.setMsg(EventMsgCodeEnum.MARKETINGUSERINFO_FAIL.getMsg());
|
||||
responseData.setData(jsonObject);
|
||||
}
|
||||
|
||||
return responseData;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,115 @@
|
||||
package com.shining.cloud.controller.statistics;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Calendar;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import com.njcn.enums.app.ReturnCode;
|
||||
import com.njcn.pojo.commons.ResponseData;
|
||||
import com.njcn.utils.PubUtils;
|
||||
import com.shining.cloud.enums.information.StatisticsEnum;
|
||||
import com.shining.cloud.enums.information.SteadyMsgCodeEnum;
|
||||
import com.shining.cloud.pojo.statistics.StatisticsData;
|
||||
import com.shining.cloud.pojo.statistics.StatisticsDetail;
|
||||
import com.shining.cloud.service.statistics.StatisticsService;
|
||||
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiImplicitParams;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
|
||||
/**
|
||||
* @description: 统计数据业务层
|
||||
* @author: gbl
|
||||
* @time: 2019-11-27
|
||||
**/
|
||||
@RestController
|
||||
@RequestMapping("/statistics")
|
||||
@Api(tags = "统计数据接口")
|
||||
public class StatisticsController {
|
||||
@Autowired
|
||||
private StatisticsService statisticsService;
|
||||
|
||||
/**
|
||||
* @description: 统计数据
|
||||
* @author gbl
|
||||
* @param lineIndex 监测点ID
|
||||
* @param page 当前页数
|
||||
* @param num 每页数量
|
||||
*/
|
||||
@PostMapping("statistics")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "lineIndex", value = "监测点ID", required = true, paramType = "query"),
|
||||
@ApiImplicitParam(name = "startTime", value = "查询的开始时间", paramType = "query"),
|
||||
@ApiImplicitParam(name = "endTime", value = "查询的结束时间", paramType = "query"),
|
||||
@ApiImplicitParam(name = "page", value = "当前页", required = true, paramType = "query"),
|
||||
@ApiImplicitParam(name = "num", value = "每页数量", required = true, paramType = "query")
|
||||
})
|
||||
@ApiOperation(value = "统计数据", notes = "统计数据", response = ResponseData.class)
|
||||
public ResponseData statistics(int lineIndex,Long startTime,Long endTime, int page, int num, HttpServletRequest request) {
|
||||
ResponseData responseData = new ResponseData();
|
||||
|
||||
try {
|
||||
String start="";
|
||||
String end="";
|
||||
if(startTime == null || endTime == null){
|
||||
Calendar calendar1 = Calendar.getInstance();
|
||||
calendar1.setTime(new Date());
|
||||
|
||||
SimpleDateFormat sdf1 = new SimpleDateFormat("yyyy-MM");
|
||||
String month = sdf1.format(calendar1.getTime());
|
||||
start = month + "-01";
|
||||
end = month + "-31";
|
||||
}else{
|
||||
start = PubUtils.timeStamp3Date(startTime,"");
|
||||
end = PubUtils.timeStamp3Date(endTime,"");
|
||||
}
|
||||
List<StatisticsData> msgs = new ArrayList<>();
|
||||
msgs = statisticsService.queryData(lineIndex,PubUtils.string2Date(start, "yyyy-MM-dd"),
|
||||
PubUtils.string2Date(end, "yyyy-MM-dd"),page,num);
|
||||
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_SUCCESS,StatisticsEnum.GETSTATISTICSDATA_SUCCESS.getCode(), StatisticsEnum.GETSTATISTICSDATA_SUCCESS.getMsg(), msgs);
|
||||
} catch (Exception e) {
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL,StatisticsEnum.GETSTATISTICSDATA_FALL.getCode(), StatisticsEnum.GETSTATISTICSDATA_FALL.getMsg(), null);
|
||||
}
|
||||
return responseData;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 统计数据详情
|
||||
* @author gbl
|
||||
* @param lineIndex 监测点ID
|
||||
* @param timeID 统计时间
|
||||
*/
|
||||
@PostMapping("statisticsDetail")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "lineIndex", value = "监测点ID", required = true, paramType = "query"),
|
||||
@ApiImplicitParam(name = "timeID", value = "统计时间", required = true, paramType = "query")
|
||||
})
|
||||
@ApiOperation(value = "统计数据详情", notes = "统计数据详情", response = ResponseData.class)
|
||||
public ResponseData statisticsDetail(int lineIndex,Long timeID, HttpServletRequest request) {
|
||||
ResponseData responseData = new ResponseData();
|
||||
|
||||
try {
|
||||
StatisticsDetail msgs = new StatisticsDetail();
|
||||
String dateTime = PubUtils.timeStamp3Date(timeID,"");
|
||||
Date time = PubUtils.string2Date(dateTime, "yyyy-MM-dd");
|
||||
msgs = statisticsService.queryDetail(lineIndex,time);
|
||||
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_SUCCESS,StatisticsEnum.GETSTATISTICSLIST_SUCCESS.getCode(), StatisticsEnum.GETSTATISTICSLIST_SUCCESS.getMsg(), msgs);
|
||||
} catch (Exception e) {
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL,StatisticsEnum.GETSTATISTICSLIST_FALL.getCode(), StatisticsEnum.GETSTATISTICSLIST_FALL.getMsg(), null);
|
||||
}
|
||||
|
||||
return responseData;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,545 @@
|
||||
package com.shining.cloud.controller.user;
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.njcn.enums.ProjectEnum;
|
||||
import com.njcn.enums.app.ReturnCode;
|
||||
import com.njcn.enums.app.UserCodeEnum;
|
||||
import com.njcn.enums.app.UserLevelEnum;
|
||||
import com.njcn.pojo.commons.RedisDB;
|
||||
import com.njcn.pojo.commons.ResponseData;
|
||||
import com.njcn.pojo.user.AppUser;
|
||||
import com.njcn.shiro.token.TokenManager;
|
||||
import com.njcn.utils.AESUtil;
|
||||
import com.njcn.utils.PubUtils;
|
||||
import com.njcn.utils.XssFilterUtil;
|
||||
import com.njcn.utils.redis.JedisManager;
|
||||
import com.shining.cloud.enums.AliMsgResponseEnum;
|
||||
import com.shining.cloud.pojo.user.MessageResult;
|
||||
import com.shining.cloud.pojo.user.UserResult;
|
||||
import com.shining.cloud.service.user.AppUserService;
|
||||
import io.swagger.annotations.*;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.apache.shiro.SecurityUtils;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
|
||||
/**
|
||||
* @author hongawen
|
||||
* @date: 2019/9/19 18:04
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/user")
|
||||
@Api(tags = "用户操作接口")
|
||||
public class UserController {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(UserController.class);
|
||||
|
||||
@Resource
|
||||
private AppUserService appUserService;
|
||||
|
||||
@Resource
|
||||
private JedisManager jedisManager;
|
||||
|
||||
/**
|
||||
* 获取(登录、注册、忘记密码、重新绑定手机)验证码
|
||||
*/
|
||||
@PostMapping("authCode")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "phone", value = "手机号", required = true, paramType = "query"),
|
||||
@ApiImplicitParam(name = "devCode", value = "设备码", required = true, paramType = "query"),
|
||||
@ApiImplicitParam(name = "type", value = "验证码类型", required = true, paramType = "query"),
|
||||
})
|
||||
@ApiOperation(value = "获取验证码", notes = "获取验证码", response = ResponseData.class)
|
||||
public ResponseData authCode(String phone, String devCode, String type, HttpServletRequest request) {
|
||||
ResponseData responseData;
|
||||
if (!PubUtils.patternPhone(XssFilterUtil.dealString(phone))) {
|
||||
return PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL, UserCodeEnum.PHONE_WRONG.getCode(), UserCodeEnum.PHONE_WRONG.getMsg(), null);
|
||||
}
|
||||
//判断是否为黑客攻击
|
||||
if (judgeAttachInterface(devCode, request, phone)) {
|
||||
return PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL, UserCodeEnum.SEND_CODE_FAIL.getCode(), UserCodeEnum.SEND_CODE_FAIL.getMsg(), null);
|
||||
}
|
||||
System.out.println("获取验证码的请求信息,手机号:" + phone + ",设备码为:" + devCode);
|
||||
try {
|
||||
devCode = AESUtil.aesPKCS5PaddingDecrypt(devCode);
|
||||
appUserService.setMessage(phone, devCode, type);
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_SUCCESS, UserCodeEnum.SEND_CODE_SUCCESS.getCode(), UserCodeEnum.SEND_CODE_SUCCESS.getMsg(), null);
|
||||
} catch (Exception e) {
|
||||
logger.error("发送短信异常,异常为:" + e.getMessage());
|
||||
if (e.getMessage().length() < 10) {
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL, UserCodeEnum.getCodeByMsg(e.getMessage()), e.getMessage(), null);
|
||||
} else {
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL, UserCodeEnum.SEND_CODE_FAIL.getCode(), UserCodeEnum.SEND_CODE_FAIL.getMsg(), null);
|
||||
}
|
||||
}
|
||||
return responseData;
|
||||
}
|
||||
|
||||
/***
|
||||
* 判断当前请求是否为黑客攻击
|
||||
* @author hongawen
|
||||
* @date 2023/8/25 11:07
|
||||
* @return boolean
|
||||
*/
|
||||
private boolean judgeAttachInterface(String devCode, HttpServletRequest request, String phone) {
|
||||
boolean flag = false;
|
||||
//针对设备码
|
||||
if (judgeDevCode(devCode)) {
|
||||
flag = true;
|
||||
//判断手机号是否在黑名单
|
||||
} else if (judgeSmsPhone(phone)) {
|
||||
flag = true;
|
||||
//针对ip限制,避免盗刷
|
||||
} else if (judgeRequestIp(request)) {
|
||||
flag = true;
|
||||
}
|
||||
return flag;
|
||||
}
|
||||
|
||||
/***
|
||||
* 紧急处理,后期app需要加上滑块移动验证
|
||||
* @author hongawen
|
||||
* 加上设备码限制,
|
||||
* 如果同一设备码72小时内超过6次,则立即返回
|
||||
* 如果72小时内超过30次,则彻底封杀该设备码
|
||||
*/
|
||||
private boolean judgeDevCode(String devCode) {
|
||||
boolean flag = true;
|
||||
String valueByPhone = jedisManager.getValueByKey(RedisDB.CODE_DB, RedisDB.SMS_DEV_CODE.concat(devCode));
|
||||
int times = StrUtil.isBlank(valueByPhone) ? 0 : Integer.parseInt(valueByPhone);
|
||||
times++;
|
||||
if (times < 6) {
|
||||
//合理范围内,缓存
|
||||
flag = false;
|
||||
jedisManager.saveValueByKey(RedisDB.CODE_DB, RedisDB.SMS_DEV_CODE.concat(devCode), String.valueOf(times), RedisDB.THREE_DAYS);
|
||||
} else if (times < 30) {
|
||||
jedisManager.saveValueByKey(RedisDB.CODE_DB, RedisDB.SMS_DEV_CODE.concat(devCode), String.valueOf(times), RedisDB.THREE_DAYS);
|
||||
} else {
|
||||
jedisManager.saveValueByKey(RedisDB.CODE_DB, RedisDB.SMS_DEV_CODE.concat(devCode), String.valueOf(times), -1);
|
||||
}
|
||||
return flag;
|
||||
}
|
||||
|
||||
/***
|
||||
* 判断手机号是否在黑名单
|
||||
* @author hongawen
|
||||
* @date 2023/8/24 20:06
|
||||
* @param phone 手机号
|
||||
* @return boolean
|
||||
*/
|
||||
private boolean judgeSmsPhone(String phone) {
|
||||
String valueByPhone = jedisManager.getValueByKey(RedisDB.CODE_DB, RedisDB.SMS_PHONE.concat(phone));
|
||||
return !StrUtil.isBlank(valueByPhone);
|
||||
}
|
||||
|
||||
/***
|
||||
* 紧急处理,后期app需要加上滑块移动验证
|
||||
* @author hongawen
|
||||
* 加上ip限制,
|
||||
* 如果同一ip72小时内超过6次,则立即返回
|
||||
* 如果72小时内超过30次,则彻底封杀该ip
|
||||
*/
|
||||
private boolean judgeRequestIp(HttpServletRequest request) {
|
||||
boolean flag = true;
|
||||
//获取过来的ip可能有多个,通过','分割后,取第一个,并且仅仅关心ip的前两个数据范围xxx.xxx.*.*;
|
||||
String clientIpAddress = PubUtils.getClientIpAddress(request);
|
||||
clientIpAddress = clientIpAddress.split(StrUtil.COMMA)[0];
|
||||
// clientIpAddress = clientIpAddress.substring(0, findNthCharacterIndex(clientIpAddress, StrUtil.C_DOT, 2));
|
||||
String ip = RedisDB.SMS_IP + clientIpAddress;
|
||||
String ipValue = jedisManager.getValueByKey(RedisDB.CODE_DB, ip);
|
||||
int times = StrUtil.isBlank(ipValue) ? 0 : Integer.parseInt(ipValue);
|
||||
logger.error("{}来获取短信验证码,最近72小时内,已经请求了{}次", ip, times);
|
||||
times++;
|
||||
if (times < 6) {
|
||||
//合理范围内,缓存
|
||||
flag = false;
|
||||
jedisManager.saveValueByKey(RedisDB.CODE_DB, ip, String.valueOf(times), RedisDB.THREE_DAYS);
|
||||
} else if (times < 30) {
|
||||
jedisManager.saveValueByKey(RedisDB.CODE_DB, ip, String.valueOf(times), RedisDB.THREE_DAYS);
|
||||
}else {
|
||||
jedisManager.saveValueByKey(RedisDB.CODE_DB, ip, String.valueOf(times), -1);
|
||||
}
|
||||
return flag;
|
||||
}
|
||||
|
||||
/***
|
||||
* 查找ip前2个255详细信息
|
||||
* @author hongawen
|
||||
* @date 2023/8/25 9:59
|
||||
* @return int
|
||||
*/
|
||||
public static int findNthCharacterIndex(String input, char targetChar, int n) {
|
||||
int count = 0;
|
||||
for (int i = 0; i < input.length(); i++) {
|
||||
if (input.charAt(i) == targetChar) {
|
||||
count++;
|
||||
if (count == n) {
|
||||
return i;
|
||||
}
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
/**
|
||||
* 手机app注册
|
||||
*/
|
||||
@PostMapping("register")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "phone", value = "手机号", required = true, paramType = "query"),
|
||||
@ApiImplicitParam(name = "code", value = "验证码", required = true, paramType = "query"),
|
||||
@ApiImplicitParam(name = "devCode", value = "设备码", required = true, paramType = "query"),
|
||||
})
|
||||
@ApiOperation(value = "注册入口", notes = "用户注册", response = ResponseData.class)
|
||||
public ResponseData register(String phone, String code, String devCode) {
|
||||
ResponseData responseData;
|
||||
//参数校验
|
||||
if (!PubUtils.patternPhone(XssFilterUtil.dealString(phone))) {
|
||||
return PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL, UserCodeEnum.PHONE_WRONG.getCode(), UserCodeEnum.PHONE_WRONG.getMsg(), null);
|
||||
}
|
||||
if (StringUtils.isBlank(devCode)) {
|
||||
return PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL, UserCodeEnum.DEVCODE_WRONG.getCode(), UserCodeEnum.DEVCODE_WRONG.getMsg(), null);
|
||||
}
|
||||
UserResult userResult;
|
||||
logger.info("controller更新手机id:" + devCode);
|
||||
try {
|
||||
devCode = AESUtil.aesPKCS5PaddingDecrypt(devCode);
|
||||
userResult = appUserService.register(phone, code, devCode);
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_SUCCESS, UserCodeEnum.REGIST_SUCCESS.getCode(), UserCodeEnum.REGIST_SUCCESS.getMsg(), userResult);
|
||||
} catch (Exception e) {
|
||||
if (e.getMessage().length() < 10) {
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL, UserCodeEnum.getCodeByMsg(e.getMessage()), e.getMessage(), null);
|
||||
} else {
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL, UserCodeEnum.REGIST_FAIL.getCode(), UserCodeEnum.REGIST_FAIL.getMsg(), null);
|
||||
}
|
||||
logger.error("app用户注册异常:" + e.toString());
|
||||
}
|
||||
return responseData;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 手机app密码设置
|
||||
*/
|
||||
@PostMapping("setPsd")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "userId", value = "用户索引", required = true, paramType = "query"),
|
||||
@ApiImplicitParam(name = "password", value = "密码", required = true, paramType = "query"),
|
||||
@ApiImplicitParam(name = "devCode", value = "设备码", required = true, paramType = "query"),
|
||||
})
|
||||
@ApiOperation(value = "设置密码", notes = "设置密码", response = ResponseData.class)
|
||||
public ResponseData setPsd(String userId, String password, String devCode) {
|
||||
ResponseData responseData;
|
||||
//参数校验
|
||||
if (StringUtils.isBlank(userId)) {
|
||||
return PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL, UserCodeEnum.USERID_WRONG.getCode(), UserCodeEnum.USERID_WRONG.getMsg(), null);
|
||||
}
|
||||
if (!PubUtils.patternPasswordPhone(XssFilterUtil.dealString(password))) {
|
||||
return PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL, UserCodeEnum.PASSWORD_WRONG.getCode(), UserCodeEnum.PASSWORD_WRONG.getMsg(), null);
|
||||
}
|
||||
if (StringUtils.isBlank(devCode)) {
|
||||
return PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL, UserCodeEnum.DEVCODE_WRONG.getCode(), UserCodeEnum.DEVCODE_WRONG.getMsg(), null);
|
||||
}
|
||||
logger.info("controller更新手机id:" + devCode);
|
||||
try {
|
||||
devCode = AESUtil.aesPKCS5PaddingDecrypt(devCode);
|
||||
appUserService.setPsd(userId, devCode, password);
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_SUCCESS, UserCodeEnum.SETPWD_SUCCESS.getCode(), UserCodeEnum.SETPWD_SUCCESS.getMsg(), null);
|
||||
} catch (Exception e) {
|
||||
logger.error("app用户设置密码异常:" + e.toString());
|
||||
if (e.getMessage().length() < 10) {
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL, UserCodeEnum.getCodeByMsg(e.getMessage()), e.getMessage(), null);
|
||||
} else {
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL, UserCodeEnum.SETPWD_FAIL.getCode(), UserCodeEnum.SETPWD_FAIL.getMsg(), null);
|
||||
}
|
||||
}
|
||||
return responseData;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 手机app登录入口
|
||||
*/
|
||||
@PostMapping("login")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "phone", value = "手机号", required = true, paramType = "query"),
|
||||
@ApiImplicitParam(name = "type", value = "登录类型", required = true, paramType = "query"),
|
||||
@ApiImplicitParam(name = "key", value = "验证码/密码", required = true, paramType = "query"),
|
||||
@ApiImplicitParam(name = "devCode", value = "设备码", required = true, paramType = "query"),
|
||||
})
|
||||
@ApiOperation(value = "登录入口", notes = "APP登录", response = ResponseData.class)
|
||||
public ResponseData login(String phone, String type, String key, String devCode, HttpServletRequest request) {
|
||||
ResponseData responseData;
|
||||
//参数校验
|
||||
if (!PubUtils.patternPhone(XssFilterUtil.dealString(phone))) {
|
||||
return PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL, UserCodeEnum.PHONE_WRONG.getCode(), UserCodeEnum.PHONE_WRONG.getMsg(), null);
|
||||
}
|
||||
if (StringUtils.isBlank(key)) {
|
||||
return PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL, UserCodeEnum.KEY_WRONG.getCode(), UserCodeEnum.KEY_WRONG.getMsg(), null);
|
||||
}
|
||||
if (StringUtils.isBlank(devCode)) {
|
||||
return PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL, UserCodeEnum.DEVCODE_WRONG.getCode(), UserCodeEnum.DEVCODE_WRONG.getMsg(), null);
|
||||
}
|
||||
UserResult userResult = new UserResult();
|
||||
logger.info("controller更新手机id:" + devCode);
|
||||
try {
|
||||
devCode = AESUtil.aesPKCS5PaddingDecrypt(devCode);
|
||||
TokenManager.appLogin(phone, type, key, devCode, ProjectEnum.APP.getItem());
|
||||
AppUser appUser = (AppUser) SecurityUtils.getSubject().getPrincipal();
|
||||
userResult.setPhone(appUser.getPhone());
|
||||
userResult.setRoleCode(appUser.getUserLevel());
|
||||
userResult.setUserName(StringUtils.isEmpty(appUser.getName()) ? null : appUser.getName());
|
||||
userResult.setRoleName(UserLevelEnum.getMsgByCode(appUser.getUserLevel()));
|
||||
userResult.setUserId(appUser.getUserIndex());
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_SUCCESS, UserCodeEnum.LOGIN_SUCCESS.getCode(), UserCodeEnum.LOGIN_SUCCESS.getMsg(), userResult);
|
||||
} catch (Exception e) {
|
||||
logger.error("app用户登录异常:" + e.toString());
|
||||
if (e.getMessage().length() < 10) {
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL, UserCodeEnum.getCodeByMsg(e.getMessage()), e.getMessage(), null);
|
||||
} else {
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL, UserCodeEnum.LOGIN_FAIL.getCode(), UserCodeEnum.LOGIN_FAIL.getMsg(), null);
|
||||
}
|
||||
}
|
||||
return responseData;
|
||||
}
|
||||
|
||||
/**
|
||||
* 手机app忘记密码-重置密码
|
||||
*/
|
||||
@PostMapping("resetPsd")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "phone", value = "手机号", required = true, paramType = "query"),
|
||||
@ApiImplicitParam(name = "code", value = "验证码", required = true, paramType = "query"),
|
||||
@ApiImplicitParam(name = "password", value = "密码", required = true, paramType = "query"),
|
||||
@ApiImplicitParam(name = "devCode", value = "设备码", required = true, paramType = "query"),
|
||||
})
|
||||
@ApiOperation(value = "重置密码", notes = "重置密码", response = ResponseData.class)
|
||||
public ResponseData resetPsd(String phone, String code, String password, String devCode) {
|
||||
ResponseData responseData;
|
||||
//参数校验
|
||||
if (!PubUtils.patternPhone(XssFilterUtil.dealString(phone))) {
|
||||
return PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL, UserCodeEnum.PHONE_WRONG.getCode(), UserCodeEnum.PHONE_WRONG.getMsg(), null);
|
||||
}
|
||||
if (!PubUtils.patternPasswordPhone(XssFilterUtil.dealString(password))) {
|
||||
return PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL, UserCodeEnum.PASSWORD_WRONG.getCode(), UserCodeEnum.PASSWORD_WRONG.getMsg(), null);
|
||||
}
|
||||
logger.info("controller更新手机id:" + devCode);
|
||||
try {
|
||||
devCode = AESUtil.aesPKCS5PaddingDecrypt(devCode);
|
||||
appUserService.resetPsd(phone, code, password, devCode);
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_SUCCESS, UserCodeEnum.RESETPWD_SUCCESS.getCode(), UserCodeEnum.RESETPWD_SUCCESS.getMsg(), null);
|
||||
} catch (Exception e) {
|
||||
logger.error("忘记密码重置密码异常:" + e.toString());
|
||||
if (e.getMessage().length() < 10) {
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL, UserCodeEnum.getCodeByMsg(e.getMessage()), e.getMessage(), null);
|
||||
} else {
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL, UserCodeEnum.RESETPWD_FAIL.getCode(), UserCodeEnum.RESETPWD_FAIL.getMsg(), null);
|
||||
}
|
||||
}
|
||||
return responseData;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 手机app已登录修改密码
|
||||
*/
|
||||
@PostMapping("modifyPsd")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "userId", value = "用户ID", required = true, paramType = "query"),
|
||||
@ApiImplicitParam(name = "phone", value = "手机号", required = true, paramType = "query"),
|
||||
@ApiImplicitParam(name = "code", value = "验证码", required = true, paramType = "query"),
|
||||
@ApiImplicitParam(name = "password", value = "密码", required = true, paramType = "query"),
|
||||
@ApiImplicitParam(name = "devCode", value = "设备码", required = true, paramType = "query"),
|
||||
})
|
||||
@ApiOperation(value = "修改密码", notes = "修改密码", response = ResponseData.class)
|
||||
public ResponseData modifyPsd(String userId, String phone, String code, String password, String devCode) {
|
||||
ResponseData responseData;
|
||||
//参数校验
|
||||
if (!PubUtils.patternPasswordPhone(XssFilterUtil.dealString(password))) {
|
||||
return PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL, UserCodeEnum.PASSWORD_WRONG.getCode(), UserCodeEnum.PASSWORD_WRONG.getMsg(), null);
|
||||
}
|
||||
logger.info("controller更新手机id:" + devCode);
|
||||
try {
|
||||
devCode = AESUtil.aesPKCS5PaddingDecrypt(devCode);
|
||||
appUserService.modifyPsd(userId, phone, code, password, devCode);
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_SUCCESS, UserCodeEnum.RESETPWD_SUCCESS.getCode(), UserCodeEnum.RESETPWD_SUCCESS.getMsg(), null);
|
||||
} catch (Exception e) {
|
||||
logger.error("修改密码异常:" + e.toString());
|
||||
if (e.getMessage().length() < 10) {
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL, UserCodeEnum.getCodeByMsg(e.getMessage()), e.getMessage(), null);
|
||||
} else {
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL, UserCodeEnum.RESETPWD_FAIL.getCode(), UserCodeEnum.RESETPWD_FAIL.getMsg(), null);
|
||||
}
|
||||
}
|
||||
return responseData;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 手机app角色升级
|
||||
*/
|
||||
@PostMapping("roleUpdate")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "userId", value = "用户ID", required = true, paramType = "query"),
|
||||
@ApiImplicitParam(name = "referralCode", value = "推荐码", required = true, paramType = "query"),
|
||||
@ApiImplicitParam(name = "devCode", value = "设备码", required = true, paramType = "query"),
|
||||
})
|
||||
@ApiOperation(value = "角色升级", notes = "角色升级", response = ResponseData.class)
|
||||
public ResponseData roleUpdate(String userId, String referralCode, String devCode) {
|
||||
ResponseData responseData;
|
||||
//参数校验
|
||||
if (StringUtils.isEmpty(referralCode)) {
|
||||
return PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL, UserCodeEnum.REFERRAL_CODE_ERROR.getCode(), UserCodeEnum.REFERRAL_CODE_ERROR.getMsg(), null);
|
||||
}
|
||||
logger.info("controller更新手机id:" + devCode);
|
||||
UserResult userResult;
|
||||
try {
|
||||
devCode = AESUtil.aesPKCS5PaddingDecrypt(devCode);
|
||||
userResult = appUserService.roleUpdate(userId, referralCode, devCode);
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_SUCCESS, UserCodeEnum.UPDATE_ROLE_SUCCESS.getCode(), UserCodeEnum.UPDATE_ROLE_SUCCESS.getMsg(), userResult);
|
||||
} catch (Exception e) {
|
||||
logger.error("角色升级异常:" + e.toString());
|
||||
if (e.getMessage().length() < 10) {
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL, UserCodeEnum.getCodeByMsg(e.getMessage()), e.getMessage(), null);
|
||||
} else {
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL, UserCodeEnum.UPDATE_ROLE_FAIL.getCode(), UserCodeEnum.UPDATE_ROLE_FAIL.getMsg(), null);
|
||||
}
|
||||
}
|
||||
return responseData;
|
||||
}
|
||||
|
||||
/**
|
||||
* 手机app确认旧手机验证码
|
||||
*/
|
||||
@PostMapping("comfirmCode")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "phone", value = "手机号码号码", required = true, paramType = "query"),
|
||||
@ApiImplicitParam(name = "code", value = "短信验证码", required = true, paramType = "query"),
|
||||
@ApiImplicitParam(name = "devCode", value = "设备码", required = true, paramType = "query"),
|
||||
})
|
||||
@ApiOperation(value = "确认旧手机验证码", notes = "确认旧手机验证码", response = ResponseData.class)
|
||||
public ResponseData comfirmCode(String phone, String devCode, String code) {
|
||||
ResponseData responseData;
|
||||
//参数校验
|
||||
if (!PubUtils.patternPhone(XssFilterUtil.dealString(phone))) {
|
||||
return PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL, UserCodeEnum.PHONE_WRONG.getCode(), UserCodeEnum.PHONE_WRONG.getMsg(), null);
|
||||
}
|
||||
if (StringUtils.isBlank(devCode)) {
|
||||
return PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL, UserCodeEnum.DEVCODE_WRONG.getCode(), UserCodeEnum.DEVCODE_WRONG.getMsg(), null);
|
||||
}
|
||||
logger.info("controller更新手机id:" + devCode);
|
||||
try {
|
||||
devCode = AESUtil.aesPKCS5PaddingDecrypt(devCode);
|
||||
appUserService.comfirmCode(phone, devCode, code);
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_SUCCESS, UserCodeEnum.MESSAGE_CODE_RIGHT.getCode(), UserCodeEnum.MESSAGE_CODE_RIGHT.getMsg(), null);
|
||||
} catch (Exception e) {
|
||||
logger.error("确认旧手机验证码异常:" + e.toString());
|
||||
if (e.getMessage().length() < 10) {
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL, UserCodeEnum.getCodeByMsg(e.getMessage()), e.getMessage(), null);
|
||||
} else {
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL, UserCodeEnum.MESSAGE_CODE_WRONG.getCode(), UserCodeEnum.MESSAGE_CODE_WRONG.getMsg(), null);
|
||||
}
|
||||
}
|
||||
return responseData;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 手机app重新绑定手机号
|
||||
*/
|
||||
@PostMapping("rebindPhone")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "userId", value = "用户ID", required = true, paramType = "query"),
|
||||
@ApiImplicitParam(name = "phoneNew", value = "新号码", required = true, paramType = "query"),
|
||||
@ApiImplicitParam(name = "code", value = "短信验证码", required = true, paramType = "query"),
|
||||
@ApiImplicitParam(name = "devCode", value = "设备码", required = true, paramType = "query"),
|
||||
})
|
||||
@ApiOperation(value = "重新绑定手机号", notes = "重新绑定手机号", response = ResponseData.class)
|
||||
public ResponseData rebindPhone(String userId, String phoneNew, String devCode, String code) {
|
||||
ResponseData responseData;
|
||||
//参数校验
|
||||
if (!PubUtils.patternPhone(XssFilterUtil.dealString(phoneNew))) {
|
||||
return PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL, UserCodeEnum.PHONE_WRONG.getCode(), UserCodeEnum.PHONE_WRONG.getMsg(), null);
|
||||
}
|
||||
if (StringUtils.isBlank(devCode)) {
|
||||
return PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL, UserCodeEnum.DEVCODE_WRONG.getCode(), UserCodeEnum.DEVCODE_WRONG.getMsg(), null);
|
||||
}
|
||||
try {
|
||||
devCode = AESUtil.aesPKCS5PaddingDecrypt(devCode);
|
||||
appUserService.rebindPhone(userId, phoneNew, devCode, code);
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_SUCCESS, UserCodeEnum.REST_PHONE_SUCCESS.getCode(), UserCodeEnum.REST_PHONE_SUCCESS.getMsg(), null);
|
||||
} catch (Exception e) {
|
||||
logger.error("重新绑定手机号异常:" + e.toString());
|
||||
if (e.getMessage().length() < 10) {
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL, UserCodeEnum.getCodeByMsg(e.getMessage()), e.getMessage(), null);
|
||||
} else {
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL, UserCodeEnum.REST_PHONE_FAIL.getCode(), UserCodeEnum.REST_PHONE_FAIL.getMsg(), null);
|
||||
}
|
||||
}
|
||||
return responseData;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 手机app用户实时消息配置
|
||||
*/
|
||||
@PostMapping("msgSet")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "userId", value = "用户ID", required = true, paramType = "query"),
|
||||
@ApiImplicitParam(name = "eventInfo", value = "暂态消息模块", required = true, paramType = "query"),
|
||||
@ApiImplicitParam(name = "targetInfo", value = "稳态消息模块", required = true, paramType = "query"),
|
||||
@ApiImplicitParam(name = "deviceInfo", value = "终端消息模块", required = true, paramType = "query"),
|
||||
@ApiImplicitParam(name = "systemInfo", value = "系统消息消息模块", required = true, paramType = "query"),
|
||||
})
|
||||
@ApiOperation(value = "用户实时消息配置", notes = "用户实时消息配置", response = ResponseData.class)
|
||||
public ResponseData msgSet(String userId, String eventInfo, String targetInfo, String deviceInfo, String systemInfo) {
|
||||
ResponseData responseData;
|
||||
try {
|
||||
appUserService.msgSet(userId, eventInfo, targetInfo, deviceInfo, systemInfo);
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_SUCCESS, UserCodeEnum.SET_INFO_SUCCESS.getCode(), UserCodeEnum.SET_INFO_SUCCESS.getMsg(), null);
|
||||
} catch (Exception e) {
|
||||
logger.error("用户实时消息配置异常:" + e.toString());
|
||||
if (e.getMessage().length() < 10) {
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL, UserCodeEnum.getCodeByMsg(e.getMessage()), e.getMessage(), null);
|
||||
} else {
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL, UserCodeEnum.SET_INFO_FAIL.getCode(), UserCodeEnum.SET_INFO_FAIL.getMsg(), null);
|
||||
}
|
||||
}
|
||||
return responseData;
|
||||
}
|
||||
|
||||
/**
|
||||
* 手机app用户获取消息配置
|
||||
*/
|
||||
@PostMapping("getMsg")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "userId", value = "用户ID", required = true, paramType = "query"),
|
||||
@ApiImplicitParam(name = "devCode", value = "设备ID", required = true, paramType = "query"),
|
||||
})
|
||||
@ApiOperation(value = "用户获取消息配置", notes = "用户获取消息配置", response = ResponseData.class)
|
||||
public ResponseData getMsg(String userId, String devCode) {
|
||||
ResponseData responseData;
|
||||
MessageResult messageResult;
|
||||
try {
|
||||
devCode = AESUtil.aesPKCS5PaddingDecrypt(devCode);
|
||||
messageResult = appUserService.getMsg(userId, devCode);
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_SUCCESS, UserCodeEnum.GET_MESSAGE_SUCCESS.getCode(), UserCodeEnum.GET_MESSAGE_SUCCESS.getMsg(), messageResult);
|
||||
} catch (Exception e) {
|
||||
logger.error("用户获取消息配置异常:" + e.toString());
|
||||
if (e.getMessage().length() < 10) {
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL, UserCodeEnum.getCodeByMsg(e.getMessage()), e.getMessage(), null);
|
||||
} else {
|
||||
responseData = PubUtils.assignmentAppResponse(ReturnCode.RETURN_FAIL, UserCodeEnum.GET_MESSAGE_FAIL.getCode(), UserCodeEnum.GET_MESSAGE_FAIL.getMsg(), null);
|
||||
}
|
||||
}
|
||||
return responseData;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
package com.shining.cloud.enums.AdminStatistic;
|
||||
|
||||
/**
|
||||
* @description: 统计数据完整性率枚举
|
||||
* @author: denghuajun
|
||||
* @time: 2020-01-02 10:26:04
|
||||
**/
|
||||
|
||||
public enum DataIntegrityEnums {
|
||||
GETDATAINTEGRITY_SUCCESS(10601,"统计数据完整性率成功"),
|
||||
GETDATAINTEGRITY_FALL(10602,"统计数据完整性率失败"),
|
||||
USERID_WRONG(10603,"用户索引非法");
|
||||
DataIntegrityEnums(int code, String msg) {
|
||||
this.code = code;
|
||||
this.msg = msg;
|
||||
}
|
||||
private int code;
|
||||
|
||||
private String msg;
|
||||
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(int code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg) {
|
||||
this.msg = msg;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
package com.shining.cloud.enums.AdminStatistic;
|
||||
|
||||
/**
|
||||
* @description: 统计终端在线率枚举
|
||||
* @author: denghuajun
|
||||
* @time: 2020-01-02 10:35:12
|
||||
**/
|
||||
|
||||
public enum StaticaEnums {
|
||||
GETDEVSTATUS_SUCCESS(10604,"统计终端在线率成功"),
|
||||
GETDEVSTATUS_FALL(10605,"统计终端在线率失败"),
|
||||
USERID_WRONG(10606,"用户索引非法");
|
||||
StaticaEnums(int code, String msg) {
|
||||
this.code = code;
|
||||
this.msg = msg;
|
||||
}
|
||||
private int code;
|
||||
|
||||
private String msg;
|
||||
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(int code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg) {
|
||||
this.msg = msg;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
package com.shining.cloud.enums;
|
||||
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
/**
|
||||
* 此处收集恶意攻击的响应回执
|
||||
*
|
||||
* @author hongawen
|
||||
* @version 1.0.0
|
||||
* @date 2023年08月24日 16:13
|
||||
*/
|
||||
public enum AliMsgResponseEnum {
|
||||
|
||||
MOBILE_SEND_LIMIT("isv.BUSINESS_LIMIT_CONTROL", "单个号码日、月发送上限,流控超限,频繁发送超限"),
|
||||
|
||||
MOBILE_NOT_ON_SERVICE("MOBILE_NOT_ON_SERVICE", "停机、空号、暂停服务、关机、不在服务区"),
|
||||
|
||||
MOBILE_IN_BLACK("MOBILE_IN_BLACK", "手机号在黑名单");
|
||||
|
||||
|
||||
private final String code;
|
||||
|
||||
private final String msg;
|
||||
|
||||
public String getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return msg;
|
||||
}
|
||||
|
||||
AliMsgResponseEnum(String code, String msg) {
|
||||
this.code = code;
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public static AliMsgResponseEnum getAliMsgEnum(String code) {
|
||||
AliMsgResponseEnum[] aliMsgResponseEnums = AliMsgResponseEnum.values();
|
||||
AliMsgResponseEnum result = Arrays.stream(aliMsgResponseEnums)
|
||||
.filter(aliMsgResponseEnum -> aliMsgResponseEnum.getCode().equalsIgnoreCase(code))
|
||||
.findFirst().orElse(null);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
package com.shining.cloud.enums.information;
|
||||
|
||||
/**
|
||||
* @description: 终端消息枚举
|
||||
* @author: denghuajun
|
||||
* @time: 2019-10-22 14:47:11
|
||||
**/
|
||||
|
||||
public enum DevMsgCodeEnum {
|
||||
|
||||
GETDEVMSG_SUCCESS(10166,"获取终端消息列表成功"),
|
||||
GETDEVMSG_FALL(10167,"获取终端消息列表失败"),
|
||||
GETDEVLIST_SUCCESS(10168,"获取终端列表成功"),
|
||||
GETDEVLIST_FALL(10169,"获取终端列表失败"),
|
||||
GETDEVINFO_SUCCESS(10170,"获取终端消息详情列表成功"),
|
||||
GETDEVINFO_FALL(10171,"获取终端消息详情列表失败"),
|
||||
USERID_WRONG(10172,"用户索引非法"),
|
||||
DEVINDEX_WRONG(10173,"终端消息列表ID非法"),
|
||||
GETPROVINCE_SUCCESS(10174,"获取省份成功"),
|
||||
GETPROVINCE_FALL(10175,"获取省份失败"),
|
||||
GETGDINFO_SUCCESS(10176,"获取供电公司成功"),
|
||||
GETGDINFO_FALL(10177,"获取供电公司失败"),
|
||||
GETSUBINFO_SUCCESS(10178,"获取变电站成功"),
|
||||
GETSUBINFO_FALL(10179,"获取变电站失败"),
|
||||
GETLINEINFO_SUCCESS(10180,"获取监测点成功"),
|
||||
GETLINEINFO_FALL(10181,"获取监测点失败"),
|
||||
QUERYLINE_SUCCESS(10182,"监测点模糊查询成功"),
|
||||
QUERYLINE_FALL(10183,"监测点模糊查询失败"),
|
||||
GETDEVCOMINFO_SUCCESS(10184,"获取终端通讯信息成功"),
|
||||
GETDEVCOMINFO_FALL(10185,"获取终端通讯信息失败"),
|
||||
GETDEVCOMTJ_SUCCESS(10186,"获取终端通讯状态统计成功"),
|
||||
GETDEVCOMTJ_FALL(10187,"获取终端通讯状态统计失败");
|
||||
DevMsgCodeEnum(int code, String msg) {
|
||||
this.code = code;
|
||||
this.msg = msg;
|
||||
}
|
||||
private int code;
|
||||
|
||||
private String msg;
|
||||
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(int code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg) {
|
||||
this.msg = msg;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,74 @@
|
||||
package com.shining.cloud.enums.information;
|
||||
|
||||
/**
|
||||
* @description: 暂态消息返回枚举
|
||||
* @author: denghuajun
|
||||
* @time: 2019-10-18 10:25:42
|
||||
**/
|
||||
|
||||
public enum EventMsgCodeEnum {
|
||||
TRANSIENT_TYPE(1, "暂态系统"),
|
||||
STEADY_TYPE(2, "稳态系统"),
|
||||
GETDETAIL_SUCCESS(10101, "获取暂态消息成功"),
|
||||
GETDETAIL_FALL(10102, "获取暂态消息失败"),
|
||||
GETBASEDETAIL_SUCCESS(10103, "获取暂态事件基本信息成功"),
|
||||
GETBASEDETAIL_FALL(10104, "获取暂态事件基本信息失败"),
|
||||
GETEIGVALUEDETAIL_SUCCESS(10105, "获取暂态事件特征幅值成功"),
|
||||
GETEIGVALUEDETAIL_FALL(10106, "获取暂态事件特征幅值失败"),
|
||||
GETWAVEDETAIL_SUCCESS(10107, "获取暂态事件波形成功"),
|
||||
GETWAVEDETAIL_FALL(10108, "获取暂态事件波形失败"),
|
||||
GETEVADETAIL_SUCCESS(10109, "更新暂态事件评价成功"),
|
||||
GETEVADETAIL_FALL(10110, "更新暂态事件评价失败"),
|
||||
USERID_WRONG(10111, "用户索引非法"),
|
||||
eventDetailIndex_WRONG(10112, "暂降事件ID非法"),
|
||||
CLEANMSGINFO_SUCCESS(10113, "清空消息成功"),
|
||||
CLEANMSGINFO_FALL(10114, "清空消息失败"),
|
||||
|
||||
|
||||
REPORTLIST_SUCCESS(10501, "报告查询成功"),
|
||||
REPORTLIST_FAIL(10502, "报告查询失败"),
|
||||
CUSTOMREPORT_SUCCESS(10503, "自定义申请报告成功"),
|
||||
CUSTOMREPORT_FAIL(10504, "自定义申请报告失败"),
|
||||
EVENTDETAILREPORTAPPLY_SUCCESS(10505, "暂降事件报告申请成功"),
|
||||
EVENTDETAILREPORTAPPLY_FAIL(10506, "暂降事件报告申请失败"),
|
||||
EVENTDETAILREPORTDOWNLOAD_SUCCESS(10507, "暂降事件报告下载成功"),
|
||||
EVENTDETAILREPORTDOWNLOAD_FAIL(10508, "暂降事件报告下载失败"),
|
||||
EVENTDETAILREPORTDOWNLOAD_ERROR(10509, "报告下载未审核"),
|
||||
MARKETINGUSERINFO_SUCCESS(10510, "获取营销人员信息成功"),
|
||||
MARKETINGUSERINFO_FAIL(10511, "获取营销人员信息失败"),
|
||||
EVENTDETAILREPORTAPPLY_NODATA(10512, "事件暂无波形");
|
||||
|
||||
|
||||
EventMsgCodeEnum(int code, String msg) {
|
||||
this.code = code;
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
private int code;
|
||||
|
||||
private String msg;
|
||||
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(int code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg) {
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "EventMsgCodeEnum{" +
|
||||
"code=" + code +
|
||||
", msg='" + msg + '\'' +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
package com.shining.cloud.enums.information;
|
||||
|
||||
/**
|
||||
* @description: 实时数据枚举
|
||||
* @author: denghuajun
|
||||
* @time: 2019-12-16 10:19:24
|
||||
**/
|
||||
|
||||
public enum RealTimeInfoEnum {
|
||||
GETLINEBASEINFO_SUCCESS(10190,"获取监测点信息成功"),
|
||||
GETLINEBASEINFO_FALL(10191,"获取监测点信息失败"),
|
||||
GETREALTIMEINFO_SUCCESS(10192,"获取实时数据成功"),
|
||||
GETREALTIMEINFO_FALL(10193,"获取实时数据失败"),
|
||||
GETHARMRATEVINFO_SUCCESS(10194,"获取谐波电压含有率成功"),
|
||||
GETHARMRATEVINFO_FALL(10195,"获取谐波电压含有率失败"),
|
||||
GETHARMRATEIINFO_SUCCESS(10196,"获取谐波电流幅值成功"),
|
||||
GETHARMRATEIINFO_FALL(10197,"获取谐波电流幅值失败"),
|
||||
GETLINEID_SUCCESS(10198,"获取默认监测点成功"),
|
||||
GETLINEID_FALL(10199,"获取默认监测点失败"),
|
||||
SAME_ACTION(10200,"终端存在相同操作,请稍后再试");
|
||||
RealTimeInfoEnum(int code, String msg) {
|
||||
this.code = code;
|
||||
this.msg = msg;
|
||||
}
|
||||
private int code;
|
||||
|
||||
private String msg;
|
||||
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(int code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg) {
|
||||
this.msg = msg;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
package com.shining.cloud.enums.information;
|
||||
|
||||
/**
|
||||
* @description: 统计数据返回指标
|
||||
* @author: gbl
|
||||
**/
|
||||
|
||||
public enum StatisticsEnum {
|
||||
|
||||
GETSTATISTICSDATA_SUCCESS(10301, "获取统计数据成功"),
|
||||
GETSTATISTICSDATA_FALL(10302, "获取统计数据失败"),
|
||||
|
||||
GETSTATISTICSLIST_SUCCESS(10303, "获取统计数据列表详细信息成功"),
|
||||
GETSTATISTICSLIST_FALL(10304, "获取统计数据列表详细信息失败"),
|
||||
|
||||
GETSTATISTICSTREND_SUCCESS(10305, "获取统计数据趋势图成功"),
|
||||
GETSTATISTICSTREND_FALL(10306, "获取统计数据趋势图失败");
|
||||
|
||||
StatisticsEnum(int code, String msg) {
|
||||
this.code = code;
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
private int code;
|
||||
|
||||
private String msg;
|
||||
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(int code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg) {
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "SteadyMsgCodeEnum{" +
|
||||
"code=" + code +
|
||||
", msg='" + msg + '\'' +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
package com.shining.cloud.enums.information;
|
||||
|
||||
/**
|
||||
* @description: 稳态越限返回指标
|
||||
* @author: gbl
|
||||
**/
|
||||
|
||||
public enum SteadyMsgCodeEnum {
|
||||
|
||||
GETSTATE_SUCCESS(10201, "获取稳态越限列表成功"),
|
||||
GETSTATE_FALL(10202, "获取稳态越限列表失败"),
|
||||
|
||||
GETSTATEINFO_SUCCESS(10203, "获取稳态越限列表详细信息成功"),
|
||||
GETSTATEINFO_FALL(10204, "获取稳态越限列表详细信息失败"),
|
||||
|
||||
GETTARGET_SUCCESS(10205, "获取稳态越限涉及指标成功"),
|
||||
GETTARGET_FALL(10206, "获取稳态越限涉及指标失败"),
|
||||
|
||||
GETTARGETURL_SUCCESS(10207, "获取稳态越限指标图形成功"),
|
||||
GETTARGETURL_FALL(10208, "获取稳态越限指标图形失败");
|
||||
|
||||
|
||||
SteadyMsgCodeEnum(int code, String msg) {
|
||||
this.code = code;
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
private int code;
|
||||
|
||||
private String msg;
|
||||
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(int code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg) {
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "SteadyMsgCodeEnum{" +
|
||||
"code=" + code +
|
||||
", msg='" + msg + '\'' +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,116 @@
|
||||
package com.shining.cloud.enums.information;
|
||||
|
||||
import com.njcn.enums.app.UserCodeEnum;
|
||||
|
||||
/**
|
||||
* @description:指标编码
|
||||
* @author gbl
|
||||
*
|
||||
*/
|
||||
public enum TypeCodeEnum{
|
||||
FLICKET_ALLTIME(1, "Flicket_AllTime"),
|
||||
FREQ_DEV_OVERTIME(2, "频率偏差越限"),
|
||||
VOLTAGE_DEV_OVERTIME(3, "电压偏差越限"),
|
||||
UBALANCE_OVERTIME(4, "电压不平衡越限"),
|
||||
FLICKER_OVERTIME(5, "闪变越限"),
|
||||
UABERRANCE_OVERTIME(6, "电压谐波畸变率越限"),
|
||||
UHARM_2_OVERTIME(7, "2次电压谐波含有率越限"),
|
||||
UHARM_3_OVERTIME(8, "3次电压谐波含有率越限"),
|
||||
UHARM_4_OVERTIME(9, "4次电压谐波含有率越限"),
|
||||
UHARM_5_OVERTIME(10, "5次电压谐波含有率越限"),
|
||||
UHARM_6_OVERTIME(11, "6次电压谐波含有率越限"),
|
||||
UHARM_7_OVERTIME(12, "7次电压谐波含有率越限"),
|
||||
UHARM_8_OVERTIME(13, "8次电压谐波含有率越限"),
|
||||
UHARM_9_OVERTIME(14, "9次电压谐波含有率越限"),
|
||||
UHARM_10_OVERTIME(15, "10次电压谐波含有率越限"),
|
||||
UHARM_11_OVERTIME(16, "11次电压谐波含有率越限"),
|
||||
UHARM_12_OVERTIME(17, "12次电压谐波含有率越限"),
|
||||
UHARM_13_OVERTIME(18, "13次电压谐波含有率越限"),
|
||||
UHARM_14_OVERTIME(19, "14次电压谐波含有率越限"),
|
||||
UHARM_15_OVERTIME(20, "15次电压谐波含有率越限"),
|
||||
UHARM_16_OVERTIME(21, "16次电压谐波含有率越限"),
|
||||
UHARM_17_OVERTIME(22, "17次电压谐波含有率越限"),
|
||||
UHARM_18_OVERTIME(23, "18次电压谐波含有率越限"),
|
||||
UHARM_19_OVERTIME(24, "19次电压谐波含有率越限"),
|
||||
UHARM_20_OVERTIME(25, "20次电压谐波含有率越限"),
|
||||
UHARM_21_OVERTIME(26, "21次电压谐波含有率越限"),
|
||||
UHARM_22_OVERTIME(27, "22次电压谐波含有率越限"),
|
||||
UHARM_23_OVERTIME(28, "23次电压谐波含有率越限"),
|
||||
UHARM_24_OVERTIME(29, "24次电压谐波含有率越限"),
|
||||
UHARM_25_OVERTIME(30, "25次电压谐波含有率越限"),
|
||||
IHARM_2_OVERTIME(31, "2次电流谐波幅值越限"),
|
||||
IHARM_3_OVERTIME(32, "3次电流谐波幅值越限"),
|
||||
IHARM_4_OVERTIME(33, "4次电流谐波幅值越限"),
|
||||
IHARM_5_OVERTIME(34, "5次电流谐波幅值越限"),
|
||||
IHARM_6_OVERTIME(35, "6次电流谐波幅值越限"),
|
||||
IHARM_7_OVERTIME(36, "7次电流谐波幅值越限"),
|
||||
IHARM_8_OVERTIME(37, "8次电流谐波幅值越限"),
|
||||
IHARM_9_OVERTIME(38, "9次电流谐波幅值越限"),
|
||||
IHARM_10_OVERTIME(39, "10次电流谐波幅值越限"),
|
||||
IHARM_11_OVERTIME(40, "11次电流谐波幅值越限"),
|
||||
IHARM_12_OVERTIME(41, "12次电流谐波幅值越限"),
|
||||
IHARM_13_OVERTIME(42, "13次电流谐波幅值越限"),
|
||||
IHARM_14_OVERTIME(43, "14次电流谐波幅值越限"),
|
||||
IHARM_15_OVERTIME(44, "15次电流谐波幅值越限"),
|
||||
IHARM_16_OVERTIME(45, "16次电流谐波幅值越限"),
|
||||
IHARM_17_OVERTIME(46, "17次电流谐波幅值越限"),
|
||||
IHARM_18_OVERTIME(47, "18次电流谐波幅值越限"),
|
||||
IHARM_19_OVERTIME(48, "19次电流谐波幅值越限"),
|
||||
IHARM_20_OVERTIME(49, "20次电流谐波幅值越限"),
|
||||
IHARM_21_OVERTIME(50, "21次电流谐波幅值越限"),
|
||||
IHARM_22_OVERTIME(51, "22次电流谐波幅值越限"),
|
||||
IHARM_23_OVERTIME(52, "23次电流谐波幅值越限"),
|
||||
IHARM_24_OVERTIME(53, "24次电流谐波幅值越限"),
|
||||
IHARM_25_OVERTIME(54, "25次电流谐波幅值越限");
|
||||
|
||||
private int code;
|
||||
|
||||
private String type;
|
||||
|
||||
TypeCodeEnum(int code,String type){
|
||||
this.code = code;
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setCode(int code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public void setType(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public static String getMsgByCode(int code){
|
||||
for (TypeCodeEnum typeCodeEnum : TypeCodeEnum.values()) {
|
||||
if (typeCodeEnum.code==code) {
|
||||
return typeCodeEnum.type;
|
||||
}
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
public static int getCodeByMsg(String type){
|
||||
for (TypeCodeEnum typeCodeEnum : TypeCodeEnum.values()) {
|
||||
if (typeCodeEnum.type.equalsIgnoreCase(type)) {
|
||||
return typeCodeEnum.code;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "TypeCodeEnum{" +
|
||||
"code=" + code +
|
||||
", type='" + type + '\'' +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.shining.cloud.mapper.AdminStatistic;
|
||||
|
||||
import com.shining.cloud.pojo.AdminStatistic.DataIntegrity;
|
||||
import com.shining.cloud.pojo.AdminStatistic.Integrity;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @description: DataIntegrityMapper
|
||||
* @author: denghuajun
|
||||
* @time: 2020-01-02 10:05:48
|
||||
**/
|
||||
|
||||
public interface DataIntegrityMapper {
|
||||
Integrity getIngrity(@Param("lineIndex") List<Integer> lineIndex, @Param("timeStart") Date timeStart,@Param("timeEnd") Date timeEnd);
|
||||
List<DataIntegrity> getDataIntegrity(@Param("lineIndex")List<Integer> lineIndex, @Param("timeStart") Date timeStart,@Param("timeEnd") Date timeEnd);
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.shining.cloud.mapper.AdminStatistic;
|
||||
|
||||
import com.shining.cloud.pojo.AdminStatistic.DevStatic;
|
||||
import com.shining.cloud.pojo.AdminStatistic.StaticInfo;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @description: StaticMapper
|
||||
* @author: denghuajun
|
||||
* @time: 2020-01-02 10:06:39
|
||||
**/
|
||||
|
||||
public interface StaticMapper {
|
||||
StaticInfo getStatic(@Param("devIndex")List<Integer> devIndex, @Param("timeStart") Date timeStart, @Param("timeEnd") Date timeEnd);
|
||||
List<DevStatic> getDevStatic(@Param("devIndex")List<Integer> devIndex, @Param("timeStart") Date timeStart, @Param("timeEnd") Date timeEnd);
|
||||
int getComError(@Param("devIndex")List<Integer> devIndex);
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
package com.shining.cloud.mapper.RealTimeInfo;
|
||||
|
||||
import com.shining.cloud.pojo.RealTimeInfo.*;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.kafka.common.protocol.types.Field;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @description: 实时数据Mapper
|
||||
* @author: denghuajun
|
||||
* @time: 2019-12-16 10:51:00
|
||||
**/
|
||||
|
||||
public interface RealTimeInfoMapper {
|
||||
//获取监测点详情
|
||||
LineBaseInfo getLineBaseInfo(@Param("lineIndex") int lineIndex);
|
||||
|
||||
//实时数据
|
||||
RealTimeInfo getRealTimeInfo(@Param("lineIndex") int lineIndex, @Param("startTime") String startTime);
|
||||
|
||||
//谐波电压含有率
|
||||
HarmRateV getHarmRateV(@Param("lineIndex") int lineIndex, @Param("startTime") String startTime);
|
||||
|
||||
//谐波电流含有率
|
||||
HarmRateI getHarmRateI(@Param("lineIndex") int lineIndex, @Param("startTime") String startTime);
|
||||
|
||||
//谐波电压限值
|
||||
Uharm getUharm(@Param("lineIndex") int lineIndex);
|
||||
|
||||
//谐波电流限值
|
||||
Iharm getIharm(@Param("lineIndex") int lineIndex);
|
||||
|
||||
//获取默认监测点
|
||||
LineInfo getLineId(@Param("lineIndex") List<Integer> lineIndex);
|
||||
|
||||
String getUpdateTime(@Param("lineIndex") int lineIndex);
|
||||
|
||||
//获取装置类型
|
||||
String devType(@Param("lineIndex") int lineIndex);
|
||||
|
||||
//判断装置是否中断
|
||||
Integer isDown(@Param("lineIndex") int lineIndex);
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
package com.shining.cloud.mapper.common;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import com.shining.cloud.pojo.common.SteadyUrlData;
|
||||
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
/**
|
||||
* @description:稳态越限图形数据获取
|
||||
* @author gbl
|
||||
*
|
||||
*/
|
||||
public interface SteadyUrlDataMapper extends Mapper<SteadyUrlData>{
|
||||
//频率偏差
|
||||
List<SteadyUrlData> getFreqDev(@Param("lineIndex")int lineIndex,@Param("startTime")Date startTime,@Param("endTime")Date endTime);
|
||||
|
||||
//电压偏差
|
||||
List<SteadyUrlData> getVUDev(@Param("lineIndex")int lineIndex,@Param("startTime")Date startTime,@Param("endTime")Date endTime,@Param("type")String type);
|
||||
|
||||
//电压不平衡
|
||||
List<SteadyUrlData> getVUnbalance(@Param("lineIndex")int lineIndex,@Param("startTime")Date startTime,@Param("endTime")Date endTime);
|
||||
|
||||
//长闪
|
||||
List<SteadyUrlData> getPLT(@Param("lineIndex")int lineIndex,@Param("startTime")Date startTime,
|
||||
@Param("endTime")Date endTime,@Param("type")String type);
|
||||
|
||||
//电压谐波畸变率
|
||||
List<SteadyUrlData> getVTHD(@Param("lineIndex")int lineIndex,@Param("startTime")Date startTime,@Param("endTime")Date endTime,@Param("type")String type);
|
||||
|
||||
//N次电压谐波含有率
|
||||
List<SteadyUrlData> getVHarmRate(@Param("lineIndex")int lineIndex,@Param("startTime")Date startTime,
|
||||
@Param("endTime")Date endTime,@Param("number")String number,@Param("type")String type);
|
||||
|
||||
//N次电流谐波幅值
|
||||
List<SteadyUrlData> getIHarmPhasic(@Param("lineIndex")int lineIndex,@Param("startTime")Date startTime,
|
||||
@Param("endTime")Date endTime,@Param("number")String number,@Param("type")String type);
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package com.shining.cloud.mapper.information;
|
||||
|
||||
import com.shining.cloud.pojo.information.DevDetail;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
/**
|
||||
* @description: 终端详情
|
||||
* @author: denghuajun
|
||||
* @time: 2019-11-11 11:45:23
|
||||
**/
|
||||
|
||||
public interface DevDetailMapper {
|
||||
DevDetail getDevDatail(@Param("devIndex")Integer devIndex);
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package com.shining.cloud.mapper.information;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import com.njcn.pojo.data.ComInformation;
|
||||
import com.shining.cloud.pojo.information.DevComInfo;
|
||||
import com.shining.cloud.pojo.information.DevComTJ;
|
||||
import com.shining.cloud.pojo.information.DevMsgAss;
|
||||
import com.shining.cloud.pojo.information.DevMsgDetailInfo;
|
||||
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
/**
|
||||
* @description: 终端消息详情Mapper
|
||||
* @author: denghuajun
|
||||
* @time: 2019-10-17 14:12:01
|
||||
**/
|
||||
|
||||
public interface DevMsgAssMapper extends Mapper<DevMsgAss> {
|
||||
List<DevMsgDetailInfo> deviceList (@Param("devMsgIndex")String devMsgIndex);
|
||||
int state(@Param("devMsgIndex")String devMsgIndex);
|
||||
List<ComInformation> devMsgInfo(@Param("devIndex")int devIndex, @Param("startTime")Date startTime, @Param("endTime")Date endTime);
|
||||
List<DevComInfo> getDevComInfo(@Param("list")List<Integer> index);
|
||||
DevComTJ getDevComTJ(@Param("list")List<Integer> index);
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package com.shining.cloud.mapper.information;
|
||||
|
||||
import com.shining.cloud.pojo.information.DevMsg;
|
||||
import com.shining.cloud.pojo.information.DevMsgDetail;
|
||||
import com.shining.cloud.pojo.information.TerminalRun;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @description: 终端消息Mapper
|
||||
* @author: denghuajun
|
||||
* @time: 2019-10-17 14:11:21
|
||||
**/
|
||||
|
||||
public interface DevMsgMapper extends Mapper<DevMsg> {
|
||||
List<DevMsgDetail> deviceMsgList(@Param("userIndex")String userIndex);
|
||||
int unState(@Param("userIndex")String userIndex);
|
||||
void updateDevMsgState(@Param("devMsgIndex")String devMsgIndex);
|
||||
|
||||
int getCount(@Param("startTime") Date startTime);
|
||||
|
||||
List<TerminalRun> getList();
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
package com.shining.cloud.mapper.information;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import com.njcn.pojo.commons.EventEigDetail;
|
||||
import com.njcn.pojo.commons.EventInfoDetail;
|
||||
import com.shining.cloud.pojo.information.EventInfo;
|
||||
import com.shining.cloud.pojo.information.EventWaveDetail;
|
||||
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
/**
|
||||
* @description: 暂态消息详情Mapper
|
||||
* @author: denghuajun
|
||||
* @time: 2019-10-17 14:12:37
|
||||
**/
|
||||
|
||||
public interface EventInfoMapper extends Mapper<EventInfo> {
|
||||
EventInfoDetail eventDetailBaseInfo(@Param("eventMsgIndex") String eventMsgIndex);
|
||||
|
||||
EventEigDetail eventDetailEigenvalue(@Param("eventDetailIndex") String eventDetailIndex);
|
||||
|
||||
EventWaveDetail eventDetailWave(@Param("eventDetailIndex") String eventDetailIndex);
|
||||
|
||||
int eventDetailEvaluate(@Param("eventDetailIndex") String eventDetailIndex, @Param("evaluate") int evaluate, @Param("userIndex") String userIndex);
|
||||
|
||||
EventInfo getEventInfoByUserIndex(@Param("eventDetailIndex") String eventDetail_index);
|
||||
|
||||
void insertEventInfoData(@Param("eventDetailIndex") String eventDetail_index, @Param("evaluate") int evaluate, @Param("userId") String user_id,
|
||||
@Param("date") Date date, @Param("instantWavePath") String instantWavePath, @Param("rmsWavePath") String rmsWavePath, @Param("state") int state, @Param("reportPath") String reportPath);
|
||||
|
||||
void updateEventInfoData(@Param("eventDetailIndex") String eventDetail_index, @Param("date") Date date, @Param("state") int state, @Param("userId") String userId, @Param("reportPath") String reportPath);
|
||||
|
||||
EventInfoDetail eventDetailBaseInfoByIndex(@Param("eventdetailIndex") String eventdetailIndex);
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package com.shining.cloud.mapper.information;
|
||||
|
||||
import com.shining.cloud.pojo.information.EventMsg;
|
||||
import com.shining.cloud.pojo.information.EventMsgDetail;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @description: 暂态消息Mapper
|
||||
* @author: denghuajun
|
||||
* @time: 2019-10-17 14:09:47
|
||||
**/
|
||||
|
||||
public interface EventMsgMapper extends Mapper<EventMsg> {
|
||||
List<EventMsgDetail> eventDetailList(@Param("userIndex")String userIndex,@Param("list")List<Integer> lineIndex);
|
||||
int getUnState(@Param("userIndex")String userIndex,@Param("list")List<Integer> lineIndex);
|
||||
void updateEventState(@Param("eventMsgIndex")String eventMsgIndex);
|
||||
List<EventMsgDetail> getEventMsgDetailByLineId(@Param("list")List<Integer> lineIndex, @Param("beginIndex")int beginIndex, @Param("endIndex")int endIndex);
|
||||
|
||||
EventMsg getEventMsgByEventId(@Param("userIndex")String userIndex,@Param("eventDetailIndex")String eventDetailIndex);
|
||||
|
||||
String getDevNameByLineId(@Param("lineIndex")int lineIndex);
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package com.shining.cloud.mapper.information;
|
||||
|
||||
|
||||
import com.shining.cloud.pojo.information.AlarmInfo;
|
||||
import com.shining.cloud.pojo.information.MonFlow;
|
||||
import com.shining.cloud.pojo.information.TopException;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @description: 流量 告警
|
||||
* @author: denghuajun
|
||||
* @time: 2019-11-11 11:44:49
|
||||
**/
|
||||
|
||||
public interface MonFlowMapper {
|
||||
MonFlow getMonFlow(@Param("devIndex")int devIndex,@Param("statTime")String statTime,@Param("endTime")String endTime);
|
||||
TopException getMonFlowByTop(@Param("devIndex")int devIndex, @Param("startTime") Date startTime);
|
||||
Float getMonFlows(@Param("devIndex") int devIndex,@Param("statTime")String statTime,@Param("endTime")String endTime);
|
||||
|
||||
List<AlarmInfo> getAlarmByDev(@Param("devIndex")int devIndex, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package com.shining.cloud.mapper.information;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import com.shining.cloud.pojo.information.SteadyAss;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
/**
|
||||
* @description: 稳态消息详情Mapper
|
||||
* @author: denghuajun
|
||||
* @time: 2019-10-17 14:13:17
|
||||
**/
|
||||
|
||||
public interface SteadyAssMapper extends Mapper<SteadyAss> {
|
||||
List<SteadyAss> queryByIndex(@Param("steadyIndex") String steadyIndex);
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package com.shining.cloud.mapper.information;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import com.shining.cloud.pojo.information.SteadyMsg;
|
||||
import com.shining.cloud.pojo.information.SteadyMsgDetail;
|
||||
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
/**
|
||||
* @description: 稳态消息Mapper
|
||||
* @author: gbl
|
||||
**/
|
||||
|
||||
public interface SteadyMsgMapper extends Mapper<SteadyMsg> {
|
||||
public List<SteadyMsg> getSteadyState(@Param("userIndex")String userIndex);
|
||||
|
||||
public Integer getSteadyUnState(@Param("userIndex")String userIndex);
|
||||
|
||||
public void updateSteadyState(@Param("steadyIndex")String steadyIndex);
|
||||
|
||||
public SteadyMsgDetail getName(@Param("lineIndexs")Integer lineIndexs);
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package com.shining.cloud.mapper.information;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import com.shining.cloud.pojo.information.SteadyUrl;
|
||||
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
/**
|
||||
* @description: 稳态图形信息Mapper
|
||||
* @author: gbl
|
||||
**/
|
||||
|
||||
public interface SteadyUrlMapper extends Mapper<SteadyUrl> {
|
||||
public SteadyUrl queryData(@Param("lineIndex")int lineIndex,@Param("timeId")Date timeId,@Param("typeCode")int typeCode);
|
||||
|
||||
public List<SteadyUrl> queryList(@Param("lineIndex")int lineIndex,@Param("timeId")Date timeId);
|
||||
|
||||
public void updateUrl(@Param("lineIndex")int lineIndex,@Param("timeId")Date timeId,@Param("typeCode")int typeCode,@Param("steadyPath")String steadyPath);
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package com.shining.cloud.mapper.information;
|
||||
|
||||
import com.shining.cloud.pojo.information.TopException;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* system
|
||||
*
|
||||
* @author cdf
|
||||
* @date 2021/11/22
|
||||
*/
|
||||
public interface TopMapper extends Mapper<TopException> {
|
||||
/**
|
||||
* 根据设备id集合获取异常信息
|
||||
* @author cdf
|
||||
* @date 2021/11/22
|
||||
*/
|
||||
List<TopException> getTopListByDevList(@Param("list") List<Integer> list, @Param("startTime") Date startTime);
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
package com.shining.cloud.mapper.report;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import com.njcn.pojo.configuration.GDInformation;
|
||||
import com.njcn.pojo.configuration.Line;
|
||||
import com.njcn.pojo.configuration.Province;
|
||||
import com.njcn.pojo.configuration.SubStation;
|
||||
|
||||
public interface ShiningDeviceMapper{
|
||||
public List<Province> getProvince(@Param("list")List<Integer> lineIndexs);
|
||||
|
||||
public List<GDInformation> getGdInfo(@Param("list")List<Integer> lineIndexs,@Param("provinceIndex")Long provinceIndex);
|
||||
|
||||
public List<SubStation> getSubInfo(@Param("list")List<Integer> lineIndexs,@Param("gdIndex")Long gdIndex);
|
||||
|
||||
public List<Line> getLineInfo(@Param("list")List<Integer> lineIndexs,@Param("subIndex")Long subIndex);
|
||||
|
||||
public List<Line> getLineInfoStatus(@Param("list")List<Integer> lineIndexs,@Param("subIndex")Long subIndex);
|
||||
|
||||
public List<Line> getLineInfoFlowA(@Param("list")List<Integer> lineIndexs,@Param("subIndex")Long subIndex);
|
||||
|
||||
public List<Line> getLineInfoFlowB(@Param("list")List<Integer> lineIndexs,@Param("subIndex")Long subIndex,
|
||||
@Param("startTime")Date startTime,@Param("endTime")Date endTime);
|
||||
|
||||
public List<Line> queryByName(@Param("lineName")String lineName,@Param("list")List<Integer> lineIndexs);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
package com.shining.cloud.mapper.report;
|
||||
|
||||
import com.shining.cloud.pojo.information.EventInfo;
|
||||
import com.shining.cloud.pojo.report.ReportData;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
public interface ShiningReportMapper extends Mapper<ReportData> {
|
||||
List<ReportData> steadyReportList(@Param("userId") String userId, @Param("lineList") List<Integer> lineList, @Param("sysType") Integer system_type, @Param("reportType") Integer report_type, @Param("list") List<Integer> list
|
||||
, @Param("start") Date start, @Param("end") Date end);
|
||||
|
||||
List<ReportData> transientReportList(@Param("userId") String userId, @Param("lineList") List<Integer> lineList, @Param("sysType") Integer system_type, @Param("reportType") Integer report_type, @Param("deptsIndex") String deptsIndex
|
||||
, @Param("start") Date start, @Param("end") Date end);
|
||||
|
||||
ReportData reportIsExist(@Param("lineIndex") Long lineIndex, @Param("startTime") Date startTime, @Param("endTime") Date endTime, @Param("reportType") Integer reportType
|
||||
, @Param("deptsIndex") String deptsIndex);
|
||||
|
||||
void insertReportData(@Param("uuid") String uuid, @Param("name") String name, @Param("lineIndex") Long lineIndex, @Param("userId") String userId,
|
||||
@Param("date") Date date, @Param("startTime") Date startTime, @Param("endTime") Date endTime, @Param("sysType") Integer sysType, @Param("reportType") Integer reportType,
|
||||
@Param("path") String path, @Param("state") int state, @Param("errorCount") int errorCount, @Param("deptsIndex") String deptsIndex);
|
||||
|
||||
void updateReportData(@Param("reportIndex") String reportIndex, @Param("date") Date date, @Param("errorCount") int errorCount, @Param("state") Integer state, @Param("path") String path);
|
||||
|
||||
EventInfo getDownLoadPath(@Param("userId") String userId, @Param("eventDetailIndex") String eventDetailIndex);
|
||||
|
||||
List<String> getUserGuid();
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
package com.shining.cloud.mapper.statistics;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import com.njcn.pojo.commons.EventInfoDetail;
|
||||
import com.njcn.pojo.data.LimitRate;
|
||||
import com.shining.cloud.pojo.statistics.Statistics;
|
||||
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
/**
|
||||
* @description: 统计数据Mapper
|
||||
* @author: gbl
|
||||
**/
|
||||
|
||||
public interface StatisticsMapper extends Mapper<Statistics> {
|
||||
//通过监测点ID查询统计数据
|
||||
List<Statistics> queryByLineIndex(@Param("lineIndex")Integer lineIndex);
|
||||
|
||||
//获取事件日期
|
||||
List<String> queryEventDate(@Param("lineIndex")Integer lineIndex);
|
||||
|
||||
//根据监测点ID和日期查询暂降次数
|
||||
Long queryEventCount(@Param("lineIndex")Integer lineIndex,@Param("timeID")String timeID);
|
||||
|
||||
//查询暂降事件ID
|
||||
List<String> queryEventIndexList(@Param("lineIndex")Integer lineIndex,@Param("timeID")String timeID);
|
||||
|
||||
//查询稳态越限消息
|
||||
LimitRate queryLimit(@Param("lineIndex")Integer lineIndex,@Param("timeID")Date timeID);
|
||||
|
||||
//获取监测点完整名称
|
||||
String getTotalName(@Param("lineIndex")Integer lineIndex);
|
||||
|
||||
//查询暂降事件详情
|
||||
List<EventInfoDetail> eventDetailList(@Param("lineIndex")Integer lineIndex,@Param("timeID")String timeID);
|
||||
|
||||
//查询统计数据列表
|
||||
List<Statistics> queryList(@Param("lineIndex")Integer lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
package com.shining.cloud.pojo.AdminStatistic;
|
||||
|
||||
/**
|
||||
* @description: 数据完整性
|
||||
* @author: denghuajun
|
||||
* @time: 2019-12-31 11:31:03
|
||||
**/
|
||||
|
||||
public class DataIntegrity {
|
||||
private int lineIndex;
|
||||
private String lineName;
|
||||
private Long integrity;
|
||||
|
||||
public int getLineIndex() {
|
||||
return lineIndex;
|
||||
}
|
||||
|
||||
public void setLineIndex(int lineIndex) {
|
||||
this.lineIndex = lineIndex;
|
||||
}
|
||||
|
||||
public String getLineName() {
|
||||
return lineName;
|
||||
}
|
||||
|
||||
public void setLineName(String lineName) {
|
||||
this.lineName = lineName;
|
||||
}
|
||||
|
||||
public Long getIntegrity() {
|
||||
return integrity;
|
||||
}
|
||||
|
||||
public void setIntegrity(Long integrity) {
|
||||
this.integrity = integrity;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,75 @@
|
||||
package com.shining.cloud.pojo.AdminStatistic;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @description: 统计终端
|
||||
* @author: denghuajun
|
||||
* @time: 2019-12-31 10:57:59
|
||||
**/
|
||||
|
||||
public class DevStatic {
|
||||
private int devIndex;
|
||||
private String devName;
|
||||
private String ip;
|
||||
private String onlineRate;
|
||||
private String gdName;
|
||||
private String subName;
|
||||
private Date timeId;
|
||||
|
||||
public int getDevIndex() {
|
||||
return devIndex;
|
||||
}
|
||||
|
||||
public void setDevIndex(int devIndex) {
|
||||
this.devIndex = devIndex;
|
||||
}
|
||||
|
||||
public String getDevName() {
|
||||
return devName;
|
||||
}
|
||||
|
||||
public void setDevName(String devName) {
|
||||
this.devName = devName;
|
||||
}
|
||||
|
||||
public String getIp() {
|
||||
return ip;
|
||||
}
|
||||
|
||||
public void setIp(String ip) {
|
||||
this.ip = ip;
|
||||
}
|
||||
|
||||
public String getOnlineRate() {
|
||||
return onlineRate;
|
||||
}
|
||||
|
||||
public void setOnlineRate(String onlineRate) {
|
||||
this.onlineRate = onlineRate;
|
||||
}
|
||||
|
||||
public String getGdName() {
|
||||
return gdName;
|
||||
}
|
||||
|
||||
public void setGdName(String gdName) {
|
||||
this.gdName = gdName;
|
||||
}
|
||||
|
||||
public String getSubName() {
|
||||
return subName;
|
||||
}
|
||||
|
||||
public void setSubName(String subName) {
|
||||
this.subName = subName;
|
||||
}
|
||||
|
||||
public Date getTimeId() {
|
||||
return timeId;
|
||||
}
|
||||
|
||||
public void setTimeId(Date timeId) {
|
||||
this.timeId = timeId;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
package com.shining.cloud.pojo.AdminStatistic;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @description: 数据完整性
|
||||
* @author: denghuajun
|
||||
* @time: 2019-12-31 11:38:27
|
||||
**/
|
||||
|
||||
public class Integrity {
|
||||
private Date timeStart;
|
||||
private Date timeEnd;
|
||||
private Float integrityz;
|
||||
|
||||
public Date getTimeStart() {
|
||||
return timeStart;
|
||||
}
|
||||
|
||||
public void setTimeStart(Date timeStart) {
|
||||
this.timeStart = timeStart;
|
||||
}
|
||||
|
||||
public Date getTimeEnd() {
|
||||
return timeEnd;
|
||||
}
|
||||
|
||||
public void setTimeEnd(Date timeEnd) {
|
||||
this.timeEnd = timeEnd;
|
||||
}
|
||||
|
||||
public Float getIntegrityz() {
|
||||
return integrityz;
|
||||
}
|
||||
|
||||
public void setIntegrityz(Float integrityz) {
|
||||
this.integrityz = integrityz;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
package com.shining.cloud.pojo.AdminStatistic;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @description: 统计
|
||||
* @author: denghuajun
|
||||
* @time: 2019-12-31 11:36:32
|
||||
**/
|
||||
|
||||
public class StaticInfo {
|
||||
private Date timeStart;
|
||||
private Date timeEnd;
|
||||
private Float onlineRatez;
|
||||
private int comError;
|
||||
|
||||
public Date getTimeStart() {
|
||||
return timeStart;
|
||||
}
|
||||
|
||||
public void setTimeStart(Date timeStart) {
|
||||
this.timeStart = timeStart;
|
||||
}
|
||||
|
||||
public Date getTimeEnd() {
|
||||
return timeEnd;
|
||||
}
|
||||
|
||||
public void setTimeEnd(Date timeEnd) {
|
||||
this.timeEnd = timeEnd;
|
||||
}
|
||||
|
||||
public Float getOnlineRatez() {
|
||||
return onlineRatez;
|
||||
}
|
||||
|
||||
public void setOnlineRatez(Float onlineRatez) {
|
||||
this.onlineRatez = onlineRatez;
|
||||
}
|
||||
|
||||
public int getComError() {
|
||||
return comError;
|
||||
}
|
||||
|
||||
public void setComError(int comError) {
|
||||
this.comError = comError;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,228 @@
|
||||
package com.shining.cloud.pojo.RealTimeInfo;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @description: 谐波电流含有率
|
||||
* @author: denghuajun
|
||||
* @time: 2019-12-16 14:26:14
|
||||
**/
|
||||
|
||||
public class HarmRateI implements Serializable {
|
||||
private String i2 = "/";
|
||||
private String i3 = "/";
|
||||
private String i4 = "/";
|
||||
private String i5 = "/";
|
||||
private String i6 = "/";
|
||||
private String i7 = "/";
|
||||
private String i8 = "/";
|
||||
private String i9 = "/";
|
||||
private String i10 = "/";
|
||||
private String i11 = "/";
|
||||
private String i12 = "/";
|
||||
private String i13 = "/";
|
||||
private String i14 = "/";
|
||||
private String i15 = "/";
|
||||
private String i16 = "/";
|
||||
private String i17 = "/";
|
||||
private String i18 = "/";
|
||||
private String i19 = "/";
|
||||
private String i20 = "/";
|
||||
private String i21 = "/";
|
||||
private String i22 = "/";
|
||||
private String i23 = "/";
|
||||
private String i24 = "/";
|
||||
private String i25 = "/";
|
||||
|
||||
public String getI2() {
|
||||
return i2;
|
||||
}
|
||||
|
||||
public void setI2(String i2) {
|
||||
this.i2 = i2;
|
||||
}
|
||||
|
||||
public String getI3() {
|
||||
return i3;
|
||||
}
|
||||
|
||||
public void setI3(String i3) {
|
||||
this.i3 = i3;
|
||||
}
|
||||
|
||||
public String getI4() {
|
||||
return i4;
|
||||
}
|
||||
|
||||
public void setI4(String i4) {
|
||||
this.i4 = i4;
|
||||
}
|
||||
|
||||
public String getI5() {
|
||||
return i5;
|
||||
}
|
||||
|
||||
public void setI5(String i5) {
|
||||
this.i5 = i5;
|
||||
}
|
||||
|
||||
public String getI6() {
|
||||
return i6;
|
||||
}
|
||||
|
||||
public void setI6(String i6) {
|
||||
this.i6 = i6;
|
||||
}
|
||||
|
||||
public String getI7() {
|
||||
return i7;
|
||||
}
|
||||
|
||||
public void setI7(String i7) {
|
||||
this.i7 = i7;
|
||||
}
|
||||
|
||||
public String getI8() {
|
||||
return i8;
|
||||
}
|
||||
|
||||
public void setI8(String i8) {
|
||||
this.i8 = i8;
|
||||
}
|
||||
|
||||
public String getI9() {
|
||||
return i9;
|
||||
}
|
||||
|
||||
public void setI9(String i9) {
|
||||
this.i9 = i9;
|
||||
}
|
||||
|
||||
public String getI10() {
|
||||
return i10;
|
||||
}
|
||||
|
||||
public void setI10(String i10) {
|
||||
this.i10 = i10;
|
||||
}
|
||||
|
||||
public String getI11() {
|
||||
return i11;
|
||||
}
|
||||
|
||||
public void setI11(String i11) {
|
||||
this.i11 = i11;
|
||||
}
|
||||
|
||||
public String getI12() {
|
||||
return i12;
|
||||
}
|
||||
|
||||
public void setI12(String i12) {
|
||||
this.i12 = i12;
|
||||
}
|
||||
|
||||
public String getI13() {
|
||||
return i13;
|
||||
}
|
||||
|
||||
public void setI13(String i13) {
|
||||
this.i13 = i13;
|
||||
}
|
||||
|
||||
public String getI14() {
|
||||
return i14;
|
||||
}
|
||||
|
||||
public void setI14(String i14) {
|
||||
this.i14 = i14;
|
||||
}
|
||||
|
||||
public String getI15() {
|
||||
return i15;
|
||||
}
|
||||
|
||||
public void setI15(String i15) {
|
||||
this.i15 = i15;
|
||||
}
|
||||
|
||||
public String getI16() {
|
||||
return i16;
|
||||
}
|
||||
|
||||
public void setI16(String i16) {
|
||||
this.i16 = i16;
|
||||
}
|
||||
|
||||
public String getI17() {
|
||||
return i17;
|
||||
}
|
||||
|
||||
public void setI17(String i17) {
|
||||
this.i17 = i17;
|
||||
}
|
||||
|
||||
public String getI18() {
|
||||
return i18;
|
||||
}
|
||||
|
||||
public void setI18(String i18) {
|
||||
this.i18 = i18;
|
||||
}
|
||||
|
||||
public String getI19() {
|
||||
return i19;
|
||||
}
|
||||
|
||||
public void setI19(String i19) {
|
||||
this.i19 = i19;
|
||||
}
|
||||
|
||||
public String getI20() {
|
||||
return i20;
|
||||
}
|
||||
|
||||
public void setI20(String i20) {
|
||||
this.i20 = i20;
|
||||
}
|
||||
|
||||
public String getI21() {
|
||||
return i21;
|
||||
}
|
||||
|
||||
public void setI21(String i21) {
|
||||
this.i21 = i21;
|
||||
}
|
||||
|
||||
public String getI22() {
|
||||
return i22;
|
||||
}
|
||||
|
||||
public void setI22(String i22) {
|
||||
this.i22 = i22;
|
||||
}
|
||||
|
||||
public String getI23() {
|
||||
return i23;
|
||||
}
|
||||
|
||||
public void setI23(String i23) {
|
||||
this.i23 = i23;
|
||||
}
|
||||
|
||||
public String getI24() {
|
||||
return i24;
|
||||
}
|
||||
|
||||
public void setI24(String i24) {
|
||||
this.i24 = i24;
|
||||
}
|
||||
|
||||
public String getI25() {
|
||||
return i25;
|
||||
}
|
||||
|
||||
public void setI25(String i25) {
|
||||
this.i25 = i25;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
package com.shining.cloud.pojo.RealTimeInfo;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author cdf
|
||||
* @date 2020/12/22
|
||||
*/
|
||||
public class HarmRateIAndV implements Serializable {
|
||||
private HarmRateI harmRateI;
|
||||
private Iharm iharm;
|
||||
|
||||
private HarmRateV harmRateV;
|
||||
private Uharm vharm;
|
||||
|
||||
|
||||
|
||||
public HarmRateI getHarmRateI() {
|
||||
return harmRateI;
|
||||
}
|
||||
|
||||
public void setHarmRateI(HarmRateI harmRateI) {
|
||||
this.harmRateI = harmRateI;
|
||||
}
|
||||
|
||||
public Iharm getIharm() {
|
||||
return iharm;
|
||||
}
|
||||
|
||||
public void setIharm(Iharm iharm) {
|
||||
this.iharm = iharm;
|
||||
}
|
||||
|
||||
public HarmRateV getHarmRateV() {
|
||||
return harmRateV;
|
||||
}
|
||||
|
||||
public void setHarmRateV(HarmRateV harmRateV) {
|
||||
this.harmRateV = harmRateV;
|
||||
}
|
||||
|
||||
public Uharm getVharm() {
|
||||
return vharm;
|
||||
}
|
||||
|
||||
public void setVharm(Uharm vharm) {
|
||||
this.vharm = vharm;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,228 @@
|
||||
package com.shining.cloud.pojo.RealTimeInfo;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @description: 谐波电压含有率
|
||||
* @author: denghuajun
|
||||
* @time: 2019-12-16 14:25:44
|
||||
**/
|
||||
|
||||
public class HarmRateV implements Serializable {
|
||||
private String v2 = "/";
|
||||
private String v3= "/";
|
||||
private String v4= "/";
|
||||
private String v5= "/";
|
||||
private String v6= "/";
|
||||
private String v7= "/";
|
||||
private String v8= "/";
|
||||
private String v9= "/";
|
||||
private String v10= "/";
|
||||
private String v11= "/";
|
||||
private String v12= "/";
|
||||
private String v13= "/";
|
||||
private String v14= "/";
|
||||
private String v15= "/";
|
||||
private String v16= "/";
|
||||
private String v17= "/";
|
||||
private String v18= "/";
|
||||
private String v19= "/";
|
||||
private String v20= "/";
|
||||
private String v21= "/";
|
||||
private String v22= "/";
|
||||
private String v23= "/";
|
||||
private String v24= "/";
|
||||
private String v25= "/";
|
||||
|
||||
public String getV2() {
|
||||
return v2;
|
||||
}
|
||||
|
||||
public void setV2(String v2) {
|
||||
this.v2 = v2;
|
||||
}
|
||||
|
||||
public String getV3() {
|
||||
return v3;
|
||||
}
|
||||
|
||||
public void setV3(String v3) {
|
||||
this.v3 = v3;
|
||||
}
|
||||
|
||||
public String getV4() {
|
||||
return v4;
|
||||
}
|
||||
|
||||
public void setV4(String v4) {
|
||||
this.v4 = v4;
|
||||
}
|
||||
|
||||
public String getV5() {
|
||||
return v5;
|
||||
}
|
||||
|
||||
public void setV5(String v5) {
|
||||
this.v5 = v5;
|
||||
}
|
||||
|
||||
public String getV6() {
|
||||
return v6;
|
||||
}
|
||||
|
||||
public void setV6(String v6) {
|
||||
this.v6 = v6;
|
||||
}
|
||||
|
||||
public String getV7() {
|
||||
return v7;
|
||||
}
|
||||
|
||||
public void setV7(String v7) {
|
||||
this.v7 = v7;
|
||||
}
|
||||
|
||||
public String getV8() {
|
||||
return v8;
|
||||
}
|
||||
|
||||
public void setV8(String v8) {
|
||||
this.v8 = v8;
|
||||
}
|
||||
|
||||
public String getV9() {
|
||||
return v9;
|
||||
}
|
||||
|
||||
public void setV9(String v9) {
|
||||
this.v9 = v9;
|
||||
}
|
||||
|
||||
public String getV10() {
|
||||
return v10;
|
||||
}
|
||||
|
||||
public void setV10(String v10) {
|
||||
this.v10 = v10;
|
||||
}
|
||||
|
||||
public String getV11() {
|
||||
return v11;
|
||||
}
|
||||
|
||||
public void setV11(String v11) {
|
||||
this.v11 = v11;
|
||||
}
|
||||
|
||||
public String getV12() {
|
||||
return v12;
|
||||
}
|
||||
|
||||
public void setV12(String v12) {
|
||||
this.v12 = v12;
|
||||
}
|
||||
|
||||
public String getV13() {
|
||||
return v13;
|
||||
}
|
||||
|
||||
public void setV13(String v13) {
|
||||
this.v13 = v13;
|
||||
}
|
||||
|
||||
public String getV14() {
|
||||
return v14;
|
||||
}
|
||||
|
||||
public void setV14(String v14) {
|
||||
this.v14 = v14;
|
||||
}
|
||||
|
||||
public String getV15() {
|
||||
return v15;
|
||||
}
|
||||
|
||||
public void setV15(String v15) {
|
||||
this.v15 = v15;
|
||||
}
|
||||
|
||||
public String getV16() {
|
||||
return v16;
|
||||
}
|
||||
|
||||
public void setV16(String v16) {
|
||||
this.v16 = v16;
|
||||
}
|
||||
|
||||
public String getV17() {
|
||||
return v17;
|
||||
}
|
||||
|
||||
public void setV17(String v17) {
|
||||
this.v17 = v17;
|
||||
}
|
||||
|
||||
public String getV18() {
|
||||
return v18;
|
||||
}
|
||||
|
||||
public void setV18(String v18) {
|
||||
this.v18 = v18;
|
||||
}
|
||||
|
||||
public String getV19() {
|
||||
return v19;
|
||||
}
|
||||
|
||||
public void setV19(String v19) {
|
||||
this.v19 = v19;
|
||||
}
|
||||
|
||||
public String getV20() {
|
||||
return v20;
|
||||
}
|
||||
|
||||
public void setV20(String v20) {
|
||||
this.v20 = v20;
|
||||
}
|
||||
|
||||
public String getV21() {
|
||||
return v21;
|
||||
}
|
||||
|
||||
public void setV21(String v21) {
|
||||
this.v21 = v21;
|
||||
}
|
||||
|
||||
public String getV22() {
|
||||
return v22;
|
||||
}
|
||||
|
||||
public void setV22(String v22) {
|
||||
this.v22 = v22;
|
||||
}
|
||||
|
||||
public String getV23() {
|
||||
return v23;
|
||||
}
|
||||
|
||||
public void setV23(String v23) {
|
||||
this.v23 = v23;
|
||||
}
|
||||
|
||||
public String getV24() {
|
||||
return v24;
|
||||
}
|
||||
|
||||
public void setV24(String v24) {
|
||||
this.v24 = v24;
|
||||
}
|
||||
|
||||
public String getV25() {
|
||||
return v25;
|
||||
}
|
||||
|
||||
public void setV25(String v25) {
|
||||
this.v25 = v25;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,228 @@
|
||||
package com.shining.cloud.pojo.RealTimeInfo;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @description: 谐波电流含有率限值
|
||||
* @author: denghuajun
|
||||
* @time: 2019-12-16 14:27:27
|
||||
**/
|
||||
|
||||
public class Iharm implements Serializable {
|
||||
private float iharm2;
|
||||
private float iharm3;
|
||||
private float iharm4;
|
||||
private float iharm5;
|
||||
private float iharm6;
|
||||
private float iharm7;
|
||||
private float iharm8;
|
||||
private float iharm9;
|
||||
private float iharm10;
|
||||
private float iharm11;
|
||||
private float iharm12;
|
||||
private float iharm13;
|
||||
private float iharm14;
|
||||
private float iharm15;
|
||||
private float iharm16;
|
||||
private float iharm17;
|
||||
private float iharm18;
|
||||
private float iharm19;
|
||||
private float iharm20;
|
||||
private float iharm21;
|
||||
private float iharm22;
|
||||
private float iharm23;
|
||||
private float iharm24;
|
||||
private float iharm25;
|
||||
|
||||
public float getIharm2() {
|
||||
return iharm2;
|
||||
}
|
||||
|
||||
public void setIharm2(float iharm2) {
|
||||
this.iharm2 = iharm2;
|
||||
}
|
||||
|
||||
public float getIharm3() {
|
||||
return iharm3;
|
||||
}
|
||||
|
||||
public void setIharm3(float iharm3) {
|
||||
this.iharm3 = iharm3;
|
||||
}
|
||||
|
||||
public float getIharm4() {
|
||||
return iharm4;
|
||||
}
|
||||
|
||||
public void setIharm4(float iharm4) {
|
||||
this.iharm4 = iharm4;
|
||||
}
|
||||
|
||||
public float getIharm5() {
|
||||
return iharm5;
|
||||
}
|
||||
|
||||
public void setIharm5(float iharm5) {
|
||||
this.iharm5 = iharm5;
|
||||
}
|
||||
|
||||
public float getIharm6() {
|
||||
return iharm6;
|
||||
}
|
||||
|
||||
public void setIharm6(float iharm6) {
|
||||
this.iharm6 = iharm6;
|
||||
}
|
||||
|
||||
public float getIharm7() {
|
||||
return iharm7;
|
||||
}
|
||||
|
||||
public void setIharm7(float iharm7) {
|
||||
this.iharm7 = iharm7;
|
||||
}
|
||||
|
||||
public float getIharm8() {
|
||||
return iharm8;
|
||||
}
|
||||
|
||||
public void setIharm8(float iharm8) {
|
||||
this.iharm8 = iharm8;
|
||||
}
|
||||
|
||||
public float getIharm9() {
|
||||
return iharm9;
|
||||
}
|
||||
|
||||
public void setIharm9(float iharm9) {
|
||||
this.iharm9 = iharm9;
|
||||
}
|
||||
|
||||
public float getIharm10() {
|
||||
return iharm10;
|
||||
}
|
||||
|
||||
public void setIharm10(float iharm10) {
|
||||
this.iharm10 = iharm10;
|
||||
}
|
||||
|
||||
public float getIharm11() {
|
||||
return iharm11;
|
||||
}
|
||||
|
||||
public void setIharm11(float iharm11) {
|
||||
this.iharm11 = iharm11;
|
||||
}
|
||||
|
||||
public float getIharm12() {
|
||||
return iharm12;
|
||||
}
|
||||
|
||||
public void setIharm12(float iharm12) {
|
||||
this.iharm12 = iharm12;
|
||||
}
|
||||
|
||||
public float getIharm13() {
|
||||
return iharm13;
|
||||
}
|
||||
|
||||
public void setIharm13(float iharm13) {
|
||||
this.iharm13 = iharm13;
|
||||
}
|
||||
|
||||
public float getIharm14() {
|
||||
return iharm14;
|
||||
}
|
||||
|
||||
public void setIharm14(float iharm14) {
|
||||
this.iharm14 = iharm14;
|
||||
}
|
||||
|
||||
public float getIharm15() {
|
||||
return iharm15;
|
||||
}
|
||||
|
||||
public void setIharm15(float iharm15) {
|
||||
this.iharm15 = iharm15;
|
||||
}
|
||||
|
||||
public float getIharm16() {
|
||||
return iharm16;
|
||||
}
|
||||
|
||||
public void setIharm16(float iharm16) {
|
||||
this.iharm16 = iharm16;
|
||||
}
|
||||
|
||||
public float getIharm17() {
|
||||
return iharm17;
|
||||
}
|
||||
|
||||
public void setIharm17(float iharm17) {
|
||||
this.iharm17 = iharm17;
|
||||
}
|
||||
|
||||
public float getIharm18() {
|
||||
return iharm18;
|
||||
}
|
||||
|
||||
public void setIharm18(float iharm18) {
|
||||
this.iharm18 = iharm18;
|
||||
}
|
||||
|
||||
public float getIharm19() {
|
||||
return iharm19;
|
||||
}
|
||||
|
||||
public void setIharm19(float iharm19) {
|
||||
this.iharm19 = iharm19;
|
||||
}
|
||||
|
||||
public float getIharm20() {
|
||||
return iharm20;
|
||||
}
|
||||
|
||||
public void setIharm20(float iharm20) {
|
||||
this.iharm20 = iharm20;
|
||||
}
|
||||
|
||||
public float getIharm21() {
|
||||
return iharm21;
|
||||
}
|
||||
|
||||
public void setIharm21(float iharm21) {
|
||||
this.iharm21 = iharm21;
|
||||
}
|
||||
|
||||
public float getIharm22() {
|
||||
return iharm22;
|
||||
}
|
||||
|
||||
public void setIharm22(float iharm22) {
|
||||
this.iharm22 = iharm22;
|
||||
}
|
||||
|
||||
public float getIharm23() {
|
||||
return iharm23;
|
||||
}
|
||||
|
||||
public void setIharm23(float iharm23) {
|
||||
this.iharm23 = iharm23;
|
||||
}
|
||||
|
||||
public float getIharm24() {
|
||||
return iharm24;
|
||||
}
|
||||
|
||||
public void setIharm24(float iharm24) {
|
||||
this.iharm24 = iharm24;
|
||||
}
|
||||
|
||||
public float getIharm25() {
|
||||
return iharm25;
|
||||
}
|
||||
|
||||
public void setIharm25(float iharm25) {
|
||||
this.iharm25 = iharm25;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,100 @@
|
||||
package com.shining.cloud.pojo.RealTimeInfo;
|
||||
|
||||
/**
|
||||
* @description: 监测点基础信息列表
|
||||
* @author: denghuajun
|
||||
* @time: 2019-12-16 10:11:07
|
||||
**/
|
||||
|
||||
public class LineBaseInfo {
|
||||
private int lineIndex;//监测点guid
|
||||
private String lineName;//监测点名称
|
||||
private String devType;//终端型号
|
||||
private String ip;//网络参数
|
||||
private String gdName;//供电公司名称
|
||||
private String subName;//变电站名称
|
||||
private int state;//通讯状态
|
||||
private float flow;//通讯流量
|
||||
private float flowRatio;//流量占比
|
||||
private int pttype;//接线方式
|
||||
|
||||
public int getLineIndex() {
|
||||
return lineIndex;
|
||||
}
|
||||
|
||||
public void setLineIndex(int lineIndex) {
|
||||
this.lineIndex = lineIndex;
|
||||
}
|
||||
|
||||
public String getLineName() {
|
||||
return lineName;
|
||||
}
|
||||
|
||||
public void setLineName(String lineName) {
|
||||
this.lineName = lineName;
|
||||
}
|
||||
|
||||
public String getDevType() {
|
||||
return devType;
|
||||
}
|
||||
|
||||
public void setDevType(String devType) {
|
||||
this.devType = devType;
|
||||
}
|
||||
|
||||
public String getIp() {
|
||||
return ip;
|
||||
}
|
||||
|
||||
public void setIp(String ip) {
|
||||
this.ip = ip;
|
||||
}
|
||||
|
||||
public String getGdName() {
|
||||
return gdName;
|
||||
}
|
||||
|
||||
public void setGdName(String gdName) {
|
||||
this.gdName = gdName;
|
||||
}
|
||||
|
||||
public String getSubName() {
|
||||
return subName;
|
||||
}
|
||||
|
||||
public void setSubName(String subName) {
|
||||
this.subName = subName;
|
||||
}
|
||||
|
||||
public int getState() {
|
||||
return state;
|
||||
}
|
||||
|
||||
public void setState(int state) {
|
||||
this.state = state;
|
||||
}
|
||||
|
||||
public float getFlow() {
|
||||
return flow;
|
||||
}
|
||||
|
||||
public void setFlow(float flow) {
|
||||
this.flow = flow;
|
||||
}
|
||||
|
||||
public float getFlowRatio() {
|
||||
return flowRatio;
|
||||
}
|
||||
|
||||
public void setFlowRatio(float flowRatio) {
|
||||
this.flowRatio = flowRatio;
|
||||
}
|
||||
|
||||
public int getPttype() {
|
||||
return pttype;
|
||||
}
|
||||
|
||||
public void setPttype(int pttype) {
|
||||
this.pttype = pttype;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
package com.shining.cloud.pojo.RealTimeInfo;
|
||||
|
||||
/**
|
||||
* @description: 默认监测点
|
||||
* @author: denghuajun
|
||||
* @time: 2019-12-19 15:45:36
|
||||
**/
|
||||
|
||||
public class LineInfo {
|
||||
private int lineIndex;
|
||||
|
||||
private String lineName;
|
||||
|
||||
public int getLineIndex() {
|
||||
return lineIndex;
|
||||
}
|
||||
|
||||
public void setLineIndex(int lineIndex) {
|
||||
this.lineIndex = lineIndex;
|
||||
}
|
||||
|
||||
public String getLineName() {
|
||||
return lineName;
|
||||
}
|
||||
|
||||
public void setLineName(String lineName) {
|
||||
this.lineName = lineName;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,299 @@
|
||||
package com.shining.cloud.pojo.RealTimeInfo;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @description: 实时数据列表
|
||||
* @author: denghuajun
|
||||
* @time: 2019-12-16 11:58:44
|
||||
**/
|
||||
|
||||
public class RealTimeInfo {
|
||||
private int lineIndex;//监测点id int
|
||||
private Date timeId = new Date();//数据刷新时间戳 int
|
||||
private String rmsVA = "/";//A相电压有效值 String
|
||||
private String rmsVB = "/";//B相电压有效值 String
|
||||
private String rmsVC = "/";//C相电压有效值 String
|
||||
private String vMax = "/";//电压最大值 String pt1*1.2/1000
|
||||
private String rmsIA = "/";//A相电流有效值 String
|
||||
private String rmsIB = "/";//B相电流有效值 String
|
||||
private String rmsIC = "/";//C相电流有效值 String
|
||||
private String iMax = "/";//电流最大值 String ct1
|
||||
private String baseWaveVA = "/";//A相基波电压幅值 String
|
||||
private String baseWaveVB = "/";//B相基波电压幅值 String
|
||||
private String baseWaveVC = "/";//C相基波电压幅值 String
|
||||
private String baseWavePhaseVA = "/";//A相基波电压相位 String
|
||||
private String baseWavePhaseVB = "/";//B相基波电压相位 String
|
||||
private String baseWavePhaseVC = "/";//C相基波电压相位 String
|
||||
private String baseWaveIA = "/";//A相基波电流幅值 String
|
||||
private String baseWaveIB = "/";//B相基波电流幅值 String
|
||||
private String baseWaveIC = "/";//C相基波电流幅值 String
|
||||
private String baseWavePhaseIA = "/";//A相基波电流相位 String
|
||||
private String baseWavePhaseIB = "/";//B相基波电流相位 String
|
||||
private String baseWavePhaseIC = "/";//C相基波电流相位 String
|
||||
private String VUDevA = "/";//A相电压偏差 String
|
||||
private String VUDevB = "/";//B相电压偏差 String
|
||||
private String VUDevC = "/";//C相电压偏差 String
|
||||
private String thdVA = "/";//A相电压畸变率 String
|
||||
private String thdVB = "/";//B相电压畸变率 String
|
||||
private String thdVC = "/";//C相电压畸变率 String
|
||||
|
||||
|
||||
public int getLineIndex() {
|
||||
return lineIndex;
|
||||
}
|
||||
|
||||
public void setLineIndex(int lineIndex) {
|
||||
this.lineIndex = lineIndex;
|
||||
}
|
||||
|
||||
public Date getTimeId() {
|
||||
return timeId;
|
||||
}
|
||||
|
||||
public void setTimeId(Date timeId) {
|
||||
this.timeId = timeId;
|
||||
}
|
||||
|
||||
public String getRmsVA() {
|
||||
return rmsVA;
|
||||
}
|
||||
|
||||
public void setRmsVA(String rmsVA) {
|
||||
this.rmsVA = rmsVA;
|
||||
}
|
||||
|
||||
public String getRmsVB() {
|
||||
return rmsVB;
|
||||
}
|
||||
|
||||
public void setRmsVB(String rmsVB) {
|
||||
this.rmsVB = rmsVB;
|
||||
}
|
||||
|
||||
public String getRmsVC() {
|
||||
return rmsVC;
|
||||
}
|
||||
|
||||
public void setRmsVC(String rmsVC) {
|
||||
this.rmsVC = rmsVC;
|
||||
}
|
||||
|
||||
public String getvMax() {
|
||||
return vMax;
|
||||
}
|
||||
|
||||
public void setvMax(String vMax) {
|
||||
this.vMax = vMax;
|
||||
}
|
||||
|
||||
public String getRmsIA() {
|
||||
return rmsIA;
|
||||
}
|
||||
|
||||
public void setRmsIA(String rmsIA) {
|
||||
this.rmsIA = rmsIA;
|
||||
}
|
||||
|
||||
public String getRmsIB() {
|
||||
return rmsIB;
|
||||
}
|
||||
|
||||
public void setRmsIB(String rmsIB) {
|
||||
this.rmsIB = rmsIB;
|
||||
}
|
||||
|
||||
public String getRmsIC() {
|
||||
return rmsIC;
|
||||
}
|
||||
|
||||
public void setRmsIC(String rmsIC) {
|
||||
this.rmsIC = rmsIC;
|
||||
}
|
||||
|
||||
public String getiMax() {
|
||||
return iMax;
|
||||
}
|
||||
|
||||
public void setiMax(String iMax) {
|
||||
this.iMax = iMax;
|
||||
}
|
||||
|
||||
public String getBaseWaveVA() {
|
||||
return baseWaveVA;
|
||||
}
|
||||
|
||||
public void setBaseWaveVA(String baseWaveVA) {
|
||||
this.baseWaveVA = baseWaveVA;
|
||||
}
|
||||
|
||||
public String getBaseWaveVB() {
|
||||
return baseWaveVB;
|
||||
}
|
||||
|
||||
public void setBaseWaveVB(String baseWaveVB) {
|
||||
this.baseWaveVB = baseWaveVB;
|
||||
}
|
||||
|
||||
public String getBaseWaveVC() {
|
||||
return baseWaveVC;
|
||||
}
|
||||
|
||||
public void setBaseWaveVC(String baseWaveVC) {
|
||||
this.baseWaveVC = baseWaveVC;
|
||||
}
|
||||
|
||||
public String getBaseWavePhaseVA() {
|
||||
return baseWavePhaseVA;
|
||||
}
|
||||
|
||||
public void setBaseWavePhaseVA(String baseWavePhaseVA) {
|
||||
this.baseWavePhaseVA = baseWavePhaseVA;
|
||||
}
|
||||
|
||||
public String getBaseWavePhaseVB() {
|
||||
return baseWavePhaseVB;
|
||||
}
|
||||
|
||||
public void setBaseWavePhaseVB(String baseWavePhaseVB) {
|
||||
this.baseWavePhaseVB = baseWavePhaseVB;
|
||||
}
|
||||
|
||||
public String getBaseWavePhaseVC() {
|
||||
return baseWavePhaseVC;
|
||||
}
|
||||
|
||||
public void setBaseWavePhaseVC(String baseWavePhaseVC) {
|
||||
this.baseWavePhaseVC = baseWavePhaseVC;
|
||||
}
|
||||
|
||||
public String getBaseWaveIA() {
|
||||
return baseWaveIA;
|
||||
}
|
||||
|
||||
public void setBaseWaveIA(String baseWaveIA) {
|
||||
this.baseWaveIA = baseWaveIA;
|
||||
}
|
||||
|
||||
public String getBaseWaveIB() {
|
||||
return baseWaveIB;
|
||||
}
|
||||
|
||||
public void setBaseWaveIB(String baseWaveIB) {
|
||||
this.baseWaveIB = baseWaveIB;
|
||||
}
|
||||
|
||||
public String getBaseWaveIC() {
|
||||
return baseWaveIC;
|
||||
}
|
||||
|
||||
public void setBaseWaveIC(String baseWaveIC) {
|
||||
this.baseWaveIC = baseWaveIC;
|
||||
}
|
||||
|
||||
public String getBaseWavePhaseIA() {
|
||||
return baseWavePhaseIA;
|
||||
}
|
||||
|
||||
public void setBaseWavePhaseIA(String baseWavePhaseIA) {
|
||||
this.baseWavePhaseIA = baseWavePhaseIA;
|
||||
}
|
||||
|
||||
public String getBaseWavePhaseIB() {
|
||||
return baseWavePhaseIB;
|
||||
}
|
||||
|
||||
public void setBaseWavePhaseIB(String baseWavePhaseIB) {
|
||||
this.baseWavePhaseIB = baseWavePhaseIB;
|
||||
}
|
||||
|
||||
public String getBaseWavePhaseIC() {
|
||||
return baseWavePhaseIC;
|
||||
}
|
||||
|
||||
public void setBaseWavePhaseIC(String baseWavePhaseIC) {
|
||||
this.baseWavePhaseIC = baseWavePhaseIC;
|
||||
}
|
||||
|
||||
public String getVUDevA() {
|
||||
return VUDevA;
|
||||
}
|
||||
|
||||
public void setVUDevA(String VUDevA) {
|
||||
this.VUDevA = VUDevA;
|
||||
}
|
||||
|
||||
public String getVUDevB() {
|
||||
return VUDevB;
|
||||
}
|
||||
|
||||
public void setVUDevB(String VUDevB) {
|
||||
this.VUDevB = VUDevB;
|
||||
}
|
||||
|
||||
public String getVUDevC() {
|
||||
return VUDevC;
|
||||
}
|
||||
|
||||
public void setVUDevC(String VUDevC) {
|
||||
this.VUDevC = VUDevC;
|
||||
}
|
||||
|
||||
public String getThdVA() {
|
||||
return thdVA;
|
||||
}
|
||||
|
||||
public void setThdVA(String thdVA) {
|
||||
this.thdVA = thdVA;
|
||||
}
|
||||
|
||||
public String getThdVB() {
|
||||
return thdVB;
|
||||
}
|
||||
|
||||
public void setThdVB(String thdVB) {
|
||||
this.thdVB = thdVB;
|
||||
}
|
||||
|
||||
public String getThdVC() {
|
||||
return thdVC;
|
||||
}
|
||||
|
||||
public void setThdVC(String thdVC) {
|
||||
this.thdVC = thdVC;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "RealTimeInfo{" +
|
||||
"lineIndex=" + lineIndex +
|
||||
", timeId=" + timeId +
|
||||
", rmsVA='" + rmsVA + '\'' +
|
||||
", rmsVB='" + rmsVB + '\'' +
|
||||
", rmsVC='" + rmsVC + '\'' +
|
||||
", vMax='" + vMax + '\'' +
|
||||
", rmsIA='" + rmsIA + '\'' +
|
||||
", rmsIB='" + rmsIB + '\'' +
|
||||
", rmsIC='" + rmsIC + '\'' +
|
||||
", iMax='" + iMax + '\'' +
|
||||
", baseWaveVA='" + baseWaveVA + '\'' +
|
||||
", baseWaveVB='" + baseWaveVB + '\'' +
|
||||
", baseWaveVC='" + baseWaveVC + '\'' +
|
||||
", baseWavePhaseVA='" + baseWavePhaseVA + '\'' +
|
||||
", baseWavePhaseVB='" + baseWavePhaseVB + '\'' +
|
||||
", baseWavePhaseVC='" + baseWavePhaseVC + '\'' +
|
||||
", baseWaveIA='" + baseWaveIA + '\'' +
|
||||
", baseWaveIB='" + baseWaveIB + '\'' +
|
||||
", baseWaveIC='" + baseWaveIC + '\'' +
|
||||
", baseWavePhaseIA='" + baseWavePhaseIA + '\'' +
|
||||
", baseWavePhaseIB='" + baseWavePhaseIB + '\'' +
|
||||
", baseWavePhaseIC='" + baseWavePhaseIC + '\'' +
|
||||
", VUDevA='" + VUDevA + '\'' +
|
||||
", VUDevB='" + VUDevB + '\'' +
|
||||
", VUDevC='" + VUDevC + '\'' +
|
||||
", thdVA='" + thdVA + '\'' +
|
||||
", thdVB='" + thdVB + '\'' +
|
||||
", thdVC='" + thdVC + '\'' +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package com.shining.cloud.pojo.RealTimeInfo;
|
||||
|
||||
public class RealTimeRVO {
|
||||
private int type;
|
||||
private int Lineid;
|
||||
|
||||
public int getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(int type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public int getLineid() {
|
||||
return Lineid;
|
||||
}
|
||||
|
||||
public void setLineid(int lineid) {
|
||||
Lineid = lineid;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package com.shining.cloud.pojo.RealTimeInfo;
|
||||
|
||||
public class RealTimeVO {
|
||||
private String len;
|
||||
private RealTimeRVO data;
|
||||
|
||||
public String getLen() {
|
||||
return len;
|
||||
}
|
||||
|
||||
public void setLen(String len) {
|
||||
this.len = len;
|
||||
}
|
||||
|
||||
public RealTimeRVO getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(RealTimeRVO data) {
|
||||
this.data = data;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,228 @@
|
||||
package com.shining.cloud.pojo.RealTimeInfo;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @description: 谐波电压含有率限值
|
||||
* @author: denghuajun
|
||||
* @time: 2019-12-16 14:26:55
|
||||
**/
|
||||
|
||||
public class Uharm implements Serializable {
|
||||
private float uharm2;
|
||||
private float uharm3;
|
||||
private float uharm4;
|
||||
private float uharm5;
|
||||
private float uharm6;
|
||||
private float uharm7;
|
||||
private float uharm8;
|
||||
private float uharm9;
|
||||
private float uharm10;
|
||||
private float uharm11;
|
||||
private float uharm12;
|
||||
private float uharm13;
|
||||
private float uharm14;
|
||||
private float uharm15;
|
||||
private float uharm16;
|
||||
private float uharm17;
|
||||
private float uharm18;
|
||||
private float uharm19;
|
||||
private float uharm20;
|
||||
private float uharm21;
|
||||
private float uharm22;
|
||||
private float uharm23;
|
||||
private float uharm24;
|
||||
private float uharm25;
|
||||
|
||||
public float getUharm2() {
|
||||
return uharm2;
|
||||
}
|
||||
|
||||
public void setUharm2(float uharm2) {
|
||||
this.uharm2 = uharm2;
|
||||
}
|
||||
|
||||
public float getUharm3() {
|
||||
return uharm3;
|
||||
}
|
||||
|
||||
public void setUharm3(float uharm3) {
|
||||
this.uharm3 = uharm3;
|
||||
}
|
||||
|
||||
public float getUharm4() {
|
||||
return uharm4;
|
||||
}
|
||||
|
||||
public void setUharm4(float uharm4) {
|
||||
this.uharm4 = uharm4;
|
||||
}
|
||||
|
||||
public float getUharm5() {
|
||||
return uharm5;
|
||||
}
|
||||
|
||||
public void setUharm5(float uharm5) {
|
||||
this.uharm5 = uharm5;
|
||||
}
|
||||
|
||||
public float getUharm6() {
|
||||
return uharm6;
|
||||
}
|
||||
|
||||
public void setUharm6(float uharm6) {
|
||||
this.uharm6 = uharm6;
|
||||
}
|
||||
|
||||
public float getUharm7() {
|
||||
return uharm7;
|
||||
}
|
||||
|
||||
public void setUharm7(float uharm7) {
|
||||
this.uharm7 = uharm7;
|
||||
}
|
||||
|
||||
public float getUharm8() {
|
||||
return uharm8;
|
||||
}
|
||||
|
||||
public void setUharm8(float uharm8) {
|
||||
this.uharm8 = uharm8;
|
||||
}
|
||||
|
||||
public float getUharm9() {
|
||||
return uharm9;
|
||||
}
|
||||
|
||||
public void setUharm9(float uharm9) {
|
||||
this.uharm9 = uharm9;
|
||||
}
|
||||
|
||||
public float getUharm10() {
|
||||
return uharm10;
|
||||
}
|
||||
|
||||
public void setUharm10(float uharm10) {
|
||||
this.uharm10 = uharm10;
|
||||
}
|
||||
|
||||
public float getUharm11() {
|
||||
return uharm11;
|
||||
}
|
||||
|
||||
public void setUharm11(float uharm11) {
|
||||
this.uharm11 = uharm11;
|
||||
}
|
||||
|
||||
public float getUharm12() {
|
||||
return uharm12;
|
||||
}
|
||||
|
||||
public void setUharm12(float uharm12) {
|
||||
this.uharm12 = uharm12;
|
||||
}
|
||||
|
||||
public float getUharm13() {
|
||||
return uharm13;
|
||||
}
|
||||
|
||||
public void setUharm13(float uharm13) {
|
||||
this.uharm13 = uharm13;
|
||||
}
|
||||
|
||||
public float getUharm14() {
|
||||
return uharm14;
|
||||
}
|
||||
|
||||
public void setUharm14(float uharm14) {
|
||||
this.uharm14 = uharm14;
|
||||
}
|
||||
|
||||
public float getUharm15() {
|
||||
return uharm15;
|
||||
}
|
||||
|
||||
public void setUharm15(float uharm15) {
|
||||
this.uharm15 = uharm15;
|
||||
}
|
||||
|
||||
public float getUharm16() {
|
||||
return uharm16;
|
||||
}
|
||||
|
||||
public void setUharm16(float uharm16) {
|
||||
this.uharm16 = uharm16;
|
||||
}
|
||||
|
||||
public float getUharm17() {
|
||||
return uharm17;
|
||||
}
|
||||
|
||||
public void setUharm17(float uharm17) {
|
||||
this.uharm17 = uharm17;
|
||||
}
|
||||
|
||||
public float getUharm18() {
|
||||
return uharm18;
|
||||
}
|
||||
|
||||
public void setUharm18(float uharm18) {
|
||||
this.uharm18 = uharm18;
|
||||
}
|
||||
|
||||
public float getUharm19() {
|
||||
return uharm19;
|
||||
}
|
||||
|
||||
public void setUharm19(float uharm19) {
|
||||
this.uharm19 = uharm19;
|
||||
}
|
||||
|
||||
public float getUharm20() {
|
||||
return uharm20;
|
||||
}
|
||||
|
||||
public void setUharm20(float uharm20) {
|
||||
this.uharm20 = uharm20;
|
||||
}
|
||||
|
||||
public float getUharm21() {
|
||||
return uharm21;
|
||||
}
|
||||
|
||||
public void setUharm21(float uharm21) {
|
||||
this.uharm21 = uharm21;
|
||||
}
|
||||
|
||||
public float getUharm22() {
|
||||
return uharm22;
|
||||
}
|
||||
|
||||
public void setUharm22(float uharm22) {
|
||||
this.uharm22 = uharm22;
|
||||
}
|
||||
|
||||
public float getUharm23() {
|
||||
return uharm23;
|
||||
}
|
||||
|
||||
public void setUharm23(float uharm23) {
|
||||
this.uharm23 = uharm23;
|
||||
}
|
||||
|
||||
public float getUharm24() {
|
||||
return uharm24;
|
||||
}
|
||||
|
||||
public void setUharm24(float uharm24) {
|
||||
this.uharm24 = uharm24;
|
||||
}
|
||||
|
||||
public float getUharm25() {
|
||||
return uharm25;
|
||||
}
|
||||
|
||||
public void setUharm25(float uharm25) {
|
||||
this.uharm25 = uharm25;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
package com.shining.cloud.pojo.common;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author hongawen
|
||||
* @date: 2019/9/19 20:21
|
||||
*/
|
||||
public class ResponseData implements Serializable {
|
||||
|
||||
private int errcode;
|
||||
|
||||
private String errmsg;
|
||||
|
||||
private Object data;
|
||||
|
||||
public int getErrcode() {
|
||||
return errcode;
|
||||
}
|
||||
|
||||
public void setErrcode(int errcode) {
|
||||
this.errcode = errcode;
|
||||
}
|
||||
|
||||
public String getErrmsg() {
|
||||
return errmsg;
|
||||
}
|
||||
|
||||
public void setErrmsg(String errmsg) {
|
||||
this.errmsg = errmsg;
|
||||
}
|
||||
|
||||
public Object getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(Object data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "ResponseData{" +
|
||||
"errcode=" + errcode +
|
||||
", errmsg='" + errmsg + '\'' +
|
||||
", data=" + data +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
package com.shining.cloud.pojo.common;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author denghuajun
|
||||
* @date: 2019/10/18 15:22
|
||||
*/
|
||||
public class ResponseMsgData implements Serializable {
|
||||
|
||||
private int errcode;
|
||||
|
||||
private String errmsg;
|
||||
|
||||
private int unstate;
|
||||
|
||||
private Object data;
|
||||
|
||||
public int getErrcode() {
|
||||
return errcode;
|
||||
}
|
||||
|
||||
public void setErrcode(int errcode) {
|
||||
this.errcode = errcode;
|
||||
}
|
||||
|
||||
public String getErrmsg() {
|
||||
return errmsg;
|
||||
}
|
||||
|
||||
public void setErrmsg(String errmsg) {
|
||||
this.errmsg = errmsg;
|
||||
}
|
||||
|
||||
public int getUnstate() {
|
||||
return unstate;
|
||||
}
|
||||
|
||||
public void setUnstate(int unstate) {
|
||||
this.unstate = unstate;
|
||||
}
|
||||
|
||||
public Object getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(Object data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "ResponseMsgData{" +
|
||||
"errcode=" + errcode +
|
||||
", errmsg='" + errmsg + '\'' +
|
||||
", unstate=" + unstate +
|
||||
", data=" + data +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package com.shining.cloud.pojo.common;
|
||||
|
||||
/**
|
||||
* 短信发送的一些常量,微服务添加在nacos中
|
||||
*
|
||||
* @author hongawen
|
||||
* @version 1.0.0
|
||||
* @date 2023年08月24日 18:25
|
||||
*/
|
||||
public interface SmsConstant {
|
||||
|
||||
String DEFAULT_CONNECT_TIME_OUT = "sun.net.client.defaultConnectTimeout";
|
||||
String DEFAULT_READ_TIME_OUT = "sun.net.client.defaultReadTimeout";
|
||||
//短信API产品名称(短信产品名固定,无需修改)
|
||||
String PRODUCT = "Dysmsapi";
|
||||
//短信API产品域名(接口地址固定,无需修改)
|
||||
String DOMAIN = "dysmsapi.aliyuncs.com";
|
||||
//accessKeyId
|
||||
String ACCESS_KEY_ID = "LTAI4FxsR76x2dq3w9c5puUe";
|
||||
//accessKeySecret
|
||||
String ACCESS_KEY_SECRET = "GxkTR8fsrvHtixTlD9UPmOGli35tZs";
|
||||
//短信所属地
|
||||
String LOCATION = "cn-hangzhou";
|
||||
//签名
|
||||
String SGIN = "灿能云";
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package com.shining.cloud.pojo.common;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @deacription: 稳态越限图形数据
|
||||
* @author gbl
|
||||
*
|
||||
*/
|
||||
public class SteadyUrlData{
|
||||
private Date timeID;
|
||||
private float value;
|
||||
|
||||
public Date getTimeID() {
|
||||
return timeID;
|
||||
}
|
||||
public float getValue() {
|
||||
return value;
|
||||
}
|
||||
public void setTimeID(Date timeID) {
|
||||
this.timeID = timeID;
|
||||
}
|
||||
public void setValue(float value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,225 @@
|
||||
package com.shining.cloud.pojo.information;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
import javax.persistence.Transient;
|
||||
import java.util.Date;
|
||||
|
||||
/** @Author denghuajun
|
||||
* @Description //TODO 告警信息表
|
||||
* @Date 2019/3/15 9:34
|
||||
**/
|
||||
@Table(name = "PQS_ALARMINFO")
|
||||
public class AlarmInfo {
|
||||
@Id
|
||||
@Column(name = "ALARM_INDEX")
|
||||
private String alarmIndex;// 告警信息表Guid
|
||||
@Column(name = "type")
|
||||
private String type;// Varchar2 (36) Not NULL (关联表pqs_dicdata)告警类型Guid
|
||||
@Column(name = "OCCURREDTIME")
|
||||
private Date occurredTime;//OCCURREDTIME Date Not NULL 发生告警时间
|
||||
@Column(name = "DESCRPIPTION")
|
||||
private String descrpiption;//DESCRPIPTION Varchar2 (200) Not NULL 发生告警的详细描述
|
||||
@Column(name = "STATE")
|
||||
private int state;// Number(1) Not NULL 是否处理:0-未处理 1-已处理
|
||||
@Column(name = "PROCESSTIME")
|
||||
private Date processTime;//PROCESSTIME Date NULL 处理后的时间,未处理为空
|
||||
@Column(name = "USER_INDEX")
|
||||
private String userIndex;// Varchar2 (36) Not NULL (关联表PQS_User)处理的用户Guid,可为空
|
||||
@Column(name = "TYPE_INDEX")
|
||||
private String typeIndex;
|
||||
@Column(name = "DEVLINE_TYPE")
|
||||
private String devLineType;
|
||||
|
||||
@Transient
|
||||
private String timeid;
|
||||
@Transient
|
||||
private String alarmLevel;
|
||||
@Transient
|
||||
private String ptime;
|
||||
@Transient
|
||||
private String username;
|
||||
@Transient
|
||||
private String typeId;
|
||||
|
||||
@Transient
|
||||
private String subName;
|
||||
|
||||
@Transient
|
||||
private String devName;
|
||||
|
||||
@Transient
|
||||
private String lineName;
|
||||
|
||||
@Transient
|
||||
private Integer dicLeave;
|
||||
|
||||
@Transient
|
||||
private Integer counts;
|
||||
|
||||
public Integer getCounts() {
|
||||
return counts;
|
||||
}
|
||||
|
||||
public void setCounts(Integer counts) {
|
||||
this.counts = counts;
|
||||
}
|
||||
|
||||
public Integer getDicLeave() {
|
||||
return dicLeave;
|
||||
}
|
||||
|
||||
public void setDicLeave(Integer dicLeave) {
|
||||
this.dicLeave = dicLeave;
|
||||
}
|
||||
|
||||
public String getLineName() {
|
||||
return lineName;
|
||||
}
|
||||
|
||||
public void setLineName(String lineName) {
|
||||
this.lineName = lineName;
|
||||
}
|
||||
|
||||
public String getDevName() {
|
||||
return devName;
|
||||
}
|
||||
|
||||
public void setDevName(String devName) {
|
||||
this.devName = devName;
|
||||
}
|
||||
|
||||
public String getSubName() {
|
||||
return subName;
|
||||
}
|
||||
|
||||
public void setSubName(String subName) {
|
||||
this.subName = subName;
|
||||
}
|
||||
|
||||
public String getTypeId() {
|
||||
return typeId;
|
||||
}
|
||||
|
||||
public void setTypeId(String typeId) {
|
||||
this.typeId = typeId;
|
||||
}
|
||||
|
||||
public String getTypeIndex() {
|
||||
return typeIndex;
|
||||
}
|
||||
|
||||
public void setTypeIndex(String typeIndex) {
|
||||
this.typeIndex = typeIndex;
|
||||
}
|
||||
|
||||
public String getDevLineType() {
|
||||
return devLineType;
|
||||
}
|
||||
|
||||
public void setDevLineType(String devLineType) {
|
||||
this.devLineType = devLineType;
|
||||
}
|
||||
|
||||
public String getAlarmIndex() {
|
||||
return alarmIndex;
|
||||
}
|
||||
|
||||
public void setAlarmIndex(String alarmIndex) {
|
||||
this.alarmIndex = alarmIndex;
|
||||
}
|
||||
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public Date getOccurredTime() {
|
||||
return occurredTime;
|
||||
}
|
||||
|
||||
public void setOccurredTime(Date occurredTime) {
|
||||
this.occurredTime = occurredTime;
|
||||
}
|
||||
|
||||
public String getDescrpiption() {
|
||||
return descrpiption;
|
||||
}
|
||||
|
||||
public void setDescrpiption(String descrpiption) {
|
||||
this.descrpiption = descrpiption;
|
||||
}
|
||||
|
||||
public int getState() {
|
||||
return state;
|
||||
}
|
||||
|
||||
public void setState(int state) {
|
||||
this.state = state;
|
||||
}
|
||||
|
||||
public Date getProcessTime() {
|
||||
return processTime;
|
||||
}
|
||||
|
||||
public void setProcessTime(Date processTime) {
|
||||
this.processTime = processTime;
|
||||
}
|
||||
|
||||
public String getUserIndex() {
|
||||
return userIndex;
|
||||
}
|
||||
|
||||
public void setUserIndex(String userIndex) {
|
||||
this.userIndex = userIndex;
|
||||
}
|
||||
|
||||
public String getTimeid() {
|
||||
return timeid;
|
||||
}
|
||||
|
||||
public void setTimeid(String timeid) {
|
||||
this.timeid = timeid;
|
||||
}
|
||||
|
||||
public String getAlarmLevel() {
|
||||
return alarmLevel;
|
||||
}
|
||||
|
||||
public void setAlarmLevel(String alarmLevel) {
|
||||
this.alarmLevel = alarmLevel;
|
||||
}
|
||||
|
||||
public String getPtime() {
|
||||
return ptime;
|
||||
}
|
||||
|
||||
public void setPtime(String ptime) {
|
||||
this.ptime = ptime;
|
||||
}
|
||||
|
||||
public String getUsername() {
|
||||
return username;
|
||||
}
|
||||
|
||||
public void setUsername(String username) {
|
||||
this.username = username;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "AlarmInfo{" +
|
||||
"alarmIndex='" + alarmIndex + '\'' +
|
||||
", type='" + type + '\'' +
|
||||
", occurredTime=" + occurredTime +
|
||||
", descrpiption='" + descrpiption + '\'' +
|
||||
", state=" + state +
|
||||
", processTime=" + processTime +
|
||||
", userIndex='" + userIndex + '\'' +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
package com.shining.cloud.pojo.information;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @description: 终端通讯信息
|
||||
* @author: gbl
|
||||
**/
|
||||
public class DevComInfo implements Serializable {
|
||||
private int devIndex;//终端Id
|
||||
|
||||
private String devName;//终端名称
|
||||
|
||||
private String ip;//ip
|
||||
|
||||
private String gdName;//供电公司
|
||||
|
||||
private String bdzName;//变电站名称
|
||||
|
||||
private int comInfo;//通讯状态
|
||||
|
||||
public int getDevIndex() {
|
||||
return devIndex;
|
||||
}
|
||||
|
||||
public void setDevIndex(int devIndex) {
|
||||
this.devIndex = devIndex;
|
||||
}
|
||||
|
||||
public String getDevName() {
|
||||
return devName;
|
||||
}
|
||||
|
||||
public void setDevName(String devName) {
|
||||
this.devName = devName;
|
||||
}
|
||||
|
||||
public String getIp() {
|
||||
return ip;
|
||||
}
|
||||
|
||||
public void setIp(String ip) {
|
||||
this.ip = ip;
|
||||
}
|
||||
|
||||
public String getGdName() {
|
||||
return gdName;
|
||||
}
|
||||
|
||||
public void setGdName(String gdName) {
|
||||
this.gdName = gdName;
|
||||
}
|
||||
|
||||
public String getBdzName() {
|
||||
return bdzName;
|
||||
}
|
||||
|
||||
public void setBdzName(String bdzName) {
|
||||
this.bdzName = bdzName;
|
||||
}
|
||||
|
||||
public int getComInfo() {
|
||||
return comInfo;
|
||||
}
|
||||
|
||||
public void setComInfo(int comInfo) {
|
||||
this.comInfo = comInfo;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package com.shining.cloud.pojo.information;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class DevComTJ implements Serializable {
|
||||
private int allDevCount;//所有终端
|
||||
private int errDevCount;//异常终端
|
||||
|
||||
public int getAllDevCount() {
|
||||
return allDevCount;
|
||||
}
|
||||
public void setAllDevCount(int allDevCount) {
|
||||
this.allDevCount = allDevCount;
|
||||
}
|
||||
public int getErrDevCount() {
|
||||
return errDevCount;
|
||||
}
|
||||
public void setErrDevCount(int errDevCount) {
|
||||
this.errDevCount = errDevCount;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,82 @@
|
||||
package com.shining.cloud.pojo.information;
|
||||
|
||||
import javax.persistence.Transient;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @description: 装置详情
|
||||
* @author: denghuajun
|
||||
* @time: 2019-11-11 11:30:40
|
||||
**/
|
||||
|
||||
public class DevDetail {
|
||||
private Integer devIndex;
|
||||
|
||||
private String devName;//终端名称
|
||||
|
||||
private String ip;//ip
|
||||
|
||||
private String gdName;//供电公司
|
||||
|
||||
private String bdzName;//变电站名称
|
||||
|
||||
private Date timeID;//触发时间
|
||||
|
||||
private Integer lineGrade;
|
||||
|
||||
public Integer getLineGrade() {
|
||||
return lineGrade;
|
||||
}
|
||||
|
||||
public void setLineGrade(Integer lineGrade) {
|
||||
this.lineGrade = lineGrade;
|
||||
}
|
||||
|
||||
public int getDevIndex() {
|
||||
return devIndex;
|
||||
}
|
||||
|
||||
public void setDevIndex(Integer devIndex) {
|
||||
this.devIndex = devIndex;
|
||||
}
|
||||
|
||||
public String getDevName() {
|
||||
return devName;
|
||||
}
|
||||
|
||||
public void setDevName(String devName) {
|
||||
this.devName = devName;
|
||||
}
|
||||
|
||||
public String getIp() {
|
||||
return ip;
|
||||
}
|
||||
|
||||
public void setIp(String ip) {
|
||||
this.ip = ip;
|
||||
}
|
||||
|
||||
public String getGdName() {
|
||||
return gdName;
|
||||
}
|
||||
|
||||
public void setGdName(String gdName) {
|
||||
this.gdName = gdName;
|
||||
}
|
||||
|
||||
public String getBdzName() {
|
||||
return bdzName;
|
||||
}
|
||||
|
||||
public void setBdzName(String bdzName) {
|
||||
this.bdzName = bdzName;
|
||||
}
|
||||
|
||||
public Date getTimeID() {
|
||||
return timeID;
|
||||
}
|
||||
|
||||
public void setTimeID(Date timeID) {
|
||||
this.timeID = timeID;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
package com.shining.cloud.pojo.information;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @description: 终端消息
|
||||
* @author: denghuajun
|
||||
* @time: 2019-10-17 14:02:56
|
||||
**/
|
||||
@Table(name = "App_DevMsg")
|
||||
public class DevMsg {
|
||||
@Id
|
||||
@Column(name = "DEVMSG_INDEX")
|
||||
private String devMsgIndex;//终端消息列表Guid
|
||||
@Column(name = "USER_INDEX")
|
||||
private String userIndex;// (关联app_user表User_Index)权限用户id
|
||||
@Column(name = "TIMEID")
|
||||
private Date timeId;//统计时间
|
||||
@Column(name = "LIMITNUM")
|
||||
private int limitNum;
|
||||
@Column(name = "STATE")
|
||||
private int state;//读取状态(0:未读,1:已读,2:删除)
|
||||
|
||||
public String getDevMsgIndex() {
|
||||
return devMsgIndex;
|
||||
}
|
||||
|
||||
public void setDevMsgIndex(String devMsgIndex) {
|
||||
this.devMsgIndex = devMsgIndex;
|
||||
}
|
||||
|
||||
public String getUserIndex() {
|
||||
return userIndex;
|
||||
}
|
||||
|
||||
public void setUserIndex(String userIndex) {
|
||||
this.userIndex = userIndex;
|
||||
}
|
||||
|
||||
public Date getTimeId() {
|
||||
return timeId;
|
||||
}
|
||||
|
||||
public void setTimeId(Date timeId) {
|
||||
this.timeId = timeId;
|
||||
}
|
||||
|
||||
|
||||
public int getState() {
|
||||
return state;
|
||||
}
|
||||
|
||||
public void setState(int state) {
|
||||
this.state = state;
|
||||
}
|
||||
|
||||
public int getLimitNum() {
|
||||
return limitNum;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "DevMsg{" +
|
||||
"devMsgIndex='" + devMsgIndex + '\'' +
|
||||
", userIndex='" + userIndex + '\'' +
|
||||
", timeId=" + timeId +
|
||||
", limitNum=" + limitNum +
|
||||
", state=" + state +
|
||||
'}';
|
||||
}
|
||||
|
||||
public void setLimitNum(int limitNum) {
|
||||
this.limitNum = limitNum;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,87 @@
|
||||
package com.shining.cloud.pojo.information;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Table;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @description: 终端消息详情
|
||||
* @author: denghuajun
|
||||
* @time: 2019-10-17 14:03:22
|
||||
**/
|
||||
@Table(name = "App_DevMsgAss")
|
||||
public class DevMsgAss {
|
||||
@Column(name = "DEVMSG_INDEX")
|
||||
private String devMsgIndex;// Varchar2(36) Not NULL 终端消息列表Guid
|
||||
@Column(name = "TIMEID")
|
||||
private Date timeId;// Datetime Not NULL 统计时间
|
||||
@Column(name = "DEV_INDEX")
|
||||
private int devIndex;// Number(6) Not NULL (关联pq_device表dev_index)
|
||||
@Column(name="ALARMNUM")
|
||||
private Integer alarmNum;
|
||||
|
||||
@Column(name="FLOWNUM")
|
||||
private Float flowNum;
|
||||
|
||||
@Column(name="COMOUTNUM")
|
||||
private Integer comOutNum;
|
||||
public String getDevMsgIndex() {
|
||||
return devMsgIndex;
|
||||
}
|
||||
|
||||
public void setDevMsgIndex(String devMsgIndex) {
|
||||
this.devMsgIndex = devMsgIndex;
|
||||
}
|
||||
|
||||
public Date getTimeId() {
|
||||
return timeId;
|
||||
}
|
||||
|
||||
public void setTimeId(Date timeId) {
|
||||
this.timeId = timeId;
|
||||
}
|
||||
|
||||
public int getDevIndex() {
|
||||
return devIndex;
|
||||
}
|
||||
|
||||
public void setDevIndex(int devIndex) {
|
||||
this.devIndex = devIndex;
|
||||
}
|
||||
|
||||
public Integer getAlarmNum() {
|
||||
return alarmNum;
|
||||
}
|
||||
|
||||
public void setAlarmNum(Integer alarmNum) {
|
||||
this.alarmNum = alarmNum;
|
||||
}
|
||||
|
||||
public Float getFlowNum() {
|
||||
return flowNum;
|
||||
}
|
||||
|
||||
public void setFlowNum(Float flowNum) {
|
||||
this.flowNum = flowNum;
|
||||
}
|
||||
|
||||
public Integer getComOutNum() {
|
||||
return comOutNum;
|
||||
}
|
||||
|
||||
public void setComOutNum(Integer comOutNum) {
|
||||
this.comOutNum = comOutNum;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "DevMsgAss{" +
|
||||
"devMsgIndex='" + devMsgIndex + '\'' +
|
||||
", timeId=" + timeId +
|
||||
", devIndex=" + devIndex +
|
||||
", alarmNum=" + alarmNum +
|
||||
", flowNum=" + flowNum +
|
||||
", comOutNum=" + comOutNum +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,113 @@
|
||||
package com.shining.cloud.pojo.information;
|
||||
|
||||
import javax.persistence.Table;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @description: 终端消息详情
|
||||
* @author: denghuajun
|
||||
* @time: 2019-10-17 14:03:22
|
||||
**/
|
||||
public class DevMsgAssInfo implements Serializable {
|
||||
private int devIndex;//终端Id
|
||||
|
||||
private String devName;//终端名称
|
||||
|
||||
private String ip;//ip
|
||||
|
||||
private String gdName;//供电公司
|
||||
|
||||
private String bdzName;//变电站名称
|
||||
|
||||
private Date timeID;//
|
||||
|
||||
private int comOutNum;//
|
||||
|
||||
private String flowInfo;//
|
||||
|
||||
private List<String> devMsgDescribe;//
|
||||
|
||||
private List<String> alarmInfo;//
|
||||
|
||||
public int getDevIndex() {
|
||||
return devIndex;
|
||||
}
|
||||
|
||||
public void setDevIndex(int devIndex) {
|
||||
this.devIndex = devIndex;
|
||||
}
|
||||
|
||||
public String getDevName() {
|
||||
return devName;
|
||||
}
|
||||
|
||||
public void setDevName(String devName) {
|
||||
this.devName = devName;
|
||||
}
|
||||
|
||||
public String getIp() {
|
||||
return ip;
|
||||
}
|
||||
|
||||
public void setIp(String ip) {
|
||||
this.ip = ip;
|
||||
}
|
||||
|
||||
public String getGdName() {
|
||||
return gdName;
|
||||
}
|
||||
|
||||
public void setGdName(String gdName) {
|
||||
this.gdName = gdName;
|
||||
}
|
||||
|
||||
public String getBdzName() {
|
||||
return bdzName;
|
||||
}
|
||||
|
||||
public void setBdzName(String bdzName) {
|
||||
this.bdzName = bdzName;
|
||||
}
|
||||
|
||||
public Date getTimeID() {
|
||||
return timeID;
|
||||
}
|
||||
|
||||
public void setTimeID(Date timeID) {
|
||||
this.timeID = timeID;
|
||||
}
|
||||
|
||||
public int getComOutNum() {
|
||||
return comOutNum;
|
||||
}
|
||||
|
||||
public void setComOutNum(int comOutNum) {
|
||||
this.comOutNum = comOutNum;
|
||||
}
|
||||
|
||||
public String getFlowInfo() {
|
||||
return flowInfo;
|
||||
}
|
||||
|
||||
public void setFlowInfo(String flowInfo) {
|
||||
this.flowInfo = flowInfo;
|
||||
}
|
||||
|
||||
public List<String> getDevMsgDescribe() {
|
||||
return devMsgDescribe;
|
||||
}
|
||||
|
||||
public void setDevMsgDescribe(List<String> devMsgDescribe) {
|
||||
this.devMsgDescribe = devMsgDescribe;
|
||||
}
|
||||
|
||||
public List<String> getAlarmInfo() {
|
||||
return alarmInfo;
|
||||
}
|
||||
|
||||
public void setAlarmInfo(List<String> alarmInfo) {
|
||||
this.alarmInfo = alarmInfo;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
package com.shining.cloud.pojo.information;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @description: 暂降事件基本消息
|
||||
* @author: denghuajun
|
||||
* @time: 2019-10-17 13:59:51
|
||||
**/
|
||||
public class DevMsgDetail implements Serializable {
|
||||
|
||||
private String devMsgIndex;//终端消息列表ID
|
||||
private Date timeID;//触发时间
|
||||
private int limitNum;//终端异常个数
|
||||
private int state;//读取状态
|
||||
|
||||
|
||||
public String getDevMsgIndex() {
|
||||
return devMsgIndex;
|
||||
}
|
||||
|
||||
public void setDevMsgIndex(String devMsgIndex) {
|
||||
this.devMsgIndex = devMsgIndex;
|
||||
}
|
||||
|
||||
public Date getTimeID() {
|
||||
return timeID;
|
||||
}
|
||||
|
||||
public void setTimeID(Date timeID) {
|
||||
this.timeID = timeID;
|
||||
}
|
||||
|
||||
public int getLimitNum() {
|
||||
return limitNum;
|
||||
}
|
||||
|
||||
public void setLimitNum(int limitNum) {
|
||||
this.limitNum = limitNum;
|
||||
}
|
||||
|
||||
public int getState() {
|
||||
return state;
|
||||
}
|
||||
|
||||
public void setState(int state) {
|
||||
this.state = state;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,138 @@
|
||||
package com.shining.cloud.pojo.information;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @description: 终端消息详情
|
||||
* @author: denghuajun
|
||||
* @time: 2019-10-17 14:03:22
|
||||
**/
|
||||
public class DevMsgDetailInfo implements Serializable {
|
||||
private String devIndex;//终端Id
|
||||
|
||||
private String gdName;//供电公司
|
||||
|
||||
private String bdzName;//变电站名称
|
||||
|
||||
private String devName;//终端名称
|
||||
|
||||
private String ip;//ip
|
||||
|
||||
private Date timeID;//
|
||||
|
||||
private int allNum;//总告警次数
|
||||
|
||||
private int alarmNum;//
|
||||
|
||||
private int comOutNum;//
|
||||
|
||||
private Float flowNum;//
|
||||
|
||||
private int state;//
|
||||
|
||||
public String getDevIndex() {
|
||||
return devIndex;
|
||||
}
|
||||
|
||||
public void setDevIndex(String devIndex) {
|
||||
this.devIndex = devIndex;
|
||||
}
|
||||
|
||||
public String getGdName() {
|
||||
return gdName;
|
||||
}
|
||||
|
||||
public void setGdName(String gdName) {
|
||||
this.gdName = gdName;
|
||||
}
|
||||
|
||||
public String getBdzName() {
|
||||
return bdzName;
|
||||
}
|
||||
|
||||
public void setBdzName(String bdzName) {
|
||||
this.bdzName = bdzName;
|
||||
}
|
||||
|
||||
public String getDevName() {
|
||||
return devName;
|
||||
}
|
||||
|
||||
public void setDevName(String devName) {
|
||||
this.devName = devName;
|
||||
}
|
||||
|
||||
public String getIp() {
|
||||
return ip;
|
||||
}
|
||||
|
||||
public void setIp(String ip) {
|
||||
this.ip = ip;
|
||||
}
|
||||
|
||||
public int getAlarmNum() {
|
||||
return alarmNum;
|
||||
}
|
||||
|
||||
public void setAlarmNum(int alarmNum) {
|
||||
this.alarmNum = alarmNum;
|
||||
}
|
||||
|
||||
public int getComOutNum() {
|
||||
return comOutNum;
|
||||
}
|
||||
|
||||
public void setComOutNum(int comOutNum) {
|
||||
this.comOutNum = comOutNum;
|
||||
}
|
||||
|
||||
public Float getFlowNum() {
|
||||
return flowNum;
|
||||
}
|
||||
|
||||
public void setFlowNum(Float flowNum) {
|
||||
this.flowNum = flowNum;
|
||||
}
|
||||
|
||||
public int getState() {
|
||||
return state;
|
||||
}
|
||||
|
||||
public void setState(int state) {
|
||||
this.state = state;
|
||||
}
|
||||
|
||||
public Date getTimeID() {
|
||||
return timeID;
|
||||
}
|
||||
|
||||
public void setTimeID(Date timeID) {
|
||||
this.timeID = timeID;
|
||||
}
|
||||
|
||||
public int getAllNum() {
|
||||
return allNum;
|
||||
}
|
||||
|
||||
public void setAllNum(int allNum) {
|
||||
this.allNum = allNum;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "DevMsgDetailInfo{" +
|
||||
"devIndex='" + devIndex + '\'' +
|
||||
", gdName='" + gdName + '\'' +
|
||||
", bdzName='" + bdzName + '\'' +
|
||||
", devName='" + devName + '\'' +
|
||||
", ip='" + ip + '\'' +
|
||||
", timeID=" + timeID +
|
||||
", allNum=" + allNum +
|
||||
", alarmNum=" + alarmNum +
|
||||
", comOutNum=" + comOutNum +
|
||||
", flowNum=" + flowNum +
|
||||
", state=" + state +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,110 @@
|
||||
package com.shining.cloud.pojo.information;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @description: 暂态消息详情
|
||||
* @author: denghuajun
|
||||
* @time: 2019-10-17 14:01:08
|
||||
**/
|
||||
@Table(name = "App_EventInfo")
|
||||
public class EventInfo {
|
||||
@Id
|
||||
@Column(name = "EVENTDETAIL_INDEX")
|
||||
private String eventDetailIndex;// Varchar2(36) Not NULL (关联表PQS_EventDetail)事件总表Guid
|
||||
@Column(name = "EVALUATE")
|
||||
private int evaluate;//对系统是否有影响(0:无;1:有)
|
||||
@Column(name = "USER_INDEX")
|
||||
private String userIndex;// Varchar2(36) Not NULL (关联app_user表User_Index)暂态评价人
|
||||
@Column(name = "UPDATE_TIME")
|
||||
private Date updateTime;// Datetime Not NULL 评价时间
|
||||
@Column(name = "INSTANTWAVE_PATH")
|
||||
private String instantWavePath;//瞬时波形资源路径
|
||||
@Column(name = "RMSWAVE_PATH")
|
||||
private String rmsWavePath;// Varchar2(64) NULL RMS资源路径
|
||||
@Column(name = "REPORT_STATE")
|
||||
private int reportState;// Number(1) NULL 报告状态(1-成功,2-失败,3-成功待审核,4-失败待审核,自定义状态)
|
||||
@Column(name = "REPORT_PATH")
|
||||
private String reportPath;// Varchar2(64) NULL 报告的资源路径
|
||||
|
||||
public String getEventDetailIndex() {
|
||||
return eventDetailIndex;
|
||||
}
|
||||
|
||||
public void setEventDetailIndex(String eventDetailIndex) {
|
||||
this.eventDetailIndex = eventDetailIndex;
|
||||
}
|
||||
|
||||
public int getEvaluate() {
|
||||
return evaluate;
|
||||
}
|
||||
|
||||
public void setEvaluate(int evaluate) {
|
||||
this.evaluate = evaluate;
|
||||
}
|
||||
|
||||
public String getUserIndex() {
|
||||
return userIndex;
|
||||
}
|
||||
|
||||
public void setUserIndex(String userIndex) {
|
||||
this.userIndex = userIndex;
|
||||
}
|
||||
|
||||
public Date getUpdateTime() {
|
||||
return updateTime;
|
||||
}
|
||||
|
||||
public void setUpdateTime(Date updateTime) {
|
||||
this.updateTime = updateTime;
|
||||
}
|
||||
|
||||
public String getInstantWavePath() {
|
||||
return instantWavePath;
|
||||
}
|
||||
|
||||
public void setInstantWavePath(String instantWavePath) {
|
||||
this.instantWavePath = instantWavePath;
|
||||
}
|
||||
|
||||
public String getRmsWavePath() {
|
||||
return rmsWavePath;
|
||||
}
|
||||
|
||||
public void setRmsWavePath(String rmsWavePath) {
|
||||
this.rmsWavePath = rmsWavePath;
|
||||
}
|
||||
|
||||
public int getReportState() {
|
||||
return reportState;
|
||||
}
|
||||
|
||||
public void setReportState(int reportState) {
|
||||
this.reportState = reportState;
|
||||
}
|
||||
|
||||
public String getReportPath() {
|
||||
return reportPath;
|
||||
}
|
||||
|
||||
public void setReportPath(String reportPath) {
|
||||
this.reportPath = reportPath;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "EventInfo{" +
|
||||
"eventDetailIndex='" + eventDetailIndex + '\'' +
|
||||
", evaluate=" + evaluate +
|
||||
", userIndex='" + userIndex + '\'' +
|
||||
", updateTime=" + updateTime +
|
||||
", instantWavePath='" + instantWavePath + '\'' +
|
||||
", rmsWavePath='" + rmsWavePath + '\'' +
|
||||
", reportState=" + reportState +
|
||||
", reportPath='" + reportPath + '\'' +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
package com.shining.cloud.pojo.information;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
|
||||
/**
|
||||
* @description: 暂降消息
|
||||
* @author: denghuajun
|
||||
* @time: 2019-10-17 13:59:51
|
||||
**/
|
||||
@Table(name = "App_EventMsg")
|
||||
public class EventMsg {
|
||||
@Id
|
||||
@Column(name = "EVENTMSG_INDEX")
|
||||
private String eventMsgIndex;// Varchar2(36) Not NULL 暂态消息Guid
|
||||
@Column(name = "USER_INDEX")
|
||||
private String userIndex;// Varchar2(36) Not NULL (关联app_user表User_Index)权限用户id
|
||||
@Column(name = "EVENTDETAIL_INDEX")
|
||||
private String eventDetailIndex;// Varchar2(36) Not NULL (关联表PQS_EventDetail)事件总表Guid
|
||||
@Column(name = "STATE")
|
||||
private int state;// Number(1) Not NULL 读取状态(0:未读,1:已读,2:删除)
|
||||
|
||||
public String getEventMsgIndex() {
|
||||
return eventMsgIndex;
|
||||
}
|
||||
|
||||
public void setEventMsgIndex(String eventMsgIndex) {
|
||||
this.eventMsgIndex = eventMsgIndex;
|
||||
}
|
||||
|
||||
public String getUserIndex() {
|
||||
return userIndex;
|
||||
}
|
||||
|
||||
public void setUserIndex(String userIndex) {
|
||||
this.userIndex = userIndex;
|
||||
}
|
||||
|
||||
public String getEventDetailIndex() {
|
||||
return eventDetailIndex;
|
||||
}
|
||||
|
||||
public void setEventDetailIndex(String eventDetailIndex) {
|
||||
this.eventDetailIndex = eventDetailIndex;
|
||||
}
|
||||
|
||||
public int getState() {
|
||||
return state;
|
||||
}
|
||||
|
||||
public void setState(int state) {
|
||||
this.state = state;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "EventMsg{" +
|
||||
"eventMsgIndex='" + eventMsgIndex + '\'' +
|
||||
", userIndex='" + userIndex + '\'' +
|
||||
", eventDetailIndex='" + eventDetailIndex + '\'' +
|
||||
", state=" + state +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,103 @@
|
||||
package com.shining.cloud.pojo.information;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @description: 暂降消息
|
||||
* @author: denghuajun
|
||||
* @time: 2019-10-17 13:59:51
|
||||
**/
|
||||
public class EventMsgDetail implements Serializable {
|
||||
|
||||
private int lineIndex;//监测点Id
|
||||
private String lineName;//监测点名称
|
||||
private String eventDetailIndex;//暂降事件id
|
||||
private Date timeID;//触发时间
|
||||
private Float persistTime;//持续时间
|
||||
private Long ms;//毫秒数
|
||||
private Float eventValue;//特征幅值
|
||||
private String lineInfo;//终端信息
|
||||
private String eventMsgIndex;//暂态消息
|
||||
private int state;//读取状态
|
||||
|
||||
public int getLineIndex() {
|
||||
return lineIndex;
|
||||
}
|
||||
|
||||
public void setLineIndex(int lineIndex) {
|
||||
this.lineIndex = lineIndex;
|
||||
}
|
||||
|
||||
public String getLineName() {
|
||||
return lineName;
|
||||
}
|
||||
|
||||
public void setLineName(String lineName) {
|
||||
this.lineName = lineName;
|
||||
}
|
||||
|
||||
public String getEventDetailIndex() {
|
||||
return eventDetailIndex;
|
||||
}
|
||||
|
||||
public void setEventDetailIndex(String eventDetailIndex) {
|
||||
this.eventDetailIndex = eventDetailIndex;
|
||||
}
|
||||
|
||||
public long getTimeID() {
|
||||
return timeID.getTime()+ms;
|
||||
}
|
||||
|
||||
public void setTimeID(Date timeID) {
|
||||
this.timeID = timeID;
|
||||
}
|
||||
|
||||
public Float getPersistTime() {
|
||||
return persistTime;
|
||||
}
|
||||
|
||||
public void setPersistTime(Float persistTime) {
|
||||
this.persistTime = persistTime;
|
||||
}
|
||||
|
||||
public Long getMs() {
|
||||
return ms;
|
||||
}
|
||||
|
||||
public void setMs(Long ms) {
|
||||
this.ms = ms;
|
||||
}
|
||||
|
||||
public Float getEventValue() {
|
||||
return eventValue;
|
||||
}
|
||||
|
||||
public void setEventValue(Float eventValue) {
|
||||
this.eventValue = eventValue;
|
||||
}
|
||||
|
||||
public String getLineInfo() {
|
||||
return lineInfo;
|
||||
}
|
||||
|
||||
public void setLineInfo(String lineInfo) {
|
||||
this.lineInfo = lineInfo;
|
||||
}
|
||||
|
||||
public String getEventMsgIndex() {
|
||||
return eventMsgIndex;
|
||||
}
|
||||
|
||||
public void setEventMsgIndex(String eventMsgIndex) {
|
||||
this.eventMsgIndex = eventMsgIndex;
|
||||
}
|
||||
|
||||
public int getState() {
|
||||
return state;
|
||||
}
|
||||
|
||||
public void setState(int state) {
|
||||
this.state = state;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
package com.shining.cloud.pojo.information;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @description: 暂降事件特征幅值
|
||||
* @author: denghuajun
|
||||
* @time: 2019-10-17 13:59:51
|
||||
**/
|
||||
public class EventWaveDetail implements Serializable {
|
||||
|
||||
private String eventDetailIndex;//暂降事件id
|
||||
private String instantWaveUrl;//瞬时波形URL
|
||||
private String rmsWaveUrl;//RMS波形URL
|
||||
|
||||
public String getEventDetailIndex() {
|
||||
return eventDetailIndex;
|
||||
}
|
||||
|
||||
public void setEventDetailIndex(String eventDetailIndex) {
|
||||
this.eventDetailIndex = eventDetailIndex;
|
||||
}
|
||||
|
||||
public String getInstantWaveUrl() {
|
||||
return instantWaveUrl;
|
||||
}
|
||||
|
||||
public void setInstantWaveUrl(String instantWaveUrl) {
|
||||
this.instantWaveUrl = instantWaveUrl;
|
||||
}
|
||||
|
||||
public String getRmsWaveUrl() {
|
||||
return rmsWaveUrl;
|
||||
}
|
||||
|
||||
public void setRmsWaveUrl(String rmsWaveUrl) {
|
||||
this.rmsWaveUrl = rmsWaveUrl;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
package com.shining.cloud.pojo.information;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @description: 流量详情
|
||||
* @author: denghuajun
|
||||
* @time: 2019-11-11 11:31:17
|
||||
**/
|
||||
|
||||
public class MonFlow {
|
||||
private Date timeId;
|
||||
private float monFlow;
|
||||
|
||||
public Date getTimeId() {
|
||||
return timeId;
|
||||
}
|
||||
|
||||
public void setTimeId(Date timeId) {
|
||||
this.timeId = timeId;
|
||||
}
|
||||
|
||||
public float getMonFlow() {
|
||||
return monFlow;
|
||||
}
|
||||
|
||||
public void setMonFlow(float monFlow) {
|
||||
this.monFlow = monFlow;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
package com.shining.cloud.pojo.information;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author hongawen
|
||||
* @date: 2020/8/27 12:07
|
||||
*/
|
||||
public class PushJson implements Serializable {
|
||||
|
||||
private int returnCode;
|
||||
|
||||
private String returnMsg;
|
||||
|
||||
public int getReturnCode() {
|
||||
return returnCode;
|
||||
}
|
||||
|
||||
public void setReturnCode(int returnCode) {
|
||||
this.returnCode = returnCode;
|
||||
}
|
||||
|
||||
public String getReturnMsg() {
|
||||
return returnMsg;
|
||||
}
|
||||
|
||||
public void setReturnMsg(String returnMsg) {
|
||||
this.returnMsg = returnMsg;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "PushJson{" +
|
||||
"returnCode=" + returnCode +
|
||||
", returnMsg='" + returnMsg + '\'' +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
package com.shining.cloud.pojo.information;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @description: 稳态消息详情
|
||||
* @author: denghuajun
|
||||
* @time: 2019-10-17 14:02:28
|
||||
**/
|
||||
@Table(name = "App_SteadyAss")
|
||||
public class SteadyAss {
|
||||
@Id
|
||||
@Column(name = "STEADY_INDEX")
|
||||
private String steadyIndex;//稳态消息列表Guid
|
||||
|
||||
@Column(name = "LINE_INDEX")
|
||||
private int lineIndex;// Number(6) Not NULL (关联app_user表User_Index)权限用户id
|
||||
|
||||
@Column(name = "TIMEID")
|
||||
private Date timeID;// Datetime Not NULL 统计时间
|
||||
|
||||
public String getSteadyIndex() {
|
||||
return steadyIndex;
|
||||
}
|
||||
|
||||
public void setSteadyIndex(String steadyIndex) {
|
||||
this.steadyIndex = steadyIndex;
|
||||
}
|
||||
|
||||
public int getLineIndex() {
|
||||
return lineIndex;
|
||||
}
|
||||
|
||||
public void setLineIndex(int lineIndex) {
|
||||
this.lineIndex = lineIndex;
|
||||
}
|
||||
|
||||
public Date getTimeID() {
|
||||
return timeID;
|
||||
}
|
||||
|
||||
public void setTimeID(Date timeID) {
|
||||
this.timeID = timeID;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "SteadyMsg{" +
|
||||
"steadyIndex='" + steadyIndex + '\'' +
|
||||
", lineIndex='" + lineIndex + '\'' +
|
||||
", timeID=" + timeID +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,81 @@
|
||||
package com.shining.cloud.pojo.information;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @description: 稳态消息
|
||||
* @author: denghuajun
|
||||
* @time: 2019-10-17 14:01:35
|
||||
**/
|
||||
@Table(name = "App_SteadyMsg")
|
||||
public class SteadyMsg {
|
||||
@Id
|
||||
@Column(name = "STEADY_INDEX")
|
||||
private String steadyIndex;//稳态消息列表Guid
|
||||
|
||||
@Column(name = "USER_INDEX")
|
||||
private String userIndex;// Varchar2(36) Not NULL (关联app_user表User_Index)权限用户id
|
||||
|
||||
@Column(name = "TIMEID")
|
||||
private Date timeID;// Datetime Not NULL 统计时间
|
||||
|
||||
@Column(name = "LINENUM")
|
||||
private int lineNum;// Number(6) Not NULL 越限监测点数
|
||||
|
||||
@Column(name = "STATE")
|
||||
private Integer state;// Number(1) Not NULL 读取状态(0:未读,1:已读,2:删除)
|
||||
|
||||
public String getSteadyIndex() {
|
||||
return steadyIndex;
|
||||
}
|
||||
|
||||
public void setSteadyIndex(String steadyIndex) {
|
||||
this.steadyIndex = steadyIndex;
|
||||
}
|
||||
|
||||
public String getUserIndex() {
|
||||
return userIndex;
|
||||
}
|
||||
|
||||
public void setUserIndex(String userIndex) {
|
||||
this.userIndex = userIndex;
|
||||
}
|
||||
|
||||
public Date getTimeID() {
|
||||
return timeID;
|
||||
}
|
||||
|
||||
public void setTimeID(Date timeID) {
|
||||
this.timeID = timeID;
|
||||
}
|
||||
|
||||
public int getLineNum() {
|
||||
return lineNum;
|
||||
}
|
||||
|
||||
public void setLineNum(int lineNum) {
|
||||
this.lineNum = lineNum;
|
||||
}
|
||||
|
||||
public Integer getState() {
|
||||
return state;
|
||||
}
|
||||
|
||||
public void setState(Integer state) {
|
||||
this.state = state;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "SteadyMsg{" +
|
||||
"steadyIndex='" + steadyIndex + '\'' +
|
||||
", userIndex='" + userIndex + '\'' +
|
||||
", timeID=" + timeID +
|
||||
", lineNum=" + lineNum +
|
||||
", state=" + state +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
package com.shining.cloud.pojo.information;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @description:稳态越限详细信息
|
||||
* @author gbl
|
||||
*
|
||||
*/
|
||||
public class SteadyMsgDetail extends SteadyAss{
|
||||
private String lineName;
|
||||
private String subName;
|
||||
private int limitNum;
|
||||
private String describe;
|
||||
|
||||
public String getLineName() {
|
||||
return lineName;
|
||||
}
|
||||
public String getDescribe() {
|
||||
return describe;
|
||||
}
|
||||
public void setLineName(String lineName) {
|
||||
this.lineName = lineName;
|
||||
}
|
||||
public void setDescribe(String describe) {
|
||||
this.describe = describe;
|
||||
}
|
||||
public String getSubName() {
|
||||
return subName;
|
||||
}
|
||||
public void setSubName(String subName) {
|
||||
this.subName = subName;
|
||||
}
|
||||
public int getLimitNum() {
|
||||
return limitNum;
|
||||
}
|
||||
public void setLimitNum(int limitNum) {
|
||||
this.limitNum = limitNum;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
package com.shining.cloud.pojo.information;
|
||||
|
||||
/**
|
||||
* @description:稳态越限指标
|
||||
* @author gbl
|
||||
*
|
||||
*/
|
||||
public class SteadyTarget{
|
||||
private int typeCode;
|
||||
private String typeName;
|
||||
private int limieNum;
|
||||
|
||||
public int getTypeCode() {
|
||||
return typeCode;
|
||||
}
|
||||
public String getTypeName() {
|
||||
return typeName;
|
||||
}
|
||||
public int getLimieNum() {
|
||||
return limieNum;
|
||||
}
|
||||
public void setTypeCode(int typeCode) {
|
||||
this.typeCode = typeCode;
|
||||
}
|
||||
public void setTypeName(String typeName) {
|
||||
this.typeName = typeName;
|
||||
}
|
||||
public void setLimieNum(int limieNum) {
|
||||
this.limieNum = limieNum;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
package com.shining.cloud.pojo.information;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @description:稳态越限指标图形
|
||||
* @author gbl
|
||||
*
|
||||
*/
|
||||
public class SteadyTargetUrl{
|
||||
private int lineIndex;
|
||||
private Date timeID;
|
||||
private int typeCode;
|
||||
private String url;
|
||||
public int getLineIndex() {
|
||||
return lineIndex;
|
||||
}
|
||||
public Date getTimeID() {
|
||||
return timeID;
|
||||
}
|
||||
public int getTypeCode() {
|
||||
return typeCode;
|
||||
}
|
||||
public String getUrl() {
|
||||
return url;
|
||||
}
|
||||
public void setLineIndex(int lineIndex) {
|
||||
this.lineIndex = lineIndex;
|
||||
}
|
||||
public void setTimeID(Date timeID) {
|
||||
this.timeID = timeID;
|
||||
}
|
||||
public void setTypeCode(int typeCode) {
|
||||
this.typeCode = typeCode;
|
||||
}
|
||||
public void setUrl(String url) {
|
||||
this.url = url;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,80 @@
|
||||
package com.shining.cloud.pojo.information;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Table;
|
||||
|
||||
/**
|
||||
* @description:稳态图形信息
|
||||
* @author gbl
|
||||
*
|
||||
*/
|
||||
@Table(name = "App_SteadyUrl")
|
||||
public class SteadyUrl{
|
||||
@Column(name = "LINE_INDEX")
|
||||
private int lineIndex;// Number(6) Not NULL (关联app_user表User_Index)权限用户id
|
||||
|
||||
@Column(name = "TIMEID")
|
||||
private Date timeID;// Datetime Not NULL 统计时间
|
||||
|
||||
@Column(name = "TYPE_CODE")
|
||||
private int typeCode;// Number(6) Not NULL (关联pqs_dictata表dicdata_Index)
|
||||
|
||||
@Column(name = "LimitNum")
|
||||
private int limitNum;// Number(6) Not NULL 越限次数
|
||||
|
||||
@Column(name = "STEADY_PATH")
|
||||
private String steadyPath;// Varchar2(64) NULL 越限指标的资源路径
|
||||
|
||||
public int getLineIndex() {
|
||||
return lineIndex;
|
||||
}
|
||||
|
||||
public void setLineIndex(int lineIndex) {
|
||||
this.lineIndex = lineIndex;
|
||||
}
|
||||
|
||||
public Date getTimeID() {
|
||||
return timeID;
|
||||
}
|
||||
|
||||
public void setTimeID(Date timeID) {
|
||||
this.timeID = timeID;
|
||||
}
|
||||
|
||||
public int getTypeCode() {
|
||||
return typeCode;
|
||||
}
|
||||
|
||||
public void setTypeCode(int typeCode) {
|
||||
this.typeCode = typeCode;
|
||||
}
|
||||
|
||||
public int getLimitNum() {
|
||||
return limitNum;
|
||||
}
|
||||
|
||||
public void setLimitNum(int limitNum) {
|
||||
this.limitNum = limitNum;
|
||||
}
|
||||
|
||||
public String getSteadyPath() {
|
||||
return steadyPath;
|
||||
}
|
||||
|
||||
public void setSteadyPath(String steadyPath) {
|
||||
this.steadyPath = steadyPath;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "SteadyMsg{" +
|
||||
", lineIndex='" + lineIndex + '\'' +
|
||||
", timeID=" + timeID +
|
||||
", typeCode=" + typeCode +
|
||||
", limitNum=" + limitNum +
|
||||
", steadyPath=" + steadyPath +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,110 @@
|
||||
package com.shining.cloud.pojo.information;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
import javax.persistence.Transient;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* system
|
||||
* pqs_topstrategy
|
||||
* @author cdf
|
||||
* @date 2021/11/8
|
||||
*/
|
||||
@Table(name = "pqs_topstrategy")
|
||||
public class TerminalRun {
|
||||
|
||||
@Id
|
||||
@Column(name = "dic_index")
|
||||
private String dicIndex;
|
||||
@Column(name = "integrity_value")
|
||||
private Integer integrityValue;
|
||||
@Column(name = "offtime_value")
|
||||
private Integer offtimeValue;
|
||||
@Column(name = "warn_value")
|
||||
private Integer warnValue;
|
||||
@Column(name = "update_time")
|
||||
private Date updateTime;
|
||||
@Column(name = "update_user")
|
||||
private String updateUser;
|
||||
@Column(name = "online_value")
|
||||
private Float onlineValue;
|
||||
|
||||
@Transient
|
||||
private String lineGrade;
|
||||
@Transient
|
||||
private Integer dicLeave;
|
||||
|
||||
public Integer getDicLeave() {
|
||||
return dicLeave;
|
||||
}
|
||||
|
||||
public void setDicLeave(Integer dicLeave) {
|
||||
this.dicLeave = dicLeave;
|
||||
}
|
||||
|
||||
public Float getOnlineValue() {
|
||||
return onlineValue;
|
||||
}
|
||||
|
||||
public void setOnlineValue(Float onlineValue) {
|
||||
this.onlineValue = onlineValue;
|
||||
}
|
||||
|
||||
public String getLineGrade() {
|
||||
return lineGrade;
|
||||
}
|
||||
|
||||
public void setLineGrade(String lineGrade) {
|
||||
this.lineGrade = lineGrade;
|
||||
}
|
||||
|
||||
public String getDicIndex() {
|
||||
return dicIndex;
|
||||
}
|
||||
|
||||
public void setDicIndex(String dicIndex) {
|
||||
this.dicIndex = dicIndex;
|
||||
}
|
||||
|
||||
public Integer getIntegrityValue() {
|
||||
return integrityValue;
|
||||
}
|
||||
|
||||
public void setIntegrityValue(Integer integrityValue) {
|
||||
this.integrityValue = integrityValue;
|
||||
}
|
||||
|
||||
public Integer getOfftimeValue() {
|
||||
return offtimeValue;
|
||||
}
|
||||
|
||||
public void setOfftimeValue(Integer offtimeValue) {
|
||||
this.offtimeValue = offtimeValue;
|
||||
}
|
||||
|
||||
public Integer getWarnValue() {
|
||||
return warnValue;
|
||||
}
|
||||
|
||||
public void setWarnValue(Integer warnValue) {
|
||||
this.warnValue = warnValue;
|
||||
}
|
||||
|
||||
public Date getUpdateTime() {
|
||||
return updateTime;
|
||||
}
|
||||
|
||||
public void setUpdateTime(Date updateTime) {
|
||||
this.updateTime = updateTime;
|
||||
}
|
||||
|
||||
public String getUpdateUser() {
|
||||
return updateUser;
|
||||
}
|
||||
|
||||
public void setUpdateUser(String updateUser) {
|
||||
this.updateUser = updateUser;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,105 @@
|
||||
package com.shining.cloud.pojo.information;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Table;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* system
|
||||
*
|
||||
* @author cdf
|
||||
* @date 2021/11/22
|
||||
*/
|
||||
@Table(name = "pqs_topmsg")
|
||||
public class TopException {
|
||||
@Column(name = "msg_index")
|
||||
private String msgIndex;
|
||||
@Column(name = "timeid")
|
||||
private Date timeId;
|
||||
@Column(name = "dev_index")
|
||||
private Integer devIndex;
|
||||
@Column(name = "alarm_num")
|
||||
private Integer alarmNum;
|
||||
@Column(name = "comout_num")
|
||||
private Integer comoutNum;
|
||||
@Column(name = "flow_num")
|
||||
private Float flowNum;
|
||||
@Column(name = "state")
|
||||
private Integer state;
|
||||
@Column(name = "over_limit")
|
||||
private Integer overLimit;
|
||||
@Column(name = "flow_stand")
|
||||
private Integer flowStand;
|
||||
|
||||
public String getMsgIndex() {
|
||||
return msgIndex;
|
||||
}
|
||||
|
||||
public void setMsgIndex(String msgIndex) {
|
||||
this.msgIndex = msgIndex;
|
||||
}
|
||||
|
||||
public Date getTimeId() {
|
||||
return timeId;
|
||||
}
|
||||
|
||||
public void setTimeId(Date timeId) {
|
||||
this.timeId = timeId;
|
||||
}
|
||||
|
||||
public Integer getDevIndex() {
|
||||
return devIndex;
|
||||
}
|
||||
|
||||
public void setDevIndex(Integer devIndex) {
|
||||
this.devIndex = devIndex;
|
||||
}
|
||||
|
||||
public Integer getAlarmNum() {
|
||||
return alarmNum;
|
||||
}
|
||||
|
||||
public void setAlarmNum(Integer alarmNum) {
|
||||
this.alarmNum = alarmNum;
|
||||
}
|
||||
|
||||
public Integer getComoutNum() {
|
||||
return comoutNum;
|
||||
}
|
||||
|
||||
public void setComoutNum(Integer comoutNum) {
|
||||
this.comoutNum = comoutNum;
|
||||
}
|
||||
|
||||
public Float getFlowNum() {
|
||||
return flowNum;
|
||||
}
|
||||
|
||||
public void setFlowNum(Float flowNum) {
|
||||
this.flowNum = flowNum;
|
||||
}
|
||||
|
||||
public Integer getState() {
|
||||
return state;
|
||||
}
|
||||
|
||||
public void setState(Integer state) {
|
||||
this.state = state;
|
||||
}
|
||||
|
||||
public Integer getOverLimit() {
|
||||
return overLimit;
|
||||
}
|
||||
|
||||
public void setOverLimit(Integer overLimit) {
|
||||
this.overLimit = overLimit;
|
||||
}
|
||||
|
||||
public Integer getFlowStand() {
|
||||
return flowStand;
|
||||
}
|
||||
|
||||
public void setFlowStand(Integer flowStand) {
|
||||
this.flowStand = flowStand;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package com.shining.cloud.pojo.report;
|
||||
|
||||
public class Info {
|
||||
private String name;
|
||||
private String value;
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public void setValue(Integer value) {
|
||||
this.value = value.intValue() == 0 ? "" : value.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,303 @@
|
||||
package com.shining.cloud.pojo.report;
|
||||
|
||||
import com.njcn.pojo.data.LimitRate;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
import javax.persistence.Transient;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@Table(name = "APP_REPORT")
|
||||
public class ReportData {
|
||||
@Id
|
||||
@Column(name = "REPORT_INDEX")
|
||||
private String reportIndex;
|
||||
|
||||
@Column(name = "REPORT_NAME")
|
||||
private String reportName;
|
||||
|
||||
@Column(name = "LINE_INDEX")
|
||||
private String lineIndex;
|
||||
|
||||
@Column(name = "USER_INDEX")
|
||||
private String userIndex;
|
||||
|
||||
@Column(name = "UPDATE_TIME")
|
||||
private Date updateTime;
|
||||
|
||||
@Column(name = "START_TIME")
|
||||
private Date startTime;
|
||||
|
||||
@Column(name = "END_TIME")
|
||||
private Date endTime;
|
||||
|
||||
@Column(name = "SYSTEM_TYPE")
|
||||
private String sysType;
|
||||
|
||||
@Column(name = "REPORT_TYPE")
|
||||
private String reportType;
|
||||
|
||||
@Column(name = "REPORT_PATH")
|
||||
private String reportPath;
|
||||
|
||||
@Column(name = "STATE")
|
||||
private Integer state;
|
||||
|
||||
@Column(name = "ERROR_COUNT")
|
||||
private Integer errorCount;
|
||||
|
||||
@Transient
|
||||
private LimitRate limitRate;
|
||||
|
||||
@Transient
|
||||
private Integer total;
|
||||
|
||||
@Transient
|
||||
private Integer tinterval;
|
||||
|
||||
@Transient
|
||||
private List<String> listResult = new ArrayList<String>() {{
|
||||
add("该监测点暂无指标越限");
|
||||
}};
|
||||
|
||||
@Transient
|
||||
private String name;
|
||||
|
||||
public Integer getTinterval() {
|
||||
return tinterval;
|
||||
}
|
||||
|
||||
public void setTinterval(Integer tinterval) {
|
||||
this.tinterval = tinterval;
|
||||
}
|
||||
|
||||
public Integer getTotal() {
|
||||
return total;
|
||||
}
|
||||
|
||||
public void setTotal(Integer total) {
|
||||
this.total = total;
|
||||
listResult = new ArrayList<>();
|
||||
listResult.add("共发生" + total.toString() + "次暂降事件");
|
||||
}
|
||||
|
||||
public List<String> getListResult() {
|
||||
return listResult;
|
||||
}
|
||||
|
||||
public void setListResult(List<String> listResult) {
|
||||
this.listResult = listResult;
|
||||
}
|
||||
|
||||
public Integer getState() {
|
||||
return state;
|
||||
}
|
||||
|
||||
public void setState(Integer state) {
|
||||
this.state = state;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "ReportData{" +
|
||||
"reportIndex='" + reportIndex + '\'' +
|
||||
", reportName='" + reportName + '\'' +
|
||||
", lineIndex='" + lineIndex + '\'' +
|
||||
", userIndex='" + userIndex + '\'' +
|
||||
", updateTime=" + updateTime +
|
||||
", startTime=" + startTime +
|
||||
", endTime=" + endTime +
|
||||
", sysType='" + sysType + '\'' +
|
||||
", reportType='" + reportType + '\'' +
|
||||
", reportPath='" + reportPath + '\'' +
|
||||
", errorCount=" + errorCount +
|
||||
", limitRate=" + limitRate +
|
||||
'}';
|
||||
}
|
||||
|
||||
public LimitRate getLimitRate() {
|
||||
return limitRate;
|
||||
}
|
||||
|
||||
public void setLimitRate(LimitRate limitRate) {
|
||||
if (listResult == null) {
|
||||
listResult = new ArrayList<>();
|
||||
}
|
||||
|
||||
if (limitRate != null) {
|
||||
if (listResult.size() == 1 && listResult.get(0).equals("该监测点暂无指标越限")) {
|
||||
listResult = new ArrayList<>();
|
||||
}
|
||||
|
||||
//packageData(limitRate.getFlicketAllTime(), "闪变总计算次数");
|
||||
packageData(limitRate.getFreqDevOverTime(), "频率偏差越限");
|
||||
packageData(limitRate.getVoltageDevOvertime(), "电压偏差越限");
|
||||
packageData(limitRate.getUBalanceOverTime(), "电压不平衡越限");
|
||||
packageData(limitRate.getFlickerOverTime(), "闪变越限");
|
||||
packageData(limitRate.getUAberranceOverTime(), "电压谐波畸变率越限");
|
||||
packageData(limitRate.getUHarm2OverTime(), "2次电压谐波含有率越限");
|
||||
packageData(limitRate.getUHarm3OverTime(), "3次电压谐波含有率越限");
|
||||
packageData(limitRate.getUHarm4OverTime(), "4次电压谐波含有率越限");
|
||||
packageData(limitRate.getUHarm5OverTime(), "5次电压谐波含有率越限");
|
||||
packageData(limitRate.getUHarm6OverTime(), "6次电压谐波含有率越限");
|
||||
packageData(limitRate.getUHarm7OverTime(), "7次电压谐波含有率越限");
|
||||
packageData(limitRate.getUHarm8OverTime(), "8次电压谐波含有率越限");
|
||||
packageData(limitRate.getUHarm9OverTime(), "9次电压谐波含有率越限");
|
||||
packageData(limitRate.getUHarm10OverTime(), "10次电压谐波含有率越限");
|
||||
packageData(limitRate.getUHarm11OverTime(), "11次电压谐波含有率越限");
|
||||
packageData(limitRate.getUHarm12OverTime(), "12次电压谐波含有率越限");
|
||||
packageData(limitRate.getUHarm13OverTime(), "13次电压谐波含有率越限");
|
||||
packageData(limitRate.getUHarm14OverTime(), "14次电压谐波含有率越限");
|
||||
packageData(limitRate.getUHarm15OverTime(), "15次电压谐波含有率越限");
|
||||
packageData(limitRate.getUHarm16OverTime(), "16次电压谐波含有率越限");
|
||||
packageData(limitRate.getUHarm17OverTime(), "17次电压谐波含有率越限");
|
||||
packageData(limitRate.getUHarm18OverTime(), "18次电压谐波含有率越限");
|
||||
packageData(limitRate.getUHarm19OverTime(), "19次电压谐波含有率越限");
|
||||
packageData(limitRate.getUHarm20OverTime(), "20次电压谐波含有率越限");
|
||||
packageData(limitRate.getUHarm21OverTime(), "21次电压谐波含有率越限");
|
||||
packageData(limitRate.getUHarm22OverTime(), "22次电压谐波含有率越限");
|
||||
packageData(limitRate.getUHarm23OverTime(), "23次电压谐波含有率越限");
|
||||
packageData(limitRate.getUHarm24OverTime(), "24次电压谐波含有率越限");
|
||||
packageData(limitRate.getUHarm25OverTime(), "25次电压谐波含有率越限");
|
||||
packageData(limitRate.getIHarm2OverTime(), "2次电流谐波幅值越限");
|
||||
packageData(limitRate.getIHarm3OverTime(), "3次电流谐波幅值越限");
|
||||
packageData(limitRate.getIHarm4OverTime(), "4次电流谐波幅值越限");
|
||||
packageData(limitRate.getIHarm5OverTime(), "5次电流谐波幅值越限");
|
||||
packageData(limitRate.getIHarm6OverTime(), "6次电流谐波幅值越限");
|
||||
packageData(limitRate.getIHarm7OverTime(), "7次电流谐波幅值越限");
|
||||
packageData(limitRate.getIHarm8OverTime(), "8次电流谐波幅值越限");
|
||||
packageData(limitRate.getIHarm9OverTime(), "9次电流谐波幅值越限");
|
||||
packageData(limitRate.getIHarm10OverTime(), "10次电流谐波幅值越限");
|
||||
packageData(limitRate.getIHarm11OverTime(), "11次电流谐波幅值越限");
|
||||
packageData(limitRate.getIHarm12OverTime(), "12次电流谐波幅值越限");
|
||||
packageData(limitRate.getIHarm13OverTime(), "13次电流谐波幅值越限");
|
||||
packageData(limitRate.getIHarm14OverTime(), "14次电流谐波幅值越限");
|
||||
packageData(limitRate.getIHarm15OverTime(), "15次电流谐波幅值越限");
|
||||
packageData(limitRate.getIHarm16OverTime(), "16次电流谐波幅值越限");
|
||||
packageData(limitRate.getIHarm17OverTime(), "17次电流谐波幅值越限");
|
||||
packageData(limitRate.getIHarm18OverTime(), "18次电流谐波幅值越限");
|
||||
packageData(limitRate.getIHarm19OverTime(), "19次电流谐波幅值越限");
|
||||
packageData(limitRate.getIHarm20OverTime(), "20次电流谐波幅值越限");
|
||||
packageData(limitRate.getIHarm21OverTime(), "21次电流谐波幅值越限");
|
||||
packageData(limitRate.getIHarm22OverTime(), "22次电流谐波幅值越限");
|
||||
packageData(limitRate.getIHarm23OverTime(), "23次电流谐波幅值越限");
|
||||
packageData(limitRate.getIHarm24OverTime(), "24次电流谐波幅值越限");
|
||||
packageData(limitRate.getIHarm25OverTime(), "25次电流谐波幅值越限");
|
||||
}
|
||||
|
||||
if (listResult.size() == 0) {
|
||||
this.listResult.add("该监测点暂无指标越限");
|
||||
}
|
||||
}
|
||||
|
||||
private void packageData(Integer count, String des) {
|
||||
if (count.intValue() > 0) {
|
||||
if (des.equals("闪变越限")) {
|
||||
this.listResult.add(des + count * 120 + "分钟");
|
||||
} else {
|
||||
this.listResult.add(des + count * this.tinterval + "分钟");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public String getReportIndex() {
|
||||
return reportIndex;
|
||||
}
|
||||
|
||||
public void setReportIndex(String reportIndex) {
|
||||
this.reportIndex = reportIndex;
|
||||
}
|
||||
|
||||
public String getReportName() {
|
||||
return reportName;
|
||||
}
|
||||
|
||||
public void setReportName(String reportName) {
|
||||
this.reportName = reportName;
|
||||
}
|
||||
|
||||
public String getLineIndex() {
|
||||
return lineIndex;
|
||||
}
|
||||
|
||||
public void setLineIndex(String lineIndex) {
|
||||
this.lineIndex = lineIndex;
|
||||
}
|
||||
|
||||
public String getUserIndex() {
|
||||
return userIndex;
|
||||
}
|
||||
|
||||
public void setUserIndex(String userIndex) {
|
||||
this.userIndex = userIndex;
|
||||
}
|
||||
|
||||
public Date getUpdateTime() {
|
||||
return updateTime;
|
||||
}
|
||||
|
||||
public void setUpdateTime(Date updateTime) {
|
||||
this.updateTime = updateTime;
|
||||
}
|
||||
|
||||
public Date getStartTime() {
|
||||
return startTime;
|
||||
}
|
||||
|
||||
public void setStartTime(Date startTime) {
|
||||
this.startTime = startTime;
|
||||
}
|
||||
|
||||
public Date getEndTime() {
|
||||
return endTime;
|
||||
}
|
||||
|
||||
public void setEndTime(Date endTime) {
|
||||
this.endTime = endTime;
|
||||
}
|
||||
|
||||
public String getSysType() {
|
||||
return sysType;
|
||||
}
|
||||
|
||||
public void setSysType(String sysType) {
|
||||
this.sysType = sysType;
|
||||
}
|
||||
|
||||
public String getReportType() {
|
||||
return reportType;
|
||||
}
|
||||
|
||||
public void setReportType(String reportType) {
|
||||
this.reportType = reportType;
|
||||
}
|
||||
|
||||
public String getReportPath() {
|
||||
return reportPath;
|
||||
}
|
||||
|
||||
public void setReportPath(String reportPath) {
|
||||
this.reportPath = reportPath;
|
||||
}
|
||||
|
||||
public Integer getErrorCount() {
|
||||
return errorCount;
|
||||
}
|
||||
|
||||
public void setErrorCount(Integer errorCount) {
|
||||
this.errorCount = errorCount;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,691 @@
|
||||
package com.shining.cloud.pojo.statistics;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @description: 统计数据
|
||||
* @author: gbl
|
||||
**/
|
||||
@Table(name = "App_Statistics")
|
||||
public class Statistics {
|
||||
@Column(name = "LINE_INDEX")
|
||||
private Long lineIndex;
|
||||
|
||||
@Column(name = "TIMEID")
|
||||
private Date timeID;
|
||||
|
||||
@Column(name = "EVENT_COUNT")
|
||||
private Long eventCount;
|
||||
|
||||
@Column(name = "FREQ_DEV_RATE")
|
||||
private Float freqDevRate;
|
||||
|
||||
@Column(name="Voltage_Dev_Rate")
|
||||
private Float voltageDevRate;
|
||||
|
||||
@Column(name="UBalance_Rate")
|
||||
private Float UBalanceRate;
|
||||
|
||||
@Column(name="Flicker_Rate")
|
||||
private Float flickerRate;
|
||||
|
||||
@Column(name="UAberrance_Rate")
|
||||
private Float UAberranceRate;
|
||||
|
||||
@Column(name="UHarm_2_Rate")
|
||||
private Float UHarm2Rate;
|
||||
|
||||
@Column(name="UHarm_3_Rate")
|
||||
private Float UHarm3Rate;
|
||||
|
||||
@Column(name="UHarm_4_Rate")
|
||||
private Float UHarm4Rate;
|
||||
|
||||
@Column(name="UHarm_5_Rate")
|
||||
private Float UHarm5Rate;
|
||||
|
||||
@Column(name="UHarm_6_Rate")
|
||||
private Float UHarm6Rate;
|
||||
|
||||
@Column(name="UHarm_7_Rate")
|
||||
private Float UHarm7Rate;
|
||||
|
||||
@Column(name="UHarm_8_Rate")
|
||||
private Float UHarm8Rate;
|
||||
|
||||
@Column(name="UHarm_9_Rate")
|
||||
private Float UHarm9Rate;
|
||||
|
||||
@Column(name="UHarm_10_Rate")
|
||||
private Float UHarm10Rate;
|
||||
|
||||
@Column(name="UHarm_11_Rate")
|
||||
private Float UHarm11Rate;
|
||||
|
||||
@Column(name="UHarm_12_Rate")
|
||||
private Float UHarm12Rate;
|
||||
|
||||
@Column(name="UHarm_13_Rate")
|
||||
private Float UHarm13Rate;
|
||||
|
||||
@Column(name="UHarm_14_Rate")
|
||||
private Float UHarm14Rate;
|
||||
|
||||
@Column(name="UHarm_15_Rate")
|
||||
private Float UHarm15Rate;
|
||||
|
||||
@Column(name="UHarm_16_Rate")
|
||||
private Float UHarm16Rate;
|
||||
|
||||
@Column(name="UHarm_17_Rate")
|
||||
private Float UHarm17Rate;
|
||||
|
||||
@Column(name="UHarm_18_Rate")
|
||||
private Float UHarm18Rate;
|
||||
|
||||
@Column(name="UHarm_19_Rate")
|
||||
private Float UHarm19Rate;
|
||||
|
||||
@Column(name="UHarm_20_Rate")
|
||||
private Float UHarm20Rate;
|
||||
|
||||
@Column(name="UHarm_21_Rate")
|
||||
private Float UHarm21Rate;
|
||||
|
||||
@Column(name="UHarm_22_Rate")
|
||||
private Float UHarm22Rate;
|
||||
|
||||
@Column(name="UHarm_23_Rate")
|
||||
private Float UHarm23Rate;
|
||||
|
||||
@Column(name="UHarm_24_Rate")
|
||||
private Float UHarm24Rate;
|
||||
|
||||
@Column(name="UHarm_25_Rate")
|
||||
private Float UHarm25Rate;
|
||||
|
||||
@Column(name="IHarm_2_Rate")
|
||||
private Float IHarm2Rate;
|
||||
|
||||
@Column(name="IHarm_3_Rate")
|
||||
private Float IHarm3Rate;
|
||||
|
||||
@Column(name="IHarm_4_Rate")
|
||||
private Float IHarm4Rate;
|
||||
|
||||
@Column(name="IHarm_5_Rate")
|
||||
private Float IHarm5Rate;
|
||||
|
||||
@Column(name="IHarm_6_Rate")
|
||||
private Float IHarm6Rate;
|
||||
|
||||
@Column(name="IHarm_7_Rate")
|
||||
private Float IHarm7Rate;
|
||||
|
||||
@Column(name="IHarm_8_Rate")
|
||||
private Float IHarm8Rate;
|
||||
|
||||
@Column(name="IHarm_9_Rate")
|
||||
private Float IHarm9Rate;
|
||||
|
||||
@Column(name="IHarm_10_Rate")
|
||||
private Float IHarm10Rate;
|
||||
|
||||
@Column(name="IHarm_11_Rate")
|
||||
private Float IHarm11Rate;
|
||||
|
||||
@Column(name="IHarm_12_Rate")
|
||||
private Float IHarm12Rate;
|
||||
|
||||
@Column(name="IHarm_13_Rate")
|
||||
private Float IHarm13Rate;
|
||||
|
||||
@Column(name="IHarm_14_Rate")
|
||||
private Float IHarm14Rate;
|
||||
|
||||
@Column(name="IHarm_15_Rate")
|
||||
private Float IHarm15Rate;
|
||||
|
||||
@Column(name="IHarm_16_Rate")
|
||||
private Float IHarm16Rate;
|
||||
|
||||
@Column(name="IHarm_17_Rate")
|
||||
private Float IHarm17Rate;
|
||||
|
||||
@Column(name="IHarm_18_Rate")
|
||||
private Float IHarm18Rate;
|
||||
|
||||
@Column(name="IHarm_19_Rate")
|
||||
private Float IHarm19Rate;
|
||||
|
||||
@Column(name="IHarm_20_Rate")
|
||||
private Float IHarm20Rate;
|
||||
|
||||
@Column(name="IHarm_21_Rate")
|
||||
private Float IHarm21Rate;
|
||||
|
||||
@Column(name="IHarm_22_Rate")
|
||||
private Float IHarm22Rate;
|
||||
|
||||
@Column(name="IHarm_23_Rate")
|
||||
private Float IHarm23Rate;
|
||||
|
||||
@Column(name="IHarm_24_Rate")
|
||||
private Float IHarm24Rate;
|
||||
|
||||
@Column(name="IHarm_25_Rate")
|
||||
private Float IHarm25Rate;
|
||||
|
||||
public Long getLineIndex() {
|
||||
return lineIndex;
|
||||
}
|
||||
|
||||
public void setLineIndex(Long lineIndex) {
|
||||
this.lineIndex = lineIndex;
|
||||
}
|
||||
|
||||
public Date getTimeID() {
|
||||
return timeID;
|
||||
}
|
||||
|
||||
public void setTimeID(Date timeID) {
|
||||
this.timeID = timeID;
|
||||
}
|
||||
|
||||
public Long getEventCount() {
|
||||
return eventCount;
|
||||
}
|
||||
|
||||
public void setEventCount(Long eventCount) {
|
||||
this.eventCount = eventCount;
|
||||
}
|
||||
|
||||
public Float getFreqDevRate() {
|
||||
return freqDevRate;
|
||||
}
|
||||
|
||||
public void setFreqDevRate(Float freqDevRate) {
|
||||
this.freqDevRate = freqDevRate;
|
||||
}
|
||||
|
||||
public Float getVoltageDevRate() {
|
||||
return voltageDevRate;
|
||||
}
|
||||
|
||||
public void setVoltageDevRate(Float voltageDevRate) {
|
||||
this.voltageDevRate = voltageDevRate;
|
||||
}
|
||||
|
||||
public Float getUBalanceRate() {
|
||||
return UBalanceRate;
|
||||
}
|
||||
|
||||
public void setUBalanceRate(Float uBalanceRate) {
|
||||
UBalanceRate = uBalanceRate;
|
||||
}
|
||||
|
||||
public Float getFlickerRate() {
|
||||
return flickerRate;
|
||||
}
|
||||
|
||||
public void setFlickerRate(Float flickerRate) {
|
||||
this.flickerRate = flickerRate;
|
||||
}
|
||||
|
||||
public Float getUAberranceRate() {
|
||||
return UAberranceRate;
|
||||
}
|
||||
|
||||
public void setUAberranceRate(Float uAberranceRate) {
|
||||
UAberranceRate = uAberranceRate;
|
||||
}
|
||||
|
||||
public Float getUHarm2Rate() {
|
||||
return UHarm2Rate;
|
||||
}
|
||||
|
||||
public void setUHarm2Rate(Float uHarm2Rate) {
|
||||
UHarm2Rate = uHarm2Rate;
|
||||
}
|
||||
|
||||
public Float getUHarm3Rate() {
|
||||
return UHarm3Rate;
|
||||
}
|
||||
|
||||
public void setUHarm3Rate(Float uHarm3Rate) {
|
||||
UHarm3Rate = uHarm3Rate;
|
||||
}
|
||||
|
||||
public Float getUHarm4Rate() {
|
||||
return UHarm4Rate;
|
||||
}
|
||||
|
||||
public void setUHarm4Rate(Float uHarm4Rate) {
|
||||
UHarm4Rate = uHarm4Rate;
|
||||
}
|
||||
|
||||
public Float getUHarm5Rate() {
|
||||
return UHarm5Rate;
|
||||
}
|
||||
|
||||
public void setUHarm5Rate(Float uHarm5Rate) {
|
||||
UHarm5Rate = uHarm5Rate;
|
||||
}
|
||||
|
||||
public Float getUHarm6Rate() {
|
||||
return UHarm6Rate;
|
||||
}
|
||||
|
||||
public void setUHarm6Rate(Float uHarm6Rate) {
|
||||
UHarm6Rate = uHarm6Rate;
|
||||
}
|
||||
|
||||
public Float getUHarm7Rate() {
|
||||
return UHarm7Rate;
|
||||
}
|
||||
|
||||
public void setUHarm7Rate(Float uHarm7Rate) {
|
||||
UHarm7Rate = uHarm7Rate;
|
||||
}
|
||||
|
||||
public Float getUHarm8Rate() {
|
||||
return UHarm8Rate;
|
||||
}
|
||||
|
||||
public void setUHarm8Rate(Float uHarm8Rate) {
|
||||
UHarm8Rate = uHarm8Rate;
|
||||
}
|
||||
|
||||
public Float getUHarm9Rate() {
|
||||
return UHarm9Rate;
|
||||
}
|
||||
|
||||
public void setUHarm9Rate(Float uHarm9Rate) {
|
||||
UHarm9Rate = uHarm9Rate;
|
||||
}
|
||||
|
||||
public Float getUHarm10Rate() {
|
||||
return UHarm10Rate;
|
||||
}
|
||||
|
||||
public void setUHarm10Rate(Float uHarm10Rate) {
|
||||
UHarm10Rate = uHarm10Rate;
|
||||
}
|
||||
|
||||
public Float getUHarm11Rate() {
|
||||
return UHarm11Rate;
|
||||
}
|
||||
|
||||
public void setUHarm11Rate(Float uHarm11Rate) {
|
||||
UHarm11Rate = uHarm11Rate;
|
||||
}
|
||||
|
||||
public Float getUHarm12Rate() {
|
||||
return UHarm12Rate;
|
||||
}
|
||||
|
||||
public void setUHarm12Rate(Float uHarm12Rate) {
|
||||
UHarm12Rate = uHarm12Rate;
|
||||
}
|
||||
|
||||
public Float getUHarm13Rate() {
|
||||
return UHarm13Rate;
|
||||
}
|
||||
|
||||
public void setUHarm13Rate(Float uHarm13Rate) {
|
||||
UHarm13Rate = uHarm13Rate;
|
||||
}
|
||||
|
||||
public Float getUHarm14Rate() {
|
||||
return UHarm14Rate;
|
||||
}
|
||||
|
||||
public void setUHarm14Rate(Float uHarm14Rate) {
|
||||
UHarm14Rate = uHarm14Rate;
|
||||
}
|
||||
|
||||
public Float getUHarm15Rate() {
|
||||
return UHarm15Rate;
|
||||
}
|
||||
|
||||
public void setUHarm15Rate(Float uHarm15Rate) {
|
||||
UHarm15Rate = uHarm15Rate;
|
||||
}
|
||||
|
||||
public Float getUHarm16Rate() {
|
||||
return UHarm16Rate;
|
||||
}
|
||||
|
||||
public void setUHarm16Rate(Float uHarm16Rate) {
|
||||
UHarm16Rate = uHarm16Rate;
|
||||
}
|
||||
|
||||
public Float getUHarm17Rate() {
|
||||
return UHarm17Rate;
|
||||
}
|
||||
|
||||
public void setUHarm17Rate(Float uHarm17Rate) {
|
||||
UHarm17Rate = uHarm17Rate;
|
||||
}
|
||||
|
||||
public Float getUHarm18Rate() {
|
||||
return UHarm18Rate;
|
||||
}
|
||||
|
||||
public void setUHarm18Rate(Float uHarm18Rate) {
|
||||
UHarm18Rate = uHarm18Rate;
|
||||
}
|
||||
|
||||
public Float getUHarm19Rate() {
|
||||
return UHarm19Rate;
|
||||
}
|
||||
|
||||
public void setUHarm19Rate(Float uHarm19Rate) {
|
||||
UHarm19Rate = uHarm19Rate;
|
||||
}
|
||||
|
||||
public Float getUHarm20Rate() {
|
||||
return UHarm20Rate;
|
||||
}
|
||||
|
||||
public void setUHarm20Rate(Float uHarm20Rate) {
|
||||
UHarm20Rate = uHarm20Rate;
|
||||
}
|
||||
|
||||
public Float getUHarm21Rate() {
|
||||
return UHarm21Rate;
|
||||
}
|
||||
|
||||
public void setUHarm21Rate(Float uHarm21Rate) {
|
||||
UHarm21Rate = uHarm21Rate;
|
||||
}
|
||||
|
||||
public Float getUHarm22Rate() {
|
||||
return UHarm22Rate;
|
||||
}
|
||||
|
||||
public void setUHarm22Rate(Float uHarm22Rate) {
|
||||
UHarm22Rate = uHarm22Rate;
|
||||
}
|
||||
|
||||
public Float getUHarm23Rate() {
|
||||
return UHarm23Rate;
|
||||
}
|
||||
|
||||
public void setUHarm23Rate(Float uHarm23Rate) {
|
||||
UHarm23Rate = uHarm23Rate;
|
||||
}
|
||||
|
||||
public Float getUHarm24Rate() {
|
||||
return UHarm24Rate;
|
||||
}
|
||||
|
||||
public void setUHarm24Rate(Float uHarm24Rate) {
|
||||
UHarm24Rate = uHarm24Rate;
|
||||
}
|
||||
|
||||
public Float getUHarm25Rate() {
|
||||
return UHarm25Rate;
|
||||
}
|
||||
|
||||
public void setUHarm25Rate(Float uHarm25Rate) {
|
||||
UHarm25Rate = uHarm25Rate;
|
||||
}
|
||||
|
||||
public Float getIHarm2Rate() {
|
||||
return IHarm2Rate;
|
||||
}
|
||||
|
||||
public void setIHarm2Rate(Float iHarm2Rate) {
|
||||
IHarm2Rate = iHarm2Rate;
|
||||
}
|
||||
|
||||
public Float getIHarm3Rate() {
|
||||
return IHarm3Rate;
|
||||
}
|
||||
|
||||
public void setIHarm3Rate(Float iHarm3Rate) {
|
||||
IHarm3Rate = iHarm3Rate;
|
||||
}
|
||||
|
||||
public Float getIHarm4Rate() {
|
||||
return IHarm4Rate;
|
||||
}
|
||||
|
||||
public void setIHarm4Rate(Float iHarm4Rate) {
|
||||
IHarm4Rate = iHarm4Rate;
|
||||
}
|
||||
|
||||
public Float getIHarm5Rate() {
|
||||
return IHarm5Rate;
|
||||
}
|
||||
|
||||
public void setIHarm5Rate(Float iHarm5Rate) {
|
||||
IHarm5Rate = iHarm5Rate;
|
||||
}
|
||||
|
||||
public Float getIHarm6Rate() {
|
||||
return IHarm6Rate;
|
||||
}
|
||||
|
||||
public void setIHarm6Rate(Float iHarm6Rate) {
|
||||
IHarm6Rate = iHarm6Rate;
|
||||
}
|
||||
|
||||
public Float getIHarm7Rate() {
|
||||
return IHarm7Rate;
|
||||
}
|
||||
|
||||
public void setIHarm7Rate(Float iHarm7Rate) {
|
||||
IHarm7Rate = iHarm7Rate;
|
||||
}
|
||||
|
||||
public Float getIHarm8Rate() {
|
||||
return IHarm8Rate;
|
||||
}
|
||||
|
||||
public void setIHarm8Rate(Float iHarm8Rate) {
|
||||
IHarm8Rate = iHarm8Rate;
|
||||
}
|
||||
|
||||
public Float getIHarm9Rate() {
|
||||
return IHarm9Rate;
|
||||
}
|
||||
|
||||
public void setIHarm9Rate(Float iHarm9Rate) {
|
||||
IHarm9Rate = iHarm9Rate;
|
||||
}
|
||||
|
||||
public Float getIHarm10Rate() {
|
||||
return IHarm10Rate;
|
||||
}
|
||||
|
||||
public void setIHarm10Rate(Float iHarm10Rate) {
|
||||
IHarm10Rate = iHarm10Rate;
|
||||
}
|
||||
|
||||
public Float getIHarm11Rate() {
|
||||
return IHarm11Rate;
|
||||
}
|
||||
|
||||
public void setIHarm11Rate(Float iHarm11Rate) {
|
||||
IHarm11Rate = iHarm11Rate;
|
||||
}
|
||||
|
||||
public Float getIHarm12Rate() {
|
||||
return IHarm12Rate;
|
||||
}
|
||||
|
||||
public void setIHarm12Rate(Float iHarm12Rate) {
|
||||
IHarm12Rate = iHarm12Rate;
|
||||
}
|
||||
|
||||
public Float getIHarm13Rate() {
|
||||
return IHarm13Rate;
|
||||
}
|
||||
|
||||
public void setIHarm13Rate(Float iHarm13Rate) {
|
||||
IHarm13Rate = iHarm13Rate;
|
||||
}
|
||||
|
||||
public Float getIHarm14Rate() {
|
||||
return IHarm14Rate;
|
||||
}
|
||||
|
||||
public void setIHarm14Rate(Float iHarm14Rate) {
|
||||
IHarm14Rate = iHarm14Rate;
|
||||
}
|
||||
|
||||
public Float getIHarm15Rate() {
|
||||
return IHarm15Rate;
|
||||
}
|
||||
|
||||
public void setIHarm15Rate(Float iHarm15Rate) {
|
||||
IHarm15Rate = iHarm15Rate;
|
||||
}
|
||||
|
||||
public Float getIHarm16Rate() {
|
||||
return IHarm16Rate;
|
||||
}
|
||||
|
||||
public void setIHarm16Rate(Float iHarm16Rate) {
|
||||
IHarm16Rate = iHarm16Rate;
|
||||
}
|
||||
|
||||
public Float getIHarm17Rate() {
|
||||
return IHarm17Rate;
|
||||
}
|
||||
|
||||
public void setIHarm17Rate(Float iHarm17Rate) {
|
||||
IHarm17Rate = iHarm17Rate;
|
||||
}
|
||||
|
||||
public Float getIHarm18Rate() {
|
||||
return IHarm18Rate;
|
||||
}
|
||||
|
||||
public void setIHarm18Rate(Float iHarm18Rate) {
|
||||
IHarm18Rate = iHarm18Rate;
|
||||
}
|
||||
|
||||
public Float getIHarm19Rate() {
|
||||
return IHarm19Rate;
|
||||
}
|
||||
|
||||
public void setIHarm19Rate(Float iHarm19Rate) {
|
||||
IHarm19Rate = iHarm19Rate;
|
||||
}
|
||||
|
||||
public Float getIHarm20Rate() {
|
||||
return IHarm20Rate;
|
||||
}
|
||||
|
||||
public void setIHarm20Rate(Float iHarm20Rate) {
|
||||
IHarm20Rate = iHarm20Rate;
|
||||
}
|
||||
|
||||
public Float getIHarm21Rate() {
|
||||
return IHarm21Rate;
|
||||
}
|
||||
|
||||
public void setIHarm21Rate(Float iHarm21Rate) {
|
||||
IHarm21Rate = iHarm21Rate;
|
||||
}
|
||||
|
||||
public Float getIHarm22Rate() {
|
||||
return IHarm22Rate;
|
||||
}
|
||||
|
||||
public void setIHarm22Rate(Float iHarm22Rate) {
|
||||
IHarm22Rate = iHarm22Rate;
|
||||
}
|
||||
|
||||
public Float getIHarm23Rate() {
|
||||
return IHarm23Rate;
|
||||
}
|
||||
|
||||
public void setIHarm23Rate(Float iHarm23Rate) {
|
||||
IHarm23Rate = iHarm23Rate;
|
||||
}
|
||||
|
||||
public Float getIHarm24Rate() {
|
||||
return IHarm24Rate;
|
||||
}
|
||||
|
||||
public void setIHarm24Rate(Float iHarm24Rate) {
|
||||
IHarm24Rate = iHarm24Rate;
|
||||
}
|
||||
|
||||
public Float getIHarm25Rate() {
|
||||
return IHarm25Rate;
|
||||
}
|
||||
|
||||
public void setIHarm25Rate(Float iHarm25Rate) {
|
||||
IHarm25Rate = iHarm25Rate;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "Statistics{" +
|
||||
"lineIndex=" + lineIndex +
|
||||
", timeID=" + timeID +
|
||||
", eventCount=" + eventCount +
|
||||
", freqDevRate=" + freqDevRate +
|
||||
", voltageDevRate=" + voltageDevRate +
|
||||
", UBalanceRate=" + UBalanceRate +
|
||||
", flickerRate=" + flickerRate +
|
||||
", UAberranceRate=" + UAberranceRate +
|
||||
", UHarm2Rate=" + UHarm2Rate +
|
||||
", UHarm3Rate=" + UHarm3Rate +
|
||||
", UHarm4Rate=" + UHarm4Rate +
|
||||
", UHarm5Rate=" + UHarm5Rate +
|
||||
", UHarm6Rate=" + UHarm6Rate +
|
||||
", UHarm7Rate=" + UHarm7Rate +
|
||||
", UHarm8Rate=" + UHarm8Rate +
|
||||
", UHarm9Rate=" + UHarm9Rate +
|
||||
", UHarm10Rate=" + UHarm10Rate +
|
||||
", UHarm11Rate=" + UHarm11Rate +
|
||||
", UHarm12Rate=" + UHarm12Rate +
|
||||
", UHarm13Rate=" + UHarm13Rate +
|
||||
", UHarm14Rate=" + UHarm14Rate +
|
||||
", UHarm15Rate=" + UHarm15Rate +
|
||||
", UHarm16Rate=" + UHarm16Rate +
|
||||
", UHarm17Rate=" + UHarm17Rate +
|
||||
", UHarm18Rate=" + UHarm18Rate +
|
||||
", UHarm19Rate=" + UHarm19Rate +
|
||||
", UHarm20Rate=" + UHarm20Rate +
|
||||
", UHarm21Rate=" + UHarm21Rate +
|
||||
", UHarm22Rate=" + UHarm22Rate +
|
||||
", UHarm23Rate=" + UHarm23Rate +
|
||||
", UHarm24Rate=" + UHarm24Rate +
|
||||
", UHarm25Rate=" + UHarm25Rate +
|
||||
", IHarm2Rate=" + IHarm2Rate +
|
||||
", IHarm3Rate=" + IHarm3Rate +
|
||||
", IHarm4Rate=" + IHarm4Rate +
|
||||
", IHarm5Rate=" + IHarm5Rate +
|
||||
", IHarm6Rate=" + IHarm6Rate +
|
||||
", IHarm7Rate=" + IHarm7Rate +
|
||||
", IHarm8Rate=" + IHarm8Rate +
|
||||
", IHarm9Rate=" + IHarm9Rate +
|
||||
", IHarm10Rate=" + IHarm10Rate +
|
||||
", IHarm11Rate=" + IHarm11Rate +
|
||||
", IHarm12Rate=" + IHarm12Rate +
|
||||
", IHarm13Rate=" + IHarm13Rate +
|
||||
", IHarm14Rate=" + IHarm14Rate +
|
||||
", IHarm15Rate=" + IHarm15Rate +
|
||||
", IHarm16Rate=" + IHarm16Rate +
|
||||
", IHarm17Rate=" + IHarm17Rate +
|
||||
", IHarm18Rate=" + IHarm18Rate +
|
||||
", IHarm19Rate=" + IHarm19Rate +
|
||||
", IHarm20Rate=" + IHarm20Rate +
|
||||
", IHarm21Rate=" + IHarm21Rate +
|
||||
", IHarm22Rate=" + IHarm22Rate +
|
||||
", IHarm23Rate=" + IHarm23Rate +
|
||||
", IHarm24Rate=" + IHarm24Rate +
|
||||
", IHarm25Rate=" + IHarm25Rate +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
package com.shining.cloud.pojo.statistics;
|
||||
|
||||
/**
|
||||
* @description:统计数据
|
||||
* @author gbl
|
||||
*
|
||||
*/
|
||||
public class StatisticsData{
|
||||
private String lineName;
|
||||
private Long time;
|
||||
private String eventDescribe;
|
||||
private String steadyDescribe;
|
||||
public String getLineName() {
|
||||
return lineName;
|
||||
}
|
||||
public void setLineName(String lineName) {
|
||||
this.lineName = lineName;
|
||||
}
|
||||
public Long getTime() {
|
||||
return time;
|
||||
}
|
||||
public void setTime(Long time) {
|
||||
this.time = time;
|
||||
}
|
||||
public String getEventDescribe() {
|
||||
return eventDescribe;
|
||||
}
|
||||
public void setEventDescribe(String eventDescribe) {
|
||||
this.eventDescribe = eventDescribe;
|
||||
}
|
||||
public String getSteadyDescribe() {
|
||||
return steadyDescribe;
|
||||
}
|
||||
public void setSteadyDescribe(String steadyDescribe) {
|
||||
this.steadyDescribe = steadyDescribe;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
package com.shining.cloud.pojo.statistics;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @description:统计数据详细信息
|
||||
* @author gbl
|
||||
*
|
||||
*/
|
||||
public class StatisticsDetail{
|
||||
private String name;
|
||||
private String steadyInfo;
|
||||
private List<StatisticsEvent> eventInfo;
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
public String getSteadyInfo() {
|
||||
return steadyInfo;
|
||||
}
|
||||
public void setSteadyInfo(String steadyInfo) {
|
||||
this.steadyInfo = steadyInfo;
|
||||
}
|
||||
public List<StatisticsEvent> getEventInfo() {
|
||||
return eventInfo;
|
||||
}
|
||||
public void setEventInfo(List<StatisticsEvent> eventInfo) {
|
||||
this.eventInfo = eventInfo;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package com.shining.cloud.pojo.statistics;
|
||||
|
||||
/**
|
||||
* @description:统计数据暂降信息
|
||||
* @author gbl
|
||||
*
|
||||
*/
|
||||
public class StatisticsEvent{
|
||||
public String describe;
|
||||
public String eventdetail_index;
|
||||
public String getDescribe() {
|
||||
return describe;
|
||||
}
|
||||
public void setDescribe(String describe) {
|
||||
this.describe = describe;
|
||||
}
|
||||
public String getEventdetail_index() {
|
||||
return eventdetail_index;
|
||||
}
|
||||
public void setEventdetail_index(String eventdetail_index) {
|
||||
this.eventdetail_index = eventdetail_index;
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.shining.cloud.pojo.user;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author hongawen
|
||||
* @date: 2019/10/30 16:01
|
||||
*/
|
||||
public class MessageResult implements Serializable {
|
||||
|
||||
private String phone;
|
||||
|
||||
private Integer eventInfo;
|
||||
|
||||
private Integer targetInfo;
|
||||
|
||||
private Integer deviceInfo;
|
||||
|
||||
private Integer systemInfo;
|
||||
|
||||
public String getPhone() {
|
||||
return phone;
|
||||
}
|
||||
|
||||
public void setPhone(String phone) {
|
||||
this.phone = phone;
|
||||
}
|
||||
|
||||
public Integer getEventInfo() {
|
||||
return eventInfo;
|
||||
}
|
||||
|
||||
public void setEventInfo(Integer eventInfo) {
|
||||
this.eventInfo = eventInfo;
|
||||
}
|
||||
|
||||
public Integer getTargetInfo() {
|
||||
return targetInfo;
|
||||
}
|
||||
|
||||
public void setTargetInfo(Integer targetInfo) {
|
||||
this.targetInfo = targetInfo;
|
||||
}
|
||||
|
||||
public Integer getDeviceInfo() {
|
||||
return deviceInfo;
|
||||
}
|
||||
|
||||
public void setDeviceInfo(Integer deviceInfo) {
|
||||
this.deviceInfo = deviceInfo;
|
||||
}
|
||||
|
||||
public Integer getSystemInfo() {
|
||||
return systemInfo;
|
||||
}
|
||||
|
||||
public void setSystemInfo(Integer systemInfo) {
|
||||
this.systemInfo = systemInfo;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
package com.shining.cloud.pojo.user;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author hongawen
|
||||
* @date: 2019/10/17 14:28
|
||||
*/
|
||||
public class UserResult implements Serializable {
|
||||
|
||||
private String userId;
|
||||
|
||||
private String roleName;
|
||||
|
||||
private String phone;
|
||||
|
||||
private String userName;
|
||||
|
||||
private String roleCode;
|
||||
|
||||
public String getPhone() {
|
||||
return phone;
|
||||
}
|
||||
|
||||
public void setPhone(String phone) {
|
||||
this.phone = phone;
|
||||
}
|
||||
|
||||
public String getUserName() {
|
||||
return userName;
|
||||
}
|
||||
|
||||
public void setUserName(String userName) {
|
||||
this.userName = userName;
|
||||
}
|
||||
|
||||
public String getRoleCode() {
|
||||
return roleCode;
|
||||
}
|
||||
|
||||
public void setRoleCode(String roleCode) {
|
||||
this.roleCode = roleCode;
|
||||
}
|
||||
|
||||
public String getUserId() {
|
||||
return userId;
|
||||
}
|
||||
|
||||
public void setUserId(String userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public String getRoleName() {
|
||||
return roleName;
|
||||
}
|
||||
|
||||
public void setRoleName(String roleName) {
|
||||
this.roleName = roleName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "UserResult{" +
|
||||
"userId='" + userId + '\'' +
|
||||
", roleName='" + roleName + '\'' +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package com.shining.cloud.service.AdminStatistic;
|
||||
|
||||
import com.shining.cloud.pojo.AdminStatistic.DataIntegrity;
|
||||
import com.shining.cloud.pojo.AdminStatistic.Integrity;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @description: DataIntegrityService
|
||||
* @author: denghuajun
|
||||
* @time: 2020-01-02 10:04:51
|
||||
**/
|
||||
|
||||
public interface DataIntegrityService {
|
||||
Integrity getIngrity(List<Integer> lineIndex);
|
||||
List<DataIntegrity> getDataIntegrity(List<Integer> lineIndex);
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package com.shining.cloud.service.AdminStatistic;
|
||||
|
||||
import com.shining.cloud.pojo.AdminStatistic.DevStatic;
|
||||
import com.shining.cloud.pojo.AdminStatistic.StaticInfo;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @description: StaticService
|
||||
* @author: denghuajun
|
||||
* @time: 2020-01-02 10:07:01
|
||||
**/
|
||||
|
||||
public interface StaticService {
|
||||
StaticInfo getStatic(List<Integer> devIndex);
|
||||
List<DevStatic> getDevStatic(List<Integer> devIndex);
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
package com.shining.cloud.service.RealTimeInfo;
|
||||
|
||||
import com.njcn.service.configuration.LineService;
|
||||
import com.shining.cloud.pojo.RealTimeInfo.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @description: 监测点信息列表Service
|
||||
* @author: denghuajun
|
||||
* @time: 2019-12-16 10:27:46
|
||||
**/
|
||||
|
||||
public interface RealTimeInfoService {
|
||||
//获取监测点详情
|
||||
LineBaseInfo getLineBaseInfo(int lineIndex);
|
||||
//实时数据
|
||||
RealTimeInfo getRealTimeInfo(int lineIndex);
|
||||
//获取默认监测点
|
||||
LineInfo getLineId(String userIndex);
|
||||
//获取定值详情数据
|
||||
HarmRateIAndV getHarmRateIAndV(int lineIndex);
|
||||
|
||||
/**
|
||||
* 前期版本,后期功能稳定可删除,
|
||||
* @author cdf
|
||||
* @date 2021/1/28
|
||||
*/
|
||||
HarmRateIAndV getRInfo(int lineIndex);
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 从redis中获取实时电流电压
|
||||
* @author cdf
|
||||
* @date 2021/2/1
|
||||
*/
|
||||
HarmRateIAndV RealRedisData(int lineIndex,int type) throws Exception;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package com.shining.cloud.service.RealTimeInfo;
|
||||
|
||||
public interface VersionService {
|
||||
String sentLine(int lineIndex);
|
||||
|
||||
String getInfoBySocket(int lineIndex);
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package com.shining.cloud.service.information;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import com.shining.cloud.pojo.information.DevComInfo;
|
||||
import com.shining.cloud.pojo.information.DevComTJ;
|
||||
import com.shining.cloud.pojo.information.DevMsgAssInfo;
|
||||
import com.shining.cloud.pojo.information.DevMsgDetailInfo;
|
||||
|
||||
/**
|
||||
* @description: 终端消息详情Service
|
||||
* @author: denghuajun
|
||||
* @time: 2019-10-17 14:12:01
|
||||
**/
|
||||
|
||||
public interface DevMsgAssService {
|
||||
List<DevMsgDetailInfo> deviceList(String devMsgIndex, int page, int num);
|
||||
|
||||
int state(String userIndex);
|
||||
|
||||
DevMsgAssInfo devMsgInfo(int devIndex, Date timeID);
|
||||
|
||||
List<DevComInfo> getDevComInfo(String userId);
|
||||
|
||||
DevComTJ getDevComTJ(String userId);
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.shining.cloud.service.information;
|
||||
|
||||
import com.shining.cloud.pojo.information.DevMsgDetail;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @description: 终端消息Service
|
||||
* @author: denghuajun
|
||||
* @time: 2019-10-17 14:11:21
|
||||
**/
|
||||
|
||||
public interface DevMsgService {
|
||||
List<DevMsgDetail> deviceMsgList(String userIndex,int page,int num);
|
||||
int unState(String userIndex);
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package com.shining.cloud.service.information;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
|
||||
import com.njcn.pojo.commons.EventEigDetail;
|
||||
import com.njcn.pojo.commons.EventInfoDetail;
|
||||
import com.njcn.pojo.commons.WaveData;
|
||||
import com.shining.cloud.pojo.information.EventWaveDetail;
|
||||
|
||||
/**
|
||||
* @description: 暂态消息详情Service
|
||||
* @author: denghuajun
|
||||
* @time: 2019-10-17 14:12:37
|
||||
**/
|
||||
|
||||
public interface EventInfoService {
|
||||
EventInfoDetail eventDetailBaseInfo(String eventMsgIndex);
|
||||
List<EventEigDetail> eventDetailEigenvalue(String eventDetailIndex) throws Exception;
|
||||
EventWaveDetail eventDetailWave(String eventDetailIndex, HttpServletRequest request) throws Exception;
|
||||
int eventDetailEvaluate(String eventDetailIndex,int evaluate,String userIndex);
|
||||
EventInfoDetail eventDetailBaseInfoByIndex(String eventdetailIndex);
|
||||
|
||||
int backNumber();
|
||||
|
||||
List<EventEigDetail> reportEigen(String eventDetailIndex,WaveData waveData) throws Exception;
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package com.shining.cloud.service.information;
|
||||
|
||||
import com.shining.cloud.pojo.information.EventMsgDetail;
|
||||
|
||||
import javax.security.auth.login.AccountException;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @description: 暂态消息Service
|
||||
* @author: denghuajun
|
||||
* @time: 2019-10-17 14:09:47
|
||||
**/
|
||||
|
||||
public interface EventMsgService {
|
||||
List<EventMsgDetail> eventDetailList(String userIndex, int page, int num);
|
||||
List<EventMsgDetail> eventDetailAppList(String userIndex, int page, int num);
|
||||
int getUnState(String userIndex);
|
||||
|
||||
void sendEventMsg(String eventDetailIndex,int lineId, HttpServletRequest request) throws Exception;
|
||||
|
||||
String sendSteadyMsg(String userIndex, Long timeID, Integer lineNum) throws AccountException;
|
||||
|
||||
String sendTargetMsg(String userIndex, Long timeID,Integer devNum, Integer alarmNum, Integer comOutNum, Float flowNum,int flag) throws Exception;
|
||||
|
||||
void sendTerminalMsg(Date date, String userIndex, Integer devNum, Integer alarmNum,Integer comOutNum) throws Exception;
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package com.shining.cloud.service.information;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
|
||||
import com.njcn.pojo.commons.WaveData;
|
||||
import com.njcn.pojo.wave.WaveDataDetail;
|
||||
import com.shining.cloud.pojo.information.SteadyMsg;
|
||||
import com.shining.cloud.pojo.information.SteadyMsgDetail;
|
||||
import com.shining.cloud.pojo.information.SteadyTarget;
|
||||
import com.shining.cloud.pojo.information.SteadyUrl;
|
||||
|
||||
/**
|
||||
* @description: 稳态消息详情Service
|
||||
* @author: denghuajun
|
||||
* @time: 2019-10-17 14:13:17
|
||||
**/
|
||||
|
||||
public interface SteadyAssService {
|
||||
/**
|
||||
* @description:获取稳态越限列表
|
||||
* @author gbl
|
||||
* @param userId
|
||||
* @param page
|
||||
* @param num
|
||||
* @return SteadyMsg
|
||||
*/
|
||||
public List<SteadyMsg> getSteadyState(String userId, int page, int num);
|
||||
|
||||
/**
|
||||
* @description:获取稳态越限列表详情
|
||||
* @author gbl
|
||||
* @param steadyIndex
|
||||
* @return SteadyMsgDetail
|
||||
*/
|
||||
public List<SteadyMsgDetail> getSteadyDetail(String steadyIndex);
|
||||
|
||||
/**
|
||||
* @description:获取稳态越限指标
|
||||
* @param lineIndex
|
||||
* @param timeId
|
||||
* @return SteadyTarget
|
||||
*/
|
||||
public List<SteadyTarget> getSteadyTarget(int lineIndex,Date timeId);
|
||||
|
||||
/**
|
||||
* @description:获取稳态越限指标图形
|
||||
* @param lineIndex
|
||||
* @param timeId
|
||||
* @param typeCode
|
||||
* @return SteadyUrl
|
||||
*/
|
||||
public SteadyUrl getSteadyTargetUrl(int lineIndex,Date timeId,int typeCode);
|
||||
|
||||
public SteadyUrl getUrl(HttpServletRequest request,int lineIndex,Date timeId,int typeCode);
|
||||
|
||||
void generateImageShun(WaveData waveData, List<WaveDataDetail> waveDataDetails, String s, String path) throws Exception;
|
||||
|
||||
void generateImageRMS(WaveData waveData, List<WaveDataDetail> waveDataDetails, String path, String rmspath) throws Exception;
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user