refactor(data): remove dc3-common-data-postgres module and its typed point value classes

This commit is contained in:
Vickey
2025-05-14 20:34:08 +08:00
parent a58776f5f8
commit 51bec018f5
66 changed files with 88 additions and 2061 deletions
@@ -19,9 +19,12 @@ spring:
env: dev
group: ${user.name}
datasource:
url: jdbc:postgresql://${POSTGRES_HOST:dc3-postgres}:${POSTGRES_PORT:35432}/${POSTGRES_DB:dc3}?currentSchema=${POSTGRES_SCHEMA:dc3_auth}&applicationName=dc3&ssl=false&stringtype=unspecified&clientEncoding=UTF8&serverTimezone=Asia/Shanghai
username: ${POSTGRES_USERNAME:dc3}
password: ${POSTGRES_PASSWORD:dc3dc3dc3}
dynamic:
datasource:
master:
url: jdbc:postgresql://${POSTGRES_HOST:dc3-postgres}:${POSTGRES_PORT:35432}/${POSTGRES_DB:dc3}?currentSchema=${POSTGRES_SCHEMA:dc3_auth}&applicationName=dc3&ssl=false&stringtype=unspecified&clientEncoding=UTF8&serverTimezone=Asia/Shanghai
username: ${POSTGRES_USERNAME:dc3}
password: ${POSTGRES_PASSWORD:dc3dc3dc3}
data:
redis:
host: ${REDIS_HOST:dc3-redis}
@@ -17,9 +17,12 @@
# Pre-release environment configuration will overwrite the content configured in application-*.yml
spring:
datasource:
url: jdbc:postgresql://${POSTGRES_HOST:dc3-postgres}:${POSTGRES_PORT:5432}/${POSTGRES_DB:dc3_auth}?currentSchema=${POSTGRES_SCHEMA:dc3_auth}&applicationName=dc3&ssl=false&stringtype=unspecified&clientEncoding=UTF8&serverTimezone=Asia/Shanghai
username: ${POSTGRES_USERNAME:dc3}
password: ${POSTGRES_PASSWORD:dc3dc3dc3}
dynamic:
datasource:
master:
url: jdbc:postgresql://${POSTGRES_HOST:dc3-postgres}:${POSTGRES_PORT:5432}/${POSTGRES_DB:dc3_auth}?currentSchema=${POSTGRES_SCHEMA:dc3_auth}&applicationName=dc3&ssl=false&stringtype=unspecified&clientEncoding=UTF8&serverTimezone=Asia/Shanghai
username: ${POSTGRES_USERNAME:dc3}
password: ${POSTGRES_PASSWORD:dc3dc3dc3}
data:
redis:
host: ${REDIS_HOST:dc3-redis}
@@ -17,9 +17,12 @@
# Production environment configuration will overwrite the content configured in application-*.yml
spring:
datasource:
url: jdbc:postgresql://${POSTGRES_HOST:dc3-postgres}:${POSTGRES_PORT:5432}/${POSTGRES_DB:dc3_auth}?currentSchema=${POSTGRES_SCHEMA:dc3_auth}&applicationName=dc3&ssl=false&stringtype=unspecified&clientEncoding=UTF8&serverTimezone=Asia/Shanghai
username: ${POSTGRES_USERNAME:dc3}
password: ${POSTGRES_PASSWORD:dc3dc3dc3}
dynamic:
datasource:
master:
url: jdbc:postgresql://${POSTGRES_HOST:dc3-postgres}:${POSTGRES_PORT:5432}/${POSTGRES_DB:dc3_auth}?currentSchema=${POSTGRES_SCHEMA:dc3_auth}&applicationName=dc3&ssl=false&stringtype=unspecified&clientEncoding=UTF8&serverTimezone=Asia/Shanghai
username: ${POSTGRES_USERNAME:dc3}
password: ${POSTGRES_PASSWORD:dc3dc3dc3}
data:
redis:
host: ${REDIS_HOST:dc3-redis}
@@ -17,9 +17,12 @@
# Test environment configuration will overwrite the content configured in application-*.yml
spring:
datasource:
url: jdbc:postgresql://${POSTGRES_HOST:dc3-postgres}:${POSTGRES_PORT:5432}/${POSTGRES_DB:dc3}?currentSchema=${POSTGRES_SCHEMA:dc3_auth}&applicationName=dc3&ssl=false&stringtype=unspecified&clientEncoding=UTF8&serverTimezone=Asia/Shanghai
username: ${POSTGRES_USERNAME:dc3}
password: ${POSTGRES_PASSWORD:dc3dc3dc3}
dynamic:
datasource:
master:
url: jdbc:postgresql://${POSTGRES_HOST:dc3-postgres}:${POSTGRES_PORT:5432}/${POSTGRES_DB:dc3}?currentSchema=${POSTGRES_SCHEMA:dc3_auth}&applicationName=dc3&ssl=false&stringtype=unspecified&clientEncoding=UTF8&serverTimezone=Asia/Shanghai
username: ${POSTGRES_USERNAME:dc3}
password: ${POSTGRES_PASSWORD:dc3dc3dc3}
data:
redis:
host: ${REDIS_HOST:dc3-redis}
@@ -19,9 +19,12 @@ spring:
env: dev
group: ${user.name}
datasource:
url: jdbc:postgresql://${POSTGRES_HOST:dc3-postgres}:${POSTGRES_PORT:35432}/${POSTGRES_DB:dc3}?currentSchema=${POSTGRES_SCHEMA:dc3_manager}&applicationName=dc3&ssl=false&stringtype=unspecified&clientEncoding=UTF8&serverTimezone=Asia/Shanghai
username: ${POSTGRES_USERNAME:dc3}
password: ${POSTGRES_PASSWORD:dc3dc3dc3}
dynamic:
datasource:
master:
url: jdbc:postgresql://${POSTGRES_HOST:dc3-postgres}:${POSTGRES_PORT:35432}/${POSTGRES_DB:dc3}?currentSchema=${POSTGRES_SCHEMA:dc3_manager}&applicationName=dc3&ssl=false&stringtype=unspecified&clientEncoding=UTF8&serverTimezone=Asia/Shanghai
username: ${POSTGRES_USERNAME:dc3}
password: ${POSTGRES_PASSWORD:dc3dc3dc3}
rabbitmq:
virtual-host: ${RABBITMQ_VIRTUAL_HOST:dc3}
host: ${RABBITMQ_HOST:dc3-rabbitmq}
@@ -17,9 +17,12 @@
# Pre-release environment configuration will overwrite the content configured in application-*.yml
spring:
datasource:
url: jdbc:postgresql://${POSTGRES_HOST:dc3-postgres}:${POSTGRES_PORT:5432}/${POSTGRES_DB:dc3}?currentSchema=${POSTGRES_SCHEMA:dc3_manager}&applicationName=dc3&ssl=false&stringtype=unspecified&clientEncoding=UTF8&serverTimezone=Asia/Shanghai
username: ${POSTGRES_USERNAME:dc3}
password: ${POSTGRES_PASSWORD:dc3dc3dc3}
dynamic:
datasource:
master:
url: jdbc:postgresql://${POSTGRES_HOST:dc3-postgres}:${POSTGRES_PORT:5432}/${POSTGRES_DB:dc3}?currentSchema=${POSTGRES_SCHEMA:dc3_manager}&applicationName=dc3&ssl=false&stringtype=unspecified&clientEncoding=UTF8&serverTimezone=Asia/Shanghai
username: ${POSTGRES_USERNAME:dc3}
password: ${POSTGRES_PASSWORD:dc3dc3dc3}
rabbitmq:
virtual-host: ${RABBITMQ_VIRTUAL_HOST:dc3}
host: ${RABBITMQ_HOST:dc3-rabbitmq}
@@ -17,9 +17,12 @@
# Production environment configuration will overwrite the content configured in application-*.yml
spring:
datasource:
url: jdbc:postgresql://${POSTGRES_HOST:dc3-postgres}:${POSTGRES_PORT:5432}/${POSTGRES_DB:dc3}?currentSchema=${POSTGRES_SCHEMA:dc3_manager}&applicationName=dc3&ssl=false&stringtype=unspecified&clientEncoding=UTF8&serverTimezone=Asia/Shanghai
username: ${POSTGRES_USERNAME:dc3}
password: ${POSTGRES_PASSWORD:dc3dc3dc3}
dynamic:
datasource:
master:
url: jdbc:postgresql://${POSTGRES_HOST:dc3-postgres}:${POSTGRES_PORT:5432}/${POSTGRES_DB:dc3}?currentSchema=${POSTGRES_SCHEMA:dc3_manager}&applicationName=dc3&ssl=false&stringtype=unspecified&clientEncoding=UTF8&serverTimezone=Asia/Shanghai
username: ${POSTGRES_USERNAME:dc3}
password: ${POSTGRES_PASSWORD:dc3dc3dc3}
rabbitmq:
virtual-host: ${RABBITMQ_VIRTUAL_HOST:dc3}
host: ${RABBITMQ_HOST:dc3-rabbitmq}
@@ -17,9 +17,12 @@
# Test environment configuration will overwrite the content configured in application-*.yml
spring:
datasource:
url: jdbc:postgresql://${POSTGRES_HOST:dc3-postgres}:${POSTGRES_PORT:5432}/${POSTGRES_DB:dc3}?currentSchema=${POSTGRES_SCHEMA:dc3_manager}&applicationName=dc3&ssl=false&stringtype=unspecified&clientEncoding=UTF8&serverTimezone=Asia/Shanghai
username: ${POSTGRES_USERNAME:dc3}
password: ${POSTGRES_PASSWORD:dc3dc3dc3}
dynamic:
datasource:
master:
url: jdbc:postgresql://${POSTGRES_HOST:dc3-postgres}:${POSTGRES_PORT:5432}/${POSTGRES_DB:dc3}?currentSchema=${POSTGRES_SCHEMA:dc3_manager}&applicationName=dc3&ssl=false&stringtype=unspecified&clientEncoding=UTF8&serverTimezone=Asia/Shanghai
username: ${POSTGRES_USERNAME:dc3}
password: ${POSTGRES_PASSWORD:dc3dc3dc3}
rabbitmq:
virtual-host: ${RABBITMQ_VIRTUAL_HOST:dc3}
host: ${RABBITMQ_HOST:dc3-rabbitmq}
@@ -19,9 +19,12 @@ spring:
env: dev
group: ${user.name}
datasource:
url: jdbc:postgresql://${POSTGRES_HOST:dc3-postgres}:${POSTGRES_PORT:35432}/${POSTGRES_DB:dc3}?currentSchema=${POSTGRES_SCHEMA:dc3_single}&applicationName=dc3&ssl=false&stringtype=unspecified&clientEncoding=UTF8&serverTimezone=Asia/Shanghai
username: ${POSTGRES_USERNAME:dc3}
password: ${POSTGRES_PASSWORD:dc3dc3dc3}
dynamic:
datasource:
master:
url: jdbc:postgresql://${POSTGRES_HOST:dc3-postgres}:${POSTGRES_PORT:35432}/${POSTGRES_DB:dc3}?currentSchema=${POSTGRES_SCHEMA:dc3_single}&applicationName=dc3&ssl=false&stringtype=unspecified&clientEncoding=UTF8&serverTimezone=Asia/Shanghai
username: ${POSTGRES_USERNAME:dc3}
password: ${POSTGRES_PASSWORD:dc3dc3dc3}
rabbitmq:
virtual-host: ${RABBITMQ_VIRTUAL_HOST:dc3}
host: ${RABBITMQ_HOST:dc3-rabbitmq}
@@ -17,9 +17,12 @@
# Pre-release environment configuration will overwrite the content configured in application-*.yml
spring:
datasource:
url: jdbc:postgresql://${POSTGRES_HOST:dc3-postgres}:${POSTGRES_PORT:5432}/${POSTGRES_DB:dc3}?currentSchema=${POSTGRES_SCHEMA:dc3_single}&applicationName=dc3&ssl=false&stringtype=unspecified&clientEncoding=UTF8&serverTimezone=Asia/Shanghai
username: ${POSTGRES_USERNAME:dc3}
password: ${POSTGRES_PASSWORD:dc3dc3dc3}
dynamic:
datasource:
master:
url: jdbc:postgresql://${POSTGRES_HOST:dc3-postgres}:${POSTGRES_PORT:5432}/${POSTGRES_DB:dc3}?currentSchema=${POSTGRES_SCHEMA:dc3_single}&applicationName=dc3&ssl=false&stringtype=unspecified&clientEncoding=UTF8&serverTimezone=Asia/Shanghai
username: ${POSTGRES_USERNAME:dc3}
password: ${POSTGRES_PASSWORD:dc3dc3dc3}
data:
redis:
host: ${REDIS_HOST:dc3-redis}
@@ -17,9 +17,12 @@
# Production environment configuration will overwrite the content configured in application-*.yml
spring:
datasource:
url: jdbc:postgresql://${POSTGRES_HOST:dc3-postgres}:${POSTGRES_PORT:5432}/${POSTGRES_DB:dc3}?currentSchema=${POSTGRES_SCHEMA:dc3_single}&applicationName=dc3&ssl=false&stringtype=unspecified&clientEncoding=UTF8&serverTimezone=Asia/Shanghai
username: ${POSTGRES_USERNAME:dc3}
password: ${POSTGRES_PASSWORD:dc3dc3dc3}
dynamic:
datasource:
master:
url: jdbc:postgresql://${POSTGRES_HOST:dc3-postgres}:${POSTGRES_PORT:5432}/${POSTGRES_DB:dc3}?currentSchema=${POSTGRES_SCHEMA:dc3_single}&applicationName=dc3&ssl=false&stringtype=unspecified&clientEncoding=UTF8&serverTimezone=Asia/Shanghai
username: ${POSTGRES_USERNAME:dc3}
password: ${POSTGRES_PASSWORD:dc3dc3dc3}
data:
redis:
host: ${REDIS_HOST:dc3-redis}
@@ -17,9 +17,12 @@
# Test environment configuration will overwrite the content configured in application-*.yml
spring:
datasource:
url: jdbc:postgresql://${POSTGRES_HOST:dc3-postgres}:${POSTGRES_PORT:5432}/${POSTGRES_DB:dc3}?currentSchema=${POSTGRES_SCHEMA:dc3_single}&applicationName=dc3&ssl=false&stringtype=unspecified&clientEncoding=UTF8&serverTimezone=Asia/Shanghai
username: ${POSTGRES_USERNAME:dc3}
password: ${POSTGRES_PASSWORD:dc3dc3dc3}
dynamic:
datasource:
master:
url: jdbc:postgresql://${POSTGRES_HOST:dc3-postgres}:${POSTGRES_PORT:5432}/${POSTGRES_DB:dc3}?currentSchema=${POSTGRES_SCHEMA:dc3_single}&applicationName=dc3&ssl=false&stringtype=unspecified&clientEncoding=UTF8&serverTimezone=Asia/Shanghai
username: ${POSTGRES_USERNAME:dc3}
password: ${POSTGRES_PASSWORD:dc3dc3dc3}
rabbitmq:
virtual-host: ${RABBITMQ_VIRTUAL_HOST:dc3}
host: ${RABBITMQ_HOST:dc3-rabbitmq}
@@ -1,96 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright 2016-present the IoT DC3 original author or authors.
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ https://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/POM/4.0.0"
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>
<groupId>io.github.pnoker</groupId>
<artifactId>dc3-common</artifactId>
<version>2025.2.5</version>
</parent>
<name>${project.artifactId}</name>
<artifactId>dc3-common-data-postgres</artifactId>
<version>2025.2.5</version>
<packaging>jar</packaging>
<inceptionYear>2016-2022</inceptionYear>
<url>https://github.com/pnoker/iot-dc3</url>
<description>
IoT DC3 平台 公共的 Postgres 配置。
</description>
<developers>
<developer>
<id>pnoker</id>
<name>pnoker</name>
<email>pnokers@icloud.com</email>
<roles>
<role>PMC</role>
</roles>
<organization>pnoker.github.io</organization>
<url>https://github.com/pnoker/iot-dc3</url>
</developer>
</developers>
<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>https://github.com/pnoker/iot-dc3</url>
<connection>https://github.com/pnoker/iot-dc3.git</connection>
<developerConnection>https://github.com/pnoker/iot-dc3.git</developerConnection>
</scm>
<dependencies>
<!-- Mybatis Plus Extension -->
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-extension</artifactId>
</dependency>
<!-- DC3 Common 相关 -->
<dependency>
<groupId>io.github.pnoker</groupId>
<artifactId>dc3-common-model</artifactId>
</dependency>
<dependency>
<groupId>io.github.pnoker</groupId>
<artifactId>dc3-common-postgres</artifactId>
</dependency>
<dependency>
<groupId>io.github.pnoker</groupId>
<artifactId>dc3-common-public</artifactId>
</dependency>
<dependency>
<groupId>io.github.pnoker</groupId>
<artifactId>dc3-common-repository</artifactId>
</dependency>
</dependencies>
</project>
@@ -1,43 +0,0 @@
/*
* Copyright 2016-present the IoT DC3 original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.github.pnoker.common.config;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.env.EnvironmentPostProcessor;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;
import org.springframework.core.env.ConfigurableEnvironment;
/**
* Environment Config
*
* @author pnoker
* @version 2025.2.5
* @since 2022.1.0
*/
@Slf4j
@Configuration
@Order(Ordered.HIGHEST_PRECEDENCE)
public class ActivePostgresProfileConfig implements EnvironmentPostProcessor {
@Override
public void postProcessEnvironment(ConfigurableEnvironment environment, SpringApplication application) {
environment.addActiveProfile("postgres");
}
}
@@ -1,41 +0,0 @@
/*
* Copyright 2016-present the IoT DC3 original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.github.pnoker.common.config;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
/**
* Postgres config
*
* @author pnoker
* @version 2025.2.5
* @since 2022.1.0
*/
@Slf4j
@Configuration
@ComponentScan(basePackages = {
"io.github.pnoker.common.postgres.*"
})
@MapperScan(basePackages = {
"io.github.pnoker.common.postgres.mapper"
})
public class PostgresConfig {
}
@@ -1,41 +0,0 @@
/*
* Copyright 2016-present the IoT DC3 original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.github.pnoker.common.init;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.stereotype.Component;
/**
* Postgres initialization runner
*
* @author pnoker
* @version 2025.2.5
* @since 2022.1.0
*/
@Component
@ComponentScan(basePackages = {
"io.github.pnoker.common.postgres.*"
})
public class PostgresInitRunner implements ApplicationRunner {
@Override
public void run(ApplicationArguments args) throws Exception {
// nothing to do
}
}
@@ -1,33 +0,0 @@
/*
* Copyright 2016-present the IoT DC3 original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.github.pnoker.common.postgres.dal;
import com.baomidou.mybatisplus.extension.service.IService;
import io.github.pnoker.common.postgres.entity.model.PointValueBoolDO;
/**
* <p>
* 设备位号历史数据表(Boolean类型) 服务类
* </p>
*
* @author pnoker
* @version 2025.2.5
* @since 2022.1.0
*/
public interface PointValueBoolManager extends IService<PointValueBoolDO> {
}
@@ -1,33 +0,0 @@
/*
* Copyright 2016-present the IoT DC3 original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.github.pnoker.common.postgres.dal;
import com.baomidou.mybatisplus.extension.service.IService;
import io.github.pnoker.common.postgres.entity.model.PointValueByteDO;
/**
* <p>
* 设备位号历史数据表(Byte类型) 服务类
* </p>
*
* @author pnoker
* @version 2025.2.5
* @since 2022.1.0
*/
public interface PointValueByteManager extends IService<PointValueByteDO> {
}
@@ -1,33 +0,0 @@
/*
* Copyright 2016-present the IoT DC3 original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.github.pnoker.common.postgres.dal;
import com.baomidou.mybatisplus.extension.service.IService;
import io.github.pnoker.common.postgres.entity.model.PointValueDecimalDO;
/**
* <p>
* 设备位号历史数据表(Decimal类型) 服务类
* </p>
*
* @author pnoker
* @version 2025.2.5
* @since 2022.1.0
*/
public interface PointValueDecimalManager extends IService<PointValueDecimalDO> {
}
@@ -1,33 +0,0 @@
/*
* Copyright 2016-present the IoT DC3 original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.github.pnoker.common.postgres.dal;
import com.baomidou.mybatisplus.extension.service.IService;
import io.github.pnoker.common.postgres.entity.model.PointValueDoubleDO;
/**
* <p>
* 设备位号历史数据表(Double类型) 服务类
* </p>
*
* @author pnoker
* @version 2025.2.5
* @since 2022.1.0
*/
public interface PointValueDoubleManager extends IService<PointValueDoubleDO> {
}
@@ -1,33 +0,0 @@
/*
* Copyright 2016-present the IoT DC3 original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.github.pnoker.common.postgres.dal;
import com.baomidou.mybatisplus.extension.service.IService;
import io.github.pnoker.common.postgres.entity.model.PointValueFloatDO;
/**
* <p>
* 设备位号历史数据表(Float类型) 服务类
* </p>
*
* @author pnoker
* @version 2025.2.5
* @since 2022.1.0
*/
public interface PointValueFloatManager extends IService<PointValueFloatDO> {
}
@@ -1,33 +0,0 @@
/*
* Copyright 2016-present the IoT DC3 original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.github.pnoker.common.postgres.dal;
import com.baomidou.mybatisplus.extension.service.IService;
import io.github.pnoker.common.postgres.entity.model.PointValueIntDO;
/**
* <p>
* 设备位号历史数据表(Integer类型) 服务类
* </p>
*
* @author pnoker
* @version 2025.2.5
* @since 2022.1.0
*/
public interface PointValueIntManager extends IService<PointValueIntDO> {
}
@@ -1,33 +0,0 @@
/*
* Copyright 2016-present the IoT DC3 original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.github.pnoker.common.postgres.dal;
import com.baomidou.mybatisplus.extension.service.IService;
import io.github.pnoker.common.postgres.entity.model.PointValueLongDO;
/**
* <p>
* 设备位号历史数据表(Long类型) 服务类
* </p>
*
* @author pnoker
* @version 2025.2.5
* @since 2022.1.0
*/
public interface PointValueLongManager extends IService<PointValueLongDO> {
}
@@ -1,37 +0,0 @@
/*
* Copyright 2016-present the IoT DC3 original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.github.pnoker.common.postgres.dal.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.github.pnoker.common.postgres.dal.PointValueBoolManager;
import io.github.pnoker.common.postgres.entity.model.PointValueBoolDO;
import io.github.pnoker.common.postgres.mapper.PointValueBoolMapper;
import org.springframework.stereotype.Service;
/**
* <p>
* 设备位号历史数据表(Boolean类型) 服务实现类
* </p>
*
* @author pnoker
* @version 2025.2.5
* @since 2022.1.0
*/
@Service
public class PointValueBoolManagerImpl extends ServiceImpl<PointValueBoolMapper, PointValueBoolDO> implements PointValueBoolManager {
}
@@ -1,37 +0,0 @@
/*
* Copyright 2016-present the IoT DC3 original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.github.pnoker.common.postgres.dal.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.github.pnoker.common.postgres.dal.PointValueByteManager;
import io.github.pnoker.common.postgres.entity.model.PointValueByteDO;
import io.github.pnoker.common.postgres.mapper.PointValueByteMapper;
import org.springframework.stereotype.Service;
/**
* <p>
* 设备位号历史数据表(Byte类型) 服务实现类
* </p>
*
* @author pnoker
* @version 2025.2.5
* @since 2022.1.0
*/
@Service
public class PointValueByteManagerImpl extends ServiceImpl<PointValueByteMapper, PointValueByteDO> implements PointValueByteManager {
}
@@ -1,37 +0,0 @@
/*
* Copyright 2016-present the IoT DC3 original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.github.pnoker.common.postgres.dal.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.github.pnoker.common.postgres.dal.PointValueDecimalManager;
import io.github.pnoker.common.postgres.entity.model.PointValueDecimalDO;
import io.github.pnoker.common.postgres.mapper.PointValueDecimalMapper;
import org.springframework.stereotype.Service;
/**
* <p>
* 设备位号历史数据表(Decimal类型) 服务实现类
* </p>
*
* @author pnoker
* @version 2025.2.5
* @since 2022.1.0
*/
@Service
public class PointValueDecimalManagerImpl extends ServiceImpl<PointValueDecimalMapper, PointValueDecimalDO> implements PointValueDecimalManager {
}
@@ -1,37 +0,0 @@
/*
* Copyright 2016-present the IoT DC3 original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.github.pnoker.common.postgres.dal.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.github.pnoker.common.postgres.dal.PointValueDoubleManager;
import io.github.pnoker.common.postgres.entity.model.PointValueDoubleDO;
import io.github.pnoker.common.postgres.mapper.PointValueDoubleMapper;
import org.springframework.stereotype.Service;
/**
* <p>
* 设备位号历史数据表(Double类型) 服务实现类
* </p>
*
* @author pnoker
* @version 2025.2.5
* @since 2022.1.0
*/
@Service
public class PointValueDoubleManagerImpl extends ServiceImpl<PointValueDoubleMapper, PointValueDoubleDO> implements PointValueDoubleManager {
}
@@ -1,37 +0,0 @@
/*
* Copyright 2016-present the IoT DC3 original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.github.pnoker.common.postgres.dal.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.github.pnoker.common.postgres.dal.PointValueFloatManager;
import io.github.pnoker.common.postgres.entity.model.PointValueFloatDO;
import io.github.pnoker.common.postgres.mapper.PointValueFloatMapper;
import org.springframework.stereotype.Service;
/**
* <p>
* 设备位号历史数据表(Float类型) 服务实现类
* </p>
*
* @author pnoker
* @version 2025.2.5
* @since 2022.1.0
*/
@Service
public class PointValueFloatManagerImpl extends ServiceImpl<PointValueFloatMapper, PointValueFloatDO> implements PointValueFloatManager {
}
@@ -1,37 +0,0 @@
/*
* Copyright 2016-present the IoT DC3 original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.github.pnoker.common.postgres.dal.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.github.pnoker.common.postgres.dal.PointValueIntManager;
import io.github.pnoker.common.postgres.entity.model.PointValueIntDO;
import io.github.pnoker.common.postgres.mapper.PointValueIntMapper;
import org.springframework.stereotype.Service;
/**
* <p>
* 设备位号历史数据表(Integer类型) 服务实现类
* </p>
*
* @author pnoker
* @version 2025.2.5
* @since 2022.1.0
*/
@Service
public class PointValueIntManagerImpl extends ServiceImpl<PointValueIntMapper, PointValueIntDO> implements PointValueIntManager {
}
@@ -1,37 +0,0 @@
/*
* Copyright 2016-present the IoT DC3 original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.github.pnoker.common.postgres.dal.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.github.pnoker.common.postgres.dal.PointValueLongManager;
import io.github.pnoker.common.postgres.entity.model.PointValueLongDO;
import io.github.pnoker.common.postgres.mapper.PointValueLongMapper;
import org.springframework.stereotype.Service;
/**
* <p>
* 设备位号历史数据表(Long类型) 服务实现类
* </p>
*
* @author pnoker
* @version 2025.2.5
* @since 2022.1.0
*/
@Service
public class PointValueLongManagerImpl extends ServiceImpl<PointValueLongMapper, PointValueLongDO> implements PointValueLongManager {
}
@@ -1,106 +0,0 @@
/*
* Copyright 2016-present the IoT DC3 original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.github.pnoker.common.postgres.entity.model;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;
/**
* <p>
* 设备位号历史数据表(Boolean类型)
* </p>
*
* @author pnoker
* @version 2025.2.5
* @since 2022.1.0
*/
@Getter
@Setter
@ToString
@TableName("dc3_point_value_bool")
public class PointValueBoolDO implements Serializable {
@Serial
private static final long serialVersionUID = 1L;
/**
* 设备ID
*/
@TableField("device_id")
private Long deviceId;
/**
* 位号ID
*/
@TableField("point_id")
private Long pointId;
/**
* 原始值
*/
@TableField("raw_value")
private Boolean rawValue;
/**
* 计算值
*/
@TableField("cal_value")
private Boolean calValue;
/**
* 数据信息
*/
@TableField("value_ext")
private Object valueExt;
/**
* 驱动ID
*/
@TableField("driver_id")
private Long driverId;
/**
* 租户ID
*/
@TableField("tenant_id")
private Long tenantId;
/**
* 原始时间
*/
@TableField("origin_time")
private LocalDateTime originTime;
/**
* 创建时间
*/
@TableField("create_time")
private LocalDateTime createTime;
/**
* 操作时间
*/
@TableField("operate_time")
private LocalDateTime operateTime;
}
@@ -1,106 +0,0 @@
/*
* Copyright 2016-present the IoT DC3 original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.github.pnoker.common.postgres.entity.model;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;
/**
* <p>
* 设备位号历史数据表(Byte类型)
* </p>
*
* @author pnoker
* @version 2025.2.5
* @since 2022.1.0
*/
@Getter
@Setter
@ToString
@TableName("dc3_point_value_byte")
public class PointValueByteDO implements Serializable {
@Serial
private static final long serialVersionUID = 1L;
/**
* 设备ID
*/
@TableField("device_id")
private Long deviceId;
/**
* 位号ID
*/
@TableField("point_id")
private Long pointId;
/**
* 原始值
*/
@TableField("raw_value")
private Byte rawValue;
/**
* 计算值
*/
@TableField("cal_value")
private Byte calValue;
/**
* 数据信息
*/
@TableField("value_ext")
private Object valueExt;
/**
* 驱动ID
*/
@TableField("driver_id")
private Long driverId;
/**
* 租户ID
*/
@TableField("tenant_id")
private Long tenantId;
/**
* 原始时间
*/
@TableField("origin_time")
private LocalDateTime originTime;
/**
* 创建时间
*/
@TableField("create_time")
private LocalDateTime createTime;
/**
* 操作时间
*/
@TableField("operate_time")
private LocalDateTime operateTime;
}
@@ -1,107 +0,0 @@
/*
* Copyright 2016-present the IoT DC3 original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.github.pnoker.common.postgres.entity.model;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
/**
* <p>
* 设备位号历史数据表(Decimal类型)
* </p>
*
* @author pnoker
* @version 2025.2.5
* @since 2022.1.0
*/
@Getter
@Setter
@ToString
@TableName("dc3_point_value_decimal")
public class PointValueDecimalDO implements Serializable {
@Serial
private static final long serialVersionUID = 1L;
/**
* 设备ID
*/
@TableField("device_id")
private Long deviceId;
/**
* 位号ID
*/
@TableField("point_id")
private Long pointId;
/**
* 原始值
*/
@TableField("raw_value")
private BigDecimal rawValue;
/**
* 计算值
*/
@TableField("cal_value")
private BigDecimal calValue;
/**
* 数据信息
*/
@TableField("value_ext")
private Object valueExt;
/**
* 驱动ID
*/
@TableField("driver_id")
private Long driverId;
/**
* 租户ID
*/
@TableField("tenant_id")
private Long tenantId;
/**
* 原始时间
*/
@TableField("origin_time")
private LocalDateTime originTime;
/**
* 创建时间
*/
@TableField("create_time")
private LocalDateTime createTime;
/**
* 操作时间
*/
@TableField("operate_time")
private LocalDateTime operateTime;
}
@@ -1,106 +0,0 @@
/*
* Copyright 2016-present the IoT DC3 original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.github.pnoker.common.postgres.entity.model;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;
/**
* <p>
* 设备位号历史数据表(Double类型)
* </p>
*
* @author pnoker
* @version 2025.2.5
* @since 2022.1.0
*/
@Getter
@Setter
@ToString
@TableName("dc3_point_value_double")
public class PointValueDoubleDO implements Serializable {
@Serial
private static final long serialVersionUID = 1L;
/**
* 设备ID
*/
@TableField("device_id")
private Long deviceId;
/**
* 位号ID
*/
@TableField("point_id")
private Long pointId;
/**
* 原始值
*/
@TableField("raw_value")
private Double rawValue;
/**
* 计算值
*/
@TableField("cal_value")
private Double calValue;
/**
* 数据信息
*/
@TableField("value_ext")
private Object valueExt;
/**
* 驱动ID
*/
@TableField("driver_id")
private Long driverId;
/**
* 租户ID
*/
@TableField("tenant_id")
private Long tenantId;
/**
* 原始时间
*/
@TableField("origin_time")
private LocalDateTime originTime;
/**
* 创建时间
*/
@TableField("create_time")
private LocalDateTime createTime;
/**
* 操作时间
*/
@TableField("operate_time")
private LocalDateTime operateTime;
}
@@ -1,106 +0,0 @@
/*
* Copyright 2016-present the IoT DC3 original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.github.pnoker.common.postgres.entity.model;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;
/**
* <p>
* 设备位号历史数据表(Float类型)
* </p>
*
* @author pnoker
* @version 2025.2.5
* @since 2022.1.0
*/
@Getter
@Setter
@ToString
@TableName("dc3_point_value_float")
public class PointValueFloatDO implements Serializable {
@Serial
private static final long serialVersionUID = 1L;
/**
* 设备ID
*/
@TableField("device_id")
private Long deviceId;
/**
* 位号ID
*/
@TableField("point_id")
private Long pointId;
/**
* 原始值
*/
@TableField("raw_value")
private Double rawValue;
/**
* 计算值
*/
@TableField("cal_value")
private Double calValue;
/**
* 数据信息
*/
@TableField("value_ext")
private Object valueExt;
/**
* 驱动ID
*/
@TableField("driver_id")
private Long driverId;
/**
* 租户ID
*/
@TableField("tenant_id")
private Long tenantId;
/**
* 原始时间
*/
@TableField("origin_time")
private LocalDateTime originTime;
/**
* 创建时间
*/
@TableField("create_time")
private LocalDateTime createTime;
/**
* 操作时间
*/
@TableField("operate_time")
private LocalDateTime operateTime;
}
@@ -1,106 +0,0 @@
/*
* Copyright 2016-present the IoT DC3 original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.github.pnoker.common.postgres.entity.model;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;
/**
* <p>
* 设备位号历史数据表(Integer类型)
* </p>
*
* @author pnoker
* @version 2025.2.5
* @since 2022.1.0
*/
@Getter
@Setter
@ToString
@TableName("dc3_point_value_int")
public class PointValueIntDO implements Serializable {
@Serial
private static final long serialVersionUID = 1L;
/**
* 设备ID
*/
@TableField("device_id")
private Long deviceId;
/**
* 位号ID
*/
@TableField("point_id")
private Long pointId;
/**
* 原始值
*/
@TableField("raw_value")
private Integer rawValue;
/**
* 计算值
*/
@TableField("cal_value")
private Integer calValue;
/**
* 数据信息
*/
@TableField("value_ext")
private Object valueExt;
/**
* 驱动ID
*/
@TableField("driver_id")
private Long driverId;
/**
* 租户ID
*/
@TableField("tenant_id")
private Long tenantId;
/**
* 原始时间
*/
@TableField("origin_time")
private LocalDateTime originTime;
/**
* 创建时间
*/
@TableField("create_time")
private LocalDateTime createTime;
/**
* 操作时间
*/
@TableField("operate_time")
private LocalDateTime operateTime;
}
@@ -1,106 +0,0 @@
/*
* Copyright 2016-present the IoT DC3 original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.github.pnoker.common.postgres.entity.model;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;
/**
* <p>
* 设备位号历史数据表(Long类型)
* </p>
*
* @author pnoker
* @version 2025.2.5
* @since 2022.1.0
*/
@Getter
@Setter
@ToString
@TableName("dc3_point_value_long")
public class PointValueLongDO implements Serializable {
@Serial
private static final long serialVersionUID = 1L;
/**
* 设备ID
*/
@TableField("device_id")
private Long deviceId;
/**
* 位号ID
*/
@TableField("point_id")
private Long pointId;
/**
* 原始值
*/
@TableField("raw_value")
private Long rawValue;
/**
* 计算值
*/
@TableField("cal_value")
private Long calValue;
/**
* 数据信息
*/
@TableField("value_ext")
private Object valueExt;
/**
* 驱动ID
*/
@TableField("driver_id")
private Long driverId;
/**
* 租户ID
*/
@TableField("tenant_id")
private Long tenantId;
/**
* 原始时间
*/
@TableField("origin_time")
private LocalDateTime originTime;
/**
* 创建时间
*/
@TableField("create_time")
private LocalDateTime createTime;
/**
* 操作时间
*/
@TableField("operate_time")
private LocalDateTime operateTime;
}
@@ -1,71 +0,0 @@
/*
* Copyright 2016-present the IoT DC3 original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.github.pnoker.common.postgres.generator;
import com.baomidou.mybatisplus.generator.config.OutputFile;
import com.baomidou.mybatisplus.generator.engine.FreemarkerTemplateEngine;
import com.google.common.collect.ImmutableMap;
import io.github.pnoker.common.utils.MybatisUtil;
/**
* 自动代码生成工具
* <p>
* 注意:
* <p>
* 当前配置仅用于 dc3-common-dal 服务模块, 如果需要用于其他模块请重新配置 path 参数。
*
* @author pnoker
* @version 2025.2.5
* @since 2022.1.0
*/
public class MybatisGenerator {
public static void main(String[] args) {
generator();
}
public static void generator() {
String path = System.getProperty("user.dir") + "/dc3-common/dc3-common-data-postgres/src/main";
MybatisUtil.defaultGenerator("dc3-postgres", "35432", "dc3", "dc3_data", "dc3", "dc3dc3dc3")
.globalConfig(builder -> MybatisUtil.defaultGlobalConfig(builder, path))
.dataSourceConfig(MybatisUtil::defaultDataSourceConfig)
.packageConfig(builder -> builder
.parent("io.github.pnoker.common.postgres")
.entity("entity.model")
.service("dal")
.serviceImpl("dal.impl")
.mapper("mapper")
.pathInfo(ImmutableMap.of(
OutputFile.service, path + "/java/io/github/pnoker/common/postgres/dal",
OutputFile.serviceImpl, path + "/java/io/github/pnoker/common/postgres/dal/impl",
OutputFile.xml, path + "/resources/mapping"))
)
.templateEngine(new FreemarkerTemplateEngine())
.strategyConfig(MybatisUtil::defaultStrategyConfig)
.strategyConfig(builder -> builder
.addInclude(
"dc3_point_value_string",
"dc3_point_value_bool",
"dc3_point_value_byte",
"dc3_point_value_int",
"dc3_point_value_long",
"dc3_point_value_float",
"dc3_point_value_double",
"dc3_point_value_decimal"
)
).execute();
}
}
@@ -1,34 +0,0 @@
/*
* Copyright 2016-present the IoT DC3 original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.github.pnoker.common.postgres.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.github.pnoker.common.postgres.entity.model.PointValueBoolDO;
/**
* <p>
* 设备位号历史数据表(Boolean类型) Mapper 接口
* </p>
*
* @author pnoker
* @version 2025.2.5
* @since 2022.1.0
*/
public interface PointValueBoolMapper extends BaseMapper<PointValueBoolDO> {
}
@@ -1,34 +0,0 @@
/*
* Copyright 2016-present the IoT DC3 original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.github.pnoker.common.postgres.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.github.pnoker.common.postgres.entity.model.PointValueByteDO;
/**
* <p>
* 设备位号历史数据表(Byte类型) Mapper 接口
* </p>
*
* @author pnoker
* @version 2025.2.5
* @since 2022.1.0
*/
public interface PointValueByteMapper extends BaseMapper<PointValueByteDO> {
}
@@ -1,34 +0,0 @@
/*
* Copyright 2016-present the IoT DC3 original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.github.pnoker.common.postgres.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.github.pnoker.common.postgres.entity.model.PointValueDecimalDO;
/**
* <p>
* 设备位号历史数据表(Decimal类型) Mapper 接口
* </p>
*
* @author pnoker
* @version 2025.2.5
* @since 2022.1.0
*/
public interface PointValueDecimalMapper extends BaseMapper<PointValueDecimalDO> {
}
@@ -1,34 +0,0 @@
/*
* Copyright 2016-present the IoT DC3 original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.github.pnoker.common.postgres.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.github.pnoker.common.postgres.entity.model.PointValueDoubleDO;
/**
* <p>
* 设备位号历史数据表(Double类型) Mapper 接口
* </p>
*
* @author pnoker
* @version 2025.2.5
* @since 2022.1.0
*/
public interface PointValueDoubleMapper extends BaseMapper<PointValueDoubleDO> {
}
@@ -1,34 +0,0 @@
/*
* Copyright 2016-present the IoT DC3 original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.github.pnoker.common.postgres.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.github.pnoker.common.postgres.entity.model.PointValueFloatDO;
/**
* <p>
* 设备位号历史数据表(Float类型) Mapper 接口
* </p>
*
* @author pnoker
* @version 2025.2.5
* @since 2022.1.0
*/
public interface PointValueFloatMapper extends BaseMapper<PointValueFloatDO> {
}
@@ -1,34 +0,0 @@
/*
* Copyright 2016-present the IoT DC3 original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.github.pnoker.common.postgres.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.github.pnoker.common.postgres.entity.model.PointValueIntDO;
/**
* <p>
* 设备位号历史数据表(Integer类型) Mapper 接口
* </p>
*
* @author pnoker
* @version 2025.2.5
* @since 2022.1.0
*/
public interface PointValueIntMapper extends BaseMapper<PointValueIntDO> {
}
@@ -1,34 +0,0 @@
/*
* Copyright 2016-present the IoT DC3 original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.github.pnoker.common.postgres.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.github.pnoker.common.postgres.entity.model.PointValueLongDO;
/**
* <p>
* 设备位号历史数据表(Long类型) Mapper 接口
* </p>
*
* @author pnoker
* @version 2025.2.5
* @since 2022.1.0
*/
public interface PointValueLongMapper extends BaseMapper<PointValueLongDO> {
}
@@ -1,22 +0,0 @@
<?xml version="1.0" encoding="utf-8" ?>
<!--
~ Copyright 2016-present the IoT DC3 original author or authors.
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ https://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<aspectj>
<weaver options="-Xset:weaveJavaxPackages=true">
<include within="io.github.pnoker.common.postgres.service..*"/>
</weaver>
</aspectj>
@@ -1,20 +0,0 @@
#
# Copyright 2016-present the IoT DC3 original author or authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
io.github.pnoker.common.config.PostgresConfig,\
io.github.pnoker.common.init.PostgresInitRunner
org.springframework.boot.env.EnvironmentPostProcessor=\
io.github.pnoker.common.config.ActivePostgresProfileConfig
@@ -1,18 +0,0 @@
#
# Copyright 2016-present the IoT DC3 original author or authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
io.github.pnoker.common.config.PostgresConfig
io.github.pnoker.common.init.PostgresInitRunner
@@ -1,19 +0,0 @@
#
# Copyright 2016-present the IoT DC3 original author or authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# # The following content will be overwritten by application-[dev|test|pre|pro].yml,
# that is: if the following properties are configured in application-[dev|test|pre|pro].yml,
# the property values configured in application.yml will be the main ones.
@@ -1,21 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright 2016-present the IoT DC3 original author or authors.
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ https://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="io.github.pnoker.common.postgres.mapper.PointValueBoolMapper">
</mapper>
@@ -1,21 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright 2016-present the IoT DC3 original author or authors.
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ https://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="io.github.pnoker.common.postgres.mapper.PointValueByteMapper">
</mapper>
@@ -1,21 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright 2016-present the IoT DC3 original author or authors.
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ https://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="io.github.pnoker.common.postgres.mapper.PointValueDecimalMapper">
</mapper>
@@ -1,21 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright 2016-present the IoT DC3 original author or authors.
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ https://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="io.github.pnoker.common.postgres.mapper.PointValueDoubleMapper">
</mapper>
@@ -1,21 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright 2016-present the IoT DC3 original author or authors.
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ https://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="io.github.pnoker.common.postgres.mapper.PointValueFloatMapper">
</mapper>
@@ -1,21 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright 2016-present the IoT DC3 original author or authors.
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ https://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="io.github.pnoker.common.postgres.mapper.PointValueIntMapper">
</mapper>
@@ -1,21 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright 2016-present the IoT DC3 original author or authors.
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ https://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="io.github.pnoker.common.postgres.mapper.PointValueLongMapper">
</mapper>
-4
View File
@@ -62,10 +62,6 @@
<groupId>io.github.pnoker</groupId>
<artifactId>dc3-common-dal</artifactId>
</dependency>
<dependency>
<groupId>io.github.pnoker</groupId>
<artifactId>dc3-common-data-postgres</artifactId>
</dependency>
<dependency>
<groupId>io.github.pnoker</groupId>
<artifactId>dc3-common-log</artifactId>
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package io.github.pnoker.common.postgres.repository;
package io.github.pnoker.common.data.biz.impl;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.github.pnoker.common.constant.driver.StrategyConstant;
@@ -37,7 +37,6 @@ import java.util.List;
@Service("postgresRepositoryService")
public class PostgresRepositoryServiceImpl implements RepositoryService, InitializingBean {
@Override
public String getRepositoryName() {
return StrategyConstant.Storage.POSTGRES;
@@ -14,14 +14,14 @@
* limitations under the License.
*/
package io.github.pnoker.common.postgres.dal;
package io.github.pnoker.common.data.dal;
import com.baomidou.mybatisplus.extension.service.IService;
import io.github.pnoker.common.postgres.entity.model.PointValueDO;
import io.github.pnoker.common.data.entity.model.PointValueDO;
/**
* <p>
* 设备位号历史数据表(String类型) 服务类
* 设备位号历史数据表(默认数据表, String类型) 服务类
* </p>
*
* @author pnoker
@@ -14,17 +14,17 @@
* limitations under the License.
*/
package io.github.pnoker.common.postgres.dal.impl;
package io.github.pnoker.common.data.dal.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.github.pnoker.common.postgres.dal.PointValueManager;
import io.github.pnoker.common.postgres.entity.model.PointValueDO;
import io.github.pnoker.common.postgres.mapper.PointValueMapper;
import io.github.pnoker.common.data.dal.PointValueManager;
import io.github.pnoker.common.data.entity.model.PointValueDO;
import io.github.pnoker.common.data.mapper.PointValueMapper;
import org.springframework.stereotype.Service;
/**
* <p>
* 设备位号历史数据表(String类型) 服务实现类
* 设备位号历史数据表(默认数据表, String类型) 服务实现类
* </p>
*
* @author pnoker
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package io.github.pnoker.common.postgres.entity.model;
package io.github.pnoker.common.data.entity.model;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
@@ -28,7 +28,7 @@ import java.time.LocalDateTime;
/**
* <p>
* 设备位号历史数据表(String类型)
* 设备位号历史数据表(默认数据表, String类型)
* </p>
*
* @author pnoker
@@ -38,7 +38,7 @@ import java.time.LocalDateTime;
@Getter
@Setter
@ToString
@TableName("dc3_point_value_string")
@TableName("dc3_point_value")
public class PointValueDO implements Serializable {
@Serial
@@ -14,14 +14,14 @@
* limitations under the License.
*/
package io.github.pnoker.common.postgres.mapper;
package io.github.pnoker.common.data.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.github.pnoker.common.postgres.entity.model.PointValueDO;
import io.github.pnoker.common.data.entity.model.PointValueDO;
/**
* <p>
* 设备位号历史数据表(String类型) Mapper 接口
* 设备位号历史数据表(默认数据表, String类型) Mapper 接口
* </p>
*
* @author pnoker
@@ -16,6 +16,6 @@
-->
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="io.github.pnoker.common.postgres.mapper.PointValueMapper">
<mapper namespace="io.github.pnoker.common.data.mapper.PointValueMapper">
</mapper>
-4
View File
@@ -66,10 +66,6 @@
<groupId>io.github.pnoker</groupId>
<artifactId>dc3-common-dal</artifactId>
</dependency>
<dependency>
<groupId>io.github.pnoker</groupId>
<artifactId>dc3-common-data-postgres</artifactId>
</dependency>
<dependency>
<groupId>io.github.pnoker</groupId>
<artifactId>dc3-common-log</artifactId>
-6
View File
@@ -107,7 +107,6 @@
<module>dc3-common-constant</module>
<module>dc3-common-dal</module>
<module>dc3-common-data</module>
<module>dc3-common-data-postgres</module>
<module>dc3-common-driver</module>
<module>dc3-common-exception</module>
<module>dc3-common-gateway</module>
@@ -236,11 +235,6 @@
<artifactId>dc3-common-data</artifactId>
<version>${dc3.common.data.version}</version>
</dependency>
<dependency>
<groupId>io.github.pnoker</groupId>
<artifactId>dc3-common-data-postgres</artifactId>
<version>${dc3.common.postgres.version}</version>
</dependency>
<dependency>
<groupId>io.github.pnoker</groupId>
<artifactId>dc3-common-driver</artifactId>
-5
View File
@@ -193,11 +193,6 @@
<artifactId>dc3-common-data</artifactId>
<version>${dc3.common.data.version}</version>
</dependency>
<dependency>
<groupId>io.github.pnoker</groupId>
<artifactId>dc3-common-data-postgres</artifactId>
<version>${dc3.common.postgres.version}</version>
</dependency>
<dependency>
<groupId>io.github.pnoker</groupId>
<artifactId>dc3-common-driver</artifactId>