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

增加特种设备对接工程

parent 38285704
......@@ -57,7 +57,8 @@ public class ControllerAop {
@Pointcut("(execution(public * com.yeejoin.amos.boot.module..*.biz.controller..*(..))"
+ "|| execution(public * com.yeejoin.amos.*.business.controller..*(..))"
+ " && !@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() {
}
......@@ -68,7 +69,8 @@ public class ControllerAop {
HttpServletRequest request = attributes.getRequest();
// 不需要添加请求头的接口
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) {
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.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.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.OpenapiFilesModel;
import com.yeejoin.amos.api.openapi.face.model.SpecialBoilerModel;
import com.yeejoin.amos.api.openapi.face.model.SpecialBoilerModelList;
import com.yeejoin.amos.api.openapi.face.model.SpecialConstructionInfoModel;
import com.yeejoin.amos.api.openapi.face.model.SpecialConstructionInfoModelList;
import com.yeejoin.amos.api.openapi.face.model.SpecialCraneModel;
import com.yeejoin.amos.api.openapi.face.model.SpecialCraneModelList;
import com.yeejoin.amos.api.openapi.face.model.SpecialElevatorModel;
import com.yeejoin.amos.api.openapi.face.model.SpecialElevatorModelList;
import com.yeejoin.amos.api.openapi.face.model.SpecialEquModel;
import com.yeejoin.amos.api.openapi.face.model.SpecialEquModelList;
import com.yeejoin.amos.api.openapi.face.model.SpecialInspectModel;
import com.yeejoin.amos.api.openapi.face.model.SpecialInspectModelList;
import com.yeejoin.amos.api.openapi.face.model.SpecialPassengerRopewayModel;
import com.yeejoin.amos.api.openapi.face.model.SpecialPassengerRopewayModelList;
import com.yeejoin.amos.api.openapi.face.model.SpecialPresContainerModel;
import com.yeejoin.amos.api.openapi.face.model.SpecialPresContainerModelList;
import com.yeejoin.amos.api.openapi.face.model.SpecialRecreationFacilityModel;
import com.yeejoin.amos.api.openapi.face.model.SpecialRecreationFacilityModelList;
import com.yeejoin.amos.api.openapi.face.model.SpecialUnitModel;
import com.yeejoin.amos.api.openapi.face.model.SpecialUnitModelList;
import com.yeejoin.amos.api.openapi.face.model.SpecialVehicleModel;
import com.yeejoin.amos.api.openapi.face.model.SpecialVehicleModelList;
import com.yeejoin.amos.api.openapi.face.service.SpecialBoilerService;
import com.yeejoin.amos.api.openapi.face.service.SpecialConstructionInfoService;
import com.yeejoin.amos.api.openapi.face.service.SpecialCraneService;
import com.yeejoin.amos.api.openapi.face.service.SpecialElevatorService;
import com.yeejoin.amos.api.openapi.face.service.SpecialEquService;
import com.yeejoin.amos.api.openapi.face.service.SpecialInspectService;
import com.yeejoin.amos.api.openapi.face.service.SpecialPassengerRopewayService;
import com.yeejoin.amos.api.openapi.face.service.SpecialPresContainerService;
import com.yeejoin.amos.api.openapi.face.service.SpecialRecreationFacilityService;
import com.yeejoin.amos.api.openapi.face.service.SpecialUnitService;
import com.yeejoin.amos.api.openapi.face.service.SpecialVehicleService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import net.sf.json.JSONObject;
@RestController
@TycloudResource(module = "openapi", value = "csei")
@RequestMapping(value = "/csei")
@Api(tags = "csei-检验检测数据对接")
public class CseiController {
private static final Logger logger = LogManager.getLogger(CseiController.class);
@Autowired
private SpecialBoilerService specialBoilerService;
@Autowired
private SpecialConstructionInfoService specialConstructionInfoService;
@Autowired
private SpecialCraneService specialCraneService;
@Autowired
private SpecialElevatorService specialElevatorService;
@Autowired
private SpecialEquService specialEquService;
@Autowired
private SpecialInspectService specialInspectService;
@Autowired
private SpecialPassengerRopewayService specialPassengerRopewayService;
@Autowired
private SpecialPresContainerService specialPresContainerService;
@Autowired
private SpecialRecreationFacilityService specialRecreationFacilityService;
@Autowired
private SpecialUnitService specialUnitService;
@Autowired
private SpecialVehicleService specialVehicleService;
@TycloudOperation(ApiLevel = UserType.AGENCY, needAuth = false)
@ApiOperation(value = "单位信息")
@PostMapping(value = "/unitInfo")
@RestEventTrigger(value = "openapiLogEventHandler")
public ResponseModel<String> cseiUnit (
@RequestBody String unitData) throws Exception
{
logger.info(unitData);
JSONObject jsonobject = JSONObject.fromObject(unitData);
Map<String, Class> classMap = new HashMap<String, Class>();
classMap.put("unitInfo", SpecialUnitModel.class);
SpecialUnitModelList specialUnitModelList = (SpecialUnitModelList) JSONObject.toBean(jsonobject,
SpecialUnitModelList.class, classMap);
specialUnitService.createSpecialUnit(specialUnitModelList.getUnitInfo());
return ResponseHelper.buildResponse("");
}
@TycloudOperation(ApiLevel = UserType.AGENCY, needAuth = false)
@ApiOperation(value = "设备基本数据")
@PostMapping(value = "/equInfo")
@RestEventTrigger(value = "openapiLogEventHandler")
public ResponseModel<String> equInfo (
@RequestBody String equInfoData) throws Exception
{
logger.info(equInfoData);
JSONObject jsonobject = JSONObject.fromObject(equInfoData);
Map<String, Class> classMap = new HashMap<String, Class>();
classMap.put("equInfo", SpecialEquModel.class);
SpecialEquModelList specialEquModelList = (SpecialEquModelList) JSONObject.toBean(jsonobject,
SpecialEquModelList.class, classMap);
specialEquService.createSpecialEqu(specialEquModelList.getEquInfo());
return ResponseHelper.buildResponse("");
}
@TycloudOperation(ApiLevel = UserType.AGENCY, needAuth = false)
@ApiOperation(value = "锅炉信息")
@PostMapping(value = "/boilerInfo")
@RestEventTrigger(value = "openapiLogEventHandler")
public ResponseModel<String> boilerInfo (
@RequestBody String boilerData) throws Exception
{
logger.info(boilerData);
JSONObject jsonobject = JSONObject.fromObject(boilerData);
Map<String, Class> classMap = new HashMap<String, Class>();
classMap.put("boilerInfo", SpecialBoilerModel.class);
SpecialBoilerModelList specialBoilerModelList = (SpecialBoilerModelList) JSONObject.toBean(jsonobject,
SpecialBoilerModelList.class, classMap);
specialBoilerService.createSpecialBoiler(specialBoilerModelList.getBoilerInfo());
return ResponseHelper.buildResponse("");
}
@TycloudOperation(ApiLevel = UserType.AGENCY, needAuth = false)
@ApiOperation(value = "压力容器信息")
@PostMapping(value = "/presContainerInfo")
@RestEventTrigger(value = "openapiLogEventHandler")
public ResponseModel<String> presContainerInfo (
@RequestBody String presContainerData) throws Exception
{
logger.info(presContainerData);
JSONObject jsonobject = JSONObject.fromObject(presContainerData);
Map<String, Class> classMap = new HashMap<String, Class>();
classMap.put("presContainerInfo", SpecialPresContainerModel.class);
SpecialPresContainerModelList specialPresContainerModelList = (SpecialPresContainerModelList) JSONObject.toBean(jsonobject,
SpecialPresContainerModelList.class, classMap);
specialPresContainerService.createSpecialPresContainer(specialPresContainerModelList.getPresContainerInfo());
return ResponseHelper.buildResponse("");
}
@TycloudOperation(ApiLevel = UserType.AGENCY, needAuth = false)
@ApiOperation(value = "电梯信息")
@PostMapping(value = "/elevatorInfo")
@RestEventTrigger(value = "openapiLogEventHandler")
public ResponseModel<String> elevatorInfo (
@RequestBody String elevatorData) throws Exception
{
logger.info(elevatorData);
JSONObject jsonobject = JSONObject.fromObject(elevatorData);
Map<String, Class> classMap = new HashMap<String, Class>();
classMap.put("elevatorInfo", SpecialElevatorModel.class);
SpecialElevatorModelList specialElevatorModelList = (SpecialElevatorModelList) JSONObject.toBean(jsonobject,
SpecialElevatorModelList.class, classMap);
specialElevatorService.createSpecialElevator(specialElevatorModelList.getElevatorInfo());
return ResponseHelper.buildResponse("");
}
@TycloudOperation(ApiLevel = UserType.AGENCY, needAuth = false)
@ApiOperation(value = "起重机械信息")
@PostMapping(value = "/craneInfo")
@RestEventTrigger(value = "openapiLogEventHandler")
public ResponseModel<String> craneInfo (
@RequestBody String craneData) throws Exception
{
logger.info(craneData);
JSONObject jsonobject = JSONObject.fromObject(craneData);
Map<String, Class> classMap = new HashMap<String, Class>();
classMap.put("craneInfo", SpecialCraneModel.class);
SpecialCraneModelList specialCraneModelList = (SpecialCraneModelList) JSONObject.toBean(jsonobject,
SpecialCraneModelList.class, classMap);
specialCraneService.createSpecialCrane(specialCraneModelList.getCraneInfo());
return ResponseHelper.buildResponse("");
}
@TycloudOperation(ApiLevel = UserType.AGENCY, needAuth = false)
@ApiOperation(value = "厂(场)内机动车辆")
@PostMapping(value = "/vehicleInfo")
@RestEventTrigger(value = "openapiLogEventHandler")
public ResponseModel<String> vehicleInfo (
@RequestBody String boilerData) throws Exception
{
logger.info(boilerData);
JSONObject jsonobject = JSONObject.fromObject(boilerData);
Map<String, Class> classMap = new HashMap<String, Class>();
classMap.put("vehicleInfo", SpecialVehicleModel.class);
SpecialVehicleModelList specialVehicleModelList = (SpecialVehicleModelList) JSONObject.toBean(jsonobject,
SpecialVehicleModelList.class, classMap);
specialVehicleService.createSpecialVehicle(specialVehicleModelList.getVehicleInfo());
return ResponseHelper.buildResponse("");
}
@TycloudOperation(ApiLevel = UserType.AGENCY, needAuth = false)
@ApiOperation(value = "游乐设施信息")
@PostMapping(value = "/recreationFacilityInfo")
@RestEventTrigger(value = "openapiLogEventHandler")
public ResponseModel<String> recreationFacilityInfo (
@RequestBody String recreationFacilityData) throws Exception
{
logger.info(recreationFacilityData);
JSONObject jsonobject = JSONObject.fromObject(recreationFacilityData);
Map<String, Class> classMap = new HashMap<String, Class>();
classMap.put("recreationFacilityInfo", SpecialRecreationFacilityModel.class);
SpecialRecreationFacilityModelList specialRecreationFacilityModelList = (SpecialRecreationFacilityModelList) JSONObject.toBean(jsonobject,
SpecialRecreationFacilityModelList.class, classMap);
specialRecreationFacilityService.createSpecialRecreationFacility(specialRecreationFacilityModelList.getRecreationFacilityInfo());
return ResponseHelper.buildResponse("");
}
@TycloudOperation(ApiLevel = UserType.AGENCY, needAuth = false)
@ApiOperation(value = "客运索道信息")
@PostMapping(value = "/passengerInfo")
@RestEventTrigger(value = "openapiLogEventHandler")
public ResponseModel<String> passengerInfo (
@RequestBody String passengerData) throws Exception
{
logger.info(passengerData);
JSONObject jsonobject = JSONObject.fromObject(passengerData);
Map<String, Class> classMap = new HashMap<String, Class>();
classMap.put("passengerInfo", SpecialPassengerRopewayModel.class);
SpecialPassengerRopewayModelList specialPassengerRopewayModelList = (SpecialPassengerRopewayModelList) JSONObject.toBean(jsonobject,
SpecialPassengerRopewayModelList.class, classMap);
specialPassengerRopewayService.createSpecialPassengerRopeway(specialPassengerRopewayModelList.getPassengerInfo());
return ResponseHelper.buildResponse("");
}
@TycloudOperation(ApiLevel = UserType.AGENCY, needAuth = false)
@ApiOperation(value = "设备施工告知信息")
@PostMapping(value = "/constructionInfo")
@RestEventTrigger(value = "openapiLogEventHandler")
public ResponseModel<String> constructionInfo (
@RequestBody String constructionData) throws Exception
{
logger.info(constructionData);
JSONObject jsonobject = JSONObject.fromObject(constructionData);
Map<String, Class> classMap = new HashMap<String, Class>();
classMap.put("constructionInfo", SpecialConstructionInfoModel.class);
SpecialConstructionInfoModelList specialConstructionInfoModelList = (SpecialConstructionInfoModelList) JSONObject.toBean(jsonobject,
SpecialConstructionInfoModelList.class, classMap);
specialConstructionInfoService.createSpecialConstructionInfo(specialConstructionInfoModelList.getConstructionInfo());
return ResponseHelper.buildResponse("");
}
@TycloudOperation(ApiLevel = UserType.AGENCY, needAuth = false)
@ApiOperation(value = "检验信息")
@PostMapping(value = "/inspectInfo")
@RestEventTrigger(value = "openapiLogEventHandler")
public ResponseModel<String> inspectInfo (
@RequestBody String inspectData) throws Exception
{
logger.info(inspectData);
JSONObject jsonobject = JSONObject.fromObject(inspectData);
Map<String, Class> classMap = new HashMap<String, Class>();
classMap.put("inspectInfo", SpecialInspectModel.class);
classMap.put("inspectReport", OpenapiFilesModel.class);
SpecialInspectModelList specialInspectModelList = (SpecialInspectModelList) JSONObject.toBean(jsonobject,
SpecialInspectModelList.class, classMap);
specialInspectService.createSpecialInspect(specialInspectModelList.getInspectInfo());
return ResponseHelper.buildResponse("");
}
}
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
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.OpenapiBizToken;
/**
*
* <pre>
* Mapper 接口
* </pre>
*
* @author gwb
* @version $Id: OpenapiLogMapper.java, v 0.1 2021年11月10日 下午5:54:19 gwb Exp $
*/
public interface OpenapiBizTokenMapper extends BaseMapper<OpenapiBizToken> {
@Select("SELECT " +
" * " +
" FROM " +
" iot_openapi_biz_token bt " +
" WHERE " +
" bt.APP_ID = '${appId}'")
public OpenapiBizToken getByAppId(@Param("appId") String appId);
}
\ 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.OpenapiFiles;
/**
* <p>
*对接文件 Mapper 接口
* </p>
*
* @author 子杨
* @since 2021-12-17
*/
public interface OpenapiFilesMapper extends BaseMapper<OpenapiFiles> {
}
\ 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.OpenapiLog;
/**
*
* <pre>
* Mapper 接口
* </pre>
*
* @author gwb
* @version $Id: OpenapiLogMapper.java, v 0.1 2021年11月10日 下午5:54:19 gwb Exp $
*/
public interface OpenapiLogMapper extends BaseMapper<OpenapiLog> {
}
\ No newline at end of file
package com.yeejoin.amos.api.openapi.face.orm.dao;
import com.yeejoin.amos.api.openapi.face.orm.entity.SpecialBoiler;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* 锅炉 Mapper 接口
* </p>
*
* @author 子杨
* @since 2021-12-17
*/
public interface SpecialBoilerMapper extends BaseMapper<SpecialBoiler> {
}
\ No newline at end of file
package com.yeejoin.amos.api.openapi.face.orm.dao;
import com.yeejoin.amos.api.openapi.face.orm.entity.SpecialConstructionInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* 设备施工告知信息 Mapper 接口
* </p>
*
* @author 子杨
* @since 2021-12-17
*/
public interface SpecialConstructionInfoMapper extends BaseMapper<SpecialConstructionInfo> {
}
\ No newline at end of file
package com.yeejoin.amos.api.openapi.face.orm.dao;
import com.yeejoin.amos.api.openapi.face.orm.entity.SpecialCrane;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* 起重机械 Mapper 接口
* </p>
*
* @author 子杨
* @since 2021-12-17
*/
public interface SpecialCraneMapper extends BaseMapper<SpecialCrane> {
}
\ No newline at end of file
package com.yeejoin.amos.api.openapi.face.orm.dao;
import com.yeejoin.amos.api.openapi.face.orm.entity.SpecialElevator;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* 电梯 Mapper 接口
* </p>
*
* @author 子杨
* @since 2021-12-17
*/
public interface SpecialElevatorMapper extends BaseMapper<SpecialElevator> {
}
\ No newline at end of file
package com.yeejoin.amos.api.openapi.face.orm.dao;
import com.yeejoin.amos.api.openapi.face.orm.entity.SpecialEqu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* 设备信息 Mapper 接口
* </p>
*
* @author 子杨
* @since 2021-12-17
*/
public interface SpecialEquMapper extends BaseMapper<SpecialEqu> {
}
\ No newline at end of file
package com.yeejoin.amos.api.openapi.face.orm.dao;
import com.yeejoin.amos.api.openapi.face.orm.entity.SpecialInspect;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* 检验信息 Mapper 接口
* </p>
*
* @author 子杨
* @since 2021-12-17
*/
public interface SpecialInspectMapper extends BaseMapper<SpecialInspect> {
}
\ No newline at end of file
package com.yeejoin.amos.api.openapi.face.orm.dao;
import com.yeejoin.amos.api.openapi.face.orm.entity.SpecialPassengerRopeway;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* 客运索道 Mapper 接口
* </p>
*
* @author 子杨
* @since 2021-12-17
*/
public interface SpecialPassengerRopewayMapper extends BaseMapper<SpecialPassengerRopeway> {
}
\ No newline at end of file
package com.yeejoin.amos.api.openapi.face.orm.dao;
import com.yeejoin.amos.api.openapi.face.orm.entity.SpecialPresContainer;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* 压力容器 Mapper 接口
* </p>
*
* @author 子杨
* @since 2021-12-17
*/
public interface SpecialPresContainerMapper extends BaseMapper<SpecialPresContainer> {
}
\ No newline at end of file
package com.yeejoin.amos.api.openapi.face.orm.dao;
import com.yeejoin.amos.api.openapi.face.orm.entity.SpecialRecreationFacility;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* 游乐设施 Mapper 接口
* </p>
*
* @author 子杨
* @since 2021-12-17
*/
public interface SpecialRecreationFacilityMapper extends BaseMapper<SpecialRecreationFacility> {
}
\ No newline at end of file
package com.yeejoin.amos.api.openapi.face.orm.dao;
import com.yeejoin.amos.api.openapi.face.orm.entity.SpecialUnit;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* 单位信息 Mapper 接口
* </p>
*
* @author 子杨
* @since 2021-12-17
*/
public interface SpecialUnitMapper extends BaseMapper<SpecialUnit> {
}
\ No newline at end of file
package com.yeejoin.amos.api.openapi.face.orm.dao;
import com.yeejoin.amos.api.openapi.face.orm.entity.SpecialVehicle;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* 厂(场)内机动车辆 Mapper 接口
* </p>
*
* @author 子杨
* @since 2021-12-17
*/
public interface SpecialVehicleMapper extends BaseMapper<SpecialVehicle> {
}
\ No newline at end of file
package com.yeejoin.amos.api.openapi.face.orm.entity;
import java.util.Date;
import org.typroject.tyboot.core.rdbms.orm.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;
@EqualsAndHashCode(callSuper = true)
@Data
public abstract class AbstractBaseEntity extends BaseEntity{
/**
*
*/
private static final long serialVersionUID = 1L;
@TableField("sync_date")
protected Date SyncDate;//同步时间 yyyy-MM-dd HH24:mi:ss
@TableField("sync_state")
protected int SyncState;//同步状态(0-新增 1-更新 2-删除)
/**
* 对接公司编码
*/
@TableField("app_Id")
protected String appId;
}
package com.yeejoin.amos.api.openapi.face.orm.entity;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 气瓶充装信息--充装前检查
* @author kinky
*
*/
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("tm_cylinder_filling")
public class CylinderFilling extends AbstractBaseEntity{/**
*
*/
private static final long serialVersionUID = 1L;
@TableField("filling_before_id")
private String fillingBeforeId; // 充装前检查Id*
@TableField("filling_unit_name")
private String fillingUnitName; //充装企业名称*
@TableField("factory_num")
private String factoryNum; //出厂编号
@TableField("sequence_code")
private String sequenceCode; //气瓶唯一标识码*
@TableField("is_valid")
private String isValid; //是否在检验有效期以内,严禁充装超期未检气瓶、非法改装或翻新及报废气瓶
@TableField("same")
private int same; //警示标签上印有的瓶装气体的名称及化学分子式应与气瓶钢印标志是否一致*
@TableField("is_regulations")
private int isRegulations; //气瓶外表面的颜色标志是否符合规定*
@TableField("is_compliance_withGBT")
private int isComplianceWithGBT; //气瓶瓶阀的出气口螺纹型式是否符合GB/T15383的规定,即可燃气体用的瓶阀,出口螺纹应是内螺纹(左旋)*
@TableField("have_still_pressure")
private int haveStillPressure; //气瓶内有无剩余压力*
@TableField("is_complete")
private int isComplete; //气瓶外表面有无裂纹、严重腐蚀、明显变形及其他严重外部损伤缺陷*
@TableField("have_security_documents")
private int haveSecurityDocuments; //气瓶的安全附件齐全并符合安全要求
@TableField("inspector_user")
private String inspectorUser; //检查人员姓名*
@TableField("inspection_date")
private String inspectionDate; //检查时间*
}
package com.yeejoin.amos.api.openapi.face.orm.entity;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 液化气体气瓶充装信息-充装后复查
* @author kinky
*
*/
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("tm_cylinder_filling_check")
public class CylinderFillingCheck extends AbstractBaseEntity{/**
*
*/
private static final long serialVersionUID = 1L;
@TableField("filling_check_id")
private String fillingCheckId; //充装后复查ID
@TableField("filling_unit_name")
private String fillingUnitName; //充装企业名称*
@TableField("factory_num")
private String factoryNum; //出厂编号
@TableField("sequence_code")
private String sequenceCode; //气瓶唯一标识码*
@TableField("within_scope")
private int withinScope; //充装量在规定范围内*
@TableField("sealed_state")
private int sealedState; //瓶阀及其与瓶口连接的密封良好*
@TableField("defective")
private int defective; //瓶体未出现鼓包变形或泄露等严重缺陷*
@TableField("abnormal_temperature")
private int abnormalTemperature; //瓶体温度没有异常升高的迹象*
@TableField("warning_sign")
private int warningSign; //气瓶粘贴警示标签和充装标签*
@TableField("compliance")
private String compliance; //液化气瓶充装量符合有关规定,充装后逐瓶称重
@TableField("inspector")
private String inspector; //检查人员姓名*
@TableField("inspection_date")
private String inspectionDate; //检查时间*
}
package com.yeejoin.amos.api.openapi.face.orm.entity;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 液化气体气瓶充装信息审核
* @author kinky
*
*/
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("tm_cylinder_filling_examine")
public class CylinderFillingExamine extends AbstractBaseEntity{/**
*
*/
private static final long serialVersionUID = 1L;
@TableField("filling_examine_id")
private String fillingExamineId; //充装信息审核ID
@TableField("filling_unit_name")
private String fillingUnitName; //充装企业名称
@TableField("filling_audit_date")
private String fillingAuditDate; //报表生成时间
@TableField("filling_audit_url")
private String fillingAuditUrl; //充装审核报表附件地址
@TableField("filling_audit_name")
private String fillingAuditname; //充装审核报表附件名称
}
package com.yeejoin.amos.api.openapi.face.orm.entity;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 液化气体气瓶充装信息-充装记录
* @author kinky
*
*/
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("tm_cylinder_filling_record")
public class CylinderFillingRecord extends AbstractBaseEntity{/**
*
*/
private static final long serialVersionUID = 1L;
@TableField("filling_record_id")
private String fillingRecordId; //充装记录Id*
@TableField("filling_unit_name")
private String fillingUnitName; //充装企业名称*
@TableField("factory_num")
private String factoryNum; //出厂编号
@TableField("sequence_code")
private String sequenceCode; //气瓶唯一标识码*
@TableField("filling_startTime")
private String fillingStartTime; //充装开始时间*
@TableField("filling_endTime")
private String fillingEndTime; //充装结束时间*
@TableField("filling_user")
private String fillingUser; //充装人员姓名*
@TableField("filling_quantity")
private double fillingQuantity; //充装量(Kg)*
@TableField("temperature")
private double temperature; //室温*
@TableField("abnormal")
private int abnormal; //异常情况*
}
package com.yeejoin.amos.api.openapi.face.orm.entity;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 气瓶基本信息
* @author kinky
*
*/
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("tm_cylinder_info")
public class CylinderInfo extends AbstractBaseEntity{
/**
*
*/
private static final long serialVersionUID = 1L;
@TableField("cylinder_id")
private String cylinderId; //气瓶基本信息ID
@TableField("unit_name")
private String unitName; //产权单位名称
@TableField("factory_num")
private String factoryNum; //出厂编号
@TableField("cylinder_status")
private int cylinderStatus; //气瓶状态
@TableField("cylinder_variety")
private int cylinderVariety; //气瓶品种
@TableField("qrCode")
private String qrCode; //二维码编号
@TableField("electronic_label_code")
private String electronicLabelCode; //电子标签编号
@TableField("filling_medium")
private String fillingMedium; //充装介质
@TableField("pressure")
private double pressure; //公称压力(MPa)
@TableField("volume")
private double volume; //容积(L)
@TableField("manufacturing_date")
private String manufacturingDate; //制造日期
@TableField("manufacturing_unit")
private String manufacturingUnit; //制造单位
@TableField("license")
private String license; //气瓶制造许可证
@TableField("cylinder_weight")
private double cylinderWeight; //气瓶重量(kg)
@TableField("unit_inner_code")
private String unitInnerCode; //单位内部编号
@TableField("inspection_date")
private String inspectionDate; //最近一次检验日期
@TableField("next_inspection_date")
private String nextInspectionDate; //下次检验日期
@TableField("sequence_code")
private String sequenceCode; //气瓶唯一标识码
}
package com.yeejoin.amos.api.openapi.face.orm.entity;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 气瓶检验信息
* @author kinky
*
*/
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("tm_cylinder_inspection")
public class CylinderInspection extends AbstractBaseEntity{/**
*
*/
private static final long serialVersionUID = 1L;
@TableField("inspection_id")
private String inspectionId; //检验信息ID
@TableField("inspection_unit")
private String inspectionUnit; //检验单位*
@TableField("property_unit_name")
private String propertyUnitName; //产权单位名称*
@TableField("factory_num")
private String factoryNum; //出厂编号
@TableField("sequence_code")
private String sequenceCode; //气瓶唯一标识码*
@TableField("inspection_date")
private String inspectionDate; //检验日期*
@TableField("next_inspection_date")
private String nextInspectionDate; //下次检验日期*
@TableField("inspection_result")
private String inspectionResult; //检验结果*
}
package com.yeejoin.amos.api.openapi.face.orm.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 气瓶标签信息
* @author kinky
*
*/
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("tm_cylinder_tags")
public class CylinderTags extends AbstractBaseEntity{/**
*
*/
private static final long serialVersionUID = 1L;
@TableField("tag_id")
private String tagId; //标签ID*
@TableField("unit_name")
private String unitName; //产权单位名称*
@TableField("factory_num")
private String factoryNum; //出厂编号
@TableField("sequence_code")
private String sequenceCode; //气瓶唯一标识码*
@TableField("qrCode")
private String qrCode; //二维码编号*
@TableField("electronic_label_code")
private String electronicLabelCode; //电子标签编号*
}
package com.yeejoin.amos.api.openapi.face.orm.entity;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 气瓶企业信息
* @author kinky
*
*/
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("tm_cylinder_unit")
public class CylinderUnit extends AbstractBaseEntity{/**
*
*/
private static final long serialVersionUID = 1L;
@TableField("unit_id")
private String unitId; //单位ID
@TableField("region_code")
private String regionCode; //所属区域
@TableField("unit_name")
private String unitName; //单位名称
@TableField("unit_type")
private int unitType; //企业类型
@TableField("credit_code")
private String creditCode; //统一社会信用代码
@TableField("address")
private String address; //详细地址
@TableField("unit_person")
private String unitPerson; //企业负责人
@TableField("person_mobile_phone")
private String personMobilePhone; //企业负责人手机
@TableField("person_telephone")
private String personTelephone; //企业负责人固定电话
@TableField("postal_code")
private String postalCode; //企业邮编
@TableField("unit_abbreviation")
private String unitAbbreviation; //企业简称
@TableField("filling_license")
private String fillingLicense; //充装许可证号
@TableField("filling_permit_date")
private String fillingPermitDate; //充装许可证有效期
@TableField("filling_perm_scope")
private String fillingPermScope; //充装许可范围
@TableField("inspection_license")
private String inspectionLicense; //检验许可证号
@TableField("inspection_scope")
private String inspectionScope; //检验范围
@TableField("effective_date")
private String effectiveDate; //检验许可证有效期
@TableField("manufacturing_license")
private String manufacturingLicense; //制造许可证号
@TableField("manufacturing_date")
private String manufacturingDate; //制造许可证有效期
@TableField("manufacturing_scope")
private String manufacturingScope; //制造许可范围
@TableField("manufacturing_unit_code")
private String manufacturingUnitCode; //制造单位代码
}
package com.yeejoin.amos.api.openapi.face.orm.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import org.typroject.tyboot.core.rdbms.orm.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
*
* <pre>
* 电梯
* </pre>
*
* @author gwb
* @version $Id: Elevator.java, v 0.1 2021年9月30日 下午3:27:18 gwb Exp $
*/
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("tcb_elevator")
public class Elevator extends BaseEntity {
/**
* <pre>
*
* </pre>
*/
private static final long serialVersionUID = 5715164115243510569L;
/**
* 主键
*/
@TableField("sequence_nbr")
private Long sequenceNbr;
/**
* 电梯应急救援识别码
*/
@TableField("rescue_code")
private Integer rescueCode;
/**
* 设备注册代码
*/
@TableField("register_code")
private String registerCode;
/**
* 所属省
*/
@TableField("province")
private String province;
/**
* 所属地市
*/
@TableField("city")
private String city;
/**
* 所属区县
*/
@TableField("district")
private String district;
/**
* 所属区域代码
*/
@TableField("region_code")
private String regionCode;
/**
* 安装地址
*/
@TableField("address")
private String address;
/**
* 经度
*/
@TableField("longitude")
private String longitude;
/**
* 纬度
*/
@TableField("latitude")
private String latitude;
/**
* 内部编号
*/
@TableField("inner_num")
private String innerNum;
/**
* 电梯品牌
*/
@TableField("brand")
private String brand;
/**
* 出厂编号
*/
@TableField("factory_num")
private String factoryNum;
/**
* 电梯安装单位
*/
@TableField("installation_unit")
private String installationUnit;
/**
* 制造日期(出厂时间)
*/
@TableField("factory_date")
private Date factoryDate;
/**
* 电梯大修/改造日期
*/
@TableField("overhaul_date")
private Date overhaulDate;
/**
* 开始使用日期
*/
@TableField("start_use_date")
private Date startUseDate;
/**
* 设备类别
*/
@TableField("category")
private String category;
/**
* 使用场所分类
*/
@TableField("use_site_category")
private String useSiteCategory;
/**
* 电梯型号
*/
@TableField("model")
private String model;
/**
* 电梯层数
*/
@TableField("floors")
private Integer floors;
/**
* 电梯站数
*/
@TableField("stations")
private Integer stations;
/**
* 电梯门数
*/
@TableField("doors")
private Integer doors;
/**
* 电梯额定速度(单位:m/s)
*/
@TableField("rated_speed")
private Float ratedSpeed;
/**
* 电梯额定载重量(单位:kg)
*/
@TableField("rated_load")
private Float ratedLoad;
/**
* 最大荷载人数
*/
@TableField("max_person_load")
private Integer maxPersonLoad;
/**
* 提升高度(单位m)
*/
@TableField("raise_height")
private Float raiseHeight;
/**
* 拖动方式
*/
@TableField("drag_mode")
private String dragMode;
/**
* 电梯使用状态
*/
@TableField("use_status")
private Integer useStatus;
/**
* 使用单位
*/
@TableField("use_unit")
private String useUnit;
/**
* 使用单位id
*/
@TableField("use_unit_id")
private Long useUnitId;
/**
* 制造单位名称
*/
@TableField("manufacturer_name")
private String manufacturerName;
/**
* 制造许可编号
*/
@TableField("manufacturing_license")
private String manufacturingLicense;
/**
* 维护周期
*/
@TableField("maintain_period")
private String maintainPeriod;
/**
* 维保类型
*/
@TableField("maintain_type")
private String maintainType;
/**
* 维保单位
*/
@TableField("maintain_unit")
private String maintainUnit;
/**
* 维保单位id
*/
@TableField("maintain_unit_id")
private Long maintainUnitId;
/**
* 维保负责人
*/
@TableField("maintain_leader")
private String maintainLeader;
/**
* 维保负责人id
*/
@TableField("maintain_leader_id")
private Long maintainLeaderId;
/**
* 维保负责人手机
*/
@TableField("maintain_leader_phone")
private String maintainLeaderPhone;
/**
* 主机模式
*/
@TableField("host_model")
private String hostModel;
/**
* 主机编号
*/
@TableField("host_num")
private String hostNum;
/**
* 动力类型
*/
@TableField("engine_type")
private String engineType;
/**
* 动力编号
*/
@TableField("engine_num")
private String engineNum;
/**
* 面板模型
*/
@TableField("panel_model")
private String panelModel;
/**
* 面板编号
*/
@TableField("panel_num")
private String panelNum;
/**
* 级联模型
*/
@TableField("cascade_model")
private String cascadeModel;
/**
* 级联线路模型
*/
@TableField("cascade_line_model")
private String cascadeLineModel;
/**
* 扶手带类型
*/
@TableField("handrail_type")
private String handrailType;
/**
* 扶手面板模型
*/
@TableField("handrail_panel_model")
private String handrailPanelModel;
/**
* 扶手面板品牌
*/
@TableField("handrail_panel_brand")
private String handrailPanelBrand;
/**
* 滚转机模式
*/
@TableField("roller_mode")
private String rollerMode;
/**
* 倾斜的角度
*/
@TableField("tilt_angle")
private String tiltAngle;
/**
* 横向跨度
*/
@TableField("horizontal_span")
private String horizontalSpan;
/**
* 运行噪音
*/
@TableField("running_noise")
private String runningNoise;
/**
* 运行方式
*/
@TableField("running_mode")
private String runningMode;
/**
* 运行振动
*/
@TableField("running_vibration")
private String runningVibration;
/**
* 功率
*/
@TableField("power")
private String power;
/**
* 原始表id(来自历史数据库)
*/
@TableField("original_id")
private String originalId;
/**
* 是否删除(1:已删除,0:未删除)
*/
@TableField("is_delete")
private Boolean isDelete;
/**
* 更新日期
*/
@TableField("rec_date")
private Date recDate;
/**
* 更新人员id
*/
@TableField("rec_user_id")
private String recUserId;
/**
* 更新人员名称
*/
@TableField("rec_user_name")
private String recUserName;
/**
* 检验报告编号
*/
@TableField("inspection_report_no")
private String inspectionReportNo;
/**
* 检验时间
*/
@TableField("inspection_date")
private Date inspectionDate;
/**
* 下次检验时间
*/
@TableField("next_inspection_time")
private Date nextInspectionTime;
/**
* 检验单位
*/
@TableField("inspection_unit_name")
private String inspectionUnitName;
/**
* 使用单位主管机构
*/
@TableField("use_unit_authority")
private String useUnitAuthority;
}
package com.yeejoin.amos.api.openapi.face.orm.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import org.typroject.tyboot.core.rdbms.orm.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
* 电梯故障表
* </p>
*
* @author 子杨
* @since 2021-09-28
*/
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("tz_elevator_alarm")
public class ElevatorAlarm extends BaseEntity {
/**
* <pre>
*
* </pre>
*/
private static final long serialVersionUID = -1519653642449280265L;
/**
* 电梯注册码
*/
@TableField("register_code")
private String registerCode;
/**
* 电梯应急救援识别码
*/
@TableField("rescue_code")
private Integer rescueCode;
/**
* 所属省
*/
@TableField("province")
private String province;
/**
* 所属地市
*/
@TableField("city")
private String city;
/**
* 所属区县
*/
@TableField("district")
private String district;
/**
* 电梯地址
*/
@TableField("address")
private String address;
/**
* 设备类别
*/
@TableField("device_category")
private String deviceCategory;
/**
* 原始故障编号
*/
@TableField("fault_id")
private String faultId;
/**
* 故障发生时间
*/
@TableField("start_date")
private Date startDate;
/**
* 故障类型编码
*/
@TableField("type")
private String type;
/**
* 故障类型名称
*/
@TableField("type_name")
private String typeName;
/**
* 处置状态。0:处置完成。1:故障发生 2:发出通知 3:处置响应 4:处置到场 5:误报
*/
@TableField("deal_status")
private Integer dealStatus;
/**
* 处置时间
*/
@TableField("deal_date")
private Date dealDate;
/**
* 处置人
*/
@TableField("deal_person")
private Integer dealPerson;
/**
* 现场确认是否困人。0:不困人,1:困人
*/
@TableField("is_trap")
private Integer isTrap;
/**
* 是否自恢复 0:否1:是
*/
@TableField("selfrepair")
private Integer selfrepair;
/**
* 故障发生时的总接触器吸合或是断开。0:吸合,1:断开
*/
@TableField("deal_note")
private Integer dealNote;
/**
* 是否自恢复 0:否1:是
*/
@TableField("main_contactor")
private Integer mainContactor;
/**
* 故障发生时的运行接触器吸合或是断开。0:吸合,1:断开
*/
@TableField("run_contactor")
private Integer runContactor;
/**
* 故障发生时的安全回路是否断开 0:正常,1:断开
*/
@TableField("circuit")
private Integer circuit;
/**
* 故障发生时的轿厢运行状态。1:停止,2:运行
*/
@TableField("car_status")
private Integer carStatus;
/**
* 故障发生时的方向。1:无方向 2:上行 3:下行
*/
@TableField("direction")
private Integer direction;
/**
* 故障发生时的轿厢是否在门区。1:轿厢在门区 0:轿厢在非门区
*/
@TableField("is_zone")
private Integer isZone;
/**
* 故障发生时的当前物理楼层
*/
@TableField("floor")
private Integer floor;
/**
* 故障发生时的关门到位 1:关门到位,0:无关门到位信号
*/
@TableField("door_status")
private Integer doorStatus;
/**
* 故障发生时的上极限是否动作 0:否,1:是
*/
@TableField("up_limit")
private Integer upLimit;
/**
* 故障发生时的下极限是否动作 0:否,1:是
*/
@TableField("down_limit")
private Integer downLimit;
/**
* 故障发生时的轿厢报警按钮是否动作 0:否,1:是
*/
@TableField("alarm")
private Integer alarm;
/**
* 累计运行小时数,保留到小数点后两位
*/
@TableField("hours")
private Double hours;
/**
* 累计运行次数
*/
@TableField("run_count")
private Integer runCount;
/**
* 操作人名称
*/
@TableField("rec_user_name")
private String recUserName;
/**
* 是否删除
*/
@TableField("is_delete")
private Boolean isDelete;
}
package com.yeejoin.amos.api.openapi.face.orm.entity;
import org.typroject.tyboot.core.rdbms.orm.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
* 电梯故障类型表
* </p>
*
* @author 子杨
* @since 2021-09-28
*/
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("tz_elevator_alarm_type")
public class ElevatorAlarmType extends BaseEntity {
/**
* <pre>
*
* </pre>
*/
private static final long serialVersionUID = -1519653642449280265L;
/**
* 告警类型编码
*/
@TableField("alarm_code")
private Integer alarmCode;
/**
* 告警类型名称
*/
@TableField("alarm_name")
private String alarmName;
}
package com.yeejoin.amos.api.openapi.face.orm.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import org.typroject.tyboot.core.rdbms.orm.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
* 电梯运行状态表
* </p>
*
* @author 子杨
* @since 2021-09-28
*/
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("tz_elevator_status")
public class ElevatorStatus extends BaseEntity {
/**
* <pre>
*
* </pre>
*/
private static final long serialVersionUID = -3358752503473254L;
/**
* 电梯注册码
*/
@TableField("register_code")
private String registerCode;
/**
* 原始状态编码
*/
@TableField("status_id")
private String statusId;
/**
* 是否在线。1:是,0:否
*/
@TableField("is_online")
private Integer isOnline;
/**
* 运行数据上传时间
*/
@TableField("upload_date")
private Date uploadDate;
/**
* 总接触器吸合或是断开。0:吸合,1:断开
*/
@TableField("main_contactor")
private Integer mainContactor;
/**
* 运行接触器吸合或是断开。0:吸合,1:断开
*/
@TableField("run_contactor")
private Integer runContactor;
/**
* 安全回路是否断开,0:正常,1:断开
*/
@TableField("circuit")
private Integer circuit;
/**
* 当前电梯运行模式。1:停止服务 2:正常运行 3:检修 4:消防返回 5:消防员运行 6:应急电源运行 7:地震模式 8: 未知
*/
@TableField("service_model")
private Integer serviceModel;
/**
* 轿厢运行状态。1:停止,2:运行
*/
@TableField("lift_status")
private Integer liftStatus;
/**
* 轿厢运行方向。1:无方向 2:上行 3:下行
*/
@TableField("lift_direction")
private Integer liftDirection;
/**
* 轿厢是否在门区。1:轿厢在门区 0:轿厢在非门区
*/
@TableField("is_zone")
private Integer isZone;
/**
* 运行速度,单位:cm/s
*/
@TableField("elevator_speed")
private Integer elevatorSpeed;
/**
* 当前物理楼层
*/
@TableField("curr_floor")
private Integer currFloor;
/**
* 关门到位 1:关门到位,0:无关门到位信号
*/
@TableField("door_status")
private Integer doorStatus;
/**
* 上极限是否动作 0:否,1:是
*/
@TableField("up_limit")
private Integer upLimit;
/**
* 下极限是否动作 0:否,1:是
*/
@TableField("down_limit")
private Integer downLimit;
/**
* 轿厢报警按钮是否动作 0:否,1:是
*/
@TableField("alarm")
private Integer alarm;
/**
* 轿厢内是否有人 0:无,1:有
*/
@TableField("person_flag")
private Integer personFlag;
/**
* 累计运行小时数,保留到小数点后两位
*/
@TableField("hours")
private Double hours;
/**
* 累计运行次数
*/
@TableField("run_count")
private Integer runCount;
/**
* 操作人名称
*/
@TableField("rec_user_name")
private String recUserName;
/**
* 是否删除
*/
@TableField("is_delete")
private Boolean isDelete;
}
package com.yeejoin.amos.api.openapi.face.orm.entity;
import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
/**
*
* <pre>
* 装备分类
* </pre>
*
* @author gwb
* @version $Id: EquipmentCategory.java, v 0.1 2021年10月15日 上午11:23:03 gwb Exp $
*/
@Data
@TableName("tz_equipment_category")
public class EquipmentCategory implements Serializable {
/**
* <pre>
*
* </pre>
*/
private static final long serialVersionUID = 5715164115243510569L;
/**
* 主键
*/
@TableField("id")
private Long id;
/**
*
*/
@TableField("parent_id")
private String parentId;
/**
* 装备分类编码
*/
@TableField("code")
private String code;
/**
* 装备分类名称
*/
@TableField("name")
private String name;
/**
* 描述
*/
@TableField("description")
private String description;
/**
* 备注
*/
@TableField("remark")
private String remark;
/**
*
*/
@TableField("create_date")
private Date createDate;
/**
* 行业编码
*/
@TableField("industry_code")
private String industryCode;
}
package com.yeejoin.amos.api.openapi.face.orm.entity;
import java.util.Date;
import org.typroject.tyboot.core.rdbms.orm.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
*
* <pre>
* 检验记录
* </pre>
*
* @author gwb
* @version $Id: InspectionRecord.java, v 0.1 2021年11月10日 下午3:49:04 gwb Exp $
*/
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("tz_inspection_record")
public class InspectionRecord extends BaseEntity {
/**
* <pre>
*
* </pre>
*/
private static final long serialVersionUID = -1519653642449280265L;
/**
* 报告编号
*/
@TableField("test_number")
private String testNumber;
/**
* 使用单位名称
*/
@TableField("company_name")
private String companyName;
/**
* 设备代码
*/
@TableField("eq_code")
private String eqCode;
/**
* 设备类别
*/
@TableField("eq_classes")
private String eqClasses;
/**
* 设备名称
*/
@TableField("eq_name")
private String eqName;
/**
* 施工单位
*/
@TableField("cons_unit")
private String consUnit;
/**
* 检验机构名称
*/
@TableField("test_org_name")
private String testOrgName;
/**
* 检验日期
*/
@TableField("test_date")
private Date testDate;
/**
* 型号
*/
@TableField("model_number")
private String modelNumber;
/**
* 维保单位
*/
@TableField("main_unit")
private String mainUnit;
/**
* 维保电话
*/
@TableField("main_mobile")
private String mainMobile;
/**
* 检验结论
*/
@TableField("test_result")
private String testResult;
/**
* 安装地点
*/
@TableField("inst_address")
private String instAddress;
/**
* 产品编号
*/
@TableField("pro_number")
private String proNumber;
/**
* 下次检验日期
*/
@TableField("next_test_date")
private Date nextTestDate;
/**
* 制造单位
*/
@TableField("manu_unit")
private String manuUnit;
/**
* 制造日期
*/
@TableField("sup_ins_date")
private String supInsDate;
/**
* 使用登记证编号
*/
@TableField("use_regist_number")
private String useRegistNumber;
/**
* 额定载重量
*/
@TableField("rated_load")
private String ratedLoad;
/**
* 层站门数
*/
@TableField("storey_station_door")
private String storeyStationDoor;
/**
* 使用单位联系人
*/
@TableField("contacts")
private String contacts;
/**
* 使用单位联系电话
*/
@TableField("contacts_mobile")
private String contactsMobile;
}
package com.yeejoin.amos.api.openapi.face.orm.entity;
import org.typroject.tyboot.core.rdbms.orm.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 企业数据对接票据管理
* @author kinky
*
*/
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("iot_openapi_biz_token")
public class OpenapiBizToken extends BaseEntity{
/**
*
*/
private static final long serialVersionUID = 1L;
/**
* 应用用户票据,唯一标识
*/
@TableField("APP_ID")
private String appId;
/**
* 默认登录用户
*/
@TableField("USER_NAME")
private String userName;
/**
* 默认登录密码
*/
@TableField("PASS_WORD")
private String passWord;
/**
* 应用编号
*/
@TableField("APP_KEY")
private String appKey;
/**
* 客户端标识
*/
@TableField("PRODUCT")
private String product;
/**
* 所属机构
*/
@TableField("AGENCY_CODE")
private String agencyCode;
/**
* 对接公司名称
*/
@TableField("API_COMPANY_NAME")
private String apiCompanyName;
/**
* 对接公司编码
*/
@TableField("API_COMPANY_CODE")
private String apiCompanyCode;
/**
* 服务机构-开发机构
*/
@TableField("DEVELOPER_AGENCY")
private String developerAgency;
}
package com.yeejoin.amos.api.openapi.face.orm.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 气瓶标签信息
* @author kinky
*
*/
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("tm_openapi_files")
public class OpenapiFiles extends AbstractBaseEntity{/**
*
*/
private static final long serialVersionUID = 1L;
@TableField("file_url")
private String fileUrl; //文件URL
@TableField("file_name")
private String fileName; //文件名称
@TableField("biz_id")
private Long bizId; //业务表ID
@TableField("biz_name")
private String bizName; //业务表名
@TableField("remark")
private String remark; //备用
}
package com.yeejoin.amos.api.openapi.face.orm.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import org.typroject.tyboot.core.rdbms.orm.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
*
* <pre>
*
* </pre>
*
* @author gwb
* @version $Id: OpenapiLog.java, v 0.1 2021年11月10日 下午5:53:15 gwb Exp $
*/
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("iot_openapi_log")
public class OpenapiLog extends BaseEntity {
private static final long serialVersionUID = 7799473276203462503L;
@TableField("REMOTE_IP")
private String remoteIp;
@TableField("RESULT")
private String result;
@TableField("METHOD_NAME")
private String methodName;
@TableField("METHOD_LABEL")
private String methodLabel;
@TableField("PARAMS")
private String params;
@TableField("TRACE_ID")
private String traceId;
@TableField("TOKEN")
private String token;
@TableField("AGENCY_CODE")
private String agencyCode;
@TableField("APP_CODE")
private String appCode;
/**
* 应用用户票据,唯一标识
*/
@TableField("APP_ID")
private String appId;
}
package com.yeejoin.amos.api.openapi.face.orm.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
* 锅炉
* </p>
*
* @author 子杨
* @since 2021-12-17
*/
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("tm_special_boiler")
public class SpecialBoiler extends AbstractBaseEntity {
private static final long serialVersionUID = 1L;
/**
* 设备唯一编码
*/
@TableField("sequence_code")
private String sequenceCode;
/**
* 设计工作压力(MPa)
*/
@TableField("design_use_pressure")
private String designUsePressure;
/**
* 许可工作压力(MPa)
*/
@TableField("permit_use_pressure")
private String permitUsePressure;
/**
* 额定出力(t/h)
*/
@TableField("rated_output")
private String ratedOutput;
/**
* 介质出口温度(℃)
*/
@TableField("medium_outlet_temperature")
private String mediumOutletTemperature;
/**
* 加热方式
*/
@TableField("heating_mode")
private String heatingMode;
/**
* 燃料种类
*/
@TableField("fuel_type")
private String fuelType;
/**
* 锅炉用途
*/
@TableField("boiler_use")
private String boilerUse;
/**
* 燃烧方式
*/
@TableField("combustion_mode")
private String combustionMode;
/**
* 水处理方式
*/
@TableField("Water_handle_mode")
private String waterHandleMode;
/**
* 除氧方式
*/
@TableField("deaeration_mode")
private String deaerationMode;
/**
* 出渣方式
*/
@TableField("slagging_mode")
private String slaggingMode;
/**
* 消烟除尘方式
*/
@TableField("eliminationz_dust_mode")
private String eliminationzDustMode;
/**
* 单位司炉数量(人)
*/
@TableField("unit_stoker_num")
private String unitStokerNum;
/**
* 水质人员数量(人)
*/
@TableField("Water_quality_use_num")
private String waterQualityUseNum;
/**
* 最大连续蒸发量(t/h)
*/
@TableField("max_continuous_evaporation")
private String maxContinuousEvaporation;
/**
* 再热蒸汽流量(t/h)
*/
@TableField("reheat_steam_flow")
private String reheatSteamFlow;
/**
* 锅筒工作压力(MPa)
*/
@TableField("drum_working_pressure")
private String drumWorkingPressure;
/**
* 过热器出口压力(MPa)
*/
@TableField("superheater_outlet_pressure")
private String superheaterOutletPressure;
/**
* 再热器入口压力(MPa)
*/
@TableField("reheater_inlet_pressure")
private String reheaterInletPressure;
/**
* 再热器出口压力(MPa)
*/
@TableField("reheater_outlet_pressure")
private String reheaterOutletPressure;
/**
* 给水温度(℃)
*/
@TableField("water_temperature")
private String waterTemperature;
/**
* 过热器出口温度(℃)
*/
@TableField("superheater_outlet_temperature")
private String superheaterOutletTemperature;
/**
* 再热器入口温度(℃)
*/
@TableField("reheater_inlet_temperature")
private String reheaterInletTemperature;
/**
* 再热器出口温度(℃)
*/
@TableField("reheater_outlet_temperature")
private String reheaterOutletTemperature;
/**
* 直流锅炉启动压力(MPa)
*/
@TableField("direct_boiler_starting_pressure")
private String directBoilerStartingPressure;
/**
* 直流锅炉启动流量
*/
@TableField("direct_boiler_starting_flow")
private String directBoilerStartingFlow;
/**
* 水循环方式
*/
@TableField("water_circulation_mode")
private String waterCirculationMode;
/**
* 燃烧器布置方式
*/
@TableField("burner_layout_mode")
private String burnerLayoutMode;
/**
* 设计燃料可燃基挥发份
*/
@TableField("design_fuel_combustible_volatile")
private String designFuelCombustibleVolatile;
/**
* 设计应用基低位发热值
*/
@TableField("design_app_low_calorific_value")
private String designAppLowCalorificValue;
/**
* 设计应用基低位发热值单位
*/
@TableField("design_app_low_calorific_value_unit")
private String designAppLowCalorificValueUnit;
/**
* 补给水处理方式
*/
@TableField("water_supply_treatment_mode")
private String waterSupplyTreatmentMode;
/**
* 过热蒸汽调温方式
*/
@TableField("overheated_steam_temperature_regulation_mode")
private String overheatedSteamTemperatureRegulationMode;
/**
* 再热蒸汽调温方式
*/
@TableField("reheat_steam_temperature_regulation_mode")
private String reheatSteamTemperatureRegulationMode;
/**
* 锅炉汽水分离方式
*/
@TableField("boiler_soda_separate_mode")
private String boilerSodaSeparateMode;
}
package com.yeejoin.amos.api.openapi.face.orm.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
* 设备施工告知信息
* </p>
*
* @author 子杨
* @since 2021-12-17
*/
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("tm_special_construction_info")
public class SpecialConstructionInfo extends AbstractBaseEntity {
private static final long serialVersionUID = 1L;
/**
* 设备全省唯一编号
*/
@TableField("sequence_code")
private String sequenceCode;
/**
* 告知单ID
*/
@TableField("info_id")
private String infoId;
/**
* 施工类别
*/
@TableField("construct_category")
private String constructCategory;
/**
* 设备名称
*/
@TableField("equ_name")
private String equName;
/**
* 告知单编号
*/
@TableField("info_code")
private String infoCode;
/**
* 注册登记机构
*/
@TableField("register_org")
private String registerOrg;
/**
* 签收日期
*/
@TableField("sign_date")
private String signDate;
/**
* 设备地点
*/
@TableField("equ_address")
private String equAddress;
/**
* 设备注册代码
*/
@TableField("equ_register_code")
private String equRegisterCode;
/**
* 设备型号
*/
@TableField("equ_type")
private String equType;
/**
* 出厂编号
*/
@TableField("factory_code")
private String factoryCode;
/**
* 设备所在地区代码
*/
@TableField("equ_region_code")
private String equRegionCode;
/**
* 设备代码
*/
@TableField("equ_code")
private String equCode;
/**
* 设备制造单位名称
*/
@TableField("equ_manufacture_unit_name")
private String equManufactureUnitName;
/**
* 许可证编号
*/
@TableField("equ_licence_num")
private String equLicenceNum;
/**
* 安装改造维修日期
*/
@TableField("install_reform_repair_date")
private String installReformRepairDate;
/**
* 安装竣工日期
*/
@TableField("install_completed_date")
private String installCompletedDate;
/**
* 施工单位
*/
@TableField("construct_unit")
private String constructUnit;
/**
* 施工单位ID
*/
@TableField("construct_unit_id")
private String constructUnitId;
/**
* 许可证编号(或受理编号)
*/
@TableField("construct_licence_num")
private String constructLicenceNum;
/**
* 施工单位社会信用代码
*/
@TableField("construct_unit_credit_code")
private String constructUnitCreditCode;
/**
* 施工单位联系人
*/
@TableField("construct_unit_contacts")
private String constructUnitContacts;
/**
* 施工单位邮编
*/
@TableField("construct_unit_code")
private String constructUnitCode;
/**
* 施工单位电话
*/
@TableField("construct_unit_phone")
private String constructUnitPhone;
/**
* 施工单位传真
*/
@TableField("construct_unit_fax")
private String constructUnitFax;
/**
* 施工单位地址
*/
@TableField("construct_unit_address")
private String constructUnitAddress;
/**
* 许可证有效期
*/
@TableField("construct_licence_validity")
private String constructLicenceValidity;
/**
* 使用单位名称
*/
@TableField("use_unit_name")
private String useUnitName;
/**
* 使用单位系统ID
*/
@TableField("use_unit_system_id")
private String useUnitSystemId;
/**
* 使用单位社会信用代码
*/
@TableField("use_unit_credit_code")
private String useUnitCreditCode;
/**
* 使用单位联系人
*/
@TableField("use_unit_contacts")
private String useUnitContacts;
/**
* 使用单位电话
*/
@TableField("use_unit_phone")
private String useUnitPhone;
/**
* 使用单位传真
*/
@TableField("use_unit_fax")
private String useUnitFax;
/**
* 使用单位地址
*/
@TableField("use_unit_address")
private String useUnitAddress;
/**
* 使用单位邮编
*/
@TableField("use_unit_code")
private String useUnitCode;
/**
* 告知日期
*/
@TableField("info_date")
private String infoDate;
/**
* 注册状态
*/
@TableField("register_state")
private String registerState;
/**
* 使用状态
*/
@TableField("use_state")
private String useState;
}
package com.yeejoin.amos.api.openapi.face.orm.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
* 起重机械
* </p>
*
* @author 子杨
* @since 2021-12-17
*/
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("tm_special_crane")
public class SpecialCrane extends AbstractBaseEntity {
private static final long serialVersionUID = 1L;
/**
* 设备全省唯一编号
*/
@TableField("sequence_code")
private String sequenceCode;
/**
* 起重机械载荷(t)
*/
@TableField("crane_load")
private String craneLoad;
/**
* 提升力矩(Kg/s)
*/
@TableField("lifting_torque")
private String liftingTorque;
/**
* 最大提升高度(m)
*/
@TableField("max_lifting_height")
private String maxLiftingHeight;
/**
* 起升高度(主钩)(m)
*/
@TableField("main_lifting_height")
private String mainLiftingHeight;
/**
* 起升高度(副钩)(m)
*/
@TableField("sec_lifting_height")
private String secLiftingHeight;
/**
* 工作半径(m)
*/
@TableField("working_radius")
private String workingRadius;
/**
* 工作级别
*/
@TableField("work_level")
private String workLevel;
/**
* 轨距(m)
*/
@TableField("gauge")
private String gauge;
/**
* 幅度(m)
*/
@TableField("ranges")
private String ranges;
/**
* 起升速度(m/min)
*/
@TableField("lifting_speed")
private String liftingSpeed;
/**
* 起升速度(主钩)(m/min)
*/
@TableField("main_speed_height")
private String mainSpeedHeight;
/**
* 起升速度(副钩) (m/min)
*/
@TableField("sec_speed_height")
private String secSpeedHeight;
/**
* 变幅形式
*/
@TableField("luffing_form")
private String luffingForm;
/**
* 跨度(m)
*/
@TableField("span")
private String span;
/**
* 额定起重量(主钩) (t)
*/
@TableField("main_rated_lifting_capacity")
private String mainRatedLiftingCapacity;
/**
* 额定起重量(副钩)(t)
*/
@TableField("sec_rated_lifting_capacity")
private String secRatedLiftingCapacity;
/**
* 大车运行速度(m/min)
*/
@TableField("big_car_speed")
private String bigCarSpeed;
/**
* 小车运行速度(m/min)
*/
@TableField("small_car_speed")
private String smallCarSpeed;
}
package com.yeejoin.amos.api.openapi.face.orm.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
* 电梯
* </p>
*
* @author 子杨
* @since 2021-12-17
*/
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("tm_special_elevator")
public class SpecialElevator extends AbstractBaseEntity {
private static final long serialVersionUID = 1L;
/**
* 设备全省唯一编号
*/
@TableField("sequence_code")
private String sequenceCode;
/**
* 运行速度(m/s)
*/
@TableField("running_speed")
private String runningSpeed;
/**
* 额定载荷(kg)
*/
@TableField("rated_load")
private String ratedLoad;
/**
* 电梯层站(层)
*/
@TableField("elevator_landing")
private String elevatorLanding;
/**
* 提升高度(m)
*/
@TableField("lifting_height")
private String liftingHeight;
/**
* 曳引机型号
*/
@TableField("traction_machine_model")
private String tractionMachineModel;
/**
* 曳引机出厂编号
*/
@TableField("traction_machine_factory_num")
private String tractionMachineFactoryNum;
/**
* 电动机型号
*/
@TableField("motor_model")
private String motorModel;
/**
* 电动机出厂编号
*/
@TableField("motor_factory_num")
private String motorFactoryNum;
/**
* 控制屏型号
*/
@TableField("control_panel_model")
private String controlPanelModel;
/**
* 控制屏出厂编号
*/
@TableField("control_panel_factory_num")
private String controlPanelFactoryNum;
/**
* 限速器型号
*/
@TableField("speed_governor_model")
private String speedGovernorModel;
/**
* 限速器出厂编号
*/
@TableField("speed_governor_factory_num")
private String speedGovernorFactoryNum;
/**
* 控制方式
*/
@TableField("control_mode")
private String controlMode;
/**
* 使用区域长度(m)
*/
@TableField("use_area_length")
private String useAreaLength;
/**
* 输送能力(人/h)
*/
@TableField("conveying_capacity")
private String conveyingCapacity;
/**
* 扶梯倾斜角(°)
*/
@TableField("escalator_inclination_angle")
private String escalatorInclinationAngle;
/**
* 梯级宽度(m)
*/
@TableField("step_width")
private String stepWidth;
}
package com.yeejoin.amos.api.openapi.face.orm.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
* 设备信息
* </p>
*
* @author 子杨
* @since 2021-12-17
*/
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("tm_special_equ")
public class SpecialEqu extends AbstractBaseEntity {
private static final long serialVersionUID = 1L;
/**
* 必填,监察为准,原码保持
*/
@TableField("sequence_code")
private String sequenceCode;
/**
* 系统设备ID
*/
@TableField("equi_id")
private String equiId;
/**
* 注册状态
*/
@TableField("register_state")
private String registerState;
/**
* 使用状态
*/
@TableField("use_state")
private String useState;
/**
* 注册登记机构
*/
@TableField("register_org")
private String registerOrg;
/**
* 注册登记日期
*/
@TableField("register_date")
private String registerDate;
/**
* 设备注册代码
*/
@TableField("equ_register_code")
private String equRegisterCode;
/**
* 注册登记人员
*/
@TableField("register_user")
private String registerUser;
/**
* 使用登记证编号
*/
@TableField("use_code")
private String useCode;
/**
* 发证类型
*/
@TableField("certificates_type")
private String certificatesType;
/**
* 发证机构
*/
@TableField("certificates_org")
private String certificatesOrg;
/**
* 发证日期
*/
@TableField("certificates_date")
private String certificatesDate;
/**
* 首次发证日期
*/
@TableField("first_certificates_date")
private String firstCertificatesDate;
/**
* 有效期至
*/
@TableField("valid_until_date")
private String validUntilDate;
/**
* 设备类别
*/
@TableField("equ_category")
private String equCategory;
/**
* 设备类别代码
*/
@TableField("equ_category_code")
private String equCategoryCode;
/**
* 设备品种
*/
@TableField("equ_define")
private String equDefine;
/**
* 产品名称
*/
@TableField("product_name")
private String productName;
/**
* 产品编号
*/
@TableField("product_code")
private String productCode;
/**
* 设备代码
*/
@TableField("equ_code")
private String equCode;
/**
* 型号(规格)
*/
@TableField("equ_type")
private String equType;
/**
* 设计使用年限
*/
@TableField("design_use_years")
private String designUseYears;
/**
* 设计单位名称
*/
@TableField("design_unit_name")
private String designUnitName;
/**
* 设计单位统一信用代码
*/
@TableField("design_unit_credit_code")
private String designUnitCreditCode;
/**
* 制造单位名称
*/
@TableField("manufacture_unit_name")
private String manufactureUnitName;
/**
* 制造单位统一信用代码
*/
@TableField("manufacture_unit_credit_code")
private String manufactureUnitCreditCode;
/**
* 施工单位名称
*/
@TableField("construction_unit_name")
private String constructionUnitName;
/**
* 施工单位统一信用代码
*/
@TableField("construction_unit_credit_code")
private String constructionUnitCreditCode;
/**
* 制造日期
*/
@TableField("manufacture_date")
private String manufactureDate;
/**
* 监督检验机构名称
*/
@TableField("supervision_inspection_org_name")
private String supervisionInspectionOrgName;
/**
* 型式试验机构名称
*/
@TableField("type_test_org_name")
private String typeTestOrgName;
/**
* 固定检验地址
*/
@TableField("fixed_inspection_address")
private String fixedInspectionAddress;
/**
* 维保单位
*/
@TableField("maintenance_unit")
private String maintenanceUnit;
/**
* 维保单位统一信用代码
*/
@TableField("maintenance_unit_credit_code")
private String maintenanceUnitCreditCode;
/**
* 应急救援电话
*/
@TableField("emergency_rescue_phone")
private String emergencyRescuePhone;
/**
* 使用单位名称
*/
@TableField("use_unit_name")
private String useUnitName;
/**
* 所在地区代码
*/
@TableField("region_code")
private String regionCode;
/**
* 使用单位地址
*/
@TableField("use_unit_address")
private String useUnitAddress;
/**
* 使用单位统一社会信用代码
*/
@TableField("use_unit_credit_code")
private String useUnitCreditCode;
/**
* 邮政编码
*/
@TableField("postal_code")
private String postalCode;
/**
* 单位内编号
*/
@TableField("unit_inner_code")
private String unitInnerCode;
/**
* 设备使用地点
*/
@TableField("equ_use_address")
private String equUseAddress;
/**
* 投入使用日期
*/
@TableField("invest_use_date")
private String investUseDate;
/**
* 单位固定电话
*/
@TableField("unit_fixed_phone")
private String unitFixedPhone;
/**
* 安全管理员
*/
@TableField("safe_officer")
private String safeOfficer;
/**
* 安全管理联系电话
*/
@TableField("safe_officer_phone")
private String safeOfficerPhone;
/**
* 产权单位
*/
@TableField("owner_unit")
private String ownerUnit;
/**
* 产权单位统一社会信用代码
*/
@TableField("owner_unit_credit_code")
private String ownerUnitCreditCode;
/**
* 联系电话
*/
@TableField("phone")
private String phone;
/**
* 经度
*/
@TableField("longitude")
private String longitude;
/**
* 纬度
*/
@TableField("latitude")
private String latitude;
}
package com.yeejoin.amos.api.openapi.face.orm.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
* 检验信息
* </p>
*
* @author 子杨
* @since 2021-12-17
*/
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("tm_special_inspect")
public class SpecialInspect extends AbstractBaseEntity {
private static final long serialVersionUID = 1L;
/**
* 设备全省唯一编号
*/
@TableField("sequence_code")
private String sequenceCode;
/**
* 检验信息唯一ID
*/
@TableField("inspect_info_id")
private String inspectInfoId;
/**
* 检验日期
*/
@TableField("inspect_date")
private String inspectDate;
/**
* 检验类别
*/
@TableField("inspect_category")
private String inspectCategory;
/**
* 检验结论
*/
@TableField("inspect_conclusion")
private String inspectConclusion;
/**
* 报告书编号
*/
@TableField("report_code")
private String reportCode;
/**
* 下次检验日期
*/
@TableField("next_inspect_date")
private String nextInspectDate;
/**
* 检验员姓名
*/
@TableField("inspector_name")
private String inspectorName;
/**
* 报告出具日期
*/
@TableField("report_date")
private String reportDate;
/**
* 检验机构统一信用代码
*/
@TableField("inspect_org_credit_code")
private String inspectOrgCreditCode;
/**
* 检验机构名称
*/
@TableField("inspect_org_credit_name")
private String inspectOrgCreditName;
}
package com.yeejoin.amos.api.openapi.face.orm.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
* 客运索道
* </p>
*
* @author 子杨
* @since 2021-12-17
*/
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("tm_special_passenger_ropeway")
public class SpecialPassengerRopeway extends AbstractBaseEntity {
private static final long serialVersionUID = 1L;
/**
* 设备全省唯一编号
*/
@TableField("sequence_code")
private String sequenceCode;
/**
* 运行速度(m/s)
*/
@TableField("running_speed")
private String runningSpeed;
/**
* 长度(斜长)(m)
*/
@TableField("inclination_length")
private String inclinationLength;
/**
* 输送能力(运量)(人/h)
*/
@TableField("trans_ability")
private String transAbility;
}
package com.yeejoin.amos.api.openapi.face.orm.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
* 压力容器
* </p>
*
* @author 子杨
* @since 2021-12-17
*/
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("tm_special_pres_container")
public class SpecialPresContainer extends AbstractBaseEntity {
private static final long serialVersionUID = 1L;
/**
* 设备全省唯一编号
*/
@TableField("sequence_code")
private String sequenceCode;
/**
* 容器内径(mm)
*/
@TableField("container_bore")
private String containerBore;
/**
* 筒体材料
*/
@TableField("cylinder_material")
private String cylinderMaterial;
/**
* 封头材料
*/
@TableField("head_material")
private String headMaterial;
/**
* 内衬材料
*/
@TableField("lining_material")
private String liningMaterial;
/**
* 夹套材料
*/
@TableField("jacket_material")
private String jacketMaterial;
/**
* 筒体厚度(mm)
*/
@TableField("cylinder_thickness")
private String cylinderThickness;
/**
* 封头厚度(mm)
*/
@TableField("head_thickness")
private String headThickness;
/**
* 内衬厚度(mm)
*/
@TableField("lining_thickness")
private String liningThickness;
/**
* 夹套厚度(mm)
*/
@TableField("jacket_thickness")
private String jacketThickness;
/**
* 容器容积m³
*/
@TableField("container_volume")
private String containerVolume;
/**
* 容器高(长)(mm)
*/
@TableField("container_high")
private String containerHigh;
/**
* 壳体重量(Kg)
*/
@TableField("shell_weight")
private String shellWeight;
/**
* 内件重量(Kg)
*/
@TableField("internals_weight")
private String internalsWeight;
/**
* 充装重量(Kg)
*/
@TableField("filling_weight")
private String fillingWeight;
/**
* 有无保温绝热
*/
@TableField("is_thermal_insulation")
private String isThermalInsulation;
/**
* 壳程设计压力(MPa)
*/
@TableField("shell_design_pressure")
private String shellDesignPressure;
/**
* 壳程设计温度(℃)
*/
@TableField("shell_design_temperature")
private String shellDesignTemperature;
/**
* 壳程最高压力(MPa)
*/
@TableField("shell_highest_pressure")
private String shellHighestPressure;
/**
* 管程设计压力(MPa)
*/
@TableField("tube_design_pressure")
private String tubeDesignPressure;
/**
* 管程设计温度(℃)
*/
@TableField("tube_design_temperature")
private String tubeDesignTemperature;
/**
* 管程最高工作压力(MPa)
*/
@TableField("tube_highest_pressure")
private String tubeHighestPressure;
/**
* 夹套设计压力(MPa)
*/
@TableField("jacket_design_pressure")
private String jacketDesignPressure;
/**
* 夹套设计温度(℃)
*/
@TableField("jacket_design_temperature")
private String jacketDesignTemperature;
/**
* 夹套最高工作压力(MPa)
*/
@TableField("jacket_highest_pressure")
private String jacketHighestPressure;
/**
* 壳程介质
*/
@TableField("shell_medium")
private String shellMedium;
/**
* 管程介质
*/
@TableField("tube_medium")
private String tubeMedium;
/**
* 夹套介质
*/
@TableField("jacket_medium")
private String jacketMedium;
/**
* 氧舱照明
*/
@TableField("oxygen_lighting")
private String oxygenLighting;
/**
* 氧舱空调电机
*/
@TableField("oxygen_air_conditioning")
private String oxygenAirConditioning;
/**
* 氧舱测氧方式
*/
@TableField("oxygen_measurement_mode")
private String oxygenMeasurementMode;
/**
* 罐车牌号
*/
@TableField("pot_car_num")
private String potCarNum;
/**
* 罐车结构型式
*/
@TableField("pot_car_structural_style")
private String potCarStructuralStyle;
/**
* 罐车底盘号码
*/
@TableField("pot_car_chassis_num")
private String potCarChassisNum;
}
package com.yeejoin.amos.api.openapi.face.orm.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
* 游乐设施
* </p>
*
* @author 子杨
* @since 2021-12-17
*/
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("tm_special_recreation_facility")
public class SpecialRecreationFacility extends AbstractBaseEntity {
private static final long serialVersionUID = 1L;
/**
* 设备全省唯一编号
*/
@TableField("sequence_code")
private String sequenceCode;
/**
* 游乐设施线速度(m/s)
*/
@TableField("recreation_facility_linear_velocity")
private String recreationFacilityLinearVelocity;
/**
* 游乐设施高度(m)
*/
@TableField("recreation_facility_height")
private String recreationFacilityHeight;
/**
* 额定乘客人数(人)
*/
@TableField("rate_passenger_num")
private String ratePassengerNum;
/**
* 额定载荷(kg)
*/
@TableField("rated_load")
private String ratedLoad;
/**
* 额定速度(m/s)
*/
@TableField("rated_speed")
private String ratedSpeed;
/**
* 倾夹角或坡度(°)
*/
@TableField("inclination_slope")
private String inclinationSlope;
/**
* 副速度(m/s)
*/
@TableField("sec_speed")
private String secSpeed;
/**
* 驱动形式
*/
@TableField("drive_model")
private String driveModel;
/**
* 驱动主功率(kW)
*/
@TableField("drive_main_power")
private String driveMainPower;
/**
* 电压(V)
*/
@TableField("voltage")
private String voltage;
/**
* 副功率(kW)
*/
@TableField("sec_power")
private String secPower;
/**
* 座舱高度(m)
*/
@TableField("cockpit_height")
private String cockpitHeight;
/**
* 回转直径(mm)
*/
@TableField("rotary_diameter")
private String rotaryDiameter;
/**
* 轨矩(m)
*/
@TableField("rail_moment")
private String railMoment;
/**
* 轨矩长度(mm)
*/
@TableField("rail_moment_length")
private String railMomentLength;
/**
* 水滑梯高度(m)
*/
@TableField("water_slide_heigth")
private String waterSlideHeigth;
/**
* 游乐池水深(m)
*/
@TableField("recreation_pool_depth")
private String recreationPoolDepth;
/**
* 设计使用寿命
*/
@TableField("design_use_life")
private String designUseLife;
/**
* 高度(静态)(m)
*/
@TableField("static_heigth")
private String staticHeigth;
}
package com.yeejoin.amos.api.openapi.face.orm.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
* 单位信息
* </p>
*
* @author 子杨
* @since 2021-12-17
*/
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("tm_special_unit")
public class SpecialUnit extends AbstractBaseEntity {
private static final long serialVersionUID = 1L;
/**
* 单位ID
*/
@TableField("unit_id")
private String unitId;
/**
* 单位名称
*/
@TableField("unit_name")
private String unitName;
/**
* 社会统一信用代码
*/
@TableField("credit_code")
private String creditCode;
/**
* 单位类型
*/
@TableField("unit_type")
private String unitType;
/**
* 地区代码
*/
@TableField("region_code")
private String regionCode;
/**
* 邮政编码
*/
@TableField("postal_code")
private String postalCode;
/**
* 单位详细地址
*/
@TableField("address")
private String address;
/**
* 法定代表人
*/
@TableField("legal_representative")
private String legalRepresentative;
/**
* 法人联系电话
*/
@TableField("legal_phone")
private String legalPhone;
/**
* 单位电话
*/
@TableField("unit_phone")
private String unitPhone;
/**
* 单位传真
*/
@TableField("unit_fax")
private String unitFax;
/**
* 电子邮箱
*/
@TableField("email")
private String email;
/**
* 单位网址
*/
@TableField("unit_website")
private String unitWebsite;
/**
* 联系人
*/
@TableField("contacts")
private String contacts;
/**
* 联系人电话
*/
@TableField("Contacts_phone")
private String contactsPhone;
/**
* 安全管理部门
*/
@TableField("safe_manage_org")
private String safeManageOrg;
/**
* 安全管理人员
*/
@TableField("safe_manage_people")
private String safeManagePeople;
/**
* 安管人员联系电话
*/
@TableField("safe_manage_people_phone")
private String safeManagePeoplePhone;
}
package com.yeejoin.amos.api.openapi.face.orm.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
* 厂(场)内机动车辆
* </p>
*
* @author 子杨
* @since 2021-12-17
*/
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("tm_special_vehicle")
public class SpecialVehicle extends AbstractBaseEntity {
private static final long serialVersionUID = 1L;
/**
* 设备全省唯一编号
*/
@TableField("sequence_code")
private String sequenceCode;
/**
* 运行速度(km/h)
*/
@TableField("running_speed")
private String runningSpeed;
/**
* 最高时速(km/h)
*/
@TableField("top_speed")
private String topSpeed;
/**
* 额定载荷(kg)
*/
@TableField("rated_load")
private String ratedLoad;
/**
* 动力方式
*/
@TableField("power_mode")
private String powerMode;
/**
* 车牌号码
*/
@TableField("car_num")
private String carNum;
/**
* 驱动
*/
@TableField("drive")
private String drive;
/**
* 空车重量
*/
@TableField("empty_weight")
private String emptyWeight;
/**
* 发动机编号
*/
@TableField("engine_num")
private String engineNum;
/**
* 有否拖挂车
*/
@TableField("is_trailer")
private String isTrailer;
/**
* 设备型号/厂牌型号
*/
@TableField("equ_model")
private String equModel;
/**
* 座位数量
*/
@TableField("seat_num")
private String seatNum;
/**
* 底盘编号
*/
@TableField("chassis_num")
private String chassisNum;
/**
* 燃料种类
*/
@TableField("fuel_type")
private String fuelType;
/**
* 颜色(字典)
*/
@TableField("colour")
private String colour;
}
package com.yeejoin.amos.api.openapi.face.service;
import java.util.Date;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;
import org.typroject.tyboot.component.cache.Redis;
import org.typroject.tyboot.core.foundation.context.RequestContext;
import org.typroject.tyboot.core.foundation.utils.ValidationUtil;
import org.typroject.tyboot.core.rdbms.service.BaseService;
import org.typroject.tyboot.core.restful.exception.instance.BadRequest;
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.CylinderFillingCheckModel;
import com.yeejoin.amos.api.openapi.face.model.CylinderTagsModel;
import com.yeejoin.amos.api.openapi.face.orm.dao.CylinderFillingCheckMapper;
import com.yeejoin.amos.api.openapi.face.orm.entity.CylinderFillingCheck;
/**
*
* <pre>
* 液化气体气瓶充装信息-充装后复查 服务类
* </pre>
*
* @author gwb
* @version $Id: ElevatorService.java, v 0.1 2021年9月30日 下午3:28:55 gwb Exp $
*/
@Component
public class CylinderFillingCheckService extends BaseService<CylinderFillingCheckModel,CylinderFillingCheck,CylinderFillingCheckMapper> {
@Autowired
private RedisTemplate redisTemplate;
@Transactional(rollbackFor= {Exception.class})
public String createCylinderFillingAfter(List<CylinderFillingCheckModel> model) {
// TODO Auto-generated method stub
// if (ValidationUtil.isEmpty(model))
// throw new BadRequest("气瓶标签信息为空.");
for (CylinderFillingCheckModel cylinderFillingCheckModel : model) {
cylinderFillingCheckModel.setRecDate(new Date());
cylinderFillingCheckModel.setAppId(getAppId());
this.createWithModel(cylinderFillingCheckModel);
}
return "OK";
}
private String getAppId() {
String tokenKey = Redis.genKey(Constant.TOKEN_PREFIX,RequestContext.getToken());
BizTokenModel bizTokenModel = (BizTokenModel) redisTemplate.opsForValue().get(tokenKey);
return bizTokenModel.getAppId();
}
}
package com.yeejoin.amos.api.openapi.face.service;
import java.util.Date;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;
import org.typroject.tyboot.component.cache.Redis;
import org.typroject.tyboot.core.foundation.context.RequestContext;
import org.typroject.tyboot.core.foundation.utils.ValidationUtil;
import org.typroject.tyboot.core.rdbms.service.BaseService;
import org.typroject.tyboot.core.restful.exception.instance.BadRequest;
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.CylinderFillingExamineModel;
import com.yeejoin.amos.api.openapi.face.model.CylinderTagsModel;
import com.yeejoin.amos.api.openapi.face.orm.dao.CylinderFillingExamineMapper;
import com.yeejoin.amos.api.openapi.face.orm.entity.CylinderFillingExamine;
/**
*
* <pre>
* 液化气体气瓶充装信息审核 服务类
* </pre>
*
* @author gwb
* @version $Id: ElevatorService.java, v 0.1 2021年9月30日 下午3:28:55 gwb Exp $
*/
@Component
public class CylinderFillingExamineService extends BaseService<CylinderFillingExamineModel,CylinderFillingExamine,CylinderFillingExamineMapper> {
@Autowired
private RedisTemplate redisTemplate;
@Transactional(rollbackFor= {Exception.class})
public String createCylinderFillingExamine(List<CylinderFillingExamineModel> model) {
// TODO Auto-generated method stub
if (ValidationUtil.isEmpty(model))
throw new BadRequest("液化气体气瓶充装信息审核为空.");
for (CylinderFillingExamineModel cylinderFillingExamineModel : model) {
cylinderFillingExamineModel.setRecDate(new Date());
cylinderFillingExamineModel.setAppId(getAppId());
this.createWithModel(cylinderFillingExamineModel);
}
return "OK";
}
private String getAppId() {
String tokenKey = Redis.genKey(Constant.TOKEN_PREFIX,RequestContext.getToken());
BizTokenModel bizTokenModel = (BizTokenModel) redisTemplate.opsForValue().get(tokenKey);
return bizTokenModel.getAppId();
}
}
package com.yeejoin.amos.api.openapi.face.service;
import java.util.Date;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;
import org.typroject.tyboot.component.cache.Redis;
import org.typroject.tyboot.core.foundation.context.RequestContext;
import org.typroject.tyboot.core.foundation.utils.ValidationUtil;
import org.typroject.tyboot.core.rdbms.service.BaseService;
import org.typroject.tyboot.core.restful.exception.instance.BadRequest;
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.CylinderFillingRecordModel;
import com.yeejoin.amos.api.openapi.face.model.CylinderTagsModel;
import com.yeejoin.amos.api.openapi.face.orm.dao.CylinderFillingRecordMapper;
import com.yeejoin.amos.api.openapi.face.orm.entity.CylinderFillingRecord;
/**
*
* <pre>
* 液化气体气瓶充装信息-充装记录 服务类
* </pre>
*
* @author gwb
* @version $Id: ElevatorService.java, v 0.1 2021年9月30日 下午3:28:55 gwb Exp $
*/
@Component
public class CylinderFillingRecordService extends BaseService<CylinderFillingRecordModel,CylinderFillingRecord,CylinderFillingRecordMapper> {
@Autowired
private RedisTemplate redisTemplate;
@Transactional(rollbackFor= {Exception.class})
public String createCylinderFilling(List<CylinderFillingRecordModel> model) {
// TODO Auto-generated method stub
// if (ValidationUtil.isEmpty(model))
// throw new BadRequest("气瓶标签信息为空.");
for (CylinderFillingRecordModel cylinderFillingRecordModel : model) {
cylinderFillingRecordModel.setRecDate(new Date());
cylinderFillingRecordModel.setAppId(getAppId());
this.createWithModel(cylinderFillingRecordModel);
}
return "OK";
}
private String getAppId() {
String tokenKey = Redis.genKey(Constant.TOKEN_PREFIX,RequestContext.getToken());
BizTokenModel bizTokenModel = (BizTokenModel) redisTemplate.opsForValue().get(tokenKey);
return bizTokenModel.getAppId();
}
}
package com.yeejoin.amos.api.openapi.face.service;
import java.util.Date;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;
import org.typroject.tyboot.component.cache.Redis;
import org.typroject.tyboot.core.foundation.context.RequestContext;
import org.typroject.tyboot.core.foundation.utils.ValidationUtil;
import org.typroject.tyboot.core.rdbms.service.BaseService;
import org.typroject.tyboot.core.restful.exception.instance.BadRequest;
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.CylinderFillingModel;
import com.yeejoin.amos.api.openapi.face.model.CylinderTagsModel;
import com.yeejoin.amos.api.openapi.face.orm.dao.CylinderFillingMapper;
import com.yeejoin.amos.api.openapi.face.orm.entity.CylinderFilling;
/**
*
* <pre>
* 气瓶充装信息--充装前检查 服务类
* </pre>
*
* @author gwb
* @version $Id: ElevatorService.java, v 0.1 2021年9月30日 下午3:28:55 gwb Exp $
*/
@Component
public class CylinderFillingService extends BaseService<CylinderFillingModel,CylinderFilling,CylinderFillingMapper> {
@Autowired
private RedisTemplate redisTemplate;
@Transactional(rollbackFor= {Exception.class})
public String createCylinderFillingBefore(List<CylinderFillingModel> model) {
// TODO Auto-generated method stub
// if (ValidationUtil.isEmpty(model))
// throw new BadRequest("气瓶标签信息为空.");
for (CylinderFillingModel cylinderFillingModel : model) {
cylinderFillingModel.setRecDate(new Date());
cylinderFillingModel.setAppId(getAppId());
this.createWithModel(cylinderFillingModel);
}
return "OK";
}
private String getAppId() {
String tokenKey = Redis.genKey(Constant.TOKEN_PREFIX,RequestContext.getToken());
BizTokenModel bizTokenModel = (BizTokenModel) redisTemplate.opsForValue().get(tokenKey);
return bizTokenModel.getAppId();
}
}
package com.yeejoin.amos.api.openapi.face.service;
import java.util.Date;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;
import org.typroject.tyboot.component.cache.Redis;
import org.typroject.tyboot.core.foundation.context.RequestContext;
import org.typroject.tyboot.core.foundation.utils.ValidationUtil;
import org.typroject.tyboot.core.rdbms.service.BaseService;
import org.typroject.tyboot.core.restful.exception.instance.BadRequest;
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.CylinderInfoModel;
import com.yeejoin.amos.api.openapi.face.orm.dao.CylinderInfoMapper;
import com.yeejoin.amos.api.openapi.face.orm.entity.CylinderInfo;
/**
*
* <pre>
*气瓶基本信息 服务类
* </pre>
*
* @author gwb
* @version $Id: ElevatorService.java, v 0.1 2021年9月30日 下午3:28:55 gwb Exp $
*/
@Component
public class CylinderInfoService extends BaseService<CylinderInfoModel,CylinderInfo,CylinderInfoMapper> {
@Autowired
private RedisTemplate redisTemplate;
@Transactional(rollbackFor= {Exception.class})
public String createCylinderInfo(List<CylinderInfoModel> model) {
// TODO Auto-generated method stub
if (ValidationUtil.isEmpty(model))
throw new BadRequest("气瓶基本信息数据为空.");
for (CylinderInfoModel cylinderInfoModel : model) {
cylinderInfoModel.setRecDate(new Date());
cylinderInfoModel.setAppId(getAppId());
this.createWithModel(cylinderInfoModel);
}
return "OK";
}
private String getAppId() {
String tokenKey = Redis.genKey(Constant.TOKEN_PREFIX,RequestContext.getToken());
BizTokenModel bizTokenModel = (BizTokenModel) redisTemplate.opsForValue().get(tokenKey);
return bizTokenModel.getAppId();
}
}
package com.yeejoin.amos.api.openapi.face.service;
import java.util.Date;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;
import org.typroject.tyboot.component.cache.Redis;
import org.typroject.tyboot.core.foundation.context.RequestContext;
import org.typroject.tyboot.core.foundation.utils.ValidationUtil;
import org.typroject.tyboot.core.rdbms.service.BaseService;
import org.typroject.tyboot.core.restful.exception.instance.BadRequest;
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.CylinderInspectionModel;
import com.yeejoin.amos.api.openapi.face.model.CylinderTagsModel;
import com.yeejoin.amos.api.openapi.face.orm.dao.CylinderInspectionMapper;
import com.yeejoin.amos.api.openapi.face.orm.entity.CylinderInspection;
/**
*
* <pre>
* 气瓶检验信息 服务类
* </pre>
*
* @author gwb
* @version $Id: ElevatorService.java, v 0.1 2021年9月30日 下午3:28:55 gwb Exp $
*/
@Component
public class CylinderInspectionService extends BaseService<CylinderInspectionModel,CylinderInspection,CylinderInspectionMapper> {
@Autowired
private RedisTemplate redisTemplate;
@Transactional(rollbackFor= {Exception.class})
public String createCylinderInspection(List<CylinderInspectionModel> model) {
if (ValidationUtil.isEmpty(model))
throw new BadRequest("气瓶检验信息为空.");
for (CylinderInspectionModel cylinderInspectionModel : model) {
cylinderInspectionModel.setRecDate(new Date());
cylinderInspectionModel.setAppId(getAppId());
this.createWithModel(cylinderInspectionModel);
}
return "OK";
}
private String getAppId() {
String tokenKey = Redis.genKey(Constant.TOKEN_PREFIX,RequestContext.getToken());
BizTokenModel bizTokenModel = (BizTokenModel) redisTemplate.opsForValue().get(tokenKey);
return bizTokenModel.getAppId();
}
}
package com.yeejoin.amos.api.openapi.face.service;
import java.util.Date;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;
import org.typroject.tyboot.component.cache.Redis;
import org.typroject.tyboot.core.foundation.context.RequestContext;
import org.typroject.tyboot.core.foundation.utils.ValidationUtil;
import org.typroject.tyboot.core.rdbms.service.BaseService;
import org.typroject.tyboot.core.restful.exception.instance.BadRequest;
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.CylinderFillingModelList;
import com.yeejoin.amos.api.openapi.face.model.CylinderTagsModel;
import com.yeejoin.amos.api.openapi.face.orm.dao.CylinderTagsMapper;
import com.yeejoin.amos.api.openapi.face.orm.entity.CylinderTags;
/**
*
* <pre>
* 气瓶标签信息 服务类
* </pre>
*
* @author gwb
* @version $Id: ElevatorService.java, v 0.1 2021年9月30日 下午3:28:55 gwb Exp $
*/
@Component
public class CylinderTagsService extends BaseService<CylinderTagsModel,CylinderTags,CylinderTagsMapper> {
@Autowired
private RedisTemplate redisTemplate;
@Transactional(rollbackFor= {Exception.class})
public String createCylinderTag(List<CylinderTagsModel> model) {
// TODO Auto-generated method stub
if (ValidationUtil.isEmpty(model))
throw new BadRequest("气瓶标签信息为空.");
for (CylinderTagsModel cylinderTagsModel : model) {
cylinderTagsModel.setRecDate(new Date());
cylinderTagsModel.setAppId(getAppId());
this.createWithModel(cylinderTagsModel);
}
return "OK";
}
private String getAppId() {
String tokenKey = Redis.genKey(Constant.TOKEN_PREFIX,RequestContext.getToken());
BizTokenModel bizTokenModel = (BizTokenModel) redisTemplate.opsForValue().get(tokenKey);
return bizTokenModel.getAppId();
}
}
package com.yeejoin.amos.api.openapi.face.service;
import java.util.Date;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;
import org.typroject.tyboot.component.cache.Redis;
import org.typroject.tyboot.core.foundation.context.RequestContext;
import org.typroject.tyboot.core.foundation.utils.ValidationUtil;
import org.typroject.tyboot.core.rdbms.service.BaseService;
import org.typroject.tyboot.core.restful.exception.instance.BadRequest;
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.CylinderUnitModel;
import com.yeejoin.amos.api.openapi.face.orm.dao.CylinderUnitMapper;
import com.yeejoin.amos.api.openapi.face.orm.entity.CylinderUnit;
/**
*
* <pre>
* 气瓶企业信息 服务类
* </pre>
*
* @author gwb
* @version $Id: ElevatorService.java, v 0.1 2021年9月30日 下午3:28:55 gwb Exp $
*/
@Component
public class CylinderUnitService extends BaseService<CylinderUnitModel,CylinderUnit,CylinderUnitMapper> {
@Autowired
private RedisTemplate redisTemplate;
@Transactional(rollbackFor= {Exception.class})
public String createCylinderUnit(List<CylinderUnitModel> model) {
if (ValidationUtil.isEmpty(model))
throw new BadRequest("气瓶企业信息数据为空.");
for (CylinderUnitModel cylinderUnitModel : model) {
cylinderUnitModel.setRecDate(new Date());
cylinderUnitModel.setAppId(getAppId());
this.createWithModel(cylinderUnitModel);
}
return "OK";
}
private String getAppId() {
String tokenKey = Redis.genKey(Constant.TOKEN_PREFIX,RequestContext.getToken());
BizTokenModel bizTokenModel = (BizTokenModel) redisTemplate.opsForValue().get(tokenKey);
return bizTokenModel.getAppId();
}
}
package com.yeejoin.amos.api.openapi.face.service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import com.yeejoin.amos.api.openapi.face.model.ElevatorAlarmModel;
import com.yeejoin.amos.api.openapi.face.model.ElevatorAlarmTypeModel;
import com.yeejoin.amos.api.openapi.face.model.ElevatorModel;
import com.yeejoin.amos.api.openapi.face.model.EquipmentCategoryModel;
import com.yeejoin.amos.api.openapi.face.orm.dao.ElevatorAlarmMapper;
import com.yeejoin.amos.api.openapi.face.orm.entity.ElevatorAlarm;
import org.typroject.tyboot.core.foundation.utils.Bean;
import org.typroject.tyboot.core.foundation.utils.ValidationUtil;
import org.typroject.tyboot.core.rdbms.service.BaseService;
import org.typroject.tyboot.core.restful.exception.instance.BadRequest;
import java.text.SimpleDateFormat;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* <p>
* 电梯故障表 服务类
* </p>
*
* @author 子杨
* @since 2021-09-27
*/
@Component
public class ElevatorAlarmService extends
BaseService<ElevatorAlarmModel, ElevatorAlarm, ElevatorAlarmMapper>
{
@Autowired
private ElevatorService elevatorService;
@Autowired
private ElevatorAlarmTypeService elevatorAlarmTypeService;
@Autowired
private EquipmentCategoryService equipmentCategoryService;
public Map<String, String> equipmentCategoryMap = null;
public Map<String, String> alarmTypeMap = null;
/**
*
* <pre>
* 批量保存电梯故障信息
* </pre>
*
* @param models
* @return
* @throws Exception
*/
public String multCreateElevatorAlarm(List<ElevatorAlarmModel> models) throws Exception
{
if (ValidationUtil.isEmpty(models))
throw new BadRequest("参数校验失败.");
for (ElevatorAlarmModel elevatorAlarmModel : models)
{
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
elevatorAlarmModel.setStartDate(
elevatorAlarmModel.getStartTime()!=null? sdf.parse(elevatorAlarmModel.getStartTime()): null);
elevatorAlarmModel.setDealDate(
elevatorAlarmModel.getDealTime()!=null? sdf.parse(elevatorAlarmModel.getDealTime()): null);
ElevatorAlarmModel oldModel = queryModelByCodeAndFaultId(elevatorAlarmModel.getRegisterCode(), elevatorAlarmModel.getFaultId());
//如果存在该故障编码则进行更新
if (ValidationUtil.isEmpty(oldModel))
{
ElevatorModel elevatorModel = elevatorService.queryByRegisterCode(elevatorAlarmModel.getRegisterCode());
//只保存现有维护电梯的告警信息
if (!ValidationUtil.isEmpty(elevatorModel))
{
elevatorAlarmModel.setRescueCode(elevatorModel.getRescueCode());
elevatorAlarmModel.setProvince(elevatorModel.getProvince());
elevatorAlarmModel.setCity(elevatorModel.getCity());
elevatorAlarmModel.setDistrict(elevatorModel.getDistrict());
elevatorAlarmModel.setAddress(elevatorModel.getAddress());
//填充电梯分类
if (ValidationUtil.isEmpty(equipmentCategoryMap))
{
equipmentCategoryMap = new HashMap<String, String>();
List<EquipmentCategoryModel> allEquipmentCategory = equipmentCategoryService.queryAllForlist();
for (EquipmentCategoryModel equipmentCategoryModel : allEquipmentCategory)
{
equipmentCategoryMap.put(equipmentCategoryModel.getCode(), equipmentCategoryModel.getName());
}
}
String category = equipmentCategoryMap.get(elevatorModel.getCategory());
elevatorAlarmModel.setDeviceCategory(category!=null? category:elevatorModel.getCategory());
//填充告警类型
if (ValidationUtil.isEmpty(alarmTypeMap))
{
alarmTypeMap = new HashMap<String, String>();
List<ElevatorAlarmTypeModel> allAlarmType = elevatorAlarmTypeService.queryAllForlist();
for (ElevatorAlarmTypeModel elevatorAlarmTypeModel : allAlarmType)
{
alarmTypeMap.put(String.valueOf(elevatorAlarmTypeModel.getAlarmCode()), elevatorAlarmTypeModel.getAlarmName());
}
}
String alarmType = alarmTypeMap.get(elevatorAlarmModel.getType());
elevatorAlarmModel.setTypeName(alarmType!= null? alarmType: elevatorAlarmModel.getType());
this.createWithModel(elevatorAlarmModel);
}
}else
{
Bean.copyExistPropertis(elevatorAlarmModel, oldModel);
this.updateWithModel(oldModel);
}
}
return "OK";
}
/**
*
* <pre>
* 根据电梯注册编码和故障编码查询电梯故障信息
* </pre>
*
* @param registerCode
* @param faultId
*/
private ElevatorAlarmModel queryModelByCodeAndFaultId(String registerCode, String faultId)
{
return this.queryModelByParams(registerCode, faultId);
}
}
package com.yeejoin.amos.api.openapi.face.service;
import java.util.List;
import org.springframework.stereotype.Component;
import org.typroject.tyboot.core.rdbms.service.BaseService;
import com.yeejoin.amos.api.openapi.face.model.ElevatorAlarmTypeModel;
import com.yeejoin.amos.api.openapi.face.orm.dao.ElevatorAlarmTypeMapper;
import com.yeejoin.amos.api.openapi.face.orm.entity.ElevatorAlarmType;
/**
*
* <pre>
* 电梯故障类型表 服务类
* </pre>
*
* @author gwb
* @version $Id: ElevatorAlarmTypeService.java, v 0.1 2021年10月15日 下午2:27:54 gwb Exp $
*/
@Component
public class ElevatorAlarmTypeService extends
BaseService<ElevatorAlarmTypeModel, ElevatorAlarmType, ElevatorAlarmTypeMapper>
{
/**
*
* <pre>
* 查询所有告警类型
* </pre>
*
* @return
*/
public List<ElevatorAlarmTypeModel> queryAllForlist()
{
return this.queryForList("sequence_nbr", true);
}
}
package com.yeejoin.amos.api.openapi.face.service;
import org.springframework.stereotype.Component;
import org.typroject.tyboot.core.rdbms.service.BaseService;
import com.yeejoin.amos.api.openapi.face.model.ElevatorModel;
import com.yeejoin.amos.api.openapi.face.orm.dao.ElevatorMapper;
import com.yeejoin.amos.api.openapi.face.orm.entity.Elevator;
/**
*
* <pre>
* 电梯 服务类
* </pre>
*
* @author gwb
* @version $Id: ElevatorService.java, v 0.1 2021年9月30日 下午3:28:55 gwb Exp $
*/
@Component
public class ElevatorService extends BaseService<ElevatorModel,Elevator,ElevatorMapper> {
public ElevatorModel queryByRegisterCode(String registerCode)
{
return this.queryModelByParams(registerCode);
}
}
package com.yeejoin.amos.api.openapi.face.service;
import java.text.SimpleDateFormat;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Lazy;
import org.springframework.http.HttpEntity;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.client.SimpleClientHttpRequestFactory;
import org.springframework.stereotype.Component;
import org.springframework.web.client.RestTemplate;
import org.typroject.tyboot.component.emq.EmqKeeper;
import org.typroject.tyboot.core.foundation.utils.Bean;
import org.typroject.tyboot.core.foundation.utils.ValidationUtil;
import org.typroject.tyboot.core.rdbms.service.BaseService;
import org.typroject.tyboot.core.restful.exception.instance.BadRequest;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.yeejoin.amos.api.common.restful.utils.ResponseModel;
import com.yeejoin.amos.api.openapi.enums.LiftCircuitStatusEnum;
import com.yeejoin.amos.api.openapi.enums.LiftContactorStatusEnum;
import com.yeejoin.amos.api.openapi.enums.LiftDirectionEnum;
import com.yeejoin.amos.api.openapi.enums.LiftDoorStatusEnum;
import com.yeejoin.amos.api.openapi.enums.LiftPersonFlagEnum;
import com.yeejoin.amos.api.openapi.enums.LiftServiceModelEnum;
import com.yeejoin.amos.api.openapi.enums.LiftStatusEnum;
import com.yeejoin.amos.api.openapi.face.model.ElevatorStatusModel;
import com.yeejoin.amos.api.openapi.face.model.ElevatorVideoModel;
import com.yeejoin.amos.api.openapi.face.orm.dao.ElevatorStatusMapper;
import com.yeejoin.amos.api.openapi.face.orm.entity.ElevatorStatus;
import net.sf.json.JSONObject;
/**
*
* <pre>
* 电梯运行状态表 服务类
* </pre>
*
* @author gwb
* @version $Id: ElevatorStatusService.java, v 0.1 2021年9月28日 下午7:55:18 gwb Exp $
*/
@Component
public class ElevatorStatusService extends
BaseService<ElevatorStatusModel, ElevatorStatus, ElevatorStatusMapper>
{
private static final Logger logger = LoggerFactory.getLogger(ElevatorStatusService.class);
@Autowired
private RestTemplate restTemplate;
@Lazy
@Autowired
private EmqKeeper emqKeeper;
@Value("${biz.lxyd.lift.url}")
private String lxydLiftUrl;
/**
*
* <pre>
* 批量保存电梯运行状态信息
* </pre>
*
* @param models
* @return
* @throws Exception
*/
public String multCreateElevatorStatus(List<ElevatorStatusModel> models) throws Exception
{
if (ValidationUtil.isEmpty(models))
throw new BadRequest("上报电梯状态数据为空.");
for (ElevatorStatusModel elevatorStatusModel : models)
{
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
elevatorStatusModel.setUploadDate(
elevatorStatusModel.getUploadTime()!= null? sdf.parse(elevatorStatusModel.getUploadTime()): null);
List<ElevatorStatusModel> oldModel = queryModelByCodeAndStatusId(elevatorStatusModel.getRegisterCode(), elevatorStatusModel.getStatusId());
//如果存在该状态编码则不进行发送
if (ValidationUtil.isEmpty(oldModel))
{
//实时消息发送
ObjectMapper mapper = new ObjectMapper();
String resultJson = mapper.writeValueAsString(builEnumName(elevatorStatusModel));
emqKeeper.getMqttClient().publish("openapi/lift/runStatusData" ,resultJson.getBytes(), 2 ,false);
}
elevatorStatusModel = this.createWithModel(elevatorStatusModel);
}
return "OK";
}
/**
*
* <pre>
* 查询电梯最新一条状态数据
* </pre>
*
* @param registerCode 电梯注册码
* @param highUpload 是否开启高频上传
* @return
* @throws Exception
*/
public ElevatorStatusModel getLatelyStatus(String registerCode, Boolean highUpload) throws Exception
{
ElevatorStatusModel elevatorStatusModel = null;
ElevatorStatus elevatorStatus = baseMapper.getLatelyStatus(registerCode);
if (!ValidationUtil.isEmpty(elevatorStatus))
{
elevatorStatusModel = Bean.toModel(elevatorStatus, new ElevatorStatusModel());
elevatorStatusModel = builEnumName(elevatorStatusModel);
//开启高频上传
if (highUpload)
{
this.highUpload(registerCode);
}
}else
{
elevatorStatusModel = new ElevatorStatusModel();
}
return elevatorStatusModel;
}
/**
*
* <pre>
* 高频上传状态数据请求
* </pre>
*
* @throws Exception
*/
public void highUpload(String registerCode) throws Exception
{
HttpHeaders headers = new HttpHeaders();
headers.add("Content-Type", "application/json");
SimpleClientHttpRequestFactory factory = new SimpleClientHttpRequestFactory();
factory.setConnectTimeout(30000);
factory.setReadTimeout(30000);
restTemplate.setRequestFactory(factory);
HttpEntity<String> request = new HttpEntity<String>(headers);
logger.info("发起电梯运行状态高频请求,电梯注册码:" + registerCode);
restTemplate.exchange(lxydLiftUrl + "/lift/runstatus?registerCode=" + registerCode, HttpMethod.GET, request, String.class);
}
/**
*
* <pre>
* 获取电梯视频播放地址
* </pre>
*
* @throws Exception
*/
@SuppressWarnings({ "unchecked", "rawtypes" })
public ElevatorVideoModel videoPreview(String registerCode) throws Exception
{
HttpHeaders headers = new HttpHeaders();
MediaType type = MediaType.parseMediaType("application/json; charset=UTF-8");
headers.setContentType(type);
headers.add("Content-Type", "application/json");
SimpleClientHttpRequestFactory factory = new SimpleClientHttpRequestFactory();
factory.setConnectTimeout(30000);
factory.setReadTimeout(30000);
restTemplate.setRequestFactory(factory);
HttpEntity<String> request = new HttpEntity<String>(headers);
logger.info("获取电梯视频播放地址,电梯注册码:" + registerCode);
String responseJson = restTemplate.exchange(lxydLiftUrl + "/lift/video/preview?registerCode=" + registerCode, HttpMethod.GET, request, String.class).getBody();
JSONObject jsonobject = JSONObject.fromObject(responseJson);
Map<String, Class> classMap = new HashMap<String, Class>();
classMap.put("result", ElevatorVideoModel.class);
ResponseModel<ElevatorVideoModel> responseModel = (ResponseModel<ElevatorVideoModel>)JSONObject.toBean(jsonobject,ResponseModel.class,classMap);
ElevatorVideoModel elevatorVideoModel = new ElevatorVideoModel();
elevatorVideoModel.setRegisterCode(registerCode);
if (responseModel.getStatus() == HttpStatus.OK.value())
{
elevatorVideoModel = responseModel.getResult();
}
return elevatorVideoModel;
}
/**
*
* <pre>
* 根据电梯注册编码和故障编码查询电梯故障信息
* </pre>
*
* @param registerCode
* @param faultId
*/
private List<ElevatorStatusModel> queryModelByCodeAndStatusId(String registerCode, String statusId)
{
return this.queryForList("upload_date", false,registerCode, statusId);
}
private ElevatorStatusModel builEnumName(ElevatorStatusModel elevatorStatusModel)
{
//总接触器吸合或是断开
elevatorStatusModel.setMainContactorName(String.valueOf(elevatorStatusModel.getMainContactor()));
if (!ValidationUtil.isEmpty(elevatorStatusModel.getMainContactor()) &&
!ValidationUtil.isEmpty(LiftContactorStatusEnum.getEnum(elevatorStatusModel.getMainContactor())))
{
elevatorStatusModel.setMainContactorName(LiftContactorStatusEnum.getEnum(elevatorStatusModel.getMainContactor()).getName());
}
//运行接触器吸合或是断开
elevatorStatusModel.setRunContactorName(String.valueOf(elevatorStatusModel.getRunContactor()));
if (!ValidationUtil.isEmpty(elevatorStatusModel.getRunContactor()) &&
!ValidationUtil.isEmpty(LiftContactorStatusEnum.getEnum(elevatorStatusModel.getRunContactor())))
{
elevatorStatusModel.setRunContactorName(LiftContactorStatusEnum.getEnum(elevatorStatusModel.getRunContactor()).getName());
}
//安全回路是否断开
elevatorStatusModel.setCircuitName(String.valueOf(elevatorStatusModel.getCircuit()));
if (!ValidationUtil.isEmpty(elevatorStatusModel.getCircuit()) &&
!ValidationUtil.isEmpty(LiftCircuitStatusEnum.getEnum(elevatorStatusModel.getCircuit())))
{
elevatorStatusModel.setCircuitName(LiftCircuitStatusEnum.getEnum(elevatorStatusModel.getCircuit()).getName());
}
//当前电梯运行模式
elevatorStatusModel.setServiceModelName(String.valueOf(elevatorStatusModel.getServiceModel()));
if (!ValidationUtil.isEmpty(elevatorStatusModel.getServiceModel()) &&
!ValidationUtil.isEmpty(LiftServiceModelEnum.getEnum(elevatorStatusModel.getServiceModel())))
{
elevatorStatusModel.setServiceModelName(LiftServiceModelEnum.getEnum(elevatorStatusModel.getServiceModel()).getName());
}
//轿厢运行状态
elevatorStatusModel.setLiftStatusName(String.valueOf(elevatorStatusModel.getLiftStatus()));
if (!ValidationUtil.isEmpty(elevatorStatusModel.getLiftStatus()) &&
!ValidationUtil.isEmpty(LiftStatusEnum.getEnum(elevatorStatusModel.getLiftStatus())))
{
elevatorStatusModel.setLiftStatusName(LiftStatusEnum.getEnum(elevatorStatusModel.getLiftStatus()).getName());
}
//轿厢运行方向
elevatorStatusModel.setLiftDirectionName(String.valueOf(elevatorStatusModel.getLiftDirection()));
if (!ValidationUtil.isEmpty(elevatorStatusModel.getLiftDirection()) &&
!ValidationUtil.isEmpty(LiftDirectionEnum.getEnum(elevatorStatusModel.getLiftDirection())))
{
elevatorStatusModel.setLiftDirectionName(LiftDirectionEnum.getEnum(elevatorStatusModel.getLiftDirection()).getName());
}
//关门到位
elevatorStatusModel.setDoorStatusName(String.valueOf(elevatorStatusModel.getDoorStatus()));
if (!ValidationUtil.isEmpty(elevatorStatusModel.getDoorStatus()) &&
!ValidationUtil.isEmpty(LiftDoorStatusEnum.getEnum(elevatorStatusModel.getDoorStatus())))
{
elevatorStatusModel.setDoorStatusName(LiftDoorStatusEnum.getEnum(elevatorStatusModel.getDoorStatus()).getName());
}
//轿厢内是否有人
elevatorStatusModel.setPersonFlagName(String.valueOf(elevatorStatusModel.getPersonFlag()));
if (!ValidationUtil.isEmpty(elevatorStatusModel.getPersonFlag()) &&
!ValidationUtil.isEmpty(LiftPersonFlagEnum.getEnum(elevatorStatusModel.getPersonFlag())))
{
elevatorStatusModel.setPersonFlagName(LiftPersonFlagEnum.getEnum(elevatorStatusModel.getPersonFlag()).getName());
}
return elevatorStatusModel;
}
}
package com.yeejoin.amos.api.openapi.face.service;
import java.util.List;
import org.springframework.stereotype.Component;
import org.typroject.tyboot.core.rdbms.service.BaseService;
import com.yeejoin.amos.api.openapi.face.model.EquipmentCategoryModel;
import com.yeejoin.amos.api.openapi.face.orm.dao.EquipmentCategoryMapper;
import com.yeejoin.amos.api.openapi.face.orm.entity.EquipmentCategory;
/**
*
* <pre>
* 装备分类 服务类
* </pre>
*
* @author gwb
* @version $Id: EquipmentCategoryService.java, v 0.1 2021年10月15日 下午2:28:29 gwb Exp $
*/
@Component
public class EquipmentCategoryService extends
BaseService<EquipmentCategoryModel, EquipmentCategory, EquipmentCategoryMapper>
{
/**
*
* <pre>
* 查询所有装备分类
* </pre>
*
* @return
*/
public List<EquipmentCategoryModel> queryAllForlist()
{
return this.queryForList("id", true);
}
}
package com.yeejoin.amos.api.openapi.face.service;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
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.cache.enumeration.CacheType;
import org.typroject.tyboot.core.foundation.context.RequestContext;
import org.typroject.tyboot.core.foundation.utils.ValidationUtil;
import org.typroject.tyboot.core.rdbms.annotation.Condition;
import org.typroject.tyboot.core.rdbms.annotation.Operator;
import org.typroject.tyboot.core.rdbms.service.BaseService;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
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.OpenapiBizTokenModel;
import com.yeejoin.amos.api.openapi.face.model.OpenapiLogModel;
import com.yeejoin.amos.api.openapi.face.orm.dao.OpenapiBizTokenMapper;
import com.yeejoin.amos.api.openapi.face.orm.entity.OpenapiBizToken;
import com.yeejoin.amos.component.feign.model.FeignClientResult;
import com.yeejoin.amos.feign.privilege.Privilege;
import com.yeejoin.amos.feign.privilege.model.AgencyUserModel;
import com.yeejoin.amos.feign.privilege.model.IdPasswordAuthModel;
/**
*
* <pre>
* 服务类
* </pre>
*
* @author gwb
* @version $Id: OpenapiLogService.java, v 0.1 2021年11月10日 下午5:55:31 gwb Exp $
*/
@Component
public class OpenapiBizTokenService extends BaseService<OpenapiBizTokenModel, OpenapiBizToken, OpenapiBizTokenMapper> {
@Autowired
private RedisTemplate redisTemplate;
public String getByAppId(String appId) {
// TODO Auto-generated method stub
OpenapiBizToken openapiBizToken = baseMapper.getByAppId(appId);
IdPasswordAuthModel idPasswordAuthModel = new IdPasswordAuthModel();
idPasswordAuthModel.setLoginId(openapiBizToken.getUserName());
idPasswordAuthModel.setPassword(openapiBizToken.getPassWord());
BizTokenModel bizTokenModel = new BizTokenModel();
bizTokenModel.setAppKey(openapiBizToken.getAppKey());
bizTokenModel.setProduct(openapiBizToken.getProduct());
bizTokenModel.setAgencyCode(openapiBizToken.getAgencyCode());
bizTokenModel.setAppId(openapiBizToken.getAppId());
bizTokenModel.setApiCompanyCode(openapiBizToken.getApiCompanyCode());
RequestContext.setProduct(openapiBizToken.getProduct());
RequestContext.setAppKey(openapiBizToken.getAppKey());
FeignClientResult<HashMap<String, Object>> responseModel = Privilege.authClient.idpassword(idPasswordAuthModel);
HashMap<String, Object> authModel = responseModel.getResult();
String token = (String) authModel.get("token");
bizTokenModel.setToken(token);
String tokenKey = Redis.genKey(Constant.TOKEN_PREFIX,token);
this.redisTemplate.opsForValue().set(tokenKey,bizTokenModel);
return token;
}
// private ObjectMapper objectMapper = new ObjectMapper();
// /**
// * 分页查询
// */
// @SuppressWarnings("unchecked")
// public Page<OpenapiLogModel> queryForOpenserviceOperateLogPage(Page page, String agencyCode, @Condition(Operator.like) String methodLabel) throws Exception {
//
// Page<OpenapiLogModel> openserviceOperateLogModelPage = this.queryForPage(page, "CREATE_TIME", false,agencyCode, methodLabel);
// List<OpenapiLogModel> openserviceOperateLogModelList = openserviceOperateLogModelPage.getRecords();
// Map<String, AgencyUserModel> userMap = new HashMap<String, AgencyUserModel>();
// for (OpenapiLogModel openserviceOperateLogModel : openserviceOperateLogModelList)
// {
// //填充操作人信息
// AgencyUserModel agencyUserModel = userMap.get(openserviceOperateLogModel.getRecUserId());
// if (ValidationUtil.isEmpty(agencyUserModel))
// {
// openserviceOperateLogModel.setUserName(openserviceOperateLogModel.getRecUserId());
// openserviceOperateLogModel.setUserRealName(openserviceOperateLogModel.getRecUserId());
// FeignClientResult<AgencyUserModel> responseModel = Privilege.agencyUserClient.queryByUserId(openserviceOperateLogModel.getRecUserId());
// AgencyUserModel userModel = responseModel.getResult();
// if (!ValidationUtil.isEmpty(userModel))
// {
// userMap.put(openserviceOperateLogModel.getRecUserId(), userModel);
// openserviceOperateLogModel.setUserName(userModel.getUserName());
// openserviceOperateLogModel.setUserRealName(userModel.getRealName());
// }
// }else
// {
// openserviceOperateLogModel.setUserName(agencyUserModel.getUserName());
// openserviceOperateLogModel.setUserRealName(agencyUserModel.getRealName());
// }
// //填充操作状态
// String result = openserviceOperateLogModel.getResult();
// Map<String, Object> mapJson = objectMapper.readValue(result,Map.class);
// String status = mapJson.get("status").toString();
// if (status.equals("200"))
// {
// openserviceOperateLogModel.setResultStatus("成功");
// }else
// {
// openserviceOperateLogModel.setResultStatus("失败");
// }
// }
// openserviceOperateLogModelPage.setRecords(openserviceOperateLogModelList);
// return openserviceOperateLogModelPage;
// }
//
// /**
// * 列表查询 示例
// */
// public List<OpenapiLogModel> queryForOpenserviceOperateLogList(String agencyCode) throws Exception {
// return this.queryForList("", false, agencyCode);
// }
}
package com.yeejoin.amos.api.openapi.face.service;
import java.util.List;
import org.springframework.stereotype.Component;
import org.typroject.tyboot.core.rdbms.service.BaseService;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yeejoin.amos.api.openapi.face.model.OpenapiFilesModel;
import com.yeejoin.amos.api.openapi.face.orm.dao.OpenapiFilesMapper;
import com.yeejoin.amos.api.openapi.face.orm.entity.OpenapiFiles;
/**
* <p>
* 文件 服务类
* </p>
*
* @author 子杨
* @since 2021-12-17
*/
@Component
public class OpenapiFilesService extends BaseService<OpenapiFilesModel, OpenapiFiles, OpenapiFilesMapper> {
/**
* 分页查询
*/
public Page<OpenapiFilesModel> queryForTmSpecialUnitPage(Page page, String agencyCode) {
return this.queryForPage(page, null, false, agencyCode);
}
/**
* 列表查询 示例
*/
public List<OpenapiFilesModel> queryForTmSpecialUnitList(String agencyCode) {
return this.queryForList("", false, agencyCode);
}
// public String createSpecialUnit(List<SpecialUnitModel> model) {
// // TODO Auto-generated method stub
// if (ValidationUtil.isEmpty(model))
// throw new BadRequest("单位信息数据为空.");
//
// for (SpecialUnitModel specialUnitModel : model) {
// specialUnitModel.setRecDate(new Date());
// specialUnitModel.setAppId(getAppId());
// this.createWithModel(specialUnitModel);
// }
// return "OK";
// }
// private String getAppId() {
// String tokenKey = Redis.genKey(Constant.TOKEN_PREFIX,RequestContext.getToken());
// BizTokenModel bizTokenModel = (BizTokenModel) redisTemplate.opsForValue().get(tokenKey);
// return bizTokenModel.getAppId();
// }
// @Autowired
// private RedisTemplate redisTemplate;
}
package com.yeejoin.amos.api.openapi.face.service;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.stereotype.Component;
import org.typroject.tyboot.core.foundation.utils.ValidationUtil;
import org.typroject.tyboot.core.rdbms.annotation.Condition;
import org.typroject.tyboot.core.rdbms.annotation.Operator;
import org.typroject.tyboot.core.rdbms.service.BaseService;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.yeejoin.amos.api.openapi.face.model.OpenapiLogModel;
import com.yeejoin.amos.api.openapi.face.orm.dao.OpenapiLogMapper;
import com.yeejoin.amos.api.openapi.face.orm.entity.OpenapiLog;
import com.yeejoin.amos.component.feign.model.FeignClientResult;
import com.yeejoin.amos.feign.privilege.Privilege;
import com.yeejoin.amos.feign.privilege.model.AgencyUserModel;
/**
*
* <pre>
* 服务类
* </pre>
*
* @author gwb
* @version $Id: OpenapiLogService.java, v 0.1 2021年11月10日 下午5:55:31 gwb Exp $
*/
@Component
public class OpenapiLogService extends BaseService<OpenapiLogModel, OpenapiLog, OpenapiLogMapper> {
private ObjectMapper objectMapper = new ObjectMapper();
/**
* 分页查询
*/
@SuppressWarnings("unchecked")
public Page<OpenapiLogModel> queryForOpenserviceOperateLogPage(Page page, String agencyCode, @Condition(Operator.like) String methodLabel) throws Exception {
Page<OpenapiLogModel> openserviceOperateLogModelPage = this.queryForPage(page, "CREATE_TIME", false,agencyCode, methodLabel);
List<OpenapiLogModel> openserviceOperateLogModelList = openserviceOperateLogModelPage.getRecords();
Map<String, AgencyUserModel> userMap = new HashMap<String, AgencyUserModel>();
for (OpenapiLogModel openserviceOperateLogModel : openserviceOperateLogModelList)
{
//填充操作人信息
AgencyUserModel agencyUserModel = userMap.get(openserviceOperateLogModel.getRecUserId());
if (ValidationUtil.isEmpty(agencyUserModel))
{
openserviceOperateLogModel.setUserName(openserviceOperateLogModel.getRecUserId());
openserviceOperateLogModel.setUserRealName(openserviceOperateLogModel.getRecUserId());
FeignClientResult<AgencyUserModel> responseModel = Privilege.agencyUserClient.queryByUserId(openserviceOperateLogModel.getRecUserId());
AgencyUserModel userModel = responseModel.getResult();
if (!ValidationUtil.isEmpty(userModel))
{
userMap.put(openserviceOperateLogModel.getRecUserId(), userModel);
openserviceOperateLogModel.setUserName(userModel.getUserName());
openserviceOperateLogModel.setUserRealName(userModel.getRealName());
}
}else
{
openserviceOperateLogModel.setUserName(agencyUserModel.getUserName());
openserviceOperateLogModel.setUserRealName(agencyUserModel.getRealName());
}
//填充操作状态
String result = openserviceOperateLogModel.getResult();
Map<String, Object> mapJson = objectMapper.readValue(result,Map.class);
String status = mapJson.get("status").toString();
if (status.equals("200"))
{
openserviceOperateLogModel.setResultStatus("成功");
}else
{
openserviceOperateLogModel.setResultStatus("失败");
}
}
openserviceOperateLogModelPage.setRecords(openserviceOperateLogModelList);
return openserviceOperateLogModelPage;
}
/**
* 列表查询 示例
*/
public List<OpenapiLogModel> queryForOpenserviceOperateLogList(String agencyCode) throws Exception {
return this.queryForList("", false, agencyCode);
}
}
package com.yeejoin.amos.api.openapi.face.service;
import java.util.Date;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;
import org.typroject.tyboot.component.cache.Redis;
import org.typroject.tyboot.core.foundation.context.RequestContext;
import org.typroject.tyboot.core.foundation.utils.ValidationUtil;
import org.typroject.tyboot.core.rdbms.service.BaseService;
import org.typroject.tyboot.core.restful.exception.instance.BadRequest;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
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.SpecialBoilerModel;
import com.yeejoin.amos.api.openapi.face.orm.dao.SpecialBoilerMapper;
import com.yeejoin.amos.api.openapi.face.orm.entity.SpecialBoiler;
/**
* <p>
* 锅炉 服务类
* </p>
*
* @author 子杨
* @since 2021-12-17
*/
@Component
public class SpecialBoilerService extends BaseService<SpecialBoilerModel, SpecialBoiler, SpecialBoilerMapper> {
/**
* 分页查询
*/
public Page<SpecialBoilerModel> queryForTmSpecialBoilerPage(Page page, String agencyCode) {
return this.queryForPage(page, null, false, agencyCode);
}
/**
* 列表查询 示例
*/
public List<SpecialBoilerModel> queryForTmSpecialBoilerList(String agencyCode) {
return this.queryForList("", false, agencyCode);
}
@Transactional(rollbackFor= {Exception.class})
public String createSpecialBoiler(List<SpecialBoilerModel> model) {
// TODO Auto-generated method stub
if (ValidationUtil.isEmpty(model))
throw new BadRequest("锅炉信息数据为空.");
for (SpecialBoilerModel specialBoilerModel : model) {
specialBoilerModel.setRecDate(new Date());
specialBoilerModel.setAppId(getAppId());
this.createWithModel(specialBoilerModel);
}
return "OK";
}
private String getAppId() {
String tokenKey = Redis.genKey(Constant.TOKEN_PREFIX,RequestContext.getToken());
BizTokenModel bizTokenModel = (BizTokenModel) redisTemplate.opsForValue().get(tokenKey);
return bizTokenModel.getAppId();
}
@Autowired
private RedisTemplate redisTemplate;
}
package com.yeejoin.amos.api.openapi.face.service;
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.SpecialBoilerModel;
import com.yeejoin.amos.api.openapi.face.model.SpecialConstructionInfoModel;
import com.yeejoin.amos.api.openapi.face.orm.dao.SpecialConstructionInfoMapper;
import com.yeejoin.amos.api.openapi.face.orm.entity.SpecialConstructionInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Component;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.typroject.tyboot.component.cache.Redis;
import org.typroject.tyboot.core.foundation.context.RequestContext;
import org.typroject.tyboot.core.foundation.utils.ValidationUtil;
import org.typroject.tyboot.core.rdbms.service.BaseService;
import org.typroject.tyboot.core.restful.exception.instance.BadRequest;
import java.util.Date;
import java.util.List;
/**
* <p>
* 设备施工告知信息 服务类
* </p>
*
* @author 子杨
* @since 2021-12-17
*/
@Component
public class SpecialConstructionInfoService extends
BaseService<SpecialConstructionInfoModel, SpecialConstructionInfo, SpecialConstructionInfoMapper> {
/**
* 分页查询
*/
public Page<SpecialConstructionInfoModel> queryForTmSpecialConstructionInfoPage(Page page,
String agencyCode) {
return this.queryForPage(page, null, false, agencyCode);
}
/**
* 列表查询 示例
*/
public List<SpecialConstructionInfoModel> queryForTmSpecialConstructionInfoList(String agencyCode) {
return this.queryForList("", false, agencyCode);
}
public String createSpecialConstructionInfo(List<SpecialConstructionInfoModel> model) {
// TODO Auto-generated method stub
if (ValidationUtil.isEmpty(model))
throw new BadRequest("设备施工告知信息数据为空.");
for (SpecialConstructionInfoModel specialConstructionInfoModel : model) {
specialConstructionInfoModel.setRecDate(new Date());
specialConstructionInfoModel.setAppId(getAppId());
this.createWithModel(specialConstructionInfoModel);
}
return "OK";
}
private String getAppId() {
String tokenKey = Redis.genKey(Constant.TOKEN_PREFIX,RequestContext.getToken());
BizTokenModel bizTokenModel = (BizTokenModel) redisTemplate.opsForValue().get(tokenKey);
return bizTokenModel.getAppId();
}
@Autowired
private RedisTemplate redisTemplate;
}
package com.yeejoin.amos.api.openapi.face.service;
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.SpecialBoilerModel;
import com.yeejoin.amos.api.openapi.face.model.SpecialCraneModel;
import com.yeejoin.amos.api.openapi.face.orm.dao.SpecialCraneMapper;
import com.yeejoin.amos.api.openapi.face.orm.entity.SpecialCrane;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Component;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.typroject.tyboot.component.cache.Redis;
import org.typroject.tyboot.core.foundation.context.RequestContext;
import org.typroject.tyboot.core.foundation.utils.ValidationUtil;
import org.typroject.tyboot.core.rdbms.service.BaseService;
import org.typroject.tyboot.core.restful.exception.instance.BadRequest;
import java.util.Date;
import java.util.List;
/**
* <p>
* 起重机械 服务类
* </p>
*
* @author 子杨
* @since 2021-12-17
*/
@Component
public class SpecialCraneService extends BaseService<SpecialCraneModel, SpecialCrane, SpecialCraneMapper> {
/**
* 分页查询
*/
public Page<SpecialCraneModel> queryForTmSpecialCranePage(Page page, String agencyCode) {
return this.queryForPage(page, null, false, agencyCode);
}
/**
* 列表查询 示例
*/
public List<SpecialCraneModel> queryForTmSpecialCraneList(String agencyCode) {
return this.queryForList("", false, agencyCode);
}
public String createSpecialCrane(List<SpecialCraneModel> model) {
// TODO Auto-generated method stub
if (ValidationUtil.isEmpty(model))
throw new BadRequest("起重机械数据为空.");
for (SpecialCraneModel specialCraneModel : model) {
specialCraneModel.setRecDate(new Date());
specialCraneModel.setAppId(getAppId());
this.createWithModel(specialCraneModel);
}
return "OK";
}
private String getAppId() {
String tokenKey = Redis.genKey(Constant.TOKEN_PREFIX,RequestContext.getToken());
BizTokenModel bizTokenModel = (BizTokenModel) redisTemplate.opsForValue().get(tokenKey);
return bizTokenModel.getAppId();
}
@Autowired
private RedisTemplate redisTemplate;
}
package com.yeejoin.amos.api.openapi.face.service;
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.SpecialBoilerModel;
import com.yeejoin.amos.api.openapi.face.model.SpecialElevatorModel;
import com.yeejoin.amos.api.openapi.face.orm.dao.SpecialElevatorMapper;
import com.yeejoin.amos.api.openapi.face.orm.entity.SpecialElevator;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Component;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.typroject.tyboot.component.cache.Redis;
import org.typroject.tyboot.core.foundation.context.RequestContext;
import org.typroject.tyboot.core.foundation.utils.ValidationUtil;
import org.typroject.tyboot.core.rdbms.service.BaseService;
import org.typroject.tyboot.core.restful.exception.instance.BadRequest;
import java.util.Date;
import java.util.List;
/**
* <p>
* 电梯 服务类
* </p>
*
* @author 子杨
* @since 2021-12-17
*/
@Component
public class SpecialElevatorService
extends BaseService<SpecialElevatorModel, SpecialElevator, SpecialElevatorMapper> {
/**
* 分页查询
*/
public Page<SpecialElevatorModel> queryForTmSpecialElevatorPage(Page page, String agencyCode) {
return this.queryForPage(page, null, false, agencyCode);
}
/**
* 列表查询 示例
*/
public List<SpecialElevatorModel> queryForTmSpecialElevatorList(String agencyCode) {
return this.queryForList("", false, agencyCode);
}
public String createSpecialElevator(List<SpecialElevatorModel> model) {
// TODO Auto-generated method stub
if (ValidationUtil.isEmpty(model))
throw new BadRequest("电梯信息数据为空.");
for (SpecialElevatorModel specialElevatorModel : model) {
specialElevatorModel.setRecDate(new Date());
specialElevatorModel.setAppId(getAppId());
this.createWithModel(specialElevatorModel);
}
return "OK";
}
private String getAppId() {
String tokenKey = Redis.genKey(Constant.TOKEN_PREFIX,RequestContext.getToken());
BizTokenModel bizTokenModel = (BizTokenModel) redisTemplate.opsForValue().get(tokenKey);
return bizTokenModel.getAppId();
}
@Autowired
private RedisTemplate redisTemplate;
}
package com.yeejoin.amos.api.openapi.face.service;
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.SpecialBoilerModel;
import com.yeejoin.amos.api.openapi.face.model.SpecialEquModel;
import com.yeejoin.amos.api.openapi.face.orm.dao.SpecialEquMapper;
import com.yeejoin.amos.api.openapi.face.orm.entity.SpecialEqu;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Component;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.typroject.tyboot.component.cache.Redis;
import org.typroject.tyboot.core.foundation.context.RequestContext;
import org.typroject.tyboot.core.foundation.utils.ValidationUtil;
import org.typroject.tyboot.core.rdbms.service.BaseService;
import org.typroject.tyboot.core.restful.exception.instance.BadRequest;
import java.util.Date;
import java.util.List;
/**
* <p>
* 设备信息 服务类
* </p>
*
* @author 子杨
* @since 2021-12-17
*/
@Component
public class SpecialEquService extends BaseService<SpecialEquModel, SpecialEqu, SpecialEquMapper> {
/**
* 分页查询
*/
public Page<SpecialEquModel> queryForTmSpecialEquPage(Page page, String agencyCode) {
return this.queryForPage(page, null, false, agencyCode);
}
/**
* 列表查询 示例
*/
public List<SpecialEquModel> queryForTmSpecialEquList(String agencyCode) {
return this.queryForList("", false, agencyCode);
}
public String createSpecialEqu(List<SpecialEquModel> model) {
// TODO Auto-generated method stub
if (ValidationUtil.isEmpty(model))
throw new BadRequest("设备信息数据为空.");
for (SpecialEquModel specialEquModel : model) {
specialEquModel.setRecDate(new Date());
specialEquModel.setAppId(getAppId());
this.createWithModel(specialEquModel);
}
return "OK";
}
private String getAppId() {
String tokenKey = Redis.genKey(Constant.TOKEN_PREFIX,RequestContext.getToken());
BizTokenModel bizTokenModel = (BizTokenModel) redisTemplate.opsForValue().get(tokenKey);
return bizTokenModel.getAppId();
}
@Autowired
private RedisTemplate redisTemplate;
}
package com.yeejoin.amos.api.openapi.face.service;
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.OpenapiFilesModel;
import com.yeejoin.amos.api.openapi.face.model.SpecialBoilerModel;
import com.yeejoin.amos.api.openapi.face.model.SpecialInspectModel;
import com.yeejoin.amos.api.openapi.face.orm.dao.SpecialInspectMapper;
import com.yeejoin.amos.api.openapi.face.orm.entity.SpecialInspect;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Component;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.typroject.tyboot.component.cache.Redis;
import org.typroject.tyboot.core.foundation.context.RequestContext;
import org.typroject.tyboot.core.foundation.utils.ValidationUtil;
import org.typroject.tyboot.core.rdbms.service.BaseService;
import org.typroject.tyboot.core.restful.exception.instance.BadRequest;
import java.util.Date;
import java.util.List;
/**
* <p>
* 检验信息 服务类
* </p>
*
* @author 子杨
* @since 2021-12-17
*/
@Component
public class SpecialInspectService
extends BaseService<SpecialInspectModel, SpecialInspect, SpecialInspectMapper> {
/**
* 分页查询
*/
public Page<SpecialInspectModel> queryForTmSpecialInspectPage(Page page, String agencyCode) {
return this.queryForPage(page, null, false, agencyCode);
}
/**
* 列表查询 示例
*/
public List<SpecialInspectModel> queryForTmSpecialInspectList(String agencyCode) {
return this.queryForList("", false, agencyCode);
}
public String createSpecialInspect(List<SpecialInspectModel> model) {
// TODO Auto-generated method stub
if (ValidationUtil.isEmpty(model))
throw new BadRequest("检验信息数据为空.");
for (SpecialInspectModel specialInspectModel : model) {
specialInspectModel.setRecDate(new Date());
specialInspectModel.setAppId(getAppId());
SpecialInspectModel inspectObj =this.createWithModel(specialInspectModel);
Long sequenceNbr = inspectObj.getSequenceNbr();
List<OpenapiFilesModel> inspectReportList = specialInspectModel.getInspectReport();
for (OpenapiFilesModel openapiFilesModel : inspectReportList) {
openapiFilesModel.setRecDate(new Date());
openapiFilesModel.setAppId(getAppId());
openapiFilesModel.setBizId(sequenceNbr);
openapiFilesModel.setBizName("tm_special_inspect");
openapiFilesService.createWithModel(openapiFilesModel);
}
}
return "OK";
}
private String getAppId() {
String tokenKey = Redis.genKey(Constant.TOKEN_PREFIX,RequestContext.getToken());
BizTokenModel bizTokenModel = (BizTokenModel) redisTemplate.opsForValue().get(tokenKey);
return bizTokenModel.getAppId();
}
@Autowired
private RedisTemplate redisTemplate;
@Autowired
private OpenapiFilesService openapiFilesService;
}
package com.yeejoin.amos.api.openapi.face.service;
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.SpecialBoilerModel;
import com.yeejoin.amos.api.openapi.face.model.SpecialPassengerRopewayModel;
import com.yeejoin.amos.api.openapi.face.orm.dao.SpecialPassengerRopewayMapper;
import com.yeejoin.amos.api.openapi.face.orm.entity.SpecialPassengerRopeway;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Component;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.typroject.tyboot.component.cache.Redis;
import org.typroject.tyboot.core.foundation.context.RequestContext;
import org.typroject.tyboot.core.foundation.utils.ValidationUtil;
import org.typroject.tyboot.core.rdbms.service.BaseService;
import org.typroject.tyboot.core.restful.exception.instance.BadRequest;
import java.util.Date;
import java.util.List;
/**
* <p>
* 客运索道 服务类
* </p>
*
* @author 子杨
* @since 2021-12-17
*/
@Component
public class SpecialPassengerRopewayService extends
BaseService<SpecialPassengerRopewayModel, SpecialPassengerRopeway, SpecialPassengerRopewayMapper> {
/**
* 分页查询
*/
public Page<SpecialPassengerRopewayModel> queryForTmSpecialPassengerRopewayPage(Page page,
String agencyCode) {
return this.queryForPage(page, null, false, agencyCode);
}
/**
* 列表查询 示例
*/
public List<SpecialPassengerRopewayModel> queryForTmSpecialPassengerRopewayList(String agencyCode) {
return this.queryForList("", false, agencyCode);
}
public String createSpecialPassengerRopeway(List<SpecialPassengerRopewayModel> model) {
// TODO Auto-generated method stub
if (ValidationUtil.isEmpty(model))
throw new BadRequest("客运索道信息数据为空.");
for (SpecialPassengerRopewayModel specialPassengerRopewayModel : model) {
specialPassengerRopewayModel.setRecDate(new Date());
specialPassengerRopewayModel.setAppId(getAppId());
this.createWithModel(specialPassengerRopewayModel);
}
return "OK";
}
private String getAppId() {
String tokenKey = Redis.genKey(Constant.TOKEN_PREFIX,RequestContext.getToken());
BizTokenModel bizTokenModel = (BizTokenModel) redisTemplate.opsForValue().get(tokenKey);
return bizTokenModel.getAppId();
}
@Autowired
private RedisTemplate redisTemplate;
}
package com.yeejoin.amos.api.openapi.face.service;
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.SpecialBoilerModel;
import com.yeejoin.amos.api.openapi.face.model.SpecialPresContainerModel;
import com.yeejoin.amos.api.openapi.face.orm.dao.SpecialPresContainerMapper;
import com.yeejoin.amos.api.openapi.face.orm.entity.SpecialPresContainer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Component;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.typroject.tyboot.component.cache.Redis;
import org.typroject.tyboot.core.foundation.context.RequestContext;
import org.typroject.tyboot.core.foundation.utils.ValidationUtil;
import org.typroject.tyboot.core.rdbms.service.BaseService;
import org.typroject.tyboot.core.restful.exception.instance.BadRequest;
import java.util.Date;
import java.util.List;
/**
* <p>
* 压力容器 服务类
* </p>
*
* @author 子杨
* @since 2021-12-17
*/
@Component
public class SpecialPresContainerService
extends BaseService<SpecialPresContainerModel, SpecialPresContainer, SpecialPresContainerMapper> {
/**
* 分页查询
*/
public Page<SpecialPresContainerModel> queryForTmSpecialPresContainerPage(Page page, String agencyCode) {
return this.queryForPage(page, null, false, agencyCode);
}
/**
* 列表查询 示例
*/
public List<SpecialPresContainerModel> queryForTmSpecialPresContainerList(String agencyCode) {
return this.queryForList("", false, agencyCode);
}
public String createSpecialPresContainer(List<SpecialPresContainerModel> model) {
// TODO Auto-generated method stub
if (ValidationUtil.isEmpty(model))
throw new BadRequest("压力容器信息数据为空.");
for (SpecialPresContainerModel specialPresContainerModel : model) {
specialPresContainerModel.setRecDate(new Date());
specialPresContainerModel.setAppId(getAppId());
this.createWithModel(specialPresContainerModel);
}
return "OK";
}
private String getAppId() {
String tokenKey = Redis.genKey(Constant.TOKEN_PREFIX,RequestContext.getToken());
BizTokenModel bizTokenModel = (BizTokenModel) redisTemplate.opsForValue().get(tokenKey);
return bizTokenModel.getAppId();
}
@Autowired
private RedisTemplate redisTemplate;
}
package com.yeejoin.amos.api.openapi.face.service;
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.SpecialBoilerModel;
import com.yeejoin.amos.api.openapi.face.model.SpecialRecreationFacilityModel;
import com.yeejoin.amos.api.openapi.face.orm.dao.SpecialRecreationFacilityMapper;
import com.yeejoin.amos.api.openapi.face.orm.entity.SpecialRecreationFacility;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Component;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.typroject.tyboot.component.cache.Redis;
import org.typroject.tyboot.core.foundation.context.RequestContext;
import org.typroject.tyboot.core.foundation.utils.ValidationUtil;
import org.typroject.tyboot.core.rdbms.service.BaseService;
import org.typroject.tyboot.core.restful.exception.instance.BadRequest;
import java.util.Date;
import java.util.List;
/**
* <p>
* 游乐设施 服务类
* </p>
*
* @author 子杨
* @since 2021-12-17
*/
@Component
public class SpecialRecreationFacilityService extends
BaseService<SpecialRecreationFacilityModel, SpecialRecreationFacility, SpecialRecreationFacilityMapper> {
/**
* 分页查询
*/
public Page<SpecialRecreationFacilityModel> queryForTmSpecialRecreationFacilityPage(Page page,
String agencyCode) {
return this.queryForPage(page, null, false, agencyCode);
}
/**
* 列表查询 示例
*/
public List<SpecialRecreationFacilityModel> queryForTmSpecialRecreationFacilityList(String agencyCode) {
return this.queryForList("", false, agencyCode);
}
public String createSpecialRecreationFacility(List<SpecialRecreationFacilityModel> model) {
// TODO Auto-generated method stub
if (ValidationUtil.isEmpty(model))
throw new BadRequest("游乐设施信息数据为空.");
for (SpecialRecreationFacilityModel specialRecreationFacilityModel : model) {
specialRecreationFacilityModel.setRecDate(new Date());
specialRecreationFacilityModel.setAppId(getAppId());
this.createWithModel(specialRecreationFacilityModel);
}
return "OK";
}
private String getAppId() {
String tokenKey = Redis.genKey(Constant.TOKEN_PREFIX,RequestContext.getToken());
BizTokenModel bizTokenModel = (BizTokenModel) redisTemplate.opsForValue().get(tokenKey);
return bizTokenModel.getAppId();
}
@Autowired
private RedisTemplate redisTemplate;
}
package com.yeejoin.amos.api.openapi.face.service;
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.SpecialBoilerModel;
import com.yeejoin.amos.api.openapi.face.model.SpecialUnitModel;
import com.yeejoin.amos.api.openapi.face.orm.dao.SpecialUnitMapper;
import com.yeejoin.amos.api.openapi.face.orm.entity.SpecialUnit;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Component;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.typroject.tyboot.component.cache.Redis;
import org.typroject.tyboot.core.foundation.context.RequestContext;
import org.typroject.tyboot.core.foundation.utils.ValidationUtil;
import org.typroject.tyboot.core.rdbms.service.BaseService;
import org.typroject.tyboot.core.restful.exception.instance.BadRequest;
import java.util.Date;
import java.util.List;
/**
* <p>
* 单位信息 服务类
* </p>
*
* @author 子杨
* @since 2021-12-17
*/
@Component
public class SpecialUnitService extends BaseService<SpecialUnitModel, SpecialUnit, SpecialUnitMapper> {
/**
* 分页查询
*/
public Page<SpecialUnitModel> queryForTmSpecialUnitPage(Page page, String agencyCode) {
return this.queryForPage(page, null, false, agencyCode);
}
/**
* 列表查询 示例
*/
public List<SpecialUnitModel> queryForTmSpecialUnitList(String agencyCode) {
return this.queryForList("", false, agencyCode);
}
public String createSpecialUnit(List<SpecialUnitModel> model) {
// TODO Auto-generated method stub
if (ValidationUtil.isEmpty(model))
throw new BadRequest("单位信息数据为空.");
for (SpecialUnitModel specialUnitModel : model) {
specialUnitModel.setRecDate(new Date());
specialUnitModel.setAppId(getAppId());
this.createWithModel(specialUnitModel);
}
return "OK";
}
private String getAppId() {
String tokenKey = Redis.genKey(Constant.TOKEN_PREFIX,RequestContext.getToken());
BizTokenModel bizTokenModel = (BizTokenModel) redisTemplate.opsForValue().get(tokenKey);
return bizTokenModel.getAppId();
}
@Autowired
private RedisTemplate redisTemplate;
}
package com.yeejoin.amos.api.openapi.face.service;
import java.util.Date;
import java.util.List;
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.core.foundation.context.RequestContext;
import org.typroject.tyboot.core.foundation.utils.ValidationUtil;
import org.typroject.tyboot.core.rdbms.service.BaseService;
import org.typroject.tyboot.core.restful.exception.instance.BadRequest;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
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.SpecialVehicleModel;
import com.yeejoin.amos.api.openapi.face.orm.dao.SpecialVehicleMapper;
import com.yeejoin.amos.api.openapi.face.orm.entity.SpecialVehicle;
/**
* <p>
* 厂(场)内机动车辆 服务类
* </p>
*
* @author 子杨
* @since 2021-12-17
*/
@Component
public class SpecialVehicleService
extends BaseService<SpecialVehicleModel, SpecialVehicle, SpecialVehicleMapper> {
/**
* 分页查询
*/
public Page<SpecialVehicleModel> queryForTmSpecialVehiclePage(Page<SpecialVehicleModel> page, String agencyCode) {
return this.queryForPage(page, null, false, agencyCode);
}
/**
* 列表查询 示例
*/
public List<SpecialVehicleModel> queryForTmSpecialVehicleList(String agencyCode) {
return this.queryForList("", false, agencyCode);
}
public String createSpecialVehicle(List<SpecialVehicleModel> model) {
// TODO Auto-generated method stub
if (ValidationUtil.isEmpty(model))
throw new BadRequest("厂(场)内机动车辆 数据为空.");
for (SpecialVehicleModel specialVehicleModel : model) {
specialVehicleModel.setRecDate(new Date());
specialVehicleModel.setAppId(getAppId());
this.createWithModel(specialVehicleModel);
}
return "OK";
}
private String getAppId() {
String tokenKey = Redis.genKey(Constant.TOKEN_PREFIX,RequestContext.getToken());
BizTokenModel bizTokenModel = (BizTokenModel) redisTemplate.opsForValue().get(tokenKey);
return bizTokenModel.getAppId();
}
@Autowired
private RedisTemplate redisTemplate;
}
# jdbc_config
spring.datasource.url=jdbc:mysql://172.16.6.60:3306/amos_openapi?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&serverTimezone=GMT%2B8
spring.datasource.username=root
spring.datasource.password=root_123
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.type=com.zaxxer.hikari.HikariDataSource
spring.datasource.hikari.minimum-idle=5
spring.datasource.hikari.maximum-pool-size=15
spring.datasource.hikari.auto-commit=true
spring.datasource.hikari.idle-timeout=30000
spring.datasource.hikari.pool-name=DatebookHikariCP
spring.datasource.hikari.max-lifetime=1800000
spring.datasource.hikari.connection-timeout=30000
spring.datasource.hikari.connection-test-query=SELECT 1
# REDIS (RedisProperties)
spring.redis.database=0
spring.redis.host=172.16.11.30
spring.redis.port=6379
spring.redis.password=amos2019Redis
spring.redis.lettuce.pool.max-active=200
spring.redis.lettuce.pool.max-wait=-1
spring.redis.lettuce.pool.max-idle=10
spring.redis.lettuce.pool.min-idle=0
spring.redis.expire.time=300
#注册中心地址
eureka.client.service-url.defaultZone =http://172.16.11.30:10001/eureka/
eureka.instance.prefer-ip-address=true
management.endpoint.health.show-details=always
management.endpoints.web.exposure.include=*
eureka.instance.health-check-url=http://localhost:${server.port}${server.servlet.context-path}/actuator/health
eureka.instance.metadata-map.management.context-path=${server.servlet.context-path}/actuator
eureka.instance.status-page-url=http://localhost:${server.port}${server.servlet.context-path}/actuator/info
eureka.instance.metadata-map.management.api-docs=http://localhost:${server.port}${server.servlet.context-path}/swagger-ui.html
##emqx
emqx.clean-session=true
emqx.client-id=${spring.application.name}-${random.int[1024,65536]}
emqx.broker=tcp://39.98.45.134:1883
emqx.user-name=super
emqx.password=a123456
emqx.max-inflight=1000
##biz custem properties
biz.lxyd.lift.url=http://39.106.181.149:8088/elevatorapi
\ No newline at end of file
# jdbc_config
spring.datasource.url=jdbc:mysql://113.134.211.174:3306/amos_openapi?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&serverTimezone=GMT%2B8
spring.datasource.username=root
spring.datasource.password=Yeejoin@2020
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.type=com.zaxxer.hikari.HikariDataSource
spring.datasource.hikari.minimum-idle=5
spring.datasource.hikari.maximum-pool-size=15
spring.datasource.hikari.auto-commit=true
spring.datasource.hikari.idle-timeout=30000
spring.datasource.hikari.pool-name=DatebookHikariCP
spring.datasource.hikari.max-lifetime=1800000
spring.datasource.hikari.connection-timeout=30000
spring.datasource.hikari.connection-test-query=SELECT 1
# REDIS (RedisProperties)
spring.redis.database=1
spring.redis.host=113.134.211.174
spring.redis.port=6379
spring.redis.password=yeejoin@2020
spring.redis.lettuce.pool.max-active=200
spring.redis.lettuce.pool.max-wait=-1
spring.redis.lettuce.pool.max-idle=10
spring.redis.lettuce.pool.min-idle=0
spring.redis.expire.time=300
#注册中心地址
eureka.client.service-url.defaultZone =http://113.134.211.174:10001/eureka/
eureka.instance.prefer-ip-address=true
management.endpoint.health.show-details=always
management.endpoints.web.exposure.include=*
eureka.instance.health-check-url=http://localhost:${server.port}${server.servlet.context-path}/actuator/health
eureka.instance.metadata-map.management.context-path=${server.servlet.context-path}/actuator
eureka.instance.status-page-url=http://localhost:${server.port}${server.servlet.context-path}/actuator/info
eureka.instance.metadata-map.management.api-docs=http://localhost:${server.port}${server.servlet.context-path}/swagger-ui.html
##emqx
emqx.clean-session=true
emqx.client-id=${spring.application.name}-${random.int[1024,65536]}
emqx.broker=tcp://113.134.211.174:1883
emqx.user-name=admin
emqx.password=public
emqx.max-inflight=1000
##biz custem properties
biz.lxyd.lift.url=http://39.106.181.149:8088/elevatorapi
\ No newline at end of file
# jdbc_config
spring.datasource.url=jdbc:mysql://113.134.211.174:3306/amos_openapi?allowMultiQueries=true&serverTimezone=GMT%2B8
spring.datasource.username=root
spring.datasource.password=Yeejoin@2020
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.type=com.zaxxer.hikari.HikariDataSource
spring.datasource.hikari.minimum-idle=5
spring.datasource.hikari.maximum-pool-size=15
spring.datasource.hikari.auto-commit=true
spring.datasource.hikari.idle-timeout=30000
spring.datasource.hikari.pool-name=DatebookHikariCP
spring.datasource.hikari.max-lifetime=1800000
spring.datasource.hikari.connection-timeout=30000
spring.datasource.hikari.connection-test-query=SELECT 1
# REDIS (RedisProperties)
spring.redis.database=1
spring.redis.host=113.134.211.174
spring.redis.port=6379
spring.redis.password=yeejoin@2020
spring.redis.lettuce.pool.max-active=200
spring.redis.lettuce.pool.max-wait=-1
spring.redis.lettuce.pool.max-idle=10
spring.redis.lettuce.pool.min-idle=0
spring.redis.expire.time=300
#注册中心地址
eureka.client.service-url.defaultZone =http://113.134.211.174:10001/eureka/
eureka.instance.prefer-ip-address=true
management.endpoint.health.show-details=always
management.endpoints.web.exposure.include=*
eureka.instance.health-check-url=http://localhost:${server.port}${server.servlet.context-path}/actuator/health
eureka.instance.metadata-map.management.context-path=${server.servlet.context-path}/actuator
eureka.instance.status-page-url=http://localhost:${server.port}${server.servlet.context-path}/actuator/info
eureka.instance.metadata-map.management.api-docs=http://localhost:${server.port}${server.servlet.context-path}/swagger-ui.html
##emqx
emqx.clean-session=true
emqx.client-id=${spring.application.name}-${random.int[1024,65536]}
emqx.broker=tcp://113.134.211.174:1883
emqx.user-name=admin
emqx.password=public
emqx.max-inflight=1000
##biz custem properties
biz.lxyd.lift.url=http://39.106.181.149:8088/elevatorapi
\ No newline at end of file
spring.application.name=AMOS-API-OPENAPI
server.port=11001
spring.profiles.active=dev
server.servlet.context-path=/openapi
server.compression.enabled=true
spring.jackson.dateFormat=yyyy-MM-dd HH:mm:ss
logging.config=classpath:logback-${spring.profiles.active}.xml
#设置文件上传的大小限制
spring.servlet.multipart.maxFileSize=3MB
spring.servlet.multipart.maxRequestSize=3MB
## redis失效时间
redis.cache.failure.time=10800
# mybatis-plus
mybatis-plus.mapper-locations=classpath:mapper/*Mapper.xml
mybatis-plus.type-aliases-super-type=org.typroject.tyboot.core.rdbms.orm.entity.BaseEntity
mybatis-plus.global-config.db-config.id-type=id_worker
<?xml version="1.0" encoding="UTF-8"?>
<configuration debug="false">
<!-- 控制台输出 -->
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
<!--格式化输出:%d表示日期,%thread表示线程名,%-5level:级别从左显示5个字符宽度%msg:日志消息,%n是换行符-->
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n</pattern>
</encoder>
</appender>
<!-- show parameters for hibernate sql 专为 Hibernate 定制
<logger name="org.hibernate.type.descriptor.sql.BasicBinder" level="TRACE" />
<logger name="org.hibernate.type.descriptor.sql.BasicExtractor" level="DEBUG" />
<logger name="org.hibernate.SQL" level="DEBUG" />
<logger name="org.hibernate.engine.QueryParameters" level="DEBUG" />
<logger name="org.hibernate.engine.query.HQLQueryPlan" level="DEBUG" />
-->
<!--myibatis log configure-->
<logger name="com.apache.ibatis" level="DEBUG"/>
<logger name="java.sql.Connection" level="DEBUG"/>
<logger name="java.sql.Statement" level="DEBUG"/>
<logger name="java.sql.PreparedStatement" level="DEBUG"/>
<logger name="com.baomidou" level="DEBUG"/>
<logger name="org.springframework" level="DEBUG"/>
<logger name="org.apache.activemq" level="INFO"/>
<!-- 日志输出级别 -->
<root level="DEBUG">
<appender-ref ref="STDOUT" />
</root>
<!--日志异步到数据库 -->
<!--<appender name="DB" class="ch.qos.logback.classic.db.DBAppender">-->
<!--&lt;!&ndash;日志异步到数据库 &ndash;&gt;-->
<!--<connectionSource class="ch.qos.logback.core.db.DriverManagerConnectionSource">-->
<!--&lt;!&ndash;连接池 &ndash;&gt;-->
<!--<dataSource class="com.mchange.v2.c3p0.ComboPooledDataSource">-->
<!--<driverClass>com.mysql.jdbc.Driver</driverClass>-->
<!--<url>jdbc:mysql://127.0.0.1:3306/databaseName</url>-->
<!--<user>root</user>-->
<!--<password>root</password>-->
<!--</dataSource>-->
<!--</connectionSource>-->
<!--</appender>-->
</configuration>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<configuration debug="false">
<!--定义日志文件的存储地址 勿在 LogBack 的配置中使用相对路径-->
<property name="LOG_HOME" value="/opt/log/qa" />
<!-- 按照每天生成日志文件 -->
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!--日志文件输出的文件名-->
<FileNamePattern>${LOG_HOME}/openapi.log.%d{yyyy-MM-dd}.log</FileNamePattern>
<!--日志文件保留天数-->
<MaxHistory>30</MaxHistory>
</rollingPolicy>
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
<!--格式化输出:%d表示日期,%thread表示线程名,%-5level:级别从左显示5个字符宽度%msg:日志消息,%n是换行符-->
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n</pattern>
</encoder>
<!--日志文件最大的大小-->
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
<MaxFileSize>30mb</MaxFileSize>
</triggeringPolicy>
</appender>
<!-- show parameters for hibernate sql 专为 Hibernate 定制
<logger name="org.hibernate.type.descriptor.sql.BasicBinder" level="TRACE" />
<logger name="org.hibernate.type.descriptor.sql.BasicExtractor" level="DEBUG" />
<logger name="org.hibernate.SQL" level="DEBUG" />
<logger name="org.hibernate.engine.QueryParameters" level="DEBUG" />
<logger name="org.hibernate.engine.query.HQLQueryPlan" level="DEBUG" />
-->
<!--myibatis log configure-->
<logger name="com.apache.ibatis" level="INFO"/>
<logger name="org.mybatis" level="INFO" />
<logger name="java.sql.Connection" level="INFO"/>
<logger name="java.sql.Statement" level="INFO"/>
<logger name="java.sql.PreparedStatement" level="INFO"/>
<logger name="com.baomidou.mybatisplus" level="INFO"/>
<logger name="org.typroject" level="INFO"/>
<logger name="com.yeejoin" level="INFO"/>
<logger name="org.springframework" level="INFO"/>
<!-- 日志输出级别 -->
<root level="INFO">
<appender-ref ref="FILE" />
</root>
</configuration>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<configuration debug="false">
<!-- 控制台输出 -->
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
<!--格式化输出:%d表示日期,%thread表示线程名,%-5level:级别从左显示5个字符宽度%msg:日志消息,%n是换行符-->
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n</pattern>
</encoder>
</appender>
<!-- show parameters for hibernate sql 专为 Hibernate 定制
<logger name="org.hibernate.type.descriptor.sql.BasicBinder" level="TRACE" />
<logger name="org.hibernate.type.descriptor.sql.BasicExtractor" level="DEBUG" />
<logger name="org.hibernate.SQL" level="DEBUG" />
<logger name="org.hibernate.engine.QueryParameters" level="DEBUG" />
<logger name="org.hibernate.engine.query.HQLQueryPlan" level="DEBUG" />
-->
<!--myibatis log configure-->
<logger name="com.apache.ibatis" level="DEBUG"/>
<logger name="java.sql.Connection" level="DEBUG"/>
<logger name="java.sql.Statement" level="DEBUG"/>
<logger name="java.sql.PreparedStatement" level="DEBUG"/>
<logger name="com.baomidou" level="DEBUG"/>
<logger name="org.springframework" level="DEBUG"/>
<logger name="org.apache.activemq" level="INFO"/>
<!-- 日志输出级别 -->
<root level="DEBUG">
<appender-ref ref="STDOUT" />
</root>
<!--日志异步到数据库 -->
<!--<appender name="DB" class="ch.qos.logback.classic.db.DBAppender">-->
<!--&lt;!&ndash;日志异步到数据库 &ndash;&gt;-->
<!--<connectionSource class="ch.qos.logback.core.db.DriverManagerConnectionSource">-->
<!--&lt;!&ndash;连接池 &ndash;&gt;-->
<!--<dataSource class="com.mchange.v2.c3p0.ComboPooledDataSource">-->
<!--<driverClass>com.mysql.jdbc.Driver</driverClass>-->
<!--<url>jdbc:mysql://127.0.0.1:3306/databaseName</url>-->
<!--<user>root</user>-->
<!--<password>root</password>-->
<!--</dataSource>-->
<!--</connectionSource>-->
<!--</appender>-->
</configuration>
\ No newline at end of file
<?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-biz-boot</artifactId>
<groupId>com.amosframework.boot</groupId>
<version>1.0.0</version>
</parent>
<artifactId>amos-boot-data</artifactId>
<version>1.0.0</version>
<packaging>pom</packaging>
<name>amos-boot-data</name>
<dependencies>
</dependencies>
<modules>
<module>amos-boot-data-common</module>
<module>amos-boot-data-openapi</module>
</modules>
</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">
<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>
<groupId>com.amosframework.boot</groupId>
......@@ -13,7 +11,7 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.3.11.RELEASE</version>
<relativePath />
<relativePath/>
</parent>
<properties>
......@@ -181,7 +179,7 @@
<artifactId>commons-jexl</artifactId>
<version>2.1.1</version>
</dependency>
<!-- MQTT���� -->
<!-- MQTT???? -->
<dependency>
<groupId>org.springframework.integration</groupId>
<artifactId>spring-integration-stream</artifactId>
......@@ -305,5 +303,6 @@
<module>amos-boot-utils</module>
<module>amos-boot-system-latentdanger</module>
<module>amos-boot-system-ccs</module>
</modules>
<module>amos-boot-data</module>
</modules>
</project>
\ No newline at end of file
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