Commit 0e7a9309 authored by 李成龙's avatar 李成龙

增加特种设备对接工程

parent 38285704
...@@ -57,7 +57,8 @@ public class ControllerAop { ...@@ -57,7 +57,8 @@ public class ControllerAop {
@Pointcut("(execution(public * com.yeejoin.amos.boot.module..*.biz.controller..*(..))" @Pointcut("(execution(public * com.yeejoin.amos.boot.module..*.biz.controller..*(..))"
+ "|| execution(public * com.yeejoin.amos.*.business.controller..*(..))" + "|| execution(public * com.yeejoin.amos.*.business.controller..*(..))"
+ " && !@annotation(org.springframework.scheduling.annotation.Scheduled))" + " && !@annotation(org.springframework.scheduling.annotation.Scheduled))"
+ "|| execution(public * com.yeejoin.equipmanage.controller..*.*(..))") + "|| execution(public * com.yeejoin.equipmanage.controller..*.*(..))"
+ "||execution(public * com.yeejoin.amos.api.openapi.controller..*(..))")
public void userCache() { public void userCache() {
} }
...@@ -68,7 +69,8 @@ public class ControllerAop { ...@@ -68,7 +69,8 @@ public class ControllerAop {
HttpServletRequest request = attributes.getRequest(); HttpServletRequest request = attributes.getRequest();
// 不需要添加请求头的接口 // 不需要添加请求头的接口
String[] url = new String[]{"/api/user/save/curCompany", "/jcs/command/lookHtmlText", String[] url = new String[]{"/api/user/save/curCompany", "/jcs/command/lookHtmlText",
"/jcs/common/duty-person/findByDutyAreaId", "/tzs/wechatBack", "/tzs/elevator/getElevatorInfo"}; "/jcs/common/duty-person/findByDutyAreaId", "/tzs/wechatBack", "/tzs/elevator/getElevatorInfo",
"/openapi/bizToken/applyToken"};
// 获取请求路径 // 获取请求路径
for (String uri : url) { for (String uri : url) {
if (request.getRequestURI().indexOf(uri) != -1) { if (request.getRequestURI().indexOf(uri) != -1) {
......
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>amos-boot-data</artifactId>
<groupId>com.amosframework.boot</groupId>
<version>1.0.0</version>
</parent>
<groupId>com.amosframework.boot</groupId>
<artifactId>amos-boot-data-common</artifactId>
<version>1.0.0</version>
<name>amos-boot-data-common</name>
<!-- FIXME change it to the project's website -->
<url>http://www.example.com</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
</properties>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
<plugins>
<!-- clean lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#clean_Lifecycle -->
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<version>3.1.0</version>
</plugin>
<!-- default lifecycle, jar packaging: see https://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_jar_packaging -->
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>3.0.2</version>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.0</version>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.1</version>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>3.0.2</version>
</plugin>
<plugin>
<artifactId>maven-install-plugin</artifactId>
<version>2.5.2</version>
</plugin>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
</plugin>
<!-- site lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#site_Lifecycle -->
<plugin>
<artifactId>maven-site-plugin</artifactId>
<version>3.7.1</version>
</plugin>
<plugin>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>3.0.0</version>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>amos-boot-data</artifactId>
<groupId>com.amosframework.boot</groupId>
<version>1.0.0</version>
</parent>
<groupId>com.amosframework.boot</groupId>
<artifactId>amos-boot-data-openapi</artifactId>
<version>1.0.0</version>
<name>amos-boot-data-openapi</name>
<dependencies>
<dependency>
<groupId>com.amosframework.boot</groupId>
<artifactId>amos-boot-biz-common</artifactId>
<version>${amos-biz-boot.version}</version>
</dependency>
<dependency>
<groupId>org.typroject</groupId>
<artifactId>tyboot-component-event</artifactId>
<version>${tyboot-version}</version>
<exclusions>
<exclusion>
<groupId>org.typroject</groupId>
<artifactId>*</artifactId>
</exclusion>
<exclusion>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger2</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.typroject</groupId>
<artifactId>tyboot-component-emq</artifactId>
<version>${tyboot-version}</version>
</dependency>
<dependency>
<groupId>org.typroject</groupId>
<artifactId>tyboot-component-opendata</artifactId>
<version>${tyboot-version}</version>
<exclusions>
<exclusion>
<groupId>org.typroject</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.yeejoin</groupId>
<artifactId>amos-feign-systemctl</artifactId>
<version>${amos.version}</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
package com.yeejoin.amos;
import java.net.InetAddress;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.core.env.Environment;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.typroject.tyboot.core.restful.exception.GlobalExceptionHandler;
/**
*
* <pre>
*
* </pre>
*
* @author gwb
* @version $Id: OpenapiApplication.java, v 0.1 2021年9月27日 下午3:29:30 gwb Exp $
*/
@SpringBootApplication
@EnableTransactionManagement
@EnableConfigurationProperties
@ServletComponentScan
@EnableDiscoveryClient
@EnableFeignClients
@EnableAsync
@EnableEurekaClient
@MapperScan(value = { "org.typroject.tyboot.*.*.face.orm.dao", "com.yeejoin.amos.api.*.face.orm.dao", "org.typroject.tyboot.face.*.orm.dao*",
"com.yeejoin.amos.boot.biz.common.dao.mapper" })
@ComponentScan({ "org.typroject", "com.yeejoin.amos" })
public class OpenapiApplication {
private static final Logger logger = LogManager.getLogger(OpenapiApplication.class);
public static void main(String[] args) throws Exception {
// //license授权验证
// System.setProperty("root.path",ClassPathUtil.getPath()+"/config");
// log.info("(license.bat)url:" + ClassPathUtil.getPath()+"/config");
// A.v();
// 服务启动
ConfigurableApplicationContext context = SpringApplication.run(OpenapiApplication.class, args);
GlobalExceptionHandler.setAlwaysOk(true);
Environment env = context.getEnvironment();
String ip = InetAddress.getLocalHost().getHostAddress();
String port = env.getProperty("server.port");
String path = env.getProperty("server.servlet.context-path");
logger.info("\n----------------------------------------------------------\n\t"
+ "Application Amos-Biz-Boot is running! Access URLs:\n\t" + "Swagger文档: \thttp://" + ip + ":" + port
+ path + "/doc.html\n" + "----------------------------------------------------------");
}
}
package com.yeejoin.amos.api.common.restful.utils;
import org.springframework.http.HttpStatus;
public class ResponseHelper
{
public static <T> ResponseModel<T> buildResponse(T t) {
ResponseModel<T> response = new ResponseModel<>();
response.setResult(t);
response.setMessage("ok");
response.setStatus(HttpStatus.OK.value());
return response;
}
}
package com.yeejoin.amos.api.common.restful.utils;
import java.io.Serializable;
/**
*
* <pre>
* 返回封装对象
* </pre>
*
* @author gwb
* @version $Id: CommonResponse.java, v 0.1 2021年9月28日 下午4:37:40 gwb Exp $
*/
public class ResponseModel<T> implements Serializable {
/**
* <pre>
*
* </pre>
*/
private static final long serialVersionUID = 2969089929549147825L;
/**
* 响应数据
*/
private T result ;
/**
* 状态码
*/
private int status;
/**
* 提示信息
*/
private String message = "";
public ResponseModel(){
}
public T getResult()
{
return result;
}
public void setResult(T result)
{
this.result = result;
}
public int getStatus()
{
return status;
}
public void setStatus(int status)
{
this.status = status;
}
public String getMessage()
{
return message;
}
public void setMessage(String message)
{
this.message = message;
}
@Override
public String toString()
{
return "CommonResponse [status=" + status + ", result=" + result + ", message=" + message + "]";
}
}
//package com.yeejoin.amos.api.openapi.aop;
//
//import javax.servlet.http.HttpServletRequest;
//
//import org.aspectj.lang.JoinPoint;
//import org.aspectj.lang.annotation.Aspect;
//import org.aspectj.lang.annotation.Before;
//import org.aspectj.lang.annotation.Pointcut;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.core.annotation.Order;
//import org.springframework.data.redis.core.RedisTemplate;
//import org.springframework.stereotype.Component;
//import org.springframework.web.context.request.RequestContextHolder;
//import org.springframework.web.context.request.ServletRequestAttributes;
//import org.typroject.tyboot.component.cache.Redis;
//import org.typroject.tyboot.core.auth.exception.AuthException;
//import org.typroject.tyboot.core.foundation.context.RequestContext;
//import org.typroject.tyboot.core.foundation.utils.ValidationUtil;
//
//import com.yeejoin.amos.api.openapi.constant.Constant;
//import com.yeejoin.amos.api.openapi.face.model.BizTokenModel;
//import com.yeejoin.amos.component.feign.config.TokenOperation;
//
//@Aspect
//@Component
//@Order(value = 0)
//public class ControllerAop {
//
// @Autowired
// private RedisTemplate redisTemplate;
//
// @Pointcut("(execution(public * com.yeejoin.amos.api.openapi.controller..*(..))) ")
// public void userCache() {
//
// }
//
// @Before("userCache()")
// public void doBefore(JoinPoint joinPoint) {
// ServletRequestAttributes attributes = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes();
// HttpServletRequest request = attributes.getRequest();
// // 不需要添加请求头的接口
// String[] url = new String[]{"/api/user/selectInfo", "/api/user/save/curCompany","/openapi/bizToken/applyToken","/openapi/bizToken/getAppId","/lift/upload","/lift/status","/lift/run","/lift/fault","/lift/video/preview"};
// // 获取请求路径
// for(String uri : url) {
// if(request.getRequestURI().indexOf(uri) != -1) {
// return;
// }
// }
// //TODO tyboot 框架拦截器已缓存数据
// String token = RequestContext.getToken();
// if (ValidationUtil.isEmpty(token)) {
// token = request.getParameterMap().get("access_token")[0];
// }
// if (token != null) {
// fillRequestContext(token);
// }
// boolean validToken = TokenOperation.refresh(token);
// if(!validToken) {
// throw new AuthException("请求未包含认证信息.");
// }
// }
//
//
// private void fillRequestContext(String token) {
// String tokenKey = Redis.genKey(Constant.TOKEN_PREFIX,token);
// BizTokenModel bizTokenModel = (BizTokenModel) redisTemplate.opsForValue().get(tokenKey);
// if(null == bizTokenModel) {
// throw new AuthException("请求未包含认证信息.");
// }
// String product = bizTokenModel.getProduct();
// String appKey = bizTokenModel.getAppKey();
// RequestContext.setToken(token);
// RequestContext.setProduct(product);
// RequestContext.setAppKey(appKey);
// }
//}
package com.yeejoin.amos.api.openapi.constant;
public class Constant {
public static final String TOKEN_PREFIX = "OPENAPI_";
public static final String SECRETKEY = "tzs";
}
package com.yeejoin.amos.api.openapi.controller;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import com.yeejoin.amos.api.openapi.constant.Constant;
import com.yeejoin.amos.feign.privilege.util.DesUtil;
public class AppIdMain {
private static final Logger logger = LogManager.getLogger(AppIdMain.class);
public static void main(String[] args) {
String appId = DesUtil.encode("000007", Constant.SECRETKEY);
logger.info("appId信息:", appId);
System.out.println("appId信息:" + appId);
}
}
package com.yeejoin.amos.api.openapi.controller;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.typroject.tyboot.component.event.RestEventTrigger;
import org.typroject.tyboot.core.foundation.enumeration.UserType;
import org.typroject.tyboot.core.foundation.utils.ValidationUtil;
import org.typroject.tyboot.core.restful.doc.TycloudOperation;
import org.typroject.tyboot.core.restful.doc.TycloudResource;
import org.typroject.tyboot.core.restful.exception.instance.BadRequest;
import com.yeejoin.amos.api.common.restful.utils.ResponseHelper;
import com.yeejoin.amos.api.common.restful.utils.ResponseModel;
import com.yeejoin.amos.api.openapi.face.model.CylinderFillingCheckModel;
import com.yeejoin.amos.api.openapi.face.model.CylinderFillingExamineModel;
import com.yeejoin.amos.api.openapi.face.model.CylinderFillingExamineModelList;
import com.yeejoin.amos.api.openapi.face.model.CylinderFillingModel;
import com.yeejoin.amos.api.openapi.face.model.CylinderFillingModelList;
import com.yeejoin.amos.api.openapi.face.model.CylinderFillingRecordModel;
import com.yeejoin.amos.api.openapi.face.model.CylinderInfoModel;
import com.yeejoin.amos.api.openapi.face.model.CylinderInfoModelList;
import com.yeejoin.amos.api.openapi.face.model.CylinderInspectionModel;
import com.yeejoin.amos.api.openapi.face.model.CylinderInspectionModelList;
import com.yeejoin.amos.api.openapi.face.model.CylinderTagsModel;
import com.yeejoin.amos.api.openapi.face.model.CylinderTagsModelList;
import com.yeejoin.amos.api.openapi.face.model.CylinderUnitModel;
import com.yeejoin.amos.api.openapi.face.model.CylinderUnitModelList;
import com.yeejoin.amos.api.openapi.face.service.CylinderFillingCheckService;
import com.yeejoin.amos.api.openapi.face.service.CylinderFillingExamineService;
import com.yeejoin.amos.api.openapi.face.service.CylinderFillingRecordService;
import com.yeejoin.amos.api.openapi.face.service.CylinderFillingService;
import com.yeejoin.amos.api.openapi.face.service.CylinderInfoService;
import com.yeejoin.amos.api.openapi.face.service.CylinderInspectionService;
import com.yeejoin.amos.api.openapi.face.service.CylinderTagsService;
import com.yeejoin.amos.api.openapi.face.service.CylinderUnitService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import net.sf.json.JSONObject;
@RestController
@TycloudResource(module = "openapi", value = "cylinder")
@RequestMapping(value = "/cylinder")
@Api(tags = "cylinder-气瓶数据对接")
public class CylinderController {
private static final Logger logger = LogManager.getLogger(CylinderController.class);
@Autowired
private CylinderUnitService cylinderUnitService;
@Autowired
private CylinderFillingCheckService cylinderFillingCheckService;
@Autowired
private CylinderFillingExamineService cylinderFillingExamineService;
@Autowired
private CylinderFillingRecordService cylinderFillingRecordService;
@Autowired
private CylinderFillingService cylinderFillingService;
@Autowired
private CylinderInfoService cylinderInfoService;
@Autowired
private CylinderInspectionService cylinderInspectionService;
@Autowired
private CylinderTagsService cylinderTagsService;
@TycloudOperation(ApiLevel = UserType.AGENCY, needAuth = false)
@ApiOperation(value = "气瓶企业信息")
@PostMapping(value = "/unit")
@RestEventTrigger(value = "openapiLogEventHandler")
public ResponseModel<String> cylinderUnit(@RequestBody String unitData) throws Exception {
logger.info(unitData);
JSONObject jsonobject = JSONObject.fromObject(unitData);
Map<String, Class> classMap = new HashMap<String, Class>();
classMap.put("unit", CylinderUnitModel.class);
CylinderUnitModelList cylinderUnitModelList = (CylinderUnitModelList) JSONObject.toBean(jsonobject,
CylinderUnitModelList.class, classMap);
cylinderUnitService.createCylinderUnit(cylinderUnitModelList.getUnit());
return ResponseHelper.buildResponse("");
}
@TycloudOperation(ApiLevel = UserType.AGENCY, needAuth = false)
@ApiOperation(value = "气瓶基础数据")
@PostMapping(value = "/info")
@RestEventTrigger(value = "openapiLogEventHandler")
public ResponseModel<String> cylinderInfo(@RequestBody String infoData) throws Exception {
logger.info(infoData);
JSONObject jsonobject = JSONObject.fromObject(infoData);
Map<String, Class> classMap = new HashMap<String, Class>();
classMap.put("info", CylinderInfoModel.class);
CylinderInfoModelList cylinderInfoModelList = (CylinderInfoModelList) JSONObject.toBean(jsonobject,
CylinderInfoModelList.class, classMap);
cylinderInfoService.createCylinderInfo(cylinderInfoModelList.getInfo());
return ResponseHelper.buildResponse("");
}
@TycloudOperation(ApiLevel = UserType.AGENCY, needAuth = false)
@ApiOperation(value = "气瓶标签数据")
@PostMapping(value = "/tag")
@RestEventTrigger(value = "openapiLogEventHandler")
public ResponseModel<String> cylinderTagInfo(@RequestBody String tagData) throws Exception {
logger.info(tagData);
JSONObject jsonobject = JSONObject.fromObject(tagData);
Map<String, Class> classMap = new HashMap<String, Class>();
classMap.put("tag", CylinderTagsModel.class);
CylinderTagsModelList cylinderTagsModelList = (CylinderTagsModelList) JSONObject.toBean(jsonobject,
CylinderTagsModelList.class, classMap);
cylinderTagsService.createCylinderTag(cylinderTagsModelList.getTag());
return ResponseHelper.buildResponse("");
}
@TycloudOperation(ApiLevel = UserType.AGENCY, needAuth = false)
@ApiOperation(value = "气瓶检验数据")
@PostMapping(value = "/inspection")
@RestEventTrigger(value = "openapiLogEventHandler")
public ResponseModel<String> cylinderInspectionInfo(@RequestBody String inspectionData) throws Exception {
logger.info(inspectionData);
JSONObject jsonobject = JSONObject.fromObject(inspectionData);
Map<String, Class> classMap = new HashMap<String, Class>();
classMap.put("inspection", CylinderInspectionModel.class);
CylinderInspectionModelList cylinderInspectionModelList = (CylinderInspectionModelList) JSONObject
.toBean(jsonobject, CylinderInspectionModelList.class, classMap);
cylinderInspectionService.createCylinderInspection(cylinderInspectionModelList.getInspection());
return ResponseHelper.buildResponse("");
}
@TycloudOperation(ApiLevel = UserType.AGENCY, needAuth = false)
@ApiOperation(value = "气瓶充装数据")
@PostMapping(value = "/filling")
@RestEventTrigger(value = "openapiLogEventHandler")
public ResponseModel<String> cylinderFillingInfo(@RequestBody String fillingData) throws Exception {
logger.info(fillingData);
JSONObject jsonobject = JSONObject.fromObject(fillingData);
Map<String, Class> classMap = new HashMap<String, Class>();
classMap.put("fillingBefore", CylinderFillingModel.class);
classMap.put("filling", CylinderFillingRecordModel.class);
classMap.put("fillingAfter", CylinderFillingCheckModel.class);
CylinderFillingModelList cylinderFillingModelList = (CylinderFillingModelList) JSONObject.toBean(jsonobject,
CylinderFillingModelList.class, classMap);
List<CylinderFillingModel> fillingBefores = cylinderFillingModelList.getFillingBefore();
List<CylinderFillingRecordModel> fillings = cylinderFillingModelList.getFilling();
List<CylinderFillingCheckModel> fillingAfters = cylinderFillingModelList.getFillingAfter();
if (ValidationUtil.isEmpty(fillingBefores) && ValidationUtil.isEmpty(fillings) && ValidationUtil.isEmpty(fillingAfters)) {
throw new BadRequest("液化气体气瓶充装信息-充装前检查信息、液化气体气瓶充装信息-充装记录信息、液化气体气瓶充装信息-充装后复查信息为空.");
}
cylinderFillingService.createCylinderFillingBefore(fillingBefores);
cylinderFillingRecordService.createCylinderFilling(fillings);
cylinderFillingCheckService.createCylinderFillingAfter(fillingAfters);
// if (ValidationUtil.isEmpty(fillings)) {
// throw new BadRequest("液化气体气瓶充装信息-充装记录信息为空.");
// }else {
// }
// if (ValidationUtil.isEmpty(fillingAfters)) {
// throw new BadRequest("液化气体气瓶充装信息-充装后复查信息为空.");
// }else {
// }
return ResponseHelper.buildResponse("");
}
@TycloudOperation(ApiLevel = UserType.AGENCY, needAuth = false)
@ApiOperation(value = "气瓶充装审核数据")
@PostMapping(value = "/fillingAudit")
@RestEventTrigger(value = "openapiLogEventHandler")
public ResponseModel<String> cylinderFillingAudit(@RequestBody String fillingAuditData) throws Exception {
logger.info(fillingAuditData);
JSONObject jsonobject = JSONObject.fromObject(fillingAuditData);
Map<String, Class> classMap = new HashMap<String, Class>();
classMap.put("fillingAudit", CylinderFillingExamineModel.class);
CylinderFillingExamineModelList cylinderFillingExamineModelList = (CylinderFillingExamineModelList) JSONObject
.toBean(jsonobject, CylinderFillingExamineModelList.class, classMap);
cylinderFillingExamineService.createCylinderFillingExamine(cylinderFillingExamineModelList.getFillingAudit());
return ResponseHelper.buildResponse("");
}
}
package com.yeejoin.amos.api.openapi.controller;
import java.util.Iterator;
import java.util.Map;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;
import org.typroject.tyboot.core.foundation.enumeration.UserType;
import org.typroject.tyboot.core.foundation.utils.ValidationUtil;
import org.typroject.tyboot.core.restful.doc.TycloudOperation;
import org.typroject.tyboot.core.restful.doc.TycloudResource;
import org.typroject.tyboot.core.restful.exception.instance.BadRequest;
import com.yeejoin.amos.api.common.restful.utils.ResponseHelper;
import com.yeejoin.amos.api.common.restful.utils.ResponseModel;
import com.yeejoin.amos.component.feign.model.FeignClientResult;
import com.yeejoin.amos.feign.systemctl.Systemctl;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import net.sf.json.JSONObject;
@RestController
@TycloudResource(module = "openapi", value = "filestorage")
@RequestMapping(value = "/filestorage")
@Api(tags = "filestorage-上传附件数据对接")
public class FilesController {
private static final Logger logger = LogManager.getLogger(FilesController.class);
@TycloudOperation(ApiLevel = UserType.AGENCY, needAuth = false)
@ApiOperation(value = "气瓶充装审核数据")
@PostMapping(value = "/")
public ResponseModel<String> uploadCylinderFiles (
@RequestBody MultipartFile file) throws Exception
{
logger.info(file);
JSONObject jsonObj = uploadFile(file,"cylinder");
return ResponseHelper.buildResponse(jsonObj.toString());
}
@TycloudOperation(ApiLevel = UserType.AGENCY, needAuth = false)
@ApiOperation(value = "检验报告数据")
@PostMapping(value = "/csei")
public ResponseModel<String> uploadCseiFiles (
@RequestBody MultipartFile file) throws Exception
{
logger.info(file);
JSONObject jsonObj = uploadFile(file,"csei");
return ResponseHelper.buildResponse(jsonObj.toString());
}
private JSONObject uploadFile(MultipartFile file,String tag) {
if (ValidationUtil.isEmpty(file)){
throw new BadRequest("参数校验失败.");
}
FeignClientResult<Map<String, String>> date = Systemctl.fileStorageClient.updateCommonFileFree(file, "tzs/"+tag);
JSONObject jsonObj = new JSONObject();
if (date != null) {
Map<String, String> map = date.getResult();
Iterator<String> it = map.keySet().iterator();
while (it.hasNext()) {
String urlString=it.next();
jsonObj.put("fileUrl", urlString);
jsonObj.put("fileName", map.get(urlString));
}
}
return jsonObj;
}
}
package com.yeejoin.amos.api.openapi.controller;
import java.util.HashMap;
import java.util.Map;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import org.typroject.tyboot.component.event.RestEventTrigger;
import org.typroject.tyboot.core.foundation.enumeration.UserType;
import org.typroject.tyboot.core.restful.doc.TycloudOperation;
import org.typroject.tyboot.core.restful.doc.TycloudResource;
import com.yeejoin.amos.api.common.restful.utils.ResponseHelper;
import com.yeejoin.amos.api.common.restful.utils.ResponseModel;
import com.yeejoin.amos.api.openapi.face.model.InspectionModel;
import com.yeejoin.amos.api.openapi.face.model.InspectionModelList;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import net.sf.json.JSONObject;
/**
*
* <pre>
* 特种设备检验对接
* </pre>
*
* @author gwb
* @version $Id: InspectionController.java, v 0.1 2021年11月8日 下午6:47:54 gwb Exp $
*/
@RestController
@TycloudResource(module = "openapi", value = "inspection")
@RequestMapping(value = "/v1/inspection")
@Api(tags = "inspection-特种设备检验对接")
public class InspectionController
{
private static final Logger logger = LogManager.getLogger(InspectionController.class);
@SuppressWarnings("rawtypes")
@TycloudOperation(ApiLevel = UserType.AGENCY, needAuth = false)
@ApiOperation(value = "设备检验数据上传")
@RequestMapping(value = "sendData", method = RequestMethod.POST)
@RestEventTrigger(value = "openapiLogEventHandler")
public ResponseModel<String> multUploadInspectionData (
@RequestBody String inspectionModelData) throws Exception
{
logger.info(inspectionModelData);
JSONObject jsonobject = JSONObject.fromObject(inspectionModelData);
Map<String, Class> classMap = new HashMap<String, Class>();
classMap.put("data", InspectionModel.class);
InspectionModelList inspectionModelList = (InspectionModelList)JSONObject.toBean(jsonobject,InspectionModelList.class,classMap);
return ResponseHelper.buildResponse("");
}
}
package com.yeejoin.amos.api.openapi.controller;
import java.util.HashMap;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.typroject.tyboot.component.event.RestEventTrigger;
import org.typroject.tyboot.core.foundation.enumeration.UserType;
import org.typroject.tyboot.core.foundation.utils.ValidationUtil;
import org.typroject.tyboot.core.restful.doc.TycloudOperation;
import org.typroject.tyboot.core.restful.doc.TycloudResource;
import com.yeejoin.amos.api.common.restful.utils.ResponseHelper;
import com.yeejoin.amos.api.common.restful.utils.ResponseModel;
import com.yeejoin.amos.api.openapi.face.model.ElevatorAlarmModel;
import com.yeejoin.amos.api.openapi.face.model.ElevatorAlarmModelList;
import com.yeejoin.amos.api.openapi.face.model.ElevatorStatusModel;
import com.yeejoin.amos.api.openapi.face.model.ElevatorStatusModelList;
import com.yeejoin.amos.api.openapi.face.model.ElevatorVideoModel;
import com.yeejoin.amos.api.openapi.face.service.ElevatorAlarmService;
import com.yeejoin.amos.api.openapi.face.service.ElevatorStatusService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import net.sf.json.JSONObject;
/**
*
* <pre>
* 电梯物联对接
* </pre>
*
* @author gwb
* @version $Id: ElevatorStatusController.java, v 0.1 2021年9月28日 上午9:11:38 gwb Exp $
*/
@RestController
@TycloudResource(module = "openapi", value = "lift")
@RequestMapping(value = "/lift")
@Api(tags = "lift-电梯物联对接")
public class LiftController
{
@Autowired
private ElevatorStatusService elevatorStatusService;
@Autowired
private ElevatorAlarmService elevatorAlarmService;
@TycloudOperation(ApiLevel = UserType.AGENCY, needAuth = false)
@ApiOperation(value = "电梯运行状态数据高频上传请求")
@RequestMapping(value = "upload/{registerCode}", method = RequestMethod.GET)
@RestEventTrigger(value = "openapiLogEventHandler")
public ResponseModel<String> highUpload (
@PathVariable(value = "registerCode") String registerCode) throws Exception
{
elevatorStatusService.highUpload(registerCode);
return ResponseHelper.buildResponse("");
}
@TycloudOperation(ApiLevel = UserType.AGENCY, needAuth = false)
@ApiOperation(value = "获取最近一次电梯运行状态数据")
@RequestMapping(value = "status/{registerCode}", method = RequestMethod.GET)
@RestEventTrigger(value = "openapiLogEventHandler")
public ResponseModel<ElevatorStatusModel> getLatelyStatus (
@PathVariable(value = "registerCode") String registerCode,
@RequestParam(value = "highUpload", required = false) Boolean highUpload) throws Exception
{
//默认状态数据不进行高频上传
if (ValidationUtil.isEmpty(highUpload))
{
highUpload = false;
}
return ResponseHelper.buildResponse(elevatorStatusService.getLatelyStatus(registerCode, highUpload));
}
@SuppressWarnings("rawtypes")
@TycloudOperation(ApiLevel = UserType.AGENCY, needAuth = false)
@ApiOperation(value = "电梯运行状态数据上传")
@RequestMapping(value = "run", method = RequestMethod.POST)
@RestEventTrigger(value = "openapiLogEventHandler")
public ResponseModel<String> multUploadRunData (
@RequestParam(value = "access_token", required = false) String access_token,
@RequestBody String runStatusData) throws Exception
{
JSONObject jsonobject = JSONObject.fromObject(runStatusData);
Map<String, Class> classMap = new HashMap<String, Class>();
classMap.put("lift", ElevatorStatusModel.class);
ElevatorStatusModelList elevatorStatusModelList = (ElevatorStatusModelList)JSONObject.toBean(jsonobject,ElevatorStatusModelList.class,classMap);
elevatorStatusService.multCreateElevatorStatus(elevatorStatusModelList.getLift());
return ResponseHelper.buildResponse("");
}
@SuppressWarnings("rawtypes")
@TycloudOperation(ApiLevel = UserType.AGENCY, needAuth = false)
@ApiOperation(value = "电梯故障数据上传")
@RequestMapping(value = "fault", method = RequestMethod.POST)
@RestEventTrigger(value = "openapiLogEventHandler")
public ResponseModel<String> multUploadAlarmData (
@RequestParam(value = "access_token", required = false) String access_token,
@RequestBody String faultData) throws Exception
{
JSONObject jsonobject = JSONObject.fromObject(faultData);
Map<String, Class> classMap = new HashMap<String, Class>();
classMap.put("lift", ElevatorAlarmModel.class);
ElevatorAlarmModelList elevatorAlarmModelList = (ElevatorAlarmModelList)JSONObject.toBean(jsonobject,ElevatorAlarmModelList.class,classMap);
elevatorAlarmService.multCreateElevatorAlarm(elevatorAlarmModelList.getLift());
return ResponseHelper.buildResponse("");
}
@TycloudOperation(ApiLevel = UserType.AGENCY, needAuth = false)
@ApiOperation(value = "获取电梯视频预览地址")
@RequestMapping(value = "video/preview/{registerCode}", method = RequestMethod.GET)
@RestEventTrigger(value = "openapiLogEventHandler")
public ResponseModel<ElevatorVideoModel> videoPreview (
@PathVariable(value = "registerCode") String registerCode) throws Exception
{
ElevatorVideoModel elevatorVideoModel = elevatorStatusService.videoPreview(registerCode);
return ResponseHelper.buildResponse(elevatorVideoModel);
}
}
package com.yeejoin.amos.api.openapi.controller;
import java.util.HashMap;
import java.util.Map;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.typroject.tyboot.component.event.RestEventTrigger;
import org.typroject.tyboot.core.foundation.enumeration.UserType;
import org.typroject.tyboot.core.restful.doc.TycloudOperation;
import org.typroject.tyboot.core.restful.doc.TycloudResource;
import com.yeejoin.amos.api.common.restful.utils.ResponseHelper;
import com.yeejoin.amos.api.common.restful.utils.ResponseModel;
import com.yeejoin.amos.api.openapi.constant.Constant;
import com.yeejoin.amos.api.openapi.face.model.InspectionModel;
import com.yeejoin.amos.api.openapi.face.model.InspectionModelList;
import com.yeejoin.amos.api.openapi.face.service.ElevatorStatusService;
import com.yeejoin.amos.api.openapi.face.service.OpenapiBizTokenService;
import com.yeejoin.amos.feign.privilege.util.DesUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import net.sf.json.JSONObject;
/**
*
* <pre>
* 企业数据对接票据管理
* </pre>
*
* @author gwb
* @version $Id: InspectionController.java, v 0.1 2021年11月8日 下午6:47:54 gwb Exp $
*/
@RestController
@TycloudResource(module = "openapi", value = "bizToken")
@RequestMapping(value = "/bizToken")
@Api(tags = "bizToken-企业数据对接票据管理")
public class OpenapiBizTokenController
{
private static final Logger logger = LogManager.getLogger(OpenapiBizTokenController.class);
@Autowired
private OpenapiBizTokenService openapiBizTokenService;
@TycloudOperation(ApiLevel = UserType.AGENCY, needAuth = false)
@ApiOperation(value = "申请登录令牌")
@GetMapping(value = "/applyToken")
public ResponseModel<String> applyToken (
@RequestParam String appId) throws Exception
{
logger.info("appId信息:",appId);
String appToken = openapiBizTokenService.getByAppId(appId);
logger.info("appToken信息:",appToken);
return ResponseHelper.buildResponse(appToken);
}
// @TycloudOperation(ApiLevel = UserType.AGENCY, needAuth = false)
// @ApiOperation(value = "获取APPID")
// @GetMapping(value = "/getAppId")
// public ResponseModel<String> getAppId (
// @RequestParam String companyCode) throws Exception
// {
// String appId = DesUtil.encode(companyCode, Constant.SECRETKEY);
// logger.info("appId信息:",appId);
// return ResponseHelper.buildResponse(appId);
// }
//
}
package com.yeejoin.amos.api.openapi.controller.event;
import java.util.Date;
import java.util.HashMap;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Component;
import org.typroject.tyboot.component.cache.Redis;
import org.typroject.tyboot.component.event.RestEvent;
import org.typroject.tyboot.component.event.RestEventHandler;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.yeejoin.amos.api.openapi.constant.Constant;
import com.yeejoin.amos.api.openapi.face.model.BizTokenModel;
import com.yeejoin.amos.api.openapi.face.model.OpenapiLogModel;
import com.yeejoin.amos.api.openapi.face.service.OpenapiLogService;
/**
*
* <pre>
* 第三方API对接日志处理
* </pre>
*
* @author gwb
* @version $Id: OpenapiLogEventHandler.java, v 0.1 2021年11月10日 下午5:38:32 gwb Exp $
*/
@Component("openapiLogEventHandler")
public class OpenapiLogEventHandler extends RestEventHandler {
static ObjectMapper objectMapper = new ObjectMapper();
@Autowired
private RedisTemplate redisTemplate;
@Autowired
private OpenapiLogService openapiLogService;
@Override
protected void handleEvent(RestEvent restEvent) throws Exception {
OpenapiLogModel openapiLogModel = new OpenapiLogModel();
openapiLogModel.setMethodLabel(restEvent.getMethodLabel());
openapiLogModel.setMethodName(restEvent.getMethodName());
openapiLogModel.setParams(objectMapper.writeValueAsString(restEvent.getParams()));
openapiLogModel.setResult(objectMapper.writeValueAsString(restEvent.getSource()));
openapiLogModel.setRemoteIp(restEvent.getRequestContextModel().getRequestIP());
String token = restEvent.getRequestContextModel().getToken();
openapiLogModel.setToken(token);
openapiLogModel.setTraceId(restEvent.getRequestContextModel().getTraceId());
openapiLogModel.setAgencyCode(restEvent.getRequestContextModel().getAgencyCode());
openapiLogModel.setAppCode(restEvent.getRequestContextModel().getAppKey());
String tokenKey = Redis.genKey(Constant.TOKEN_PREFIX,token);
BizTokenModel bizTokenModel = (BizTokenModel) redisTemplate.opsForValue().get(tokenKey);
openapiLogModel.setAppId(bizTokenModel.getAppId());
openapiLogService.createWithModel(openapiLogModel);
}
}
package com.yeejoin.amos.api.openapi.enums;
/**
*
* <pre>
* 电梯故障处置状态枚举
* </pre>
*
* @author gwb
* @version $Id: LiftServiceModelEnum.java, v 0.1 2021年9月29日 上午9:24:15 gwb Exp $
*/
public enum LiftAlarmDealStatusEnum{
DISPOSAL_COMPLETED(0,"处置完成"),
FAULT_OCCURRENCE(1,"故障发生"),
GIVE_NOTICE(2,"发出通知"),
DISPOSAL_RESPONSE(3,"处置响应"),
DISPOSAL_SITE(4,"处置到场"),
FALSE_ALARM(5,"误报");
/**
* 编码
*/
private Integer code;
/**
* 名称
*/
private String name;
// 构造方法
private LiftAlarmDealStatusEnum(Integer code, String name) {
this.code = code;
this.name = name;
}
public Integer getCode() {
return code;
}
public String getName()
{
return name;
}
public static LiftAlarmDealStatusEnum getEnum(Integer code)
{
for (LiftAlarmDealStatusEnum liftAlarmDealStatusEnum : LiftAlarmDealStatusEnum.values())
{
if (liftAlarmDealStatusEnum.getCode().equals(code))
{
return liftAlarmDealStatusEnum;
}
}
return null;
}
}
package com.yeejoin.amos.api.openapi.enums;
/**
*
* <pre>
* 电梯安全回路状态枚举
* </pre>
*
* @author gwb
* @version $Id: LiftCircuitStatusEnum.java, v 0.1 2021年9月29日 上午9:23:00 gwb Exp $
*/
public enum LiftCircuitStatusEnum{
NORMAL(0,"正常"),
BREAK (1,"断开");
/**
* 编码
*/
private Integer code;
/**
* 名称
*/
private String name;
// 构造方法
private LiftCircuitStatusEnum(Integer code, String name) {
this.code = code;
this.name = name;
}
public Integer getCode() {
return code;
}
public String getName()
{
return name;
}
public static LiftCircuitStatusEnum getEnum(Integer code)
{
for (LiftCircuitStatusEnum liftCircuitStatusEnum : LiftCircuitStatusEnum.values())
{
if (liftCircuitStatusEnum.getCode().equals(code))
{
return liftCircuitStatusEnum;
}
}
return null;
}
}
package com.yeejoin.amos.api.openapi.enums;
/**
*
* <pre>
* 电梯接触器状态枚举
* </pre>
*
* @author gwb
* @version $Id: LiftContactorStatusEnum.java, v 0.1 2021年9月29日 上午9:08:16 gwb Exp $
*/
public enum LiftContactorStatusEnum{
PULL(0,"吸合"),
BREAK (1,"断开");
/**
* 编码
*/
private Integer code;
/**
* 名称
*/
private String name;
// 构造方法
private LiftContactorStatusEnum(Integer code, String name) {
this.code = code;
this.name = name;
}
public Integer getCode() {
return code;
}
public String getName()
{
return name;
}
public static LiftContactorStatusEnum getEnum(Integer code)
{
for (LiftContactorStatusEnum liftContactorStatusEnum : LiftContactorStatusEnum.values())
{
if (liftContactorStatusEnum.getCode().equals(code))
{
return liftContactorStatusEnum;
}
}
return null;
}
}
package com.yeejoin.amos.api.openapi.enums;
/**
*
* <pre>
* 电梯轿厢运行方向枚举
* </pre>
*
* @author gwb
* @version $Id: LiftDirectionEnum.java, v 0.1 2021年9月29日 上午9:33:40 gwb Exp $
*/
public enum LiftDirectionEnum{
No (1,"无方向"),
Up (2,"上行"),
Down (3,"下行");
/**
* 编码
*/
private Integer code;
/**
* 名称
*/
private String name;
// 构造方法
private LiftDirectionEnum(Integer code, String name) {
this.code = code;
this.name = name;
}
public Integer getCode() {
return code;
}
public String getName()
{
return name;
}
public static LiftDirectionEnum getEnum(Integer code)
{
for (LiftDirectionEnum liftDirectionEnum : LiftDirectionEnum.values())
{
if (liftDirectionEnum.getCode().equals(code))
{
return liftDirectionEnum;
}
}
return null;
}
}
package com.yeejoin.amos.api.openapi.enums;
/**
*
* <pre>
* 电梯关门到位枚举
* </pre>
*
* @author gwb
* @version $Id: LiftDoorStatusEnum.java, v 0.1 2021年9月29日 上午9:39:52 gwb Exp $
*/
public enum LiftDoorStatusEnum{
NOT_CLOSED (0,"无关门到位信号"),
CLOSE (1,"关门到位");
/**
* 编码
*/
private Integer code;
/**
* 名称
*/
private String name;
// 构造方法
private LiftDoorStatusEnum(Integer code, String name) {
this.code = code;
this.name = name;
}
public Integer getCode() {
return code;
}
public String getName()
{
return name;
}
public static LiftDoorStatusEnum getEnum(Integer code)
{
for (LiftDoorStatusEnum liftDoorStatusEnum : LiftDoorStatusEnum.values())
{
if (liftDoorStatusEnum.getCode().equals(code))
{
return liftDoorStatusEnum;
}
}
return null;
}
}
package com.yeejoin.amos.api.openapi.enums;
/**
*
* <pre>
* 轿厢内是否有人状态枚举
* </pre>
*
* @author gwb
* @version $Id: LiftPersonFlagEnum.java, v 0.1 2021年9月29日 上午9:23:00 gwb Exp $
*/
public enum LiftPersonFlagEnum{
NO(0,"无"),
YES (1,"有");
/**
* 编码
*/
private Integer code;
/**
* 名称
*/
private String name;
// 构造方法
private LiftPersonFlagEnum(Integer code, String name) {
this.code = code;
this.name = name;
}
public Integer getCode() {
return code;
}
public String getName()
{
return name;
}
public static LiftPersonFlagEnum getEnum(Integer code)
{
for (LiftPersonFlagEnum liftPersonFlagEnum : LiftPersonFlagEnum.values())
{
if (liftPersonFlagEnum.getCode().equals(code))
{
return liftPersonFlagEnum;
}
}
return null;
}
}
package com.yeejoin.amos.api.openapi.enums;
/**
*
* <pre>
* 电梯运行模式枚举
* </pre>
*
* @author gwb
* @version $Id: LiftServiceModelEnum.java, v 0.1 2021年9月29日 上午9:24:15 gwb Exp $
*/
public enum LiftServiceModelEnum{
STOP_SERVICE(1,"停止服务"),
NORMAL_OPERATION(2,"正常运行"),
OVERHAUL(3,"检修"),
FIRE_RETURN(4,"消防返回"),
FIREFIGHTER_OPERATION(5,"消防员运行"),
EMERGENCY_POWER_OPERATION(6,"应急电源运行"),
SEISMIC_MODEL(7,"地震模式"),
UNKNOWN (8,"未知");
/**
* 编码
*/
private Integer code;
/**
* 名称
*/
private String name;
// 构造方法
private LiftServiceModelEnum(Integer code, String name) {
this.code = code;
this.name = name;
}
public Integer getCode() {
return code;
}
public String getName()
{
return name;
}
public static LiftServiceModelEnum getEnum(Integer code)
{
for (LiftServiceModelEnum liftCircuitStatusEnum : LiftServiceModelEnum.values())
{
if (liftCircuitStatusEnum.getCode().equals(code))
{
return liftCircuitStatusEnum;
}
}
return null;
}
}
package com.yeejoin.amos.api.openapi.enums;
/**
*
* <pre>
* 电梯运行状态枚举
* </pre>
*
* @author gwb
* @version $Id: LiftStatusEnum.java, v 0.1 2021年9月29日 上午9:32:16 gwb Exp $
*/
public enum LiftStatusEnum{
STOP (1,"停止"),
RUN (2,"运行");
/**
* 编码
*/
private Integer code;
/**
* 名称
*/
private String name;
// 构造方法
private LiftStatusEnum(Integer code, String name) {
this.code = code;
this.name = name;
}
public Integer getCode() {
return code;
}
public String getName()
{
return name;
}
public static LiftStatusEnum getEnum(Integer code)
{
for (LiftStatusEnum liftStatusEnum : LiftStatusEnum.values())
{
if (liftStatusEnum.getCode().equals(code))
{
return liftStatusEnum;
}
}
return null;
}
}
package com.yeejoin.amos.api.openapi.face.model;
import java.util.Date;
import org.typroject.tyboot.core.rdbms.model.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
@EqualsAndHashCode(callSuper = true)
@Data
public abstract class AbstractBaseModel extends BaseModel{
/**
*
*/
private static final long serialVersionUID = 1L;
protected Date SyncDate;//同步时间 yyyy-MM-dd HH24:mi:ss
protected int SyncState;//同步状态(0-新增 1-更新 2-删除)
/**
* 对接公司编码
*/
protected String appId;
}
package com.yeejoin.amos.api.openapi.face.model;
import java.io.Serializable;
import lombok.Data;
@Data
public class BizTokenModel implements Serializable{
/**
*
*/
private static final long serialVersionUID = 1L;
/**
* 登录令牌
*/
private String token;
/**
* 应用编号
*/
private String appKey;
/**
* 客户端标识
*/
private String product;
/**
* 所属机构
*/
private String agencyCode;
/**
* 应用用户票据,唯一标识
*/
private String appId;
/**
* 对接公司编码
*/
private String apiCompanyCode;
}
package com.yeejoin.amos.api.openapi.face.model;
import java.util.Date;
import lombok.Data;
import lombok.EqualsAndHashCode;
@EqualsAndHashCode(callSuper = true)
@Data
public class CylinderFillingCheckModel extends AbstractBaseModel{
/**
*
*/
private static final long serialVersionUID = 1L;
private String fillingCheckId; //充装后复查ID
private String fillingUnitName; //充装企业名称*
private String factoryNum; //出厂编号
private String sequenceCode; //气瓶唯一标识码*
private int withinScope; //充装量在规定范围内*
private int sealedState; //瓶阀及其与瓶口连接的密封良好*
private int defective; //瓶体未出现鼓包变形或泄露等严重缺陷*
private int abnormalTemperature; //瓶体温度没有异常升高的迹象*
private int warningSign; //气瓶粘贴警示标签和充装标签*
private String compliance; //液化气瓶充装量符合有关规定,充装后逐瓶称重
private String inspector; //检查人员姓名*
private String inspectionDate; //检查时间*
}
package com.yeejoin.amos.api.openapi.face.model;
import java.util.Date;
import lombok.Data;
import lombok.EqualsAndHashCode;
@EqualsAndHashCode(callSuper = true)
@Data
public class CylinderFillingExamineModel extends AbstractBaseModel{
/**
*
*/
private static final long serialVersionUID = 1L;
private String fillingExamineId; //充装信息审核ID
private String fillingUnitName; //充装企业名称
private String fillingAuditDate; //报表生成时间
private String fillingAuditUrl; //充装审核报表附件地址
private String fillingAuditname; //充装审核报表附件名称
}
package com.yeejoin.amos.api.openapi.face.model;
import java.util.List;
import lombok.Data;
import lombok.EqualsAndHashCode;
@EqualsAndHashCode(callSuper = true)
@Data
public class CylinderFillingExamineModelList extends AbstractBaseModel{
/**
*
*/
private static final long serialVersionUID = 1L;
private List<CylinderFillingExamineModel> fillingAudit;
}
package com.yeejoin.amos.api.openapi.face.model;
import java.util.Date;
import lombok.Data;
import lombok.EqualsAndHashCode;
@EqualsAndHashCode(callSuper = true)
@Data
public class CylinderFillingModel extends AbstractBaseModel{
/**
*
*/
private static final long serialVersionUID = 1L;
private String fillingBeforeId; // 充装前检查Id*
private String fillingUnitName; //充装企业名称*
private String factoryNum; //出厂编号
private String sequenceCode; //气瓶唯一标识码*
private String isValid; //是否在检验有效期以内,严禁充装超期未检气瓶、非法改装或翻新及报废气瓶
private int same; //警示标签上印有的瓶装气体的名称及化学分子式应与气瓶钢印标志是否一致*
private int isRegulations; //气瓶外表面的颜色标志是否符合规定*
private int isComplianceWithGBT; //气瓶瓶阀的出气口螺纹型式是否符合GB/T15383的规定,即可燃气体用的瓶阀,出口螺纹应是内螺纹(左旋)*
private int haveStillPressure; //气瓶内有无剩余压力*
private int isComplete; //气瓶外表面有无裂纹、严重腐蚀、明显变形及其他严重外部损伤缺陷*
private int haveSecurityDocuments; //气瓶的安全附件齐全并符合安全要求
private String inspectorUser; //检查人员姓名*
private String inspectionDate; //检查时间*
}
package com.yeejoin.amos.api.openapi.face.model;
import java.util.List;
import lombok.Data;
import lombok.EqualsAndHashCode;
@EqualsAndHashCode(callSuper = true)
@Data
public class CylinderFillingModelList extends AbstractBaseModel{
/**
*
*/
private static final long serialVersionUID = 1L;
private String type;
private List<CylinderFillingModel> fillingBefore;
private List<CylinderFillingRecordModel> filling;
private List<CylinderFillingCheckModel> fillingAfter;
}
package com.yeejoin.amos.api.openapi.face.model;
import java.util.Date;
import lombok.Data;
import lombok.EqualsAndHashCode;
@EqualsAndHashCode(callSuper = true)
@Data
public class CylinderFillingRecordModel extends AbstractBaseModel{
/**
*
*/
private static final long serialVersionUID = 1L;
private String fillingRecordId; //充装记录Id*
private String fillingUnitName; //充装企业名称*
private String factoryNum; //出厂编号
private String sequenceCode; //气瓶唯一标识码*
private String fillingStartTime; //充装开始时间*
private String fillingEndTime; //充装结束时间*
private String fillingUser; //充装人员姓名*
private double fillingQuantity; //充装量(Kg)*
private double temperature; //室温*
private int abnormal; //异常情况*
}
package com.yeejoin.amos.api.openapi.face.model;
import java.util.Date;
import lombok.Data;
import lombok.EqualsAndHashCode;
@EqualsAndHashCode(callSuper = true)
@Data
public class CylinderInfoModel extends AbstractBaseModel{
/**
*
*/
private static final long serialVersionUID = 1L;
private String cylinderId; //气瓶基本信息ID
private String unitName; //产权单位名称
private String factoryNum; //出厂编号
private int cylinderStatus; //气瓶状态
private int cylinderVariety; //气瓶品种
private String qrCode; //二维码编号
private String electronicLabelCode; //电子标签编号
private String fillingMedium; //充装介质
private double pressure; //公称压力(MPa)
private double volume; //容积(L)
private String manufacturingDate; //制造日期
private String manufacturingUnit; //制造单位
private String license; //气瓶制造许可证
private double cylinderWeight; //气瓶重量(kg)
private String unitInnerCode; //单位内部编号
private String inspectionDate; //最近一次检验日期
private String nextInspectionDate; //下次检验日期
private String sequenceCode; //气瓶唯一标识码
}
package com.yeejoin.amos.api.openapi.face.model;
import java.util.List;
import lombok.Data;
import lombok.EqualsAndHashCode;
@EqualsAndHashCode(callSuper = true)
@Data
public class CylinderInfoModelList extends AbstractBaseModel{
/**
*
*/
private static final long serialVersionUID = 1L;
private List<CylinderInfoModel> info;
}
package com.yeejoin.amos.api.openapi.face.model;
import java.util.Date;
import lombok.Data;
import lombok.EqualsAndHashCode;
@EqualsAndHashCode(callSuper = true)
@Data
public class CylinderInspectionModel extends AbstractBaseModel{
/**
*
*/
private static final long serialVersionUID = 1L;
private String inspectionId; //检验信息ID
private String inspectionUnit; //检验单位*
private String propertyUnitName; //产权单位名称*
private String factoryNum; //出厂编号
private String sequenceCode; //气瓶唯一标识码*
private String inspectionDate; //检验日期*
private String nextInspectionDate; //下次检验日期*
private String inspectionResult; //检验结果*
}
package com.yeejoin.amos.api.openapi.face.model;
import java.util.List;
import lombok.Data;
import lombok.EqualsAndHashCode;
@EqualsAndHashCode(callSuper = true)
@Data
public class CylinderInspectionModelList extends AbstractBaseModel{
/**
*
*/
private static final long serialVersionUID = 1L;
private List<CylinderInspectionModel> inspection;
}
package com.yeejoin.amos.api.openapi.face.model;
import lombok.Data;
import lombok.EqualsAndHashCode;
@EqualsAndHashCode(callSuper = true)
@Data
public class CylinderTagsModel extends AbstractBaseModel{
/**
*
*/
private static final long serialVersionUID = 1L;
private String tagId; //标签ID*
private String unitName; //产权单位名称*
private String factoryNum; //出厂编号
private String sequenceCode; //气瓶唯一标识码*
private String qrCode; //二维码编号*
private String electronicLabelCode; //电子标签编号*
}
package com.yeejoin.amos.api.openapi.face.model;
import java.util.List;
import lombok.Data;
import lombok.EqualsAndHashCode;
@EqualsAndHashCode(callSuper = true)
@Data
public class CylinderTagsModelList extends AbstractBaseModel{
/**
*
*/
private static final long serialVersionUID = 1L;
private List<CylinderTagsModel> tag;
}
package com.yeejoin.amos.api.openapi.face.model;
import java.util.Date;
import lombok.Data;
import lombok.EqualsAndHashCode;
@EqualsAndHashCode(callSuper = true)
@Data
public class CylinderUnitModel extends AbstractBaseModel{
/**
*
*/
private static final long serialVersionUID = 1L;
private String unitId; //单位ID
private String regionCode; //所属区域
private String unitName; //单位名称
private int unitType; //企业类型
private String creditCode; //统一社会信用代码
private String address; //详细地址
private String unitPerson; //企业负责人
private String personMobilePhone; //企业负责人手机
private String personTelephone; //企业负责人固定电话
private String postalCode; //企业邮编
private String unitAbbreviation; //企业简称
private String fillingLicense; //充装许可证号
private String fillingPermitDate; //充装许可证有效期
private String fillingPermScope; //充装许可范围
private String inspectionLicense; //检验许可证号
private String inspectionScope; //检验范围
private String effectiveDate; //检验许可证有效期
private String manufacturingLicense; //制造许可证号
private String manufacturingDate; //制造许可证有效期
private String manufacturingScope; //制造许可范围
private String manufacturingUnitCode; //制造单位代码
}
package com.yeejoin.amos.api.openapi.face.model;
import java.io.Serializable;
import java.util.List;
import lombok.Data;
@Data
public class CylinderUnitModelList implements Serializable{
/**
* <pre>
*
* </pre>
*/
private static final long serialVersionUID = -8502490582467436049L;
private List<CylinderUnitModel> unit;
}
package com.yeejoin.amos.api.openapi.face.model;
import java.util.Date;
import org.typroject.tyboot.core.rdbms.model.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
* 电梯故障表
* </p>
*
* @author 子杨
* @since 2021-09-28
*/
@EqualsAndHashCode(callSuper = true)
@Data
public class ElevatorAlarmModel extends BaseModel {
/**
* <pre>
*
* </pre>
*/
private static final long serialVersionUID = 1974821977890729965L;
/**
* 电梯注册码
*/
private String registerCode;
/**
* 电梯应急救援识别码
*/
private Integer rescueCode;
/**
* 所属省
*/
private String province;
/**
* 所属地市
*/
private String city;
/**
* 所属区县
*/
private String district;
/**
* 电梯地址
*/
private String address;
/**
* 设备分类
*/
private String deviceCategory;
/**
* 原始故障编号
*/
private String faultId;
/**
* 故障发生时间字符串(格式为:yyyymmddhhmmss)
*/
private String startTime;
/**
* 故障发生时间
*/
private Date startDate;
/**
* 故障类型编码
*/
private String type;
/**
* 故障类型名称
*/
private String typeName;
/**
* 处置状态。0:处置完成。1:故障发生 2:发出通知 3:处置响应 4:处置到场 5:误报
*/
private Integer dealStatus;
/**
* 处置时间字符串(格式为:yyyymmddhhmmss)
*/
private String dealTime;
/**
* 处置时间
*/
private Date dealDate;
/**
* 处置人
*/
private Integer dealPerson;
/**
* 现场确认是否困人。0:不困人,1:困人
*/
private Integer isTrap;
/**
* 是否自恢复 0:否1:是
*/
private Integer selfrepair;
/**
* 故障发生时的总接触器吸合或是断开。0:吸合,1:断开
*/
private Integer dealNote;
/**
* 是否自恢复 0:否1:是
*/
private Integer mainContactor;
/**
* 故障发生时的运行接触器吸合或是断开。0:吸合,1:断开
*/
private Integer runContactor;
/**
* 故障发生时的安全回路是否断开 0:正常,1:断开
*/
private Integer circuit;
/**
* 故障发生时的轿厢运行状态。1:停止,2:运行
*/
private Integer carStatus;
/**
* 故障发生时的方向。1:无方向 2:上行 3:下行
*/
private Integer direction;
/**
* 故障发生时的轿厢是否在门区。1:轿厢在门区 0:轿厢在非门区
*/
private Integer isZone;
/**
* 故障发生时的当前物理楼层
*/
private Integer floor;
/**
* 故障发生时的关门到位 1:关门到位,0:无关门到位信号
*/
private Integer doorStatus;
/**
* 故障发生时的上极限是否动作 0:否,1:是
*/
private Integer upLimit;
/**
* 故障发生时的下极限是否动作 0:否,1:是
*/
private Integer downLimit;
/**
* 故障发生时的轿厢报警按钮是否动作 0:否,1:是
*/
private Integer alarm;
/**
* 累计运行小时数,保留到小数点后两位
*/
private Double hours;
/**
* 累计运行次数
*/
private Integer runCount;
/**
* 操作人名称
*/
private String recUserName;
/**
* 是否删除
*/
private Boolean isDelete;
}
package com.yeejoin.amos.api.openapi.face.model;
import java.util.List;
import org.typroject.tyboot.core.rdbms.model.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
*
* <pre>
* 电梯故障数据
* </pre>
*
* @author gwb
* @version $Id: ElevatorAlarmModelList.java, v 0.1 2021年9月28日 下午1:41:25 gwb Exp $
*/
@EqualsAndHashCode(callSuper = true)
@Data
public class ElevatorAlarmModelList extends BaseModel {
/**
* <pre>
*
* </pre>
*/
private static final long serialVersionUID = -381095449972329611L;
/**
* 电梯故障数据集合
*/
private List<ElevatorAlarmModel> lift;
}
package com.yeejoin.amos.api.openapi.face.model;
import org.typroject.tyboot.core.rdbms.model.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
*
* <pre>
* 电梯故障类型表
* </pre>
*
* @author gwb
* @version $Id: ElevatorAlarmTypeModel.java, v 0.1 2021年10月15日 下午2:21:39 gwb Exp $
*/
@EqualsAndHashCode(callSuper = true)
@Data
public class ElevatorAlarmTypeModel extends BaseModel {
/**
* <pre>
*
* </pre>
*/
private static final long serialVersionUID = -6210350680186088105L;
/**
* 告警类型编码
*/
private Integer alarmCode;
/**
* 告警类型名称
*/
private String alarmName;
}
package com.yeejoin.amos.api.openapi.face.model;
import java.util.Date;
import org.typroject.tyboot.core.rdbms.model.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
*
* <pre>
* 电梯 model
* </pre>
*
* @author gwb
* @version $Id: ElevatorModel.java, v 0.1 2021年9月30日 下午3:28:02 gwb Exp $
*/
@EqualsAndHashCode(callSuper = true)
@Data
public class ElevatorModel extends BaseModel {
/**
* <pre>
*
* </pre>
*/
private static final long serialVersionUID = 3878194701154483320L;
/**
* 主键
*/
private Long sequenceNbr;
/**
* 电梯应急救援识别码
*/
private Integer rescueCode;
/**
* 设备注册代码
*/
private String registerCode;
/**
* 所属省
*/
private String province;
/**
* 所属地市
*/
private String city;
/**
* 所属区县
*/
private String district;
/**
* 所属区域代码
*/
private String regionCode;
/**
* 安装地址
*/
private String address;
/**
* 经度
*/
private String longitude;
/**
* 纬度
*/
private String latitude;
/**
* 内部编号
*/
private String innerNum;
/**
* 电梯品牌
*/
private String brand;
/**
* 出厂编号
*/
private String factoryNum;
/**
* 电梯安装单位
*/
private String installationUnit;
/**
* 制造日期(出厂时间)
*/
private Date factoryDate;
/**
* 电梯大修/改造日期
*/
private Date overhaulDate;
/**
* 开始使用日期
*/
private Date startUseDate;
/**
* 设备类别
*/
private String category;
/**
* 使用场所分类
*/
private String useSiteCategory;
/**
* 电梯型号
*/
private String model;
/**
* 电梯层数
*/
private Integer floors;
/**
* 电梯站数
*/
private Integer stations;
/**
* 电梯门数
*/
private Integer doors;
/**
* 电梯额定速度(单位:m/s)
*/
private Float ratedSpeed;
/**
* 电梯额定载重量(单位:kg)
*/
private Float ratedLoad;
/**
* 最大荷载人数
*/
private Integer maxPersonLoad;
/**
* 提升高度(单位m)
*/
private Float raiseHeight;
/**
* 拖动方式
*/
private String dragMode;
/**
* 电梯使用状态
*/
private Integer useStatus;
/**
* 使用单位
*/
private String useUnit;
/**
* 使用单位id
*/
private Long useUnitId;
/**
* 制造单位名称
*/
private String manufacturerName;
/**
* 制造许可编号
*/
private String manufacturingLicense;
/**
* 维护周期
*/
private String maintainPeriod;
/**
* 维保类型
*/
private String maintainType;
/**
* 维保单位
*/
private String maintainUnit;
/**
* 维保单位id
*/
private Long maintainUnitId;
/**
* 维保负责人
*/
private String maintainLeader;
/**
* 维保负责人id
*/
private Long maintainLeaderId;
/**
* 维保负责人手机
*/
private String maintainLeaderPhone;
/**
* 主机模式
*/
private String hostModel;
/**
* 主机编号
*/
private String hostNum;
/**
* 动力类型
*/
private String engineType;
/**
* 动力编号
*/
private String engineNum;
/**
* 面板模型
*/
private String panelModel;
/**
* 面板编号
*/
private String panelNum;
/**
* 级联模型
*/
private String cascadeModel;
/**
* 级联线路模型
*/
private String cascadeLineModel;
/**
* 扶手带类型
*/
private String handrailType;
/**
* 扶手面板模型
*/
private String handrailPanelModel;
/**
* 扶手面板品牌
*/
private String handrailPanelBrand;
/**
* 滚转机模式
*/
private String rollerMode;
/**
* 倾斜的角度
*/
private String tiltAngle;
/**
* 横向跨度
*/
private String horizontalSpan;
/**
* 运行噪音
*/
private String runningNoise;
/**
* 运行方式
*/
private String runningMode;
/**
* 运行振动
*/
private String runningVibration;
/**
* 功率
*/
private String power;
/**
* 原始表id(来自历史数据库)
*/
private String originalId;
/**
* 是否删除(1:已删除,0:未删除)
*/
private Boolean isDelete;
/**
* 更新日期
*/
private Date recDate;
/**
* 更新人员id
*/
private String recUserId;
/**
* 更新人员名称
*/
private String recUserName;
/**
* 检验报告编号
*/
private String inspectionReportNo;
/**
* 检验时间
*/
private Date inspectionDate;
/**
* 下次检验时间
*/
private Date nextInspectionTime;
/**
* 检验单位
*/
private String inspectionUnitName;
/**
* 使用单位主管机构
*/
private String useUnitAuthority;
}
package com.yeejoin.amos.api.openapi.face.model;
import java.util.Date;
import org.typroject.tyboot.core.rdbms.model.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
* 电梯运行状态表
* </p>
*
* @author 子杨
* @since 2021-09-28
*/
@EqualsAndHashCode(callSuper = true)
@Data
public class ElevatorStatusModel extends BaseModel {
/**
* <pre>
*
* </pre>
*/
private static final long serialVersionUID = -4386647424329118778L;
/**
* 电梯注册码
*/
private String registerCode;
/**
* 原始状态编码
*/
private String statusId;
/**
* 是否在线。1:是,0:否
*/
private Integer isOnline;
/**
* 运行数据上传时间字符串(格式为:yyyymmddhhmmss)
*/
private String uploadTime;
/**
* 运行数据上传时间
*/
private Date uploadDate;
/**
* 总接触器吸合或是断开。0:吸合,1:断开
*/
private Integer mainContactor;
private String mainContactorName;
/**
* 运行接触器吸合或是断开。0:吸合,1:断开
*/
private Integer runContactor;
private String runContactorName;
/**
* 安全回路是否断开,0:正常,1:断开
*/
private Integer circuit;
private String circuitName;
/**
* 当前电梯运行模式。1:停止服务 2:正常运行 3:检修 4:消防返回 5:消防员运行 6:应急电源运行 7:地震模式 8: 未知
*/
private Integer serviceModel;
private String serviceModelName;
/**
* 轿厢运行状态。1:停止,2:运行
*/
private Integer liftStatus;
private String liftStatusName;
/**
* 轿厢运行方向。1:无方向 2:上行 3:下行
*/
private Integer liftDirection;
private String liftDirectionName;
/**
* 轿厢是否在门区。1:轿厢在门区 0:轿厢在非门区
*/
private Integer isZone;
/**
* 运行速度,单位:cm/s
*/
private Integer elevatorSpeed;
/**
* 当前物理楼层
*/
private Integer currFloor;
/**
* 关门到位 1:关门到位,0:无关门到位信号
*/
private Integer doorStatus;
private String doorStatusName;
/**
* 上极限是否动作 0:否,1:是
*/
private Integer upLimit;
/**
* 下极限是否动作 0:否,1:是
*/
private Integer downLimit;
/**
* 轿厢报警按钮是否动作 0:否,1:是
*/
private Integer alarm;
/**
* 轿厢内是否有人 0:无,1:有
*/
private Integer personFlag;
private String personFlagName;
/**
* 累计运行小时数,保留到小数点后两位
*/
private Double hours;
/**
* 累计运行次数
*/
private Integer runCount;
/**
* 操作人名称
*/
private String recUserName;
/**
* 是否删除
*/
private Boolean isDelete;
}
package com.yeejoin.amos.api.openapi.face.model;
import java.util.List;
import org.typroject.tyboot.core.rdbms.model.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
*
* <pre>
* 电梯运行状态数据
* </pre>
*
* @author gwb
* @version $Id: ElevatorStatusModelList.java, v 0.1 2021年9月28日 下午1:41:38 gwb Exp $
*/
@EqualsAndHashCode(callSuper = true)
@Data
public class ElevatorStatusModelList extends BaseModel {
/**
* <pre>
*
* </pre>
*/
private static final long serialVersionUID = -8502490582467436049L;
/**
* 电梯状态数据集合
*/
private List<ElevatorStatusModel> lift;
}
package com.yeejoin.amos.api.openapi.face.model;
import org.typroject.tyboot.core.rdbms.model.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
*
* <pre>
* 电梯视频
* </pre>
*
* @author gwb
* @version $Id: ElevatorVideoModel.java, v 0.1 2021年9月29日 下午4:03:35 gwb Exp $
*/
@EqualsAndHashCode(callSuper = true)
@Data
public class ElevatorVideoModel extends BaseModel {
/**
* <pre>
*
* </pre>
*/
private static final long serialVersionUID = 1974821977890729965L;
/**
* 电梯注册码
*/
private String registerCode;
/**
* 视频播放地址
*/
private String cotrl_url;
/**
*
*/
private String token;
/**
*
*/
private String videoappkey;
}
package com.yeejoin.amos.api.openapi.face.model;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
*
* <pre>
* 装备分类 model
* </pre>
*
* @author gwb
* @version $Id: EquipmentCategory.java, v 0.1 2021年10月15日 上午11:23:03 gwb Exp $
*/
@Data
public class EquipmentCategoryModel implements Serializable {
/**
* <pre>
*
* </pre>
*/
private static final long serialVersionUID = 8586846201861760731L;
/**
* 主键
*/
private Long id;
/**
*
*/
private String parentId;
/**
* 装备分类编码
*/
private String code;
/**
* 装备分类名称
*/
private String name;
/**
* 描述
*/
private String description;
/**
* 备注
*/
private String remark;
/**
*
*/
private Date createDate;
/**
* 行业编码
*/
private String industryCode;
}
package com.yeejoin.amos.api.openapi.face.model;
import org.typroject.tyboot.core.rdbms.model.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
*
* <pre>
* 设备检验model
* </pre>
*
* @author gwb
* @version $Id: InspectionModel.java, v 0.1 2021年11月8日 下午7:01:01 gwb Exp $
*/
@EqualsAndHashCode(callSuper = true)
@Data
public class InspectionModel extends BaseModel {
/**
* <pre>
*
* </pre>
*/
private static final long serialVersionUID = 1974821977890729965L;
/**
* 报告编号
*/
private String testNumber;
/**
* 使用单位名称
*/
private String companyName;
/**
* 设备代码
*/
private String eqCode;
/**
* 设备类别
*/
private String eqClasses;
/**
* 设备名称
*/
private String eqName;
/**
* 施工单位
*/
private String consUnit;
/**
* 检验机构名称
*/
private String testOrgName;
/**
* 检验日期
*/
private String testDate;
/**
* 型号
*/
private String modelNumber;
/**
* 维保单位
*/
private String mainUnit;
/**
* 维保电话
*/
private String mainMobile;
/**
* 检验结论
*/
private String testResult;
/**
* 安装地点
*/
private String instAddress;
/**
* 产品编号
*/
private String proNumber;
/**
* 下次检验日期
*/
private String nextTestDate;
/**
* 制造单位
*/
private String manuUnit;
/**
* 制造日期
*/
private String supInsDate;
/**
* 使用登记证编号
*/
private String useRegistNumber;
/**
* 额定载重量
*/
private String ratedLoad;
/**
* 层站门数
*/
private String storeyStationDoor;
/**
* 使用单位联系人
*/
private String contacts;
/**
* 使用单位联系电话
*/
private String contactsMobile;
}
package com.yeejoin.amos.api.openapi.face.model;
import java.io.Serializable;
import java.util.List;
import lombok.Data;
/**
*
* <pre>
* 设备检验model
* </pre>
*
* @author gwb
* @version $Id: InspectionModel.java, v 0.1 2021年11月8日 下午7:01:01 gwb Exp $
*/
@Data
public class InspectionModelList implements Serializable {
/**
* <pre>
*
* </pre>
*/
private static final long serialVersionUID = 1974821977890729965L;
/**
* 报告编号
*/
private Integer type;
/**
* 使用单位名称
*/
private List<InspectionModel> data;
}
package com.yeejoin.amos.api.openapi.face.model;
import org.typroject.tyboot.core.rdbms.model.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
*
* <pre>
*
* </pre>
*
* @author gwb
* @version $Id: OpenapiLogModel.java, v 0.1 2021年11月10日 下午5:53:46 gwb Exp $
*/
@EqualsAndHashCode(callSuper = true)
@Data
public class OpenapiBizTokenModel extends BaseModel {
private static final long serialVersionUID = 1L;
/**
* 应用用户票据,唯一标识
*/
private String appId;
/**
* 默认登录用户
*/
private String userName;
/**
* 默认登录密码
*/
private String passWord;
/**
* 应用编号
*/
private String appKey;
/**
* 客户端标识
*/
private String product;
/**
* 所属机构
*/
private String agencyCode;
/**
* 对接公司名称
*/
private String apiCompanyName;
/**
* 对接公司编码
*/
private String apiCompanyCode;
/**
* 服务机构-开发机构
*/
private String developerAgency;
}
package com.yeejoin.amos.api.openapi.face.model;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
* 设备信息
* </p>
*
* @author 子杨
* @since 2021-12-17
*/
@EqualsAndHashCode(callSuper = true)
@Data
public class OpenapiFilesModel extends AbstractBaseModel {
private static final long serialVersionUID = 1L;
private String fileUrl; //文件URL
private String fileName; //文件名称
private Long bizId; //业务表ID
private String bizName; //业务表名
private String remark; //备用
}
package com.yeejoin.amos.api.openapi.face.model;
import java.util.List;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
* 设备信息
* </p>
*
* @author 子杨
* @since 2021-12-17
*/
@EqualsAndHashCode(callSuper = true)
@Data
public class OpenapiFilesModelList extends AbstractBaseModel {
private static final long serialVersionUID = 1L;
private List<OpenapiFilesModel> openapiFiles;
}
package com.yeejoin.amos.api.openapi.face.model;
import org.typroject.tyboot.core.rdbms.model.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
*
* <pre>
*
* </pre>
*
* @author gwb
* @version $Id: OpenapiLogModel.java, v 0.1 2021年11月10日 下午5:53:46 gwb Exp $
*/
@EqualsAndHashCode(callSuper = true)
@Data
public class OpenapiLogModel extends BaseModel {
private static final long serialVersionUID = 1L;
private String remoteIp;
private String result;
private String methodName;
private String methodLabel;
private String params;
private String traceId;
private String token;
private String resultStatus;//操作结果状态
private String userRealName;// 操作人真实姓名
private String userName;// 操作人用户名
/**
* 所属项目编号
*/
private String agencyCode;
private String appCode;
/**
* 应用用户票据,唯一标识
*/
private String appId;
}
package com.yeejoin.amos.api.openapi.face.model;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
* 锅炉
* </p>
*
* @author 子杨
* @since 2021-12-17
*/
@EqualsAndHashCode(callSuper = true)
@Data
public class SpecialBoilerModel extends AbstractBaseModel {
private static final long serialVersionUID = 1L;
/**
* 设备唯一编码
*/
private String sequenceCode;
/**
* 设计工作压力(MPa)
*/
private String designUsePressure;
/**
* 许可工作压力(MPa)
*/
private String permitUsePressure;
/**
* 额定出力(t/h)
*/
private String ratedOutput;
/**
* 介质出口温度(℃)
*/
private String mediumOutletTemperature;
/**
* 加热方式
*/
private String heatingMode;
/**
* 燃料种类
*/
private String fuelType;
/**
* 锅炉用途
*/
private String boilerUse;
/**
* 燃烧方式
*/
private String combustionMode;
/**
* 水处理方式
*/
private String waterHandleMode;
/**
* 除氧方式
*/
private String deaerationMode;
/**
* 出渣方式
*/
private String slaggingMode;
/**
* 消烟除尘方式
*/
private String eliminationzDustMode;
/**
* 单位司炉数量(人)
*/
private String unitStokerNum;
/**
* 水质人员数量(人)
*/
private String waterQualityUseNum;
/**
* 最大连续蒸发量(t/h)
*/
private String maxContinuousEvaporation;
/**
* 再热蒸汽流量(t/h)
*/
private String reheatSteamFlow;
/**
* 锅筒工作压力(MPa)
*/
private String drumWorkingPressure;
/**
* 过热器出口压力(MPa)
*/
private String superheaterOutletPressure;
/**
* 再热器入口压力(MPa)
*/
private String reheaterInletPressure;
/**
* 再热器出口压力(MPa)
*/
private String reheaterOutletPressure;
/**
* 给水温度(℃)
*/
private String waterTemperature;
/**
* 过热器出口温度(℃)
*/
private String superheaterOutletTemperature;
/**
* 再热器入口温度(℃)
*/
private String reheaterInletTemperature;
/**
* 再热器出口温度(℃)
*/
private String reheaterOutletTemperature;
/**
* 直流锅炉启动压力(MPa)
*/
private String directBoilerStartingPressure;
/**
* 直流锅炉启动流量
*/
private String directBoilerStartingFlow;
/**
* 水循环方式
*/
private String waterCirculationMode;
/**
* 燃烧器布置方式
*/
private String burnerLayoutMode;
/**
* 设计燃料可燃基挥发份
*/
private String designFuelCombustibleVolatile;
/**
* 设计应用基低位发热值
*/
private String designAppLowCalorificValue;
/**
* 设计应用基低位发热值单位
*/
private String designAppLowCalorificValueUnit;
/**
* 补给水处理方式
*/
private String waterSupplyTreatmentMode;
/**
* 过热蒸汽调温方式
*/
private String overheatedSteamTemperatureRegulationMode;
/**
* 再热蒸汽调温方式
*/
private String reheatSteamTemperatureRegulationMode;
/**
* 锅炉汽水分离方式
*/
private String boilerSodaSeparateMode;
}
package com.yeejoin.amos.api.openapi.face.model;
import java.util.List;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
* 锅炉
* </p>
*
* @author 子杨
* @since 2021-12-17
*/
@EqualsAndHashCode(callSuper = true)
@Data
public class SpecialBoilerModelList extends AbstractBaseModel {
private static final long serialVersionUID = 1L;
private List<SpecialBoilerModel> boilerInfo;
}
package com.yeejoin.amos.api.openapi.face.model;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
* 设备施工告知信息
* </p>
*
* @author 子杨
* @since 2021-12-17
*/
@EqualsAndHashCode(callSuper = true)
@Data
public class SpecialConstructionInfoModel extends AbstractBaseModel {
private static final long serialVersionUID = 1L;
/**
* 设备全省唯一编号
*/
private String sequenceCode;
/**
* 告知单ID
*/
private String infoId;
/**
* 施工类别
*/
private String constructCategory;
/**
* 设备名称
*/
private String equName;
/**
* 告知单编号
*/
private String infoCode;
/**
* 注册登记机构
*/
private String registerOrg;
/**
* 签收日期
*/
private String signDate;
/**
* 设备地点
*/
private String equAddress;
/**
* 设备注册代码
*/
private String equRegisterCode;
/**
* 设备型号
*/
private String equType;
/**
* 出厂编号
*/
private String factoryCode;
/**
* 设备所在地区代码
*/
private String equRegionCode;
/**
* 设备代码
*/
private String equCode;
/**
* 设备制造单位名称
*/
private String equManufactureUnitName;
/**
* 许可证编号
*/
private String equLicenceNum;
/**
* 安装改造维修日期
*/
private String installReformRepairDate;
/**
* 安装竣工日期
*/
private String installCompletedDate;
/**
* 施工单位
*/
private String constructUnit;
/**
* 施工单位ID
*/
private String constructUnitId;
/**
* 许可证编号(或受理编号)
*/
private String constructLicenceNum;
/**
* 施工单位社会信用代码
*/
private String constructUnitCreditCode;
/**
* 施工单位联系人
*/
private String constructUnitContacts;
/**
* 施工单位邮编
*/
private String constructUnitCode;
/**
* 施工单位电话
*/
private String constructUnitPhone;
/**
* 施工单位传真
*/
private String constructUnitFax;
/**
* 施工单位地址
*/
private String constructUnitAddress;
/**
* 许可证有效期
*/
private String constructLicenceValidity;
/**
* 使用单位名称
*/
private String useUnitName;
/**
* 使用单位系统ID
*/
private String useUnitSystemId;
/**
* 使用单位社会信用代码
*/
private String useUnitCreditCode;
/**
* 使用单位联系人
*/
private String useUnitContacts;
/**
* 使用单位电话
*/
private String useUnitPhone;
/**
* 使用单位传真
*/
private String useUnitFax;
/**
* 使用单位地址
*/
private String useUnitAddress;
/**
* 使用单位邮编
*/
private String useUnitCode;
/**
* 告知日期
*/
private String infoDate;
/**
* 注册状态
*/
private String registerState;
/**
* 使用状态
*/
private String useState;
}
package com.yeejoin.amos.api.openapi.face.model;
import java.util.List;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
* 设备施工告知信息
* </p>
*
* @author 子杨
* @since 2021-12-17
*/
@EqualsAndHashCode(callSuper = true)
@Data
public class SpecialConstructionInfoModelList extends AbstractBaseModel {
private static final long serialVersionUID = 1L;
private List<SpecialConstructionInfoModel> constructionInfo;
}
package com.yeejoin.amos.api.openapi.face.model;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
* 起重机械
* </p>
*
* @author 子杨
* @since 2021-12-17
*/
@EqualsAndHashCode(callSuper = true)
@Data
public class SpecialCraneModel extends AbstractBaseModel {
private static final long serialVersionUID = 1L;
/**
* 设备全省唯一编号
*/
private String sequenceCode;
/**
* 起重机械载荷(t)
*/
private String craneLoad;
/**
* 提升力矩(Kg/s)
*/
private String liftingTorque;
/**
* 最大提升高度(m)
*/
private String maxLiftingHeight;
/**
* 起升高度(主钩)(m)
*/
private String mainLiftingHeight;
/**
* 起升高度(副钩)(m)
*/
private String secLiftingHeight;
/**
* 工作半径(m)
*/
private String workingRadius;
/**
* 工作级别
*/
private String workLevel;
/**
* 轨距(m)
*/
private String gauge;
/**
* 幅度(m)
*/
private String ranges;
/**
* 起升速度(m/min)
*/
private String liftingSpeed;
/**
* 起升速度(主钩)(m/min)
*/
private String mainSpeedHeight;
/**
* 起升速度(副钩) (m/min)
*/
private String secSpeedHeight;
/**
* 变幅形式
*/
private String luffingForm;
/**
* 跨度(m)
*/
private String span;
/**
* 额定起重量(主钩) (t)
*/
private String mainRatedLiftingCapacity;
/**
* 额定起重量(副钩)(t)
*/
private String secRatedLiftingCapacity;
/**
* 大车运行速度(m/min)
*/
private String bigCarSpeed;
/**
* 小车运行速度(m/min)
*/
private String smallCarSpeed;
}
package com.yeejoin.amos.api.openapi.face.model;
import java.util.List;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
* 起重机械
* </p>
*
* @author 子杨
* @since 2021-12-17
*/
@EqualsAndHashCode(callSuper = true)
@Data
public class SpecialCraneModelList extends AbstractBaseModel {
private static final long serialVersionUID = 1L;
private List<SpecialCraneModel> craneInfo;
}
package com.yeejoin.amos.api.openapi.face.model;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
* 电梯
* </p>
*
* @author 子杨
* @since 2021-12-17
*/
@EqualsAndHashCode(callSuper = true)
@Data
public class SpecialElevatorModel extends AbstractBaseModel {
private static final long serialVersionUID = 1L;
/**
* 设备全省唯一编号
*/
private String sequenceCode;
/**
* 运行速度(m/s)
*/
private String runningSpeed;
/**
* 额定载荷(kg)
*/
private String ratedLoad;
/**
* 电梯层站(层)
*/
private String elevatorLanding;
/**
* 提升高度(m)
*/
private String liftingHeight;
/**
* 曳引机型号
*/
private String tractionMachineModel;
/**
* 曳引机出厂编号
*/
private String tractionMachineFactoryNum;
/**
* 电动机型号
*/
private String motorModel;
/**
* 电动机出厂编号
*/
private String motorFactoryNum;
/**
* 控制屏型号
*/
private String controlPanelModel;
/**
* 控制屏出厂编号
*/
private String controlPanelFactoryNum;
/**
* 限速器型号
*/
private String speedGovernorModel;
/**
* 限速器出厂编号
*/
private String speedGovernorFactoryNum;
/**
* 控制方式
*/
private String controlMode;
/**
* 使用区域长度(m)
*/
private String useAreaLength;
/**
* 输送能力(人/h)
*/
private String conveyingCapacity;
/**
* 扶梯倾斜角(°)
*/
private String escalatorInclinationAngle;
/**
* 梯级宽度(m)
*/
private String stepWidth;
}
package com.yeejoin.amos.api.openapi.face.model;
import java.util.List;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
* 电梯
* </p>
*
* @author 子杨
* @since 2021-12-17
*/
@EqualsAndHashCode(callSuper = true)
@Data
public class SpecialElevatorModelList extends AbstractBaseModel {
private static final long serialVersionUID = 1L;
private List<SpecialElevatorModel> elevatorInfo;
}
package com.yeejoin.amos.api.openapi.face.model;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
* 设备信息
* </p>
*
* @author 子杨
* @since 2021-12-17
*/
@EqualsAndHashCode(callSuper = true)
@Data
public class SpecialEquModel extends AbstractBaseModel {
private static final long serialVersionUID = 1L;
/**
* 必填,监察为准,原码保持
*/
private String sequenceCode;
/**
* 系统设备ID
*/
private String equiId;
/**
* 注册状态
*/
private String registerState;
/**
* 使用状态
*/
private String useState;
/**
* 注册登记机构
*/
private String registerOrg;
/**
* 注册登记日期
*/
private String registerDate;
/**
* 设备注册代码
*/
private String equRegisterCode;
/**
* 注册登记人员
*/
private String registerUser;
/**
* 使用登记证编号
*/
private String useCode;
/**
* 发证类型
*/
private String certificatesType;
/**
* 发证机构
*/
private String certificatesOrg;
/**
* 发证日期
*/
private String certificatesDate;
/**
* 首次发证日期
*/
private String firstCertificatesDate;
/**
* 有效期至
*/
private String validUntilDate;
/**
* 设备类别
*/
private String equCategory;
/**
* 设备类别代码
*/
private String equCategoryCode;
/**
* 设备品种
*/
private String equDefine;
/**
* 产品名称
*/
private String productName;
/**
* 产品编号
*/
private String productCode;
/**
* 设备代码
*/
private String equCode;
/**
* 型号(规格)
*/
private String equType;
/**
* 设计使用年限
*/
private String designUseYears;
/**
* 设计单位名称
*/
private String designUnitName;
/**
* 设计单位统一信用代码
*/
private String designUnitCreditCode;
/**
* 制造单位名称
*/
private String manufactureUnitName;
/**
* 制造单位统一信用代码
*/
private String manufactureUnitCreditCode;
/**
* 施工单位名称
*/
private String constructionUnitName;
/**
* 施工单位统一信用代码
*/
private String constructionUnitCreditCode;
/**
* 制造日期
*/
private String manufactureDate;
/**
* 监督检验机构名称
*/
private String supervisionInspectionOrgName;
/**
* 型式试验机构名称
*/
private String typeTestOrgName;
/**
* 固定检验地址
*/
private String fixedInspectionAddress;
/**
* 维保单位
*/
private String maintenanceUnit;
/**
* 维保单位统一信用代码
*/
private String maintenanceUnitCreditCode;
/**
* 应急救援电话
*/
private String emergencyRescuePhone;
/**
* 使用单位名称
*/
private String useUnitName;
/**
* 所在地区代码
*/
private String regionCode;
/**
* 使用单位地址
*/
private String useUnitAddress;
/**
* 使用单位统一社会信用代码
*/
private String useUnitCreditCode;
/**
* 邮政编码
*/
private String postalCode;
/**
* 单位内编号
*/
private String unitInnerCode;
/**
* 设备使用地点
*/
private String equUseAddress;
/**
* 投入使用日期
*/
private String investUseDate;
/**
* 单位固定电话
*/
private String unitFixedPhone;
/**
* 安全管理员
*/
private String safeOfficer;
/**
* 安全管理联系电话
*/
private String safeOfficerPhone;
/**
* 产权单位
*/
private String ownerUnit;
/**
* 产权单位统一社会信用代码
*/
private String ownerUnitCreditCode;
/**
* 联系电话
*/
private String phone;
/**
* 经度
*/
private String longitude;
/**
* 纬度
*/
private String latitude;
}
package com.yeejoin.amos.api.openapi.face.model;
import java.util.List;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
* 设备信息
* </p>
*
* @author 子杨
* @since 2021-12-17
*/
@EqualsAndHashCode(callSuper = true)
@Data
public class SpecialEquModelList extends AbstractBaseModel {
private static final long serialVersionUID = 1L;
private List<SpecialEquModel> equInfo;
}
package com.yeejoin.amos.api.openapi.face.model;
import java.util.List;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
* 检验信息
* </p>
*
* @author 子杨
* @since 2021-12-17
*/
@EqualsAndHashCode(callSuper = true)
@Data
public class SpecialInspectModel extends AbstractBaseModel {
private static final long serialVersionUID = 1L;
/**
* 设备全省唯一编号
*/
private String sequenceCode;
/**
* 检验信息唯一ID
*/
private String inspectInfoId;
/**
* 检验日期
*/
private String inspectDate;
/**
* 检验类别
*/
private String inspectCategory;
/**
* 检验结论
*/
private String inspectConclusion;
/**
* 报告书编号
*/
private String reportCode;
/**
* 下次检验日期
*/
private String nextInspectDate;
/**
* 检验员姓名
*/
private String inspectorName;
/**
* 报告出具日期
*/
private String reportDate;
/**
* 检验机构统一信用代码
*/
private String inspectOrgCreditCode;
/**
* 检验机构名称
*/
private String inspectOrgCreditName;
/**
* 检验报告
*/
private List<OpenapiFilesModel> inspectReport;
}
package com.yeejoin.amos.api.openapi.face.model;
import java.util.List;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
* 检验信息
* </p>
*
* @author 子杨
* @since 2021-12-17
*/
@EqualsAndHashCode(callSuper = true)
@Data
public class SpecialInspectModelList extends AbstractBaseModel {
private static final long serialVersionUID = 1L;
private List<SpecialInspectModel> inspectInfo;
}
package com.yeejoin.amos.api.openapi.face.model;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
* 客运索道
* </p>
*
* @author 子杨
* @since 2021-12-17
*/
@EqualsAndHashCode(callSuper = true)
@Data
public class SpecialPassengerRopewayModel extends AbstractBaseModel {
private static final long serialVersionUID = 1L;
/**
* 设备全省唯一编号
*/
private String sequenceCode;
/**
* 运行速度(m/s)
*/
private String runningSpeed;
/**
* 长度(斜长)(m)
*/
private String inclinationLength;
/**
* 输送能力(运量)(人/h)
*/
private String transAbility;
}
package com.yeejoin.amos.api.openapi.face.model;
import java.util.List;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
* 客运索道
* </p>
*
* @author 子杨
* @since 2021-12-17
*/
@EqualsAndHashCode(callSuper = true)
@Data
public class SpecialPassengerRopewayModelList extends AbstractBaseModel {
private static final long serialVersionUID = 1L;
private List<SpecialPassengerRopewayModel> passengerInfo;
}
package com.yeejoin.amos.api.openapi.face.model;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
* 压力容器
* </p>
*
* @author 子杨
* @since 2021-12-17
*/
@EqualsAndHashCode(callSuper = true)
@Data
public class SpecialPresContainerModel extends AbstractBaseModel {
private static final long serialVersionUID = 1L;
/**
* 设备全省唯一编号
*/
private String sequenceCode;
/**
* 容器内径(mm)
*/
private String containerBore;
/**
* 筒体材料
*/
private String cylinderMaterial;
/**
* 封头材料
*/
private String headMaterial;
/**
* 内衬材料
*/
private String liningMaterial;
/**
* 夹套材料
*/
private String jacketMaterial;
/**
* 筒体厚度(mm)
*/
private String cylinderThickness;
/**
* 封头厚度(mm)
*/
private String headThickness;
/**
* 内衬厚度(mm)
*/
private String liningThickness;
/**
* 夹套厚度(mm)
*/
private String jacketThickness;
/**
* 容器容积m³
*/
private String containerVolume;
/**
* 容器高(长)(mm)
*/
private String containerHigh;
/**
* 壳体重量(Kg)
*/
private String shellWeight;
/**
* 内件重量(Kg)
*/
private String internalsWeight;
/**
* 充装重量(Kg)
*/
private String fillingWeight;
/**
* 有无保温绝热
*/
private String isThermalInsulation;
/**
* 壳程设计压力(MPa)
*/
private String shellDesignPressure;
/**
* 壳程设计温度(℃)
*/
private String shellDesignTemperature;
/**
* 壳程最高压力(MPa)
*/
private String shellHighestPressure;
/**
* 管程设计压力(MPa)
*/
private String tubeDesignPressure;
/**
* 管程设计温度(℃)
*/
private String tubeDesignTemperature;
/**
* 管程最高工作压力(MPa)
*/
private String tubeHighestPressure;
/**
* 夹套设计压力(MPa)
*/
private String jacketDesignPressure;
/**
* 夹套设计温度(℃)
*/
private String jacketDesignTemperature;
/**
* 夹套最高工作压力(MPa)
*/
private String jacketHighestPressure;
/**
* 壳程介质
*/
private String shellMedium;
/**
* 管程介质
*/
private String tubeMedium;
/**
* 夹套介质
*/
private String jacketMedium;
/**
* 氧舱照明
*/
private String oxygenLighting;
/**
* 氧舱空调电机
*/
private String oxygenAirConditioning;
/**
* 氧舱测氧方式
*/
private String oxygenMeasurementMode;
/**
* 罐车牌号
*/
private String potCarNum;
/**
* 罐车结构型式
*/
private String potCarStructuralStyle;
/**
* 罐车底盘号码
*/
private String potCarChassisNum;
}
package com.yeejoin.amos.api.openapi.face.model;
import java.util.List;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
* 压力容器
* </p>
*
* @author 子杨
* @since 2021-12-17
*/
@EqualsAndHashCode(callSuper = true)
@Data
public class SpecialPresContainerModelList extends AbstractBaseModel {
private static final long serialVersionUID = 1L;
private List<SpecialPresContainerModel> presContainerInfo;
}
package com.yeejoin.amos.api.openapi.face.model;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
* 游乐设施
* </p>
*
* @author 子杨
* @since 2021-12-17
*/
@EqualsAndHashCode(callSuper = true)
@Data
public class SpecialRecreationFacilityModel extends AbstractBaseModel {
private static final long serialVersionUID = 1L;
/**
* 设备全省唯一编号
*/
private String sequenceCode;
/**
* 游乐设施线速度(m/s)
*/
private String recreationFacilityLinearVelocity;
/**
* 游乐设施高度(m)
*/
private String recreationFacilityHeight;
/**
* 额定乘客人数(人)
*/
private String ratePassengerNum;
/**
* 额定载荷(kg)
*/
private String ratedLoad;
/**
* 额定速度(m/s)
*/
private String ratedSpeed;
/**
* 倾夹角或坡度(°)
*/
private String inclinationSlope;
/**
* 副速度(m/s)
*/
private String secSpeed;
/**
* 驱动形式
*/
private String driveModel;
/**
* 驱动主功率(kW)
*/
private String driveMainPower;
/**
* 电压(V)
*/
private String voltage;
/**
* 副功率(kW)
*/
private String secPower;
/**
* 座舱高度(m)
*/
private String cockpitHeight;
/**
* 回转直径(mm)
*/
private String rotaryDiameter;
/**
* 轨矩(m)
*/
private String railMoment;
/**
* 轨矩长度(mm)
*/
private String railMomentLength;
/**
* 水滑梯高度(m)
*/
private String waterSlideHeigth;
/**
* 游乐池水深(m)
*/
private String recreationPoolDepth;
/**
* 设计使用寿命
*/
private String designUseLife;
/**
* 高度(静态)(m)
*/
private String staticHeigth;
}
package com.yeejoin.amos.api.openapi.face.model;
import java.util.List;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
* 游乐设施
* </p>
*
* @author 子杨
* @since 2021-12-17
*/
@EqualsAndHashCode(callSuper = true)
@Data
public class SpecialRecreationFacilityModelList extends AbstractBaseModel {
private static final long serialVersionUID = 1L;
private List<SpecialRecreationFacilityModel> recreationFacilityInfo;
}
package com.yeejoin.amos.api.openapi.face.model;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
* 单位信息
* </p>
*
* @author 子杨
* @since 2021-12-17
*/
@EqualsAndHashCode(callSuper = true)
@Data
public class SpecialUnitModel extends AbstractBaseModel {
private static final long serialVersionUID = 1L;
/**
* 单位ID
*/
private String unitId;
/**
* 单位名称
*/
private String unitName;
/**
* 社会统一信用代码
*/
private String creditCode;
/**
* 单位类型
*/
private String unitType;
/**
* 地区代码
*/
private String regionCode;
/**
* 邮政编码
*/
private String postalCode;
/**
* 单位详细地址
*/
private String address;
/**
* 法定代表人
*/
private String legalRepresentative;
/**
* 法人联系电话
*/
private String legalPhone;
/**
* 单位电话
*/
private String unitPhone;
/**
* 单位传真
*/
private String unitFax;
/**
* 电子邮箱
*/
private String email;
/**
* 单位网址
*/
private String unitWebsite;
/**
* 联系人
*/
private String contacts;
/**
* 联系人电话
*/
private String contactsPhone;
/**
* 安全管理部门
*/
private String safeManageOrg;
/**
* 安全管理人员
*/
private String safeManagePeople;
/**
* 安管人员联系电话
*/
private String safeManagePeoplePhone;
}
package com.yeejoin.amos.api.openapi.face.model;
import java.util.List;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
* 单位信息
* </p>
*
* @author 子杨
* @since 2021-12-17
*/
@EqualsAndHashCode(callSuper = true)
@Data
public class SpecialUnitModelList extends AbstractBaseModel {
private static final long serialVersionUID = 1L;
private List<SpecialUnitModel> unitInfo;
}
package com.yeejoin.amos.api.openapi.face.model;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
* 厂(场)内机动车辆
* </p>
*
* @author 子杨
* @since 2021-12-17
*/
@EqualsAndHashCode(callSuper = true)
@Data
public class SpecialVehicleModel extends AbstractBaseModel {
private static final long serialVersionUID = 1L;
/**
* 设备全省唯一编号
*/
private String sequenceCode;
/**
* 运行速度(km/h)
*/
private String runningSpeed;
/**
* 最高时速(km/h)
*/
private String topSpeed;
/**
* 额定载荷(kg)
*/
private String ratedLoad;
/**
* 动力方式
*/
private String powerMode;
/**
* 车牌号码
*/
private String carNum;
/**
* 驱动
*/
private String drive;
/**
* 空车重量
*/
private String emptyWeight;
/**
* 发动机编号
*/
private String engineNum;
/**
* 有否拖挂车
*/
private String isTrailer;
/**
* 设备型号/厂牌型号
*/
private String equModel;
/**
* 座位数量
*/
private String seatNum;
/**
* 底盘编号
*/
private String chassisNum;
/**
* 燃料种类
*/
private String fuelType;
/**
* 颜色(字典)
*/
private String colour;
}
package com.yeejoin.amos.api.openapi.face.model;
import java.util.List;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
* 厂(场)内机动车辆
* </p>
*
* @author 子杨
* @since 2021-12-17
*/
@EqualsAndHashCode(callSuper = true)
@Data
public class SpecialVehicleModelList extends AbstractBaseModel {
/**
*
*/
private static final long serialVersionUID = 1L;
private List<SpecialVehicleModel> vehicleInfo;
}
package com.yeejoin.amos.api.openapi.face.orm.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yeejoin.amos.api.openapi.face.orm.entity.CylinderFillingCheck;
/**
*
* <pre>
* 液化气体气瓶充装信息-充装后复查Mapper 接口
* </pre>
*
* @author gwb
* @version $Id: ElevatorMapper.java, v 0.1 2021年9月30日 下午3:28:31 gwb Exp $
*/
public interface CylinderFillingCheckMapper extends BaseMapper<CylinderFillingCheck> {
}
\ No newline at end of file
package com.yeejoin.amos.api.openapi.face.orm.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yeejoin.amos.api.openapi.face.orm.entity.CylinderFillingExamine;
/**
*
* <pre>
* 液化气体气瓶充装信息审核Mapper 接口
* </pre>
*
* @author gwb
* @version $Id: ElevatorMapper.java, v 0.1 2021年9月30日 下午3:28:31 gwb Exp $
*/
public interface CylinderFillingExamineMapper extends BaseMapper<CylinderFillingExamine> {
}
\ No newline at end of file
package com.yeejoin.amos.api.openapi.face.orm.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yeejoin.amos.api.openapi.face.orm.entity.CylinderFilling;
/**
*
* <pre>
* 气瓶充装信息--充装前检查Mapper 接口
* </pre>
*
* @author gwb
* @version $Id: ElevatorMapper.java, v 0.1 2021年9月30日 下午3:28:31 gwb Exp $
*/
public interface CylinderFillingMapper extends BaseMapper<CylinderFilling> {
}
\ No newline at end of file
package com.yeejoin.amos.api.openapi.face.orm.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yeejoin.amos.api.openapi.face.orm.entity.CylinderFillingRecord;
/**
*
* <pre>
* 液化气体气瓶充装信息-充装记录Mapper 接口
* </pre>
*
* @author gwb
* @version $Id: ElevatorMapper.java, v 0.1 2021年9月30日 下午3:28:31 gwb Exp $
*/
public interface CylinderFillingRecordMapper extends BaseMapper<CylinderFillingRecord> {
}
\ No newline at end of file
package com.yeejoin.amos.api.openapi.face.orm.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yeejoin.amos.api.openapi.face.orm.entity.CylinderInfo;
/**
*
* <pre>
* 气瓶基本信息Mapper 接口
* </pre>
*
* @author gwb
* @version $Id: ElevatorMapper.java, v 0.1 2021年9月30日 下午3:28:31 gwb Exp $
*/
public interface CylinderInfoMapper extends BaseMapper<CylinderInfo> {
}
\ No newline at end of file
package com.yeejoin.amos.api.openapi.face.orm.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yeejoin.amos.api.openapi.face.orm.entity.CylinderInspection;
/**
*
* <pre>
* 气瓶检验信息Mapper 接口
* </pre>
*
* @author gwb
* @version $Id: ElevatorMapper.java, v 0.1 2021年9月30日 下午3:28:31 gwb Exp $
*/
public interface CylinderInspectionMapper extends BaseMapper<CylinderInspection> {
}
\ No newline at end of file
package com.yeejoin.amos.api.openapi.face.orm.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yeejoin.amos.api.openapi.face.orm.entity.CylinderTags;
/**
*
* <pre>
* 气瓶标签信息Mapper 接口
* </pre>
*
* @author gwb
* @version $Id: ElevatorMapper.java, v 0.1 2021年9月30日 下午3:28:31 gwb Exp $
*/
public interface CylinderTagsMapper extends BaseMapper<CylinderTags> {
}
\ No newline at end of file
package com.yeejoin.amos.api.openapi.face.orm.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yeejoin.amos.api.openapi.face.orm.entity.CylinderUnit;
/**
*
* <pre>
* 气瓶企业信息 Mapper 接口
* </pre>
*
* @author gwb
* @version $Id: ElevatorMapper.java, v 0.1 2021年9月30日 下午3:28:31 gwb Exp $
*/
public interface CylinderUnitMapper extends BaseMapper<CylinderUnit> {
}
\ No newline at end of file
package com.yeejoin.amos.api.openapi.face.orm.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yeejoin.amos.api.openapi.face.orm.entity.ElevatorAlarm;
/**
* <p>
* 电梯故障表 Mapper 接口
* </p>
*
* @author 子杨
* @since 2021-09-27
*/
public interface ElevatorAlarmMapper extends BaseMapper<ElevatorAlarm> {
}
\ No newline at end of file
package com.yeejoin.amos.api.openapi.face.orm.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yeejoin.amos.api.openapi.face.orm.entity.ElevatorAlarmType;
/**
*
* <pre>
* 电梯故障类型表 Mapper 接口
* </pre>
*
* @author gwb
* @version $Id: ElevatorAlarmTypeMapper.java, v 0.1 2021年10月15日 下午2:23:32 gwb Exp $
*/
public interface ElevatorAlarmTypeMapper extends BaseMapper<ElevatorAlarmType> {
}
\ No newline at end of file
package com.yeejoin.amos.api.openapi.face.orm.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yeejoin.amos.api.openapi.face.orm.entity.Elevator;
/**
*
* <pre>
* 电梯 Mapper 接口
* </pre>
*
* @author gwb
* @version $Id: ElevatorMapper.java, v 0.1 2021年9月30日 下午3:28:31 gwb Exp $
*/
public interface ElevatorMapper extends BaseMapper<Elevator> {
}
\ No newline at end of file
package com.yeejoin.amos.api.openapi.face.orm.dao;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yeejoin.amos.api.openapi.face.orm.entity.ElevatorStatus;
/**
* <p>
* 电梯运行状态表 Mapper 接口
* </p>
*
* @author 子杨
* @since 2021-09-27
*/
public interface ElevatorStatusMapper extends BaseMapper<ElevatorStatus> {
@Select("SELECT " +
" * " +
" FROM " +
" tz_elevator_status c " +
" WHERE " +
" c.register_code = '${registerCode}' ORDER BY upload_date DESC LIMIT 1")
ElevatorStatus getLatelyStatus(@Param("registerCode") String registerCode);
}
\ No newline at end of file
package com.yeejoin.amos.api.openapi.face.orm.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yeejoin.amos.api.openapi.face.orm.entity.EquipmentCategory;
/**
*
* <pre>
* 装备分类 Mapper 接口
* </pre>
*
* @author gwb
* @version $Id: EquipmentCategoryMapper.java, v 0.1 2021年10月15日 下午2:24:49 gwb Exp $
*/
public interface EquipmentCategoryMapper extends BaseMapper<EquipmentCategory> {
}
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment