智慧安监服务整改及代码提交

main
zhangyu 2023-02-16 15:30:52 +08:00
parent 0dc9fa6018
commit f44b0f0b22
78 changed files with 5982 additions and 66 deletions

View File

@ -1,8 +0,0 @@
Spring Boot Version: ${spring-boot.version}
Spring Application Name: ${spring.application.name}
__ __ __
/ /_ / /_ / /_ ___ ____
/ __ \/ __ \/ __/_____/ _ \/ __ \
/ / / / /_/ / /_/_____/ __/ /_/ /
/_/ /_/_.___/\__/ \___/ .___/
/_/

View File

@ -0,0 +1,121 @@
<?xml version="1.0" encoding="UTF-8"?>
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
<component name="FacetManager">
<facet type="Spring" name="Spring">
<configuration />
</facet>
</component>
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8">
<output url="file://$MODULE_DIR$/target/classes" />
<output-test url="file://$MODULE_DIR$/target/test-classes" />
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/target" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="Maven: com.hbt:hbt-common-security:3.6.1" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-webmvc:5.3.22" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-aop:5.3.22" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-beans:5.3.22" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-context:5.3.22" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-core:5.3.22" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-jcl:5.3.22" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-expression:5.3.22" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-web:5.3.22" level="project" />
<orderEntry type="library" name="Maven: com.hbt:hbt-api-system:3.6.1" level="project" />
<orderEntry type="library" name="Maven: com.hbt:hbt-common-core:3.6.1" level="project" />
<orderEntry type="library" name="Maven: org.springframework.cloud:spring-cloud-starter-openfeign:3.1.4" level="project" />
<orderEntry type="library" name="Maven: org.springframework.cloud:spring-cloud-openfeign-core:3.1.4" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-aop:2.7.3" level="project" />
<orderEntry type="library" name="Maven: org.aspectj:aspectjweaver:1.9.7" level="project" />
<orderEntry type="library" name="Maven: io.github.openfeign.form:feign-form-spring:3.8.0" level="project" />
<orderEntry type="library" name="Maven: io.github.openfeign.form:feign-form:3.8.0" level="project" />
<orderEntry type="library" name="Maven: io.github.openfeign:feign-core:11.8" level="project" />
<orderEntry type="library" name="Maven: io.github.openfeign:feign-slf4j:11.8" level="project" />
<orderEntry type="library" name="Maven: org.springframework.cloud:spring-cloud-starter-loadbalancer:3.1.4" level="project" />
<orderEntry type="library" name="Maven: org.springframework.cloud:spring-cloud-loadbalancer:3.1.4" level="project" />
<orderEntry type="library" name="Maven: io.projectreactor.addons:reactor-extra:3.4.8" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-cache:2.7.3" level="project" />
<orderEntry type="library" name="Maven: com.stoyanr:evictor:1.0.0" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-context-support:5.3.22" level="project" />
<orderEntry type="library" name="Maven: com.alibaba:transmittable-thread-local:2.13.2" level="project" />
<orderEntry type="library" name="Maven: com.github.pagehelper:pagehelper-spring-boot-starter:1.4.6" level="project" />
<orderEntry type="library" name="Maven: org.mybatis.spring.boot:mybatis-spring-boot-starter:2.2.2" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-jdbc:2.7.3" level="project" />
<orderEntry type="library" name="Maven: com.zaxxer:HikariCP:4.0.3" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-jdbc:5.3.22" level="project" />
<orderEntry type="library" name="Maven: org.mybatis.spring.boot:mybatis-spring-boot-autoconfigure:2.2.2" level="project" />
<orderEntry type="library" name="Maven: org.mybatis:mybatis:3.5.9" level="project" />
<orderEntry type="library" name="Maven: org.mybatis:mybatis-spring:2.0.7" level="project" />
<orderEntry type="library" name="Maven: com.github.pagehelper:pagehelper-spring-boot-autoconfigure:1.4.6" level="project" />
<orderEntry type="library" name="Maven: com.github.pagehelper:pagehelper:5.3.2" level="project" />
<orderEntry type="library" name="Maven: com.github.jsqlparser:jsqlparser:4.5" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-validation:2.7.3" level="project" />
<orderEntry type="library" name="Maven: org.apache.tomcat.embed:tomcat-embed-el:9.0.65" level="project" />
<orderEntry type="library" name="Maven: org.hibernate.validator:hibernate-validator:6.2.4.Final" level="project" />
<orderEntry type="library" name="Maven: jakarta.validation:jakarta.validation-api:2.0.2" level="project" />
<orderEntry type="library" name="Maven: org.jboss.logging:jboss-logging:3.4.3.Final" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml:classmate:1.5.1" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-databind:2.13.3" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-annotations:2.13.3" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-core:2.13.3" level="project" />
<orderEntry type="library" name="Maven: com.alibaba.fastjson2:fastjson2:2.0.20" level="project" />
<orderEntry type="library" name="Maven: io.jsonwebtoken:jjwt:0.9.1" level="project" />
<orderEntry type="library" name="Maven: javax.xml.bind:jaxb-api:2.3.1" level="project" />
<orderEntry type="library" name="Maven: javax.activation:javax.activation-api:1.2.0" level="project" />
<orderEntry type="library" name="Maven: org.apache.commons:commons-lang3:3.12.0" level="project" />
<orderEntry type="library" name="Maven: commons-io:commons-io:2.11.0" level="project" />
<orderEntry type="library" name="Maven: commons-fileupload:commons-fileupload:1.4" level="project" />
<orderEntry type="library" name="Maven: org.apache.poi:poi-ooxml:4.1.2" level="project" />
<orderEntry type="library" name="Maven: org.apache.poi:poi:4.1.2" level="project" />
<orderEntry type="library" name="Maven: commons-codec:commons-codec:1.15" level="project" />
<orderEntry type="library" name="Maven: org.apache.commons:commons-collections4:4.4" level="project" />
<orderEntry type="library" name="Maven: org.apache.commons:commons-math3:3.6.1" level="project" />
<orderEntry type="library" name="Maven: com.zaxxer:SparseBitSet:1.2" level="project" />
<orderEntry type="library" name="Maven: org.apache.poi:poi-ooxml-schemas:4.1.2" level="project" />
<orderEntry type="library" name="Maven: org.apache.xmlbeans:xmlbeans:3.1.0" level="project" />
<orderEntry type="library" name="Maven: org.apache.commons:commons-compress:1.19" level="project" />
<orderEntry type="library" name="Maven: com.github.virtuald:curvesapi:1.06" level="project" />
<orderEntry type="library" name="Maven: javax.servlet:javax.servlet-api:4.0.1" level="project" />
<orderEntry type="library" name="Maven: io.swagger:swagger-annotations:1.6.2" level="project" />
<orderEntry type="library" name="Maven: com.hbt:hbt-common-redis:3.6.1" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-data-redis:2.7.3" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter:2.7.3" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot:2.7.3" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-autoconfigure:2.7.3" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-logging:2.7.3" level="project" />
<orderEntry type="library" name="Maven: ch.qos.logback:logback-classic:1.2.11" level="project" />
<orderEntry type="library" name="Maven: ch.qos.logback:logback-core:1.2.11" level="project" />
<orderEntry type="library" name="Maven: org.apache.logging.log4j:log4j-to-slf4j:2.17.2" level="project" />
<orderEntry type="library" name="Maven: org.apache.logging.log4j:log4j-api:2.17.2" level="project" />
<orderEntry type="library" name="Maven: org.slf4j:jul-to-slf4j:1.7.36" level="project" />
<orderEntry type="library" name="Maven: jakarta.annotation:jakarta.annotation-api:1.3.5" level="project" />
<orderEntry type="library" name="Maven: org.yaml:snakeyaml:1.30" level="project" />
<orderEntry type="library" name="Maven: org.springframework.data:spring-data-redis:2.7.2" level="project" />
<orderEntry type="library" name="Maven: org.springframework.data:spring-data-keyvalue:2.7.2" level="project" />
<orderEntry type="library" name="Maven: org.springframework.data:spring-data-commons:2.7.2" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-tx:5.3.22" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-oxm:5.3.22" level="project" />
<orderEntry type="library" name="Maven: org.slf4j:slf4j-api:1.7.36" level="project" />
<orderEntry type="library" name="Maven: io.lettuce:lettuce-core:6.1.9.RELEASE" level="project" />
<orderEntry type="library" name="Maven: io.netty:netty-common:4.1.79.Final" level="project" />
<orderEntry type="library" name="Maven: io.netty:netty-handler:4.1.79.Final" level="project" />
<orderEntry type="library" name="Maven: io.netty:netty-resolver:4.1.79.Final" level="project" />
<orderEntry type="library" name="Maven: io.netty:netty-buffer:4.1.79.Final" level="project" />
<orderEntry type="library" name="Maven: io.netty:netty-transport-native-unix-common:4.1.79.Final" level="project" />
<orderEntry type="library" name="Maven: io.netty:netty-codec:4.1.79.Final" level="project" />
<orderEntry type="library" name="Maven: io.netty:netty-transport:4.1.79.Final" level="project" />
<orderEntry type="library" name="Maven: io.projectreactor:reactor-core:3.4.22" level="project" />
<orderEntry type="library" name="Maven: org.reactivestreams:reactive-streams:1.0.4" level="project" />
<orderEntry type="library" name="Maven: org.springframework.cloud:spring-cloud-starter-bootstrap:3.1.4" level="project" />
<orderEntry type="library" name="Maven: org.springframework.cloud:spring-cloud-starter:3.1.4" level="project" />
<orderEntry type="library" name="Maven: org.springframework.cloud:spring-cloud-context:3.1.4" level="project" />
<orderEntry type="library" name="Maven: org.springframework.security:spring-security-crypto:5.7.3" level="project" />
<orderEntry type="library" name="Maven: org.springframework.cloud:spring-cloud-commons:3.1.4" level="project" />
<orderEntry type="library" name="Maven: org.springframework.security:spring-security-rsa:1.0.11.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.bouncycastle:bcpkix-jdk15on:1.69" level="project" />
<orderEntry type="library" name="Maven: org.bouncycastle:bcprov-jdk15on:1.69" level="project" />
<orderEntry type="library" name="Maven: org.bouncycastle:bcutil-jdk15on:1.69" level="project" />
<orderEntry type="library" name="Maven: joda-time:joda-time:2.9.9" level="project" />
</component>
</module>

View File

@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<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">
<parent>
<groupId>com.hbt</groupId>
<artifactId>hbt-safety-supervision</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>hbt-safety-supervision-api</artifactId>
<description>
hbt-safety-supervision-api系统接口模块
</description>
<dependencies>
<!-- jsits Common Security -->
<dependency>
<groupId>com.hbt</groupId>
<artifactId>hbt-common-security</artifactId>
</dependency>
<dependency>
<groupId>joda-time</groupId>
<artifactId>joda-time</artifactId>
</dependency>
</dependencies>
</project>

View File

@ -1,4 +1,4 @@
FROM 119.45.158.12:5000/mini-java8:latest
COPY target/hbt-ep-1.0-SNAPSHOT.jar /app/app.jar
COPY target/hbt-safety-supervision-biz-1.0-SNAPSHOT.jar /app/app.jar
ENV NACOSIP=""
ENTRYPOINT ["sh","-c","java -Dnacos.ip=$NACOSIP -jar /app/app.jar"]

View File

@ -4,10 +4,6 @@
<facet type="web" name="Web">
<configuration>
<webroots />
<sourceRoots>
<root url="file://$MODULE_DIR$/src/main/java" />
<root url="file://$MODULE_DIR$/src/main/resources" />
</sourceRoots>
</configuration>
</facet>
<facet type="Spring" name="Spring">
@ -20,7 +16,6 @@
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
<excludeFolder url="file://$MODULE_DIR$/target" />
</content>
<orderEntry type="inheritedJdk" />
@ -100,49 +95,6 @@
<orderEntry type="library" name="Maven: org.springframework:spring-expression:5.3.22" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-web:5.3.22" level="project" />
<orderEntry type="library" name="Maven: com.hbt:hbt-api-system:3.6.1" level="project" />
<orderEntry type="library" name="Maven: com.hbt:hbt-common-core:3.6.1" level="project" />
<orderEntry type="library" name="Maven: org.springframework.cloud:spring-cloud-starter-openfeign:3.1.4" level="project" />
<orderEntry type="library" name="Maven: org.springframework.cloud:spring-cloud-openfeign-core:3.1.4" level="project" />
<orderEntry type="library" name="Maven: io.github.openfeign.form:feign-form-spring:3.8.0" level="project" />
<orderEntry type="library" name="Maven: io.github.openfeign.form:feign-form:3.8.0" level="project" />
<orderEntry type="library" name="Maven: io.github.openfeign:feign-core:11.8" level="project" />
<orderEntry type="library" name="Maven: io.github.openfeign:feign-slf4j:11.8" level="project" />
<orderEntry type="library" name="Maven: org.springframework.cloud:spring-cloud-starter-loadbalancer:3.1.4" level="project" />
<orderEntry type="library" name="Maven: org.springframework.cloud:spring-cloud-loadbalancer:3.1.4" level="project" />
<orderEntry type="library" name="Maven: io.projectreactor.addons:reactor-extra:3.4.8" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-cache:2.7.3" level="project" />
<orderEntry type="library" name="Maven: com.stoyanr:evictor:1.0.0" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-context-support:5.3.22" level="project" />
<orderEntry type="library" name="Maven: com.alibaba:transmittable-thread-local:2.13.2" level="project" />
<orderEntry type="library" name="Maven: com.github.pagehelper:pagehelper-spring-boot-starter:1.4.6" level="project" />
<orderEntry type="library" name="Maven: org.mybatis.spring.boot:mybatis-spring-boot-starter:2.2.2" level="project" />
<orderEntry type="library" name="Maven: org.mybatis.spring.boot:mybatis-spring-boot-autoconfigure:2.2.2" level="project" />
<orderEntry type="library" name="Maven: org.mybatis:mybatis:3.5.9" level="project" />
<orderEntry type="library" name="Maven: org.mybatis:mybatis-spring:2.0.7" level="project" />
<orderEntry type="library" name="Maven: com.github.pagehelper:pagehelper-spring-boot-autoconfigure:1.4.6" level="project" />
<orderEntry type="library" name="Maven: com.github.pagehelper:pagehelper:5.3.2" level="project" />
<orderEntry type="library" name="Maven: com.github.jsqlparser:jsqlparser:4.5" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-validation:2.7.3" level="project" />
<orderEntry type="library" name="Maven: org.hibernate.validator:hibernate-validator:6.2.4.Final" level="project" />
<orderEntry type="library" name="Maven: jakarta.validation:jakarta.validation-api:2.0.2" level="project" />
<orderEntry type="library" name="Maven: org.jboss.logging:jboss-logging:3.4.3.Final" level="project" />
<orderEntry type="library" name="Maven: com.alibaba.fastjson2:fastjson2:2.0.20" level="project" />
<orderEntry type="library" name="Maven: io.jsonwebtoken:jjwt:0.9.1" level="project" />
<orderEntry type="library" name="Maven: javax.xml.bind:jaxb-api:2.3.1" level="project" />
<orderEntry type="library" name="Maven: javax.activation:javax.activation-api:1.2.0" level="project" />
<orderEntry type="library" name="Maven: org.apache.commons:commons-lang3:3.12.0" level="project" />
<orderEntry type="library" name="Maven: commons-io:commons-io:2.11.0" level="project" />
<orderEntry type="library" name="Maven: commons-fileupload:commons-fileupload:1.4" level="project" />
<orderEntry type="library" name="Maven: org.apache.poi:poi-ooxml:4.1.2" level="project" />
<orderEntry type="library" name="Maven: org.apache.poi:poi:4.1.2" level="project" />
<orderEntry type="library" name="Maven: org.apache.commons:commons-collections4:4.4" level="project" />
<orderEntry type="library" name="Maven: org.apache.commons:commons-math3:3.6.1" level="project" />
<orderEntry type="library" name="Maven: com.zaxxer:SparseBitSet:1.2" level="project" />
<orderEntry type="library" name="Maven: org.apache.poi:poi-ooxml-schemas:4.1.2" level="project" />
<orderEntry type="library" name="Maven: org.apache.xmlbeans:xmlbeans:3.1.0" level="project" />
<orderEntry type="library" name="Maven: org.apache.commons:commons-compress:1.19" level="project" />
<orderEntry type="library" name="Maven: com.github.virtuald:curvesapi:1.06" level="project" />
<orderEntry type="library" name="Maven: javax.servlet:javax.servlet-api:4.0.1" level="project" />
<orderEntry type="library" name="Maven: com.hbt:hbt-common-redis:3.6.1" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-data-redis:2.7.3" level="project" />
<orderEntry type="library" name="Maven: org.springframework.data:spring-data-redis:2.7.2" level="project" />
@ -227,5 +179,49 @@
<orderEntry type="library" scope="TEST" name="Maven: org.springframework:spring-test:5.3.22" level="project" />
<orderEntry type="library" scope="TEST" name="Maven: org.xmlunit:xmlunit-core:2.9.0" level="project" />
<orderEntry type="library" name="Maven: org.projectlombok:lombok:1.18.12" level="project" />
<orderEntry type="library" name="Maven: com.hbt:hbt-msds-api:1.0-SNAPSHOT" level="project" />
<orderEntry type="library" name="Maven: com.hbt:hbt-common-core:3.6.1" level="project" />
<orderEntry type="library" name="Maven: org.springframework.cloud:spring-cloud-starter-openfeign:3.1.4" level="project" />
<orderEntry type="library" name="Maven: org.springframework.cloud:spring-cloud-openfeign-core:3.1.4" level="project" />
<orderEntry type="library" name="Maven: io.github.openfeign.form:feign-form-spring:3.8.0" level="project" />
<orderEntry type="library" name="Maven: io.github.openfeign.form:feign-form:3.8.0" level="project" />
<orderEntry type="library" name="Maven: io.github.openfeign:feign-core:11.8" level="project" />
<orderEntry type="library" name="Maven: io.github.openfeign:feign-slf4j:11.8" level="project" />
<orderEntry type="library" name="Maven: org.springframework.cloud:spring-cloud-starter-loadbalancer:3.1.4" level="project" />
<orderEntry type="library" name="Maven: org.springframework.cloud:spring-cloud-loadbalancer:3.1.4" level="project" />
<orderEntry type="library" name="Maven: io.projectreactor.addons:reactor-extra:3.4.8" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-cache:2.7.3" level="project" />
<orderEntry type="library" name="Maven: com.stoyanr:evictor:1.0.0" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-context-support:5.3.22" level="project" />
<orderEntry type="library" name="Maven: com.alibaba:transmittable-thread-local:2.13.2" level="project" />
<orderEntry type="library" name="Maven: com.github.pagehelper:pagehelper-spring-boot-starter:1.4.6" level="project" />
<orderEntry type="library" name="Maven: org.mybatis.spring.boot:mybatis-spring-boot-starter:2.2.2" level="project" />
<orderEntry type="library" name="Maven: org.mybatis.spring.boot:mybatis-spring-boot-autoconfigure:2.2.2" level="project" />
<orderEntry type="library" name="Maven: org.mybatis:mybatis:3.5.9" level="project" />
<orderEntry type="library" name="Maven: org.mybatis:mybatis-spring:2.0.7" level="project" />
<orderEntry type="library" name="Maven: com.github.pagehelper:pagehelper-spring-boot-autoconfigure:1.4.6" level="project" />
<orderEntry type="library" name="Maven: com.github.pagehelper:pagehelper:5.3.2" level="project" />
<orderEntry type="library" name="Maven: com.github.jsqlparser:jsqlparser:4.5" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-validation:2.7.3" level="project" />
<orderEntry type="library" name="Maven: org.hibernate.validator:hibernate-validator:6.2.4.Final" level="project" />
<orderEntry type="library" name="Maven: jakarta.validation:jakarta.validation-api:2.0.2" level="project" />
<orderEntry type="library" name="Maven: org.jboss.logging:jboss-logging:3.4.3.Final" level="project" />
<orderEntry type="library" name="Maven: com.alibaba.fastjson2:fastjson2:2.0.20" level="project" />
<orderEntry type="library" name="Maven: io.jsonwebtoken:jjwt:0.9.1" level="project" />
<orderEntry type="library" name="Maven: javax.xml.bind:jaxb-api:2.3.1" level="project" />
<orderEntry type="library" name="Maven: javax.activation:javax.activation-api:1.2.0" level="project" />
<orderEntry type="library" name="Maven: org.apache.commons:commons-lang3:3.12.0" level="project" />
<orderEntry type="library" name="Maven: commons-io:commons-io:2.11.0" level="project" />
<orderEntry type="library" name="Maven: commons-fileupload:commons-fileupload:1.4" level="project" />
<orderEntry type="library" name="Maven: org.apache.poi:poi-ooxml:4.1.2" level="project" />
<orderEntry type="library" name="Maven: org.apache.poi:poi:4.1.2" level="project" />
<orderEntry type="library" name="Maven: org.apache.commons:commons-collections4:4.4" level="project" />
<orderEntry type="library" name="Maven: org.apache.commons:commons-math3:3.6.1" level="project" />
<orderEntry type="library" name="Maven: com.zaxxer:SparseBitSet:1.2" level="project" />
<orderEntry type="library" name="Maven: org.apache.poi:poi-ooxml-schemas:4.1.2" level="project" />
<orderEntry type="library" name="Maven: org.apache.xmlbeans:xmlbeans:3.1.0" level="project" />
<orderEntry type="library" name="Maven: org.apache.commons:commons-compress:1.19" level="project" />
<orderEntry type="library" name="Maven: com.github.virtuald:curvesapi:1.06" level="project" />
<orderEntry type="library" name="Maven: javax.servlet:javax.servlet-api:4.0.1" level="project" />
</component>
</module>

View File

@ -3,13 +3,13 @@
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">
<parent>
<artifactId>wit-park-backend</artifactId>
<artifactId>hbt-safety-supervision</artifactId>
<groupId>com.hbt</groupId>
<version>1.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>hbt-ep</artifactId>
<artifactId>hbt-safety-supervision-biz</artifactId>
<dependencies>
<!-- SpringCloud Ailibaba Nacos -->
@ -81,8 +81,15 @@
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</dependency>
<dependency>
<groupId>com.hbt</groupId>
<artifactId>hbt-msds-api</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
</dependencies>
<build>
<finalName>${project.artifactId}</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>

View File

@ -1,4 +1,4 @@
package com.hbt.wit.park.backend.ep;
package com.hbt.safety.supervision;
import com.hbt.common.security.annotation.EnableCustomConfig;
import com.hbt.common.security.annotation.EnableRyFeignClients;
@ -13,11 +13,11 @@ import org.springframework.cloud.client.SpringCloudApplication;
@SpringCloudApplication
@EnableCustomSwagger2
@EnableRyFeignClients
public class EpApplication {
public class SafetySupervisionApplication {
public static void main(String[] args)
{
SpringApplication.run(com.hbt.wit.park.backend.ep.EpApplication.class, args);
System.out.println("(♥◠‿◠)ノ゙ 智慧环保知识server启动成功 ლ(´ڡ`ლ)゙ ");
SpringApplication.run(SafetySupervisionApplication.class, args);
System.out.println("(♥◠‿◠)ノ゙ 智慧安监server启动成功 ლ(´ڡ`ლ)゙ ");
}
}

View File

@ -1,4 +1,4 @@
package com.hbt.wit.park.backend.ep.controller;
package com.hbt.safety.supervision.controller;
import com.hbt.common.core.domain.R;
import com.hbt.common.core.web.controller.BaseController;

View File

@ -0,0 +1,93 @@
package com.hbt.safety.supervision.controller;
import java.util.List;
import com.alibaba.fastjson.JSONObject;
import com.hbt.safety.supervision.pojo.EnterpriseInfomation;
import com.hbt.safety.supervision.service.IEnterpriseInfomationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
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.RestController;
import com.hbt.common.security.annotation.RequiresPermissions;
import com.hbt.common.core.web.controller.BaseController;
import com.hbt.common.core.web.domain.AjaxResult;
import com.hbt.common.core.web.page.TableDataInfo;
/**
* Controller
*
* @author zhangyu
* @date 2023-02-14
*/
@RestController
@RequestMapping("/infomation")
public class EnterpriseInfomationController extends BaseController
{
@Autowired
private IEnterpriseInfomationService enterpriseInfomationService;
/**
*
*/
@GetMapping("/list")
public String list(EnterpriseInfomation enterpriseInfomation)
{
startPage();
List<EnterpriseInfomation> list = enterpriseInfomationService.selectEnterpriseInfomationList(enterpriseInfomation);
TableDataInfo tableDataInfo = getDataTable(list);
return JSONObject.toJSONString(tableDataInfo);
}
/**
*
*/
@RequiresPermissions("ep:infomation:query")
@GetMapping(value = "/{id}")
public String getInfo(@PathVariable("id") int id)
{
AjaxResult ajaxResult = success(enterpriseInfomationService.selectEnterpriseInfomationById(id));
return JSONObject.toJSONString(ajaxResult);
}
/**
*
*/
@GetMapping("/add")
public String add(@RequestBody EnterpriseInfomation enterpriseInfomation)
{
AjaxResult ajaxResult = toAjax(enterpriseInfomationService.insertEnterpriseInfomation(enterpriseInfomation));
return JSONObject.toJSONString(ajaxResult);
}
/**
*
*/
@GetMapping("/edit")
public String edit(@RequestBody EnterpriseInfomation enterpriseInfomation)
{
AjaxResult ajaxResult = toAjax(enterpriseInfomationService.updateEnterpriseInfomation(enterpriseInfomation));
return JSONObject.toJSONString(ajaxResult);
}
/**
*
*/
@GetMapping("/remove")
public String remove(@PathVariable int[] ids)
{
AjaxResult ajaxResult = toAjax(enterpriseInfomationService.deleteEnterpriseInfomationByIds(ids));
return JSONObject.toJSONString(ajaxResult);
}
/**
*
*/
@GetMapping("/enterpriseStatistics")
public String enterpriseStatistics()
{
return enterpriseInfomationService.enterpriseStatistics();
}
}

View File

@ -0,0 +1,82 @@
package com.hbt.safety.supervision.controller;
import java.util.List;
import com.alibaba.fastjson.JSONObject;
import com.hbt.safety.supervision.pojo.EscalateHiddenDanger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
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.RestController;
import com.hbt.safety.supervision.service.IEscalateHiddenDangerService;
import com.hbt.common.core.web.controller.BaseController;
import com.hbt.common.core.web.domain.AjaxResult;
import com.hbt.common.core.web.page.TableDataInfo;
/**
* Controller
*
* @author
* @date 2023-02-14
*/
@RestController
@RequestMapping("/danger")
public class EscalateHiddenDangerController extends BaseController
{
@Autowired
private IEscalateHiddenDangerService escalateHiddenDangerService;
/**
*
*/
@GetMapping("/list")
public String list(EscalateHiddenDanger escalateHiddenDanger)
{
startPage();
List<EscalateHiddenDanger> list = escalateHiddenDangerService.selectEscalateHiddenDangerList(escalateHiddenDanger);
TableDataInfo tableDataInfo = getDataTable(list);
return JSONObject.toJSONString(tableDataInfo);
}
/**
*
*/
@GetMapping(value = "/{id}")
public String getInfo(@PathVariable("id") int id)
{
AjaxResult ajaxResult = success(escalateHiddenDangerService.selectEscalateHiddenDangerById(id));
return JSONObject.toJSONString(ajaxResult);
}
/**
*
*/
@GetMapping(value = "/add")
public String add(@RequestBody EscalateHiddenDanger escalateHiddenDanger)
{
AjaxResult ajaxResult = toAjax(escalateHiddenDangerService.insertEscalateHiddenDanger(escalateHiddenDanger));
return JSONObject.toJSONString(ajaxResult);
}
/**
*
*/
@GetMapping(value = "/edit")
public String edit(@RequestBody EscalateHiddenDanger escalateHiddenDanger)
{
AjaxResult ajaxResult = toAjax(escalateHiddenDangerService.updateEscalateHiddenDanger(escalateHiddenDanger));
return JSONObject.toJSONString(ajaxResult);
}
/**
*
*/
@GetMapping(value = "/remove")
public String remove(@PathVariable int[] ids)
{
AjaxResult ajaxResult = toAjax(escalateHiddenDangerService.deleteEscalateHiddenDangerByIds(ids));
return JSONObject.toJSONString(ajaxResult);
}
}

View File

@ -0,0 +1,82 @@
package com.hbt.safety.supervision.controller;
import java.util.List;
import com.alibaba.fastjson.JSONObject;
import com.hbt.safety.supervision.pojo.EscalateRisk;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
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.RestController;
import com.hbt.safety.supervision.service.IEscalateRiskService;
import com.hbt.common.core.web.controller.BaseController;
import com.hbt.common.core.web.domain.AjaxResult;
import com.hbt.common.core.web.page.TableDataInfo;
/**
* Controller
*
* @author
* @date 2023-02-14
*/
@RestController
@RequestMapping("/escalateRisk")
public class EscalateRiskController extends BaseController
{
@Autowired
private IEscalateRiskService escalateRiskService;
/**
*
*/
@GetMapping("/list")
public String list(EscalateRisk escalateRisk)
{
startPage();
List<EscalateRisk> list = escalateRiskService.selectEscalateRiskList(escalateRisk);
TableDataInfo tableDataInfo = getDataTable(list);
return JSONObject.toJSONString(tableDataInfo);
}
/**
*
*/
@GetMapping(value = "/{id}")
public String getInfo(@PathVariable("id") int id)
{
AjaxResult ajaxResult = success(escalateRiskService.selectEscalateRiskById(id));
return JSONObject.toJSONString(ajaxResult);
}
/**
*
*/
@GetMapping(value = "/add")
public String add(@RequestBody EscalateRisk escalateRisk)
{
AjaxResult ajaxResult = toAjax(escalateRiskService.insertEscalateRisk(escalateRisk));
return JSONObject.toJSONString(ajaxResult);
}
/**
*
*/
@GetMapping(value = "/edit")
public String edit(@RequestBody EscalateRisk escalateRisk)
{
AjaxResult ajaxResult = toAjax(escalateRiskService.updateEscalateRisk(escalateRisk));
return JSONObject.toJSONString(ajaxResult);
}
/**
*
*/
@GetMapping(value = "/remove")
public String remove(@PathVariable int[] ids)
{
AjaxResult ajaxResult = toAjax(escalateRiskService.deleteEscalateRiskByIds(ids));
return JSONObject.toJSONString(ajaxResult);
}
}

View File

@ -0,0 +1,28 @@
package com.hbt.safety.supervision.controller;
import com.hbt.common.core.constant.SecurityConstants;
import com.hbt.common.core.domain.R;
import com.hbt.msds.api.RemoteMsdsService;
import com.hbt.msds.api.domain.Msds;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* controller
* msds
*/
@RestController
@RequestMapping("/chemicals")
public class HazardousChemicalsController {
@Autowired
private RemoteMsdsService remoteMsdsService;
@GetMapping("/getHazardousChemicals")
public R<Msds> getHazardousChemicals(@Param("name") String name) {
return remoteMsdsService.getInfo(name, SecurityConstants.INNER);
}
}

View File

@ -0,0 +1,91 @@
package com.hbt.safety.supervision.controller;
import java.util.List;
import com.alibaba.fastjson.JSONObject;
import com.hbt.safety.supervision.pojo.HazardousOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
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.RestController;
import com.hbt.safety.supervision.service.IHazardousOperationService;
import com.hbt.common.core.web.controller.BaseController;
import com.hbt.common.core.web.domain.AjaxResult;
import com.hbt.common.core.web.page.TableDataInfo;
/**
* Controller
*
* @author zhangyu
* @date 2023-02-14
*/
@RestController
@RequestMapping("/operation")
public class HazardousOperationController extends BaseController
{
@Autowired
private IHazardousOperationService hazardousOperationService;
/**
*
*/
@GetMapping("/list")
public String list(HazardousOperation hazardousOperation)
{
startPage();
List<HazardousOperation> list = hazardousOperationService.selectHazardousOperationList(hazardousOperation);
TableDataInfo tableDataInfo = getDataTable(list);
return JSONObject.toJSONString(tableDataInfo);
}
/**
*
*/
@GetMapping(value = "/{id}")
public String getInfo(@PathVariable("id") int id)
{
AjaxResult ajaxResult = success(hazardousOperationService.selectHazardousOperationById(id));
return JSONObject.toJSONString(ajaxResult);
}
/**
*
*/
@GetMapping(value = "/add")
public String add(@RequestBody HazardousOperation hazardousOperation)
{
AjaxResult ajaxResult = toAjax(hazardousOperationService.insertHazardousOperation(hazardousOperation));
return JSONObject.toJSONString(ajaxResult);
}
/**
*
*/
@GetMapping(value = "/edit")
public String edit(@RequestBody HazardousOperation hazardousOperation)
{
AjaxResult ajaxResult = toAjax(hazardousOperationService.updateHazardousOperation(hazardousOperation));
return JSONObject.toJSONString(ajaxResult);
}
/**
*
*/
@GetMapping(value = "/remove")
public String remove(@PathVariable int[] ids)
{
AjaxResult ajaxResult = toAjax(hazardousOperationService.deleteHazardousOperationByIds(ids));
return JSONObject.toJSONString(ajaxResult);
}
/**
*
*/
@GetMapping(value = "/hazardousOperationStatistics")
public String hazardousOperationStatistics()
{
return hazardousOperationService.hazardousOperationStatistics();
}
}

View File

@ -0,0 +1,91 @@
package com.hbt.safety.supervision.controller;
import java.util.List;
import com.alibaba.fastjson.JSONObject;
import com.hbt.safety.supervision.pojo.HiddenDanger;
import com.hbt.safety.supervision.service.IHiddenDangerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
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.RestController;
import com.hbt.common.core.web.controller.BaseController;
import com.hbt.common.core.web.domain.AjaxResult;
import com.hbt.common.core.web.page.TableDataInfo;
/**
* Controller
*
* @author hbt
* @date 2023-02-14
*/
@RestController
@RequestMapping("/hiddenDanger")
public class HiddenDangerController extends BaseController
{
@Autowired
private IHiddenDangerService hiddenDangerService;
/**
*
*/
@GetMapping("/list")
public String list(HiddenDanger hiddenDanger)
{
startPage();
List<HiddenDanger> list = hiddenDangerService.selectHiddenDangerList(hiddenDanger);
TableDataInfo tableDataInfo = getDataTable(list);
return JSONObject.toJSONString(tableDataInfo);
}
/**
*
*/
@GetMapping(value = "/{id}")
public String getInfo(@PathVariable("id") int id)
{
AjaxResult ajaxResult = success(hiddenDangerService.selectHiddenDangerById(id));
return JSONObject.toJSONString(ajaxResult);
}
/**
*
*/
@GetMapping(value = "/add")
public String add(@RequestBody HiddenDanger hiddenDanger)
{
AjaxResult ajaxResult = toAjax(hiddenDangerService.insertHiddenDanger(hiddenDanger));
return JSONObject.toJSONString(ajaxResult);
}
/**
*
*/
@GetMapping(value = "/edit")
public String edit(@RequestBody HiddenDanger hiddenDanger)
{
AjaxResult ajaxResult = toAjax(hiddenDangerService.updateHiddenDanger(hiddenDanger));
return JSONObject.toJSONString(ajaxResult);
}
/**
*
*/
@GetMapping(value = "/remove")
public String remove(@PathVariable int[] ids)
{
AjaxResult ajaxResult = toAjax(hiddenDangerService.deleteHiddenDangerByIds(ids));
return JSONObject.toJSONString(ajaxResult);
}
/**
*
*/
@GetMapping(value = "/hiddenDangerStatistics")
public String hiddenDangerStatistics()
{
return hiddenDangerService.hiddenDangerStatistics();
}
}

View File

@ -0,0 +1,91 @@
package com.hbt.safety.supervision.controller;
import java.util.List;
import com.alibaba.fastjson.JSONObject;
import com.hbt.safety.supervision.pojo.LawEnforcementInspection;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
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.RestController;
import com.hbt.safety.supervision.service.ILawEnforcementInspectionService;
import com.hbt.common.core.web.controller.BaseController;
import com.hbt.common.core.web.domain.AjaxResult;
import com.hbt.common.core.web.page.TableDataInfo;
/**
* Controller
*
* @author zhangyu
* @date 2023-02-14
*/
@RestController
@RequestMapping("/inspection")
public class LawEnforcementInspectionController extends BaseController
{
@Autowired
private ILawEnforcementInspectionService lawEnforcementInspectionService;
/**
*
*/
@GetMapping("/list")
public String list(LawEnforcementInspection lawEnforcementInspection)
{
startPage();
List<LawEnforcementInspection> list = lawEnforcementInspectionService.selectLawEnforcementInspectionList(lawEnforcementInspection);
TableDataInfo tableDataInfo = getDataTable(list);
return JSONObject.toJSONString(tableDataInfo);
}
/**
*
*/
@GetMapping(value = "/{id}")
public String getInfo(@PathVariable("id") int id)
{
AjaxResult ajaxResult = success(lawEnforcementInspectionService.selectLawEnforcementInspectionById(id));
return JSONObject.toJSONString(ajaxResult);
}
/**
*
*/
@GetMapping(value = "/add")
public String add(@RequestBody LawEnforcementInspection lawEnforcementInspection)
{
AjaxResult ajaxResult = toAjax(lawEnforcementInspectionService.insertLawEnforcementInspection(lawEnforcementInspection));
return JSONObject.toJSONString(ajaxResult);
}
/**
*
*/
@GetMapping(value = "/edit")
public String edit(@RequestBody LawEnforcementInspection lawEnforcementInspection)
{
AjaxResult ajaxResult = toAjax(lawEnforcementInspectionService.updateLawEnforcementInspection(lawEnforcementInspection));
return JSONObject.toJSONString(ajaxResult);
}
/**
*
*/
@GetMapping(value = "/remove")
public String remove(@PathVariable int[] ids)
{
AjaxResult ajaxResult = toAjax(lawEnforcementInspectionService.deleteLawEnforcementInspectionByIds(ids));
return JSONObject.toJSONString(ajaxResult);
}
/**
*
*/
@GetMapping(value = "/monthStatistics")
public String monthStatistics()
{
return lawEnforcementInspectionService.monthStatistics();
}
}

View File

@ -0,0 +1,89 @@
package com.hbt.safety.supervision.controller;
import java.util.List;
import com.alibaba.fastjson.JSONObject;
import com.hbt.safety.supervision.pojo.MajorHazardSources;
import com.hbt.safety.supervision.service.IMajorHazardSourcesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
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.RestController;
import com.hbt.common.core.web.controller.BaseController;
import com.hbt.common.core.web.domain.AjaxResult;
/**
* Controller
*
* @author zhangyu
* @date 2023-02-14
*/
@RestController
@RequestMapping("/sources")
public class MajorHazardSourcesController extends BaseController
{
@Autowired
private IMajorHazardSourcesService majorHazardSourcesService;
/**
*
*/
@GetMapping("/list")
public String list(MajorHazardSources majorHazardSources)
{
List<MajorHazardSources> list = majorHazardSourcesService.selectMajorHazardSourcesList(majorHazardSources);
return JSONObject.toJSONString(list);
}
/**
*
*/
@GetMapping(value = "/{id}")
public String getInfo(@PathVariable("id") int id)
{
MajorHazardSources majorHazardSources = majorHazardSourcesService.selectMajorHazardSourcesById(id);
return JSONObject.toJSONString(majorHazardSources);
}
/**
*
*/
@GetMapping(value = "/add")
public String add(@RequestBody MajorHazardSources majorHazardSources)
{
AjaxResult ajaxResult = toAjax(majorHazardSourcesService.insertMajorHazardSources(majorHazardSources));
return JSONObject.toJSONString(ajaxResult);
}
/**
*
*/
@GetMapping(value = "/edit")
public String edit(@RequestBody MajorHazardSources majorHazardSources)
{
AjaxResult ajaxResult = toAjax(majorHazardSourcesService.updateMajorHazardSources(majorHazardSources));
return JSONObject.toJSONString(ajaxResult);
}
/**
*
*/
@GetMapping(value = "/remove")
public String remove(@PathVariable int[] ids)
{
AjaxResult ajaxResult = toAjax(majorHazardSourcesService.deleteMajorHazardSourcesByIds(ids));
return JSONObject.toJSONString(ajaxResult);
}
/**
*
*/
@GetMapping(value = "/majorHazardSourcesStatistics")
public String majorHazardSourcesStatistics()
{
return majorHazardSourcesService.majorHazardSourcesStatistics();
}
}

View File

@ -0,0 +1,82 @@
package com.hbt.safety.supervision.controller;
import java.util.List;
import com.alibaba.fastjson.JSONObject;
import com.hbt.safety.supervision.pojo.Persion;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
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.RestController;
import com.hbt.safety.supervision.service.IPersionService;
import com.hbt.common.core.web.controller.BaseController;
import com.hbt.common.core.web.domain.AjaxResult;
import com.hbt.common.core.web.page.TableDataInfo;
/**
* Controller
*
* @author
* @date 2023-02-14
*/
@RestController
@RequestMapping("/persion")
public class PersionController extends BaseController
{
@Autowired
private IPersionService persionService;
/**
*
*/
@GetMapping("/list")
public String list(Persion persion)
{
startPage();
List<Persion> list = persionService.selectPersionList(persion);
TableDataInfo tableDataInfo = getDataTable(list);
return JSONObject.toJSONString(tableDataInfo);
}
/**
*
*/
@GetMapping(value = "/{id}")
public String getInfo(@PathVariable("id") int id)
{
Persion persion = persionService.selectPersionById(id);
return JSONObject.toJSONString(persion);
}
/**
*
*/
@GetMapping(value = "/add")
public String add(@RequestBody Persion persion)
{
AjaxResult ajaxResult = toAjax(persionService.insertPersion(persion));
return JSONObject.toJSONString(ajaxResult);
}
/**
*
*/
@GetMapping(value = "/edit")
public String edit(@RequestBody Persion persion)
{
AjaxResult ajaxResult = toAjax(persionService.updatePersion(persion));
return JSONObject.toJSONString(ajaxResult);
}
/**
*
*/
@GetMapping(value = "/remove")
public String remove(@PathVariable int[] ids)
{
AjaxResult ajaxResult = toAjax(persionService.deletePersionByIds(ids));
return JSONObject.toJSONString(ajaxResult);
}
}

View File

@ -0,0 +1,83 @@
package com.hbt.safety.supervision.controller;
import java.util.List;
import com.alibaba.fastjson.JSONObject;
import com.hbt.safety.supervision.pojo.RiskArea;
import com.hbt.safety.supervision.service.IRiskAreaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
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.RestController;
import com.hbt.common.core.web.controller.BaseController;
import com.hbt.common.core.web.domain.AjaxResult;
import com.hbt.common.core.web.page.TableDataInfo;
/**
* Controller
*
* @author
* @date 2023-02-14
*/
@RestController
@RequestMapping("/area")
public class RiskAreaController extends BaseController
{
@Autowired
private IRiskAreaService riskAreaService;
/**
*
*/
@GetMapping("/list")
public String list(RiskArea riskArea)
{
startPage();
List<RiskArea> list = riskAreaService.selectRiskAreaList(riskArea);
TableDataInfo tableDataInfo = getDataTable(list);
return JSONObject.toJSONString(tableDataInfo);
}
/**
*
*/
@GetMapping(value = "/{id}")
public String getInfo(@PathVariable("id") int id)
{
AjaxResult ajaxResult = success(riskAreaService.selectRiskAreaById(id));
return JSONObject.toJSONString(ajaxResult);
}
/**
*
*/
@GetMapping(value = "/add")
public String add(@RequestBody RiskArea riskArea)
{
AjaxResult ajaxResult = toAjax(riskAreaService.insertRiskArea(riskArea));
return JSONObject.toJSONString(ajaxResult);
}
/**
*
*/
@GetMapping(value = "/edit")
public String edit(@RequestBody RiskArea riskArea)
{
AjaxResult ajaxResult = toAjax(riskAreaService.updateRiskArea(riskArea));
return JSONObject.toJSONString(ajaxResult);
}
/**
*
*/
@GetMapping(value = "/remove")
public String remove(@PathVariable int[] ids)
{
AjaxResult ajaxResult = toAjax(riskAreaService.deleteRiskAreaByIds(ids));
return JSONObject.toJSONString(ajaxResult);
}
}

View File

@ -0,0 +1,91 @@
package com.hbt.safety.supervision.controller;
import java.util.List;
import com.alibaba.fastjson.JSONObject;
import com.hbt.safety.supervision.pojo.Risk;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
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.RestController;
import com.hbt.safety.supervision.service.IRiskService;
import com.hbt.common.core.web.controller.BaseController;
import com.hbt.common.core.web.domain.AjaxResult;
import com.hbt.common.core.web.page.TableDataInfo;
/**
* Controller
*
* @author
* @date 2023-02-14
*/
@RestController
@RequestMapping("/risk")
public class RiskController extends BaseController
{
@Autowired
private IRiskService riskService;
/**
*
*/
@GetMapping("/list")
public String list(Risk risk)
{
startPage();
List<Risk> list = riskService.selectRiskList(risk);
TableDataInfo tableDataInfo = getDataTable(list);
return JSONObject.toJSONString(tableDataInfo);
}
/**
*
*/
@GetMapping(value = "/{id}")
public String getInfo(@PathVariable("id") int id)
{
AjaxResult ajaxResult = success(riskService.selectRiskById(id));
return JSONObject.toJSONString(ajaxResult);
}
/**
*
*/
@GetMapping("/add")
public String add(@RequestBody Risk risk)
{
AjaxResult ajaxResult = toAjax(riskService.insertRisk(risk));
return JSONObject.toJSONString(ajaxResult);
}
/**
*
*/
@GetMapping("/edit")
public String edit(@RequestBody Risk risk)
{
AjaxResult ajaxResult = toAjax(riskService.updateRisk(risk));
return JSONObject.toJSONString(ajaxResult);
}
/**
*
*/
@GetMapping("/{ids}")
public String remove(@PathVariable int[] ids)
{
AjaxResult ajaxResult = toAjax(riskService.deleteRiskByIds(ids));
return JSONObject.toJSONString(ajaxResult);
}
/**
*
* @return
*/
@GetMapping("/riskStatistics")
public String riskStatistics() {
return riskService.riskStatistics();
}
}

View File

@ -0,0 +1,76 @@
package com.hbt.safety.supervision.mapper;
import java.util.List;
import java.util.Map;
import com.hbt.safety.supervision.pojo.EnterpriseInfomation;
/**
* Mapper
*
* @author zhangyu
* @date 2023-02-14
*/
public interface EnterpriseInfomationMapper
{
/**
*
*
* @param id
* @return
*/
EnterpriseInfomation selectEnterpriseInfomationById(int id);
/**
*
*
* @param enterpriseInfomation
* @return
*/
List<EnterpriseInfomation> selectEnterpriseInfomationList(EnterpriseInfomation enterpriseInfomation);
/**
*
*
* @param enterpriseInfomation
* @return
*/
int insertEnterpriseInfomation(EnterpriseInfomation enterpriseInfomation);
/**
*
*
* @param enterpriseInfomation
* @return
*/
int updateEnterpriseInfomation(EnterpriseInfomation enterpriseInfomation);
/**
*
*
* @param id
* @return
*/
int deleteEnterpriseInfomationById(int id);
/**
*
*
* @param ids
* @return
*/
int deleteEnterpriseInfomationByIds(int[] ids);
/**
*
*
* @return
*/
List<EnterpriseInfomation> selectEnterpriseInfomations();
List<Map<Object, Object>> enterpriseStatistics();
int getEnterpriseCount();
int getCarCount();
}

View File

@ -0,0 +1,66 @@
package com.hbt.safety.supervision.mapper;
import java.util.List;
import com.hbt.safety.supervision.pojo.EscalateHiddenDanger;
/**
* Mapper
*
* @author
* @date 2023-02-14
*/
public interface EscalateHiddenDangerMapper
{
/**
*
*
* @param id
* @return
*/
EscalateHiddenDanger selectEscalateHiddenDangerById(int id);
/**
*
*
* @param escalateHiddenDanger
* @return
*/
List<EscalateHiddenDanger> selectEscalateHiddenDangerList(EscalateHiddenDanger escalateHiddenDanger);
/**
*
*
* @param escalateHiddenDanger
* @return
*/
int insertEscalateHiddenDanger(EscalateHiddenDanger escalateHiddenDanger);
/**
*
*
* @param escalateHiddenDanger
* @return
*/
int updateEscalateHiddenDanger(EscalateHiddenDanger escalateHiddenDanger);
/**
*
*
* @param id
* @return
*/
int deleteEscalateHiddenDangerById(int id);
/**
*
*
* @param ids
* @return
*/
int deleteEscalateHiddenDangerByIds(int[] ids);
int getTotalEscalateHiddenDanger();
List<String> getEscalateHiddenDangerIds();
}

View File

@ -0,0 +1,63 @@
package com.hbt.safety.supervision.mapper;
import java.util.List;
import com.hbt.safety.supervision.pojo.EscalateRisk;
/**
* Mapper
*
* @author
* @date 2023-02-14
*/
public interface EscalateRiskMapper
{
/**
*
*
* @param id
* @return
*/
EscalateRisk selectEscalateRiskById(int id);
/**
*
*
* @param escalateRisk
* @return
*/
List<EscalateRisk> selectEscalateRiskList(EscalateRisk escalateRisk);
/**
*
*
* @param escalateRisk
* @return
*/
int insertEscalateRisk(EscalateRisk escalateRisk);
/**
*
*
* @param escalateRisk
* @return
*/
int updateEscalateRisk(EscalateRisk escalateRisk);
/**
*
*
* @param id
* @return
*/
int deleteEscalateRiskById(int id);
/**
*
*
* @param ids
* @return
*/
int deleteEscalateRiskByIds(int[] ids);
List<String> getEscalateRiskIds();
}

View File

@ -0,0 +1,69 @@
package com.hbt.safety.supervision.mapper;
import java.util.List;
import com.hbt.safety.supervision.pojo.HazardousOperation;
/**
* Mapper
*
* @author zhangyu
* @date 2023-02-14
*/
public interface HazardousOperationMapper
{
/**
*
*
* @param id
* @return
*/
HazardousOperation selectHazardousOperationById(int id);
/**
*
*
* @param hazardousOperation
* @return
*/
List<HazardousOperation> selectHazardousOperationList(HazardousOperation hazardousOperation);
/**
*
*
* @param hazardousOperation
* @return
*/
int insertHazardousOperation(HazardousOperation hazardousOperation);
/**
*
*
* @param hazardousOperation
* @return
*/
int updateHazardousOperation(HazardousOperation hazardousOperation);
/**
*
*
* @param id
* @return
*/
int deleteHazardousOperationById(int id);
/**
*
*
* @param ids
* @return
*/
int deleteHazardousOperationByIds(int[] ids);
/**
*
* @return
*/
List<HazardousOperation> selectHazardousOperations();
}

View File

@ -0,0 +1,64 @@
package com.hbt.safety.supervision.mapper;
import java.util.List;
import com.hbt.safety.supervision.pojo.HiddenDanger;
/**
* Mapper
*
* @author hbt
* @date 2023-02-14
*/
public interface HiddenDangerMapper
{
/**
*
*
* @param id
* @return
*/
HiddenDanger selectHiddenDangerById(int id);
/**
*
*
* @param hiddenDanger
* @return
*/
List<HiddenDanger> selectHiddenDangerList(HiddenDanger hiddenDanger);
/**
*
*
* @param hiddenDanger
* @return
*/
int insertHiddenDanger(HiddenDanger hiddenDanger);
/**
*
*
* @param hiddenDanger
* @return
*/
int updateHiddenDanger(HiddenDanger hiddenDanger);
/**
*
*
* @param id
* @return
*/
int deleteHiddenDangerById(int id);
/**
*
*
* @param ids
* @return
*/
int deleteHiddenDangerByIds(int[] ids);
List<HiddenDanger> selectHiddenDangers();
}

View File

@ -0,0 +1,65 @@
package com.hbt.safety.supervision.mapper;
import java.util.List;
import com.hbt.safety.supervision.pojo.LawEnforcementInspection;
import com.hbt.safety.supervision.pojo.vo.LawEnforcementInspectionVo;
/**
* Mapper
*
* @author zhangyu
* @date 2023-02-14
*/
public interface LawEnforcementInspectionMapper
{
/**
*
*
* @param id
* @return
*/
LawEnforcementInspection selectLawEnforcementInspectionById(int id);
/**
*
*
* @param lawEnforcementInspection
* @return
*/
List<LawEnforcementInspection> selectLawEnforcementInspectionList(LawEnforcementInspection lawEnforcementInspection);
/**
*
*
* @param lawEnforcementInspection
* @return
*/
int insertLawEnforcementInspection(LawEnforcementInspection lawEnforcementInspection);
/**
*
*
* @param lawEnforcementInspection
* @return
*/
int updateLawEnforcementInspection(LawEnforcementInspection lawEnforcementInspection);
/**
*
*
* @param id
* @return
*/
int deleteLawEnforcementInspectionById(int id);
/**
*
*
* @param ids
* @return
*/
int deleteLawEnforcementInspectionByIds(int[] ids);
List<LawEnforcementInspectionVo> selectLawEnforcementInspections(int year);
}

View File

@ -0,0 +1,64 @@
package com.hbt.safety.supervision.mapper;
import java.util.List;
import com.hbt.safety.supervision.pojo.MajorHazardSources;
/**
* Mapper
*
* @author zhangyu
* @date 2023-02-14
*/
public interface MajorHazardSourcesMapper
{
/**
*
*
* @param id
* @return
*/
MajorHazardSources selectMajorHazardSourcesById(int id);
/**
*
*
* @param majorHazardSources
* @return
*/
List<MajorHazardSources> selectMajorHazardSourcesList(MajorHazardSources majorHazardSources);
/**
*
*
* @param majorHazardSources
* @return
*/
int insertMajorHazardSources(MajorHazardSources majorHazardSources);
/**
*
*
* @param majorHazardSources
* @return
*/
int updateMajorHazardSources(MajorHazardSources majorHazardSources);
/**
*
*
* @param id
* @return
*/
int deleteMajorHazardSourcesById(int id);
/**
*
*
* @param ids
* @return
*/
int deleteMajorHazardSourcesByIds(int[] ids);
List<MajorHazardSources> majorHazardSourcesStatistics();
}

View File

@ -0,0 +1,64 @@
package com.hbt.safety.supervision.mapper;
import java.util.List;
import com.hbt.safety.supervision.pojo.Persion;
/**
* Mapper
*
* @author
* @date 2023-02-14
*/
public interface PersionMapper
{
/**
*
*
* @param id
* @return
*/
Persion selectPersionById(int id);
/**
*
*
* @param persion
* @return
*/
List<Persion> selectPersionList(Persion persion);
/**
*
*
* @param persion
* @return
*/
int insertPersion(Persion persion);
/**
*
*
* @param persion
* @return
*/
int updatePersion(Persion persion);
/**
*
*
* @param id
* @return
*/
int deletePersionById(int id);
/**
*
*
* @param ids
* @return
*/
int deletePersionByIds(int[] ids);
int getPersionCount();
}

View File

@ -0,0 +1,61 @@
package com.hbt.safety.supervision.mapper;
import java.util.List;
import com.hbt.safety.supervision.pojo.RiskArea;
/**
* Mapper
*
* @author
* @date 2023-02-14
*/
public interface RiskAreaMapper
{
/**
*
*
* @param id
* @return
*/
RiskArea selectRiskAreaById(int id);
/**
*
*
* @param riskArea
* @return
*/
List<RiskArea> selectRiskAreaList(RiskArea riskArea);
/**
*
*
* @param riskArea
* @return
*/
int insertRiskArea(RiskArea riskArea);
/**
*
*
* @param riskArea
* @return
*/
int updateRiskArea(RiskArea riskArea);
/**
*
*
* @param id
* @return
*/
int deleteRiskAreaById(int id);
/**
*
*
* @param ids
* @return
*/
int deleteRiskAreaByIds(int[] ids);
}

View File

@ -0,0 +1,69 @@
package com.hbt.safety.supervision.mapper;
import java.util.List;
import java.util.Map;
import com.hbt.safety.supervision.pojo.Risk;
import org.apache.ibatis.annotations.Mapper;
/**
* Mapper
*
* @author
* @date 2023-02-14
*/
@Mapper
public interface RiskMapper
{
/**
*
*
* @param id
* @return
*/
Risk selectRiskById(int id);
/**
*
*
* @param risk
* @return
*/
List<Risk> selectRiskList(Risk risk);
/**
*
*
* @param risk
* @return
*/
int insertRisk(Risk risk);
/**
*
*
* @param risk
* @return
*/
int updateRisk(Risk risk);
/**
*
*
* @param id
* @return
*/
int deleteRiskById(int id);
/**
*
*
* @param ids
* @return
*/
int deleteRiskByIds(int[] ids);
List<Map<Object, Object>> riskStatistics();
}

View File

@ -0,0 +1,205 @@
package com.hbt.safety.supervision.pojo;
import com.hbt.common.core.annotation.Excel;
import com.hbt.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
* enterprise_infomation
*
* @author zhangyu
* @date 2023-02-14
*/
public class EnterpriseInfomation extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 企业id */
private int id;
/** 统一社会信用代码 */
@Excel(name = "统一社会信用代码")
private String unifySocialCreditCode;
/** 企业名称 */
@Excel(name = "企业名称")
private String name;
/** 注册号 */
@Excel(name = "注册号")
private String registrationNumber;
/** 法定代表人 */
@Excel(name = "法定代表人")
private String legalRepresentative;
/** 类型 */
@Excel(name = "类型")
private String type;
/** 成立日期 */
@Excel(name = "成立日期")
private String establishmentDate;
/** 出资额 */
@Excel(name = "出资额")
private String fundAmount;
/** 核准日期 */
@Excel(name = "核准日期")
private String approvalDate;
/** 登记机关 */
@Excel(name = "登记机关")
private String registrationAuthority;
/** 等级状态 */
@Excel(name = "等级状态")
private String registrationStatus;
/** 住所 */
@Excel(name = "住所")
private String dwellingPlace;
/** 经营范围 */
@Excel(name = "经营范围")
private String businessScope;
public void setId(int id)
{
this.id = id;
}
public int getId()
{
return id;
}
public void setUnifySocialCreditCode(String unifySocialCreditCode)
{
this.unifySocialCreditCode = unifySocialCreditCode;
}
public String getUnifySocialCreditCode()
{
return unifySocialCreditCode;
}
public void setName(String name)
{
this.name = name;
}
public String getName()
{
return name;
}
public void setRegistrationNumber(String registrationNumber)
{
this.registrationNumber = registrationNumber;
}
public String getRegistrationNumber()
{
return registrationNumber;
}
public void setLegalRepresentative(String legalRepresentative)
{
this.legalRepresentative = legalRepresentative;
}
public String getLegalRepresentative()
{
return legalRepresentative;
}
public void setType(String type)
{
this.type = type;
}
public String getType()
{
return type;
}
public void setEstablishmentDate(String establishmentDate)
{
this.establishmentDate = establishmentDate;
}
public String getEstablishmentDate()
{
return establishmentDate;
}
public void setFundAmount(String fundAmount)
{
this.fundAmount = fundAmount;
}
public String getFundAmount()
{
return fundAmount;
}
public void setApprovalDate(String approvalDate)
{
this.approvalDate = approvalDate;
}
public String getApprovalDate()
{
return approvalDate;
}
public void setRegistrationAuthority(String registrationAuthority)
{
this.registrationAuthority = registrationAuthority;
}
public String getRegistrationAuthority()
{
return registrationAuthority;
}
public void setRegistrationStatus(String registrationStatus)
{
this.registrationStatus = registrationStatus;
}
public String getRegistrationStatus()
{
return registrationStatus;
}
public void setDwellingPlace(String dwellingPlace)
{
this.dwellingPlace = dwellingPlace;
}
public String getDwellingPlace()
{
return dwellingPlace;
}
public void setBusinessScope(String businessScope)
{
this.businessScope = businessScope;
}
public String getBusinessScope()
{
return businessScope;
}
@Override
public String toString() {
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("unifySocialCreditCode", getUnifySocialCreditCode())
.append("name", getName())
.append("registrationNumber", getRegistrationNumber())
.append("legalRepresentative", getLegalRepresentative())
.append("type", getType())
.append("establishmentDate", getEstablishmentDate())
.append("fundAmount", getFundAmount())
.append("approvalDate", getApprovalDate())
.append("registrationAuthority", getRegistrationAuthority())
.append("registrationStatus", getRegistrationStatus())
.append("dwellingPlace", getDwellingPlace())
.append("businessScope", getBusinessScope())
.toString();
}
}

View File

@ -0,0 +1,65 @@
package com.hbt.safety.supervision.pojo;
import com.hbt.common.core.annotation.Excel;
import com.hbt.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
* escalate_hidden_danger
*
* @author
* @date 2023-02-14
*/
public class EscalateHiddenDanger extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 上报风险主键 */
private int id;
/** 巡检执法id */
@Excel(name = "巡检执法id")
private int enforcementId;
/** 隐患表id */
@Excel(name = "隐患表id")
private int hiddenDangerId;
public void setId(int id)
{
this.id = id;
}
public int getId()
{
return id;
}
public void setEnforcementId(int enforcementId)
{
this.enforcementId = enforcementId;
}
public int getEnforcementId()
{
return enforcementId;
}
public void setHiddenDangerId(int hiddenDangerId)
{
this.hiddenDangerId = hiddenDangerId;
}
public int getHiddenDangerId()
{
return hiddenDangerId;
}
@Override
public String toString() {
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("enforcementId", getEnforcementId())
.append("hiddenDangerId", getHiddenDangerId())
.toString();
}
}

View File

@ -0,0 +1,65 @@
package com.hbt.safety.supervision.pojo;
import com.hbt.common.core.annotation.Excel;
import com.hbt.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
* escalate_risk
*
* @author
* @date 2023-02-14
*/
public class EscalateRisk extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 上报风险id */
private int id;
/** 执法巡检id */
@Excel(name = "执法巡检id")
private int enforcementId;
/** 风险表id */
@Excel(name = "风险表id")
private int riskId;
public void setId(int id)
{
this.id = id;
}
public int getId()
{
return id;
}
public void setEnforcementId(int enforcementId)
{
this.enforcementId = enforcementId;
}
public int getEnforcementId()
{
return enforcementId;
}
public void setRiskId(int riskId)
{
this.riskId = riskId;
}
public int getRiskId()
{
return riskId;
}
@Override
public String toString() {
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("enforcementId", getEnforcementId())
.append("riskId", getRiskId())
.toString();
}
}

View File

@ -0,0 +1,165 @@
package com.hbt.safety.supervision.pojo;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hbt.common.core.annotation.Excel;
import com.hbt.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
* hazardous_operation
*
* @author zhangyu
* @date 2023-02-14
*/
public class HazardousOperation extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 危险作业id */
private int id;
/** 危险作业名称 */
@Excel(name = "危险作业名称")
private String name;
/** 危险作业等级 */
private String operationLevel;
/** 企业id */
@Excel(name = "企业id")
private Long enterpriseId;
/** 作业内容 */
@Excel(name = "作业内容")
private String operationContent;
/** 作业经度 */
@Excel(name = "作业经度")
private String operationLongitude;
/** 作业纬度 */
@Excel(name = "作业纬度")
private String operationLatitude;
/** 作业类型 */
@Excel(name = "作业类型")
private Long operationType;
/** 作业开始时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "作业开始时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date operationStart;
/** 作业结束时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "作业结束时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date operationEnd;
public void setId(int id)
{
this.id = id;
}
public int getId()
{
return id;
}
public void setName(String name)
{
this.name = name;
}
public String getName()
{
return name;
}
public void setEnterpriseId(Long enterpriseId)
{
this.enterpriseId = enterpriseId;
}
public Long getEnterpriseId()
{
return enterpriseId;
}
public void setOperationContent(String operationContent)
{
this.operationContent = operationContent;
}
public String getOperationContent()
{
return operationContent;
}
public void setOperationLongitude(String operationLongitude)
{
this.operationLongitude = operationLongitude;
}
public String getOperationLongitude()
{
return operationLongitude;
}
public void setOperationLatitude(String operationLatitude)
{
this.operationLatitude = operationLatitude;
}
public String getOperationLatitude()
{
return operationLatitude;
}
public void setOperationType(Long operationType)
{
this.operationType = operationType;
}
public Long getOperationType()
{
return operationType;
}
public void setOperationStart(Date operationStart)
{
this.operationStart = operationStart;
}
public Date getOperationStart()
{
return operationStart;
}
public void setOperationEnd(Date operationEnd)
{
this.operationEnd = operationEnd;
}
public Date getOperationEnd()
{
return operationEnd;
}
public String getOperationLevel() {
return operationLevel;
}
public void setOperationLevel(String operationLevel) {
this.operationLevel = operationLevel;
}
@Override
public String toString() {
return "HazardousOperation{" +
"id=" + id +
", name='" + name + '\'' +
", operationLevel='" + operationLevel + '\'' +
", enterpriseId=" + enterpriseId +
", operationContent='" + operationContent + '\'' +
", operationLongitude='" + operationLongitude + '\'' +
", operationLatitude='" + operationLatitude + '\'' +
", operationType=" + operationType +
", operationStart=" + operationStart +
", operationEnd=" + operationEnd +
'}';
}
}

View File

@ -0,0 +1,220 @@
package com.hbt.safety.supervision.pojo;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hbt.common.core.annotation.Excel;
import com.hbt.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
* hidden_danger
*
* @author hbt
* @date 2023-02-14
*/
public class HiddenDanger extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 主键id */
private int id;
/** 隐患名称 */
@Excel(name = "隐患名称")
private String name;
/** 隐患详情 */
@Excel(name = "隐患详情")
private String details;
/** 风险表id */
@Excel(name = "风险表id")
private int riskId;
/** 上报日期 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "上报日期", width = 30, dateFormat = "yyyy-MM-dd")
private Date submitDate;
/** 上报人id */
@Excel(name = "上报人id")
private int submitPersonId;
@Excel(name = "上报企业id")
private int submitEnterpriseId;
/** 隐患整改措施 */
@Excel(name = "隐患整改措施")
private String reformMeasures;
/** 隐患状态 */
@Excel(name = "隐患状态")
private String reformStatus;
/** 超期状态 0-正常 1-超期 */
@Excel(name = "超期状态")
private int exceedTimeLimitStatus;
/** 企业id */
@Excel(name = "企业id")
private int enterpriseId;
/** 责任人id */
@Excel(name = "责任人id")
private int personId;
/** 备注 */
@Excel(name = "备注")
private String remarks;
/** 整改期限 */
@Excel(name = "整改期限")
private String rectificationPeriod;
public void setId(int id)
{
this.id = id;
}
public int getId()
{
return id;
}
public void setName(String name)
{
this.name = name;
}
public String getName()
{
return name;
}
public void setDetails(String details)
{
this.details = details;
}
public String getDetails()
{
return details;
}
public void setRiskId(int riskId)
{
this.riskId = riskId;
}
public int getRiskId()
{
return riskId;
}
public void setSubmitDate(Date submitDate)
{
this.submitDate = submitDate;
}
public Date getSubmitDate()
{
return submitDate;
}
public void setSubmitPersonId(int submitPersonId)
{
this.submitPersonId = submitPersonId;
}
public int getSubmitPersonId()
{
return submitPersonId;
}
public void setReformMeasures(String reformMeasures)
{
this.reformMeasures = reformMeasures;
}
public String getReformMeasures()
{
return reformMeasures;
}
public void setReformStatus(String reformStatus)
{
this.reformStatus = reformStatus;
}
public String getReformStatus()
{
return reformStatus;
}
public void setExceedTimeLimitStatus(int exceedTimeLimitStatus)
{
this.exceedTimeLimitStatus = exceedTimeLimitStatus;
}
public int getExceedTimeLimitStatus()
{
return exceedTimeLimitStatus;
}
public void setEnterpriseId(int enterpriseId)
{
this.enterpriseId = enterpriseId;
}
public int getEnterpriseId()
{
return enterpriseId;
}
public void setPersonId(int personId)
{
this.personId = personId;
}
public int getPersonId()
{
return personId;
}
public void setRemarks(String remarks)
{
this.remarks = remarks;
}
public String getRemarks()
{
return remarks;
}
public void setRectificationPeriod(String rectificationPeriod)
{
this.rectificationPeriod = rectificationPeriod;
}
public String getRectificationPeriod()
{
return rectificationPeriod;
}
public int getSubmitEnterpriseId() {
return submitEnterpriseId;
}
public void setSubmitEnterpriseId(int submitEnterpriseId) {
this.submitEnterpriseId = submitEnterpriseId;
}
@Override
public String toString() {
return "HiddenDanger{" +
"id=" + id +
", name='" + name + '\'' +
", details='" + details + '\'' +
", riskId=" + riskId +
", submitDate=" + submitDate +
", submitPersonId=" + submitPersonId +
", submitEnterpriseId=" + submitEnterpriseId +
", reformMeasures='" + reformMeasures + '\'' +
", reformStatus=" + reformStatus +
", exceedTimeLimitStatus=" + exceedTimeLimitStatus +
", enterpriseId=" + enterpriseId +
", personId=" + personId +
", remarks='" + remarks + '\'' +
", rectificationPeriod='" + rectificationPeriod + '\'' +
'}';
}
}

View File

@ -0,0 +1,96 @@
package com.hbt.safety.supervision.pojo;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hbt.common.core.annotation.Excel;
import com.hbt.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
* law_enforcement_inspection
*
* @author zhangyu
* @date 2023-02-14
*/
public class LawEnforcementInspection extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
private int id;
/** 巡查日期 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "巡查日期", width = 30, dateFormat = "yyyy-MM-dd")
private Date inspectionDate;
/** 巡查人员id */
@Excel(name = "巡查人员id")
private int persionId;
/** 巡查名称 */
@Excel(name = "巡查名称")
private String name;
/** 备注 */
@Excel(name = "备注")
private String remarks;
public void setId(int id)
{
this.id = id;
}
public int getId()
{
return id;
}
public void setInspectionDate(Date inspectionDate)
{
this.inspectionDate = inspectionDate;
}
public Date getInspectionDate()
{
return inspectionDate;
}
public void setPersionId(int persionId)
{
this.persionId = persionId;
}
public int getPersionId()
{
return persionId;
}
public void setName(String name)
{
this.name = name;
}
public String getName()
{
return name;
}
public void setRemarks(String remarks)
{
this.remarks = remarks;
}
public String getRemarks()
{
return remarks;
}
@Override
public String toString() {
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("inspectionDate", getInspectionDate())
.append("persionId", getPersionId())
.append("name", getName())
.append("remarks", getRemarks())
.toString();
}
}

View File

@ -0,0 +1,270 @@
package com.hbt.safety.supervision.pojo;
import com.hbt.common.core.annotation.Excel;
import com.hbt.common.core.web.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
* major_hazard_sources
*
* @author zhangyu
* @date 2023-02-14
*/
public class MajorHazardSources extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 主键id */
private int id;
/** 主要负责人id */
private int mainResponsiblePersonId;
/** 主要负责人 */
private String mainResponsiblePerson;
/** 技术负责人id */
private int technologyResponsiblePersonId;
/** 技术负责人id */
private String technologyResponsiblePerson;
/** 操作负责人id */
private int operateResponsiblePersonId;
/** 操作负责人id */
private String operateResponsiblePerson;
/** 危险源名称 */
@Excel(name = "危险源名称")
private String name;
/** 危险因素 */
@Excel(name = "危险因素")
private String riskFactor;
/** 可能导致后果 */
@Excel(name = "可能导致后果")
private String consequence;
/** 风险等级 */
@Excel(name = "风险等级")
private Integer dangerLevel;
/** 管控措施 */
@Excel(name = "管控措施")
private String controlMeasures;
/** 危险源统一编码 */
@Excel(name = "危险源统一编码")
private String unifiedCoding;
/** 单元类型 */
private String unitType;
/** 当前存储量 */
private String memorySpace;
/** 经度 */
private String longitude;
/** 纬度 */
private String latitude;
/** 责任公司id */
private int enterpriseId;
/** 责任公司 */
private String enterprise;
/** 管理危化品名称 */
private String hazardousChemicalsName;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public int getMainResponsiblePersonId() {
return mainResponsiblePersonId;
}
public void setMainResponsiblePersonId(int mainResponsiblePersonId) {
this.mainResponsiblePersonId = mainResponsiblePersonId;
}
public String getMainResponsiblePerson() {
return mainResponsiblePerson;
}
public void setMainResponsiblePerson(String mainResponsiblePerson) {
this.mainResponsiblePerson = mainResponsiblePerson;
}
public int getTechnologyResponsiblePersonId() {
return technologyResponsiblePersonId;
}
public void setTechnologyResponsiblePersonId(int technologyResponsiblePersonId) {
this.technologyResponsiblePersonId = technologyResponsiblePersonId;
}
public String getTechnologyResponsiblePerson() {
return technologyResponsiblePerson;
}
public void setTechnologyResponsiblePerson(String technologyResponsiblePerson) {
this.technologyResponsiblePerson = technologyResponsiblePerson;
}
public int getOperateResponsiblePersonId() {
return operateResponsiblePersonId;
}
public void setOperateResponsiblePersonId(int operateResponsiblePersonId) {
this.operateResponsiblePersonId = operateResponsiblePersonId;
}
public String getOperateResponsiblePerson() {
return operateResponsiblePerson;
}
public void setOperateResponsiblePerson(String operateResponsiblePerson) {
this.operateResponsiblePerson = operateResponsiblePerson;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getRiskFactor() {
return riskFactor;
}
public void setRiskFactor(String riskFactor) {
this.riskFactor = riskFactor;
}
public String getConsequence() {
return consequence;
}
public void setConsequence(String consequence) {
this.consequence = consequence;
}
public Integer getDangerLevel() {
return dangerLevel;
}
public void setDangerLevel(Integer dangerLevel) {
this.dangerLevel = dangerLevel;
}
public String getControlMeasures() {
return controlMeasures;
}
public void setControlMeasures(String controlMeasures) {
this.controlMeasures = controlMeasures;
}
public String getUnifiedCoding() {
return unifiedCoding;
}
public void setUnifiedCoding(String unifiedCoding) {
this.unifiedCoding = unifiedCoding;
}
public String getUnitType() {
return unitType;
}
public void setUnitType(String unitType) {
this.unitType = unitType;
}
public String getMemorySpace() {
return memorySpace;
}
public void setMemorySpace(String memorySpace) {
this.memorySpace = memorySpace;
}
public String getLongitude() {
return longitude;
}
public void setLongitude(String longitude) {
this.longitude = longitude;
}
public String getLatitude() {
return latitude;
}
public void setLatitude(String latitude) {
this.latitude = latitude;
}
public int getEnterpriseId() {
return enterpriseId;
}
public void setEnterpriseId(int enterpriseId) {
this.enterpriseId = enterpriseId;
}
public String getEnterprise() {
return enterprise;
}
public void setEnterprise(String enterprise) {
this.enterprise = enterprise;
}
public String getHazardousChemicalsName() {
return hazardousChemicalsName;
}
public void setHazardousChemicalsName(String hazardousChemicalsName) {
this.hazardousChemicalsName = hazardousChemicalsName;
}
@Override
public String toString() {
return "MajorHazardSources{" +
"id=" + id +
", mainResponsiblePersonId=" + mainResponsiblePersonId +
", mainResponsiblePerson='" + mainResponsiblePerson + '\'' +
", technologyResponsiblePersonId=" + technologyResponsiblePersonId +
", technologyResponsiblePerson='" + technologyResponsiblePerson + '\'' +
", operateResponsiblePersonId=" + operateResponsiblePersonId +
", operateResponsiblePerson='" + operateResponsiblePerson + '\'' +
", name='" + name + '\'' +
", riskFactor='" + riskFactor + '\'' +
", consequence='" + consequence + '\'' +
", dangerLevel=" + dangerLevel +
", controlMeasures='" + controlMeasures + '\'' +
", unifiedCoding='" + unifiedCoding + '\'' +
", unitType='" + unitType + '\'' +
", memorySpace='" + memorySpace + '\'' +
", longitude='" + longitude + '\'' +
", latitude='" + latitude + '\'' +
", enterpriseId=" + enterpriseId +
", enterprise='" + enterprise + '\'' +
", hazardousChemicalsName='" + hazardousChemicalsName + '\'' +
'}';
}
}

View File

@ -0,0 +1,46 @@
package com.hbt.safety.supervision.pojo;
import com.hbt.common.core.annotation.Excel;
import com.hbt.common.core.web.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
* persion
*
* @author
* @date 2023-02-14
*/
@Data
public class Persion extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 人员信息表id */
private int id;
/** 人员名称 */
private String name;
/** 性别 */
private Integer sex;
/** 年龄 */
private Integer age;
/** 身份证号 */
private String identityCard;
/** 企业id */
private int enterpriseId;
/** 联系电话 */
private String phone;
/** 备注 */
private String remarks;
/** 联系地址 */
private String addr;
}

View File

@ -0,0 +1,180 @@
package com.hbt.safety.supervision.pojo;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hbt.common.core.annotation.Excel;
import com.hbt.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
* risk
*
* @author
* @date 2023-02-14
*/
public class Risk extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 主键 */
private int id;
/** 风险名称 */
@Excel(name = "风险名称")
private String name;
/** 风险概率 */
@Excel(name = "风险概率")
private String riskProbability;
/** 风险因素 */
@Excel(name = "风险因素")
private String riskFactor;
/** 影响后果 */
@Excel(name = "影响后果")
private String affectConsequences;
/** 风险等级 */
@Excel(name = "风险等级")
private int level;
/** 企业id */
@Excel(name = "企业id")
private int enterpriseId;
/** 责任人id */
@Excel(name = "责任人id")
private int responsiblePersonId;
/** 风险管控措施 */
@Excel(name = "风险管控措施")
private String riskControlMeasures;
/** 最后一次审查日期 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "最后一次审查日期", width = 30, dateFormat = "yyyy-MM-dd")
private Date lastReviewDate;
/** 重大危险源id */
@Excel(name = "重大危险源id")
private int majorHazardSourcesId;
public void setId(int id)
{
this.id = id;
}
public int getId()
{
return id;
}
public void setName(String name)
{
this.name = name;
}
public String getName()
{
return name;
}
public void setRiskProbability(String riskProbability)
{
this.riskProbability = riskProbability;
}
public String getRiskProbability()
{
return riskProbability;
}
public void setRiskFactor(String riskFactor)
{
this.riskFactor = riskFactor;
}
public String getRiskFactor()
{
return riskFactor;
}
public void setAffectConsequences(String affectConsequences)
{
this.affectConsequences = affectConsequences;
}
public String getAffectConsequences()
{
return affectConsequences;
}
public void setLevel(int level)
{
this.level = level;
}
public int getLevel()
{
return level;
}
public void setEnterpriseId(int enterpriseId)
{
this.enterpriseId = enterpriseId;
}
public int getEnterpriseId()
{
return enterpriseId;
}
public void setResponsiblePersonId(int responsiblePersonId)
{
this.responsiblePersonId = responsiblePersonId;
}
public int getResponsiblePersonId()
{
return responsiblePersonId;
}
public void setRiskControlMeasures(String riskControlMeasures)
{
this.riskControlMeasures = riskControlMeasures;
}
public String getRiskControlMeasures()
{
return riskControlMeasures;
}
public void setLastReviewDate(Date lastReviewDate)
{
this.lastReviewDate = lastReviewDate;
}
public Date getLastReviewDate()
{
return lastReviewDate;
}
public void setMajorHazardSourcesId(int majorHazardSourcesId)
{
this.majorHazardSourcesId = majorHazardSourcesId;
}
public int getMajorHazardSourcesId()
{
return majorHazardSourcesId;
}
@Override
public String toString() {
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("name", getName())
.append("riskProbability", getRiskProbability())
.append("riskFactor", getRiskFactor())
.append("affectConsequences", getAffectConsequences())
.append("level", getLevel())
.append("enterpriseId", getEnterpriseId())
.append("responsiblePersonId", getResponsiblePersonId())
.append("riskControlMeasures", getRiskControlMeasures())
.append("lastReviewDate", getLastReviewDate())
.append("majorHazardSourcesId", getMajorHazardSourcesId())
.toString();
}
}

View File

@ -0,0 +1,79 @@
package com.hbt.safety.supervision.pojo;
import com.hbt.common.core.annotation.Excel;
import com.hbt.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
* risk_area
*
* @author
* @date 2023-02-14
*/
public class RiskArea extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 主键id */
private int id;
/** 风险区域名称 */
@Excel(name = "风险区域名称")
private String name;
/** 风险区域polgyn */
@Excel(name = "风险区域polgyn")
private String polgyn;
/** 风险等级 */
@Excel(name = "风险等级")
private Integer riskLevel;
public void setId(int id)
{
this.id = id;
}
public int getId()
{
return id;
}
public void setName(String name)
{
this.name = name;
}
public String getName()
{
return name;
}
public void setPolgyn(String polgyn)
{
this.polgyn = polgyn;
}
public String getPolgyn()
{
return polgyn;
}
public void setRiskLevel(Integer riskLevel)
{
this.riskLevel = riskLevel;
}
public Integer getRiskLevel()
{
return riskLevel;
}
@Override
public String toString() {
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("name", getName())
.append("polgyn", getPolgyn())
.append("riskLevel", getRiskLevel())
.toString();
}
}

View File

@ -0,0 +1,57 @@
package com.hbt.safety.supervision.pojo.vo;
/**
*
*/
public class LawEnforcementInspectionStatics {
private Object month; // 月份
private int inspectionCount; // 巡查次数
private int hiddenTroubleCount; // 发现隐患数
private int riskCount; // 发现风险数
public Object getMonth() {
return month;
}
public void setMonth(Object month) {
this.month = month;
}
public int getInspectionCount() {
return inspectionCount;
}
public void setInspectionCount(int inspectionCount) {
this.inspectionCount = inspectionCount;
}
public int getHiddenTroubleCount() {
return hiddenTroubleCount;
}
public void setHiddenTroubleCount(int hiddenTroubleCount) {
this.hiddenTroubleCount = hiddenTroubleCount;
}
public int getRiskCount() {
return riskCount;
}
public void setRiskCount(int riskCount) {
this.riskCount = riskCount;
}
@Override
public String toString() {
return "LawEnforcementInspectionStatics{" +
"month=" + month +
", inspectionCount=" + inspectionCount +
", hiddenTroubleCount=" + hiddenTroubleCount +
", riskCount=" + riskCount +
'}';
}
}

View File

@ -0,0 +1,36 @@
package com.hbt.safety.supervision.pojo.vo;
import lombok.Data;
/**
* vo
*/
public class LawEnforcementInspectionVo {
private String id; // 主键
private int inspectionDate; // 月份
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public int getInspectionDate() {
return inspectionDate;
}
public void setInspectionDate(int inspectionDate) {
this.inspectionDate = inspectionDate;
}
@Override
public String toString() {
return "LawEnforcementInspectionVo{" +
"id='" + id + '\'' +
", inspectionDate=" + inspectionDate +
'}';
}
}

View File

@ -0,0 +1,64 @@
package com.hbt.safety.supervision.service;
import java.util.List;
import com.hbt.safety.supervision.pojo.EnterpriseInfomation;
/**
* Service
*
* @author zhangyu
* @date 2023-02-14
*/
public interface IEnterpriseInfomationService
{
/**
*
*
* @param id
* @return
*/
EnterpriseInfomation selectEnterpriseInfomationById(int id);
/**
*
*
* @param enterpriseInfomation
* @return
*/
List<EnterpriseInfomation> selectEnterpriseInfomationList(EnterpriseInfomation enterpriseInfomation);
/**
*
*
* @param enterpriseInfomation
* @return
*/
int insertEnterpriseInfomation(EnterpriseInfomation enterpriseInfomation);
/**
*
*
* @param enterpriseInfomation
* @return
*/
int updateEnterpriseInfomation(EnterpriseInfomation enterpriseInfomation);
/**
*
*
* @param ids
* @return
*/
int deleteEnterpriseInfomationByIds(int[] ids);
/**
*
*
* @param id
* @return
*/
int deleteEnterpriseInfomationById(int id);
String enterpriseStatistics();
}

View File

@ -0,0 +1,62 @@
package com.hbt.safety.supervision.service;
import java.util.List;
import com.hbt.safety.supervision.pojo.EscalateHiddenDanger;
/**
* Service
*
* @author
* @date 2023-02-14
*/
public interface IEscalateHiddenDangerService
{
/**
*
*
* @param id
* @return
*/
EscalateHiddenDanger selectEscalateHiddenDangerById(int id);
/**
*
*
* @param escalateHiddenDanger
* @return
*/
List<EscalateHiddenDanger> selectEscalateHiddenDangerList(EscalateHiddenDanger escalateHiddenDanger);
/**
*
*
* @param escalateHiddenDanger
* @return
*/
int insertEscalateHiddenDanger(EscalateHiddenDanger escalateHiddenDanger);
/**
*
*
* @param escalateHiddenDanger
* @return
*/
int updateEscalateHiddenDanger(EscalateHiddenDanger escalateHiddenDanger);
/**
*
*
* @param ids
* @return
*/
int deleteEscalateHiddenDangerByIds(int[] ids);
/**
*
*
* @param id
* @return
*/
int deleteEscalateHiddenDangerById(int id);
}

View File

@ -0,0 +1,62 @@
package com.hbt.safety.supervision.service;
import java.util.List;
import com.hbt.safety.supervision.pojo.EscalateRisk;
/**
* Service
*
* @author
* @date 2023-02-14
*/
public interface IEscalateRiskService
{
/**
*
*
* @param id
* @return
*/
EscalateRisk selectEscalateRiskById(int id);
/**
*
*
* @param escalateRisk
* @return
*/
List<EscalateRisk> selectEscalateRiskList(EscalateRisk escalateRisk);
/**
*
*
* @param escalateRisk
* @return
*/
int insertEscalateRisk(EscalateRisk escalateRisk);
/**
*
*
* @param escalateRisk
* @return
*/
int updateEscalateRisk(EscalateRisk escalateRisk);
/**
*
*
* @param ids
* @return
*/
int deleteEscalateRiskByIds(int[] ids);
/**
*
*
* @param id
* @return
*/
int deleteEscalateRiskById(int id);
}

View File

@ -0,0 +1,64 @@
package com.hbt.safety.supervision.service;
import java.util.List;
import com.hbt.safety.supervision.pojo.HazardousOperation;
/**
* Service
*
* @author zhangyu
* @date 2023-02-14
*/
public interface IHazardousOperationService
{
/**
*
*
* @param id
* @return
*/
HazardousOperation selectHazardousOperationById(int id);
/**
*
*
* @param hazardousOperation
* @return
*/
List<HazardousOperation> selectHazardousOperationList(HazardousOperation hazardousOperation);
/**
*
*
* @param hazardousOperation
* @return
*/
int insertHazardousOperation(HazardousOperation hazardousOperation);
/**
*
*
* @param hazardousOperation
* @return
*/
int updateHazardousOperation(HazardousOperation hazardousOperation);
/**
*
*
* @param ids
* @return
*/
int deleteHazardousOperationByIds(int[] ids);
/**
*
*
* @param id
* @return
*/
int deleteHazardousOperationById(int id);
String hazardousOperationStatistics();
}

View File

@ -0,0 +1,64 @@
package com.hbt.safety.supervision.service;
import java.util.List;
import com.hbt.safety.supervision.pojo.HiddenDanger;
/**
* Service
*
* @author hbt
* @date 2023-02-14
*/
public interface IHiddenDangerService
{
/**
*
*
* @param id
* @return
*/
HiddenDanger selectHiddenDangerById(int id);
/**
*
*
* @param hiddenDanger
* @return
*/
List<HiddenDanger> selectHiddenDangerList(HiddenDanger hiddenDanger);
/**
*
*
* @param hiddenDanger
* @return
*/
int insertHiddenDanger(HiddenDanger hiddenDanger);
/**
*
*
* @param hiddenDanger
* @return
*/
int updateHiddenDanger(HiddenDanger hiddenDanger);
/**
*
*
* @param ids
* @return
*/
int deleteHiddenDangerByIds(int[] ids);
/**
*
*
* @param id
* @return
*/
int deleteHiddenDangerById(int id);
String hiddenDangerStatistics();
}

View File

@ -0,0 +1,64 @@
package com.hbt.safety.supervision.service;
import java.util.List;
import com.hbt.safety.supervision.pojo.LawEnforcementInspection;
/**
* Service
*
* @author zhangyu
* @date 2023-02-14
*/
public interface ILawEnforcementInspectionService
{
/**
*
*
* @param id
* @return
*/
LawEnforcementInspection selectLawEnforcementInspectionById(int id);
/**
*
*
* @param lawEnforcementInspection
* @return
*/
List<LawEnforcementInspection> selectLawEnforcementInspectionList(LawEnforcementInspection lawEnforcementInspection);
/**
*
*
* @param lawEnforcementInspection
* @return
*/
int insertLawEnforcementInspection(LawEnforcementInspection lawEnforcementInspection);
/**
*
*
* @param lawEnforcementInspection
* @return
*/
int updateLawEnforcementInspection(LawEnforcementInspection lawEnforcementInspection);
/**
*
*
* @param ids
* @return
*/
int deleteLawEnforcementInspectionByIds(int[] ids);
/**
*
*
* @param id
* @return
*/
int deleteLawEnforcementInspectionById(int id);
String monthStatistics();
}

View File

@ -0,0 +1,63 @@
package com.hbt.safety.supervision.service;
import java.util.List;
import com.hbt.safety.supervision.pojo.MajorHazardSources;
/**
* Service
*
* @author zhangyu
* @date 2023-02-14
*/
public interface IMajorHazardSourcesService
{
/**
*
*
* @param id
* @return
*/
MajorHazardSources selectMajorHazardSourcesById(int id);
/**
*
*
* @param majorHazardSources
* @return
*/
List<MajorHazardSources> selectMajorHazardSourcesList(MajorHazardSources majorHazardSources);
/**
*
*
* @param majorHazardSources
* @return
*/
int insertMajorHazardSources(MajorHazardSources majorHazardSources);
/**
*
*
* @param majorHazardSources
* @return
*/
int updateMajorHazardSources(MajorHazardSources majorHazardSources);
/**
*
*
* @param ids
* @return
*/
int deleteMajorHazardSourcesByIds(int[] ids);
/**
*
*
* @param id
* @return
*/
int deleteMajorHazardSourcesById(int id);
String majorHazardSourcesStatistics();
}

View File

@ -0,0 +1,62 @@
package com.hbt.safety.supervision.service;
import java.util.List;
import com.hbt.safety.supervision.pojo.Persion;
/**
* Service
*
* @author
* @date 2023-02-14
*/
public interface IPersionService
{
/**
*
*
* @param id
* @return
*/
Persion selectPersionById(int id);
/**
*
*
* @param persion
* @return
*/
List<Persion> selectPersionList(Persion persion);
/**
*
*
* @param persion
* @return
*/
int insertPersion(Persion persion);
/**
*
*
* @param persion
* @return
*/
int updatePersion(Persion persion);
/**
*
*
* @param ids
* @return
*/
int deletePersionByIds(int[] ids);
/**
*
*
* @param id
* @return
*/
int deletePersionById(int id);
}

View File

@ -0,0 +1,61 @@
package com.hbt.safety.supervision.service;
import java.util.List;
import com.hbt.safety.supervision.pojo.RiskArea;
/**
* Service
*
* @author
* @date 2023-02-14
*/
public interface IRiskAreaService
{
/**
*
*
* @param id
* @return
*/
RiskArea selectRiskAreaById(int id);
/**
*
*
* @param riskArea
* @return
*/
List<RiskArea> selectRiskAreaList(RiskArea riskArea);
/**
*
*
* @param riskArea
* @return
*/
int insertRiskArea(RiskArea riskArea);
/**
*
*
* @param riskArea
* @return
*/
int updateRiskArea(RiskArea riskArea);
/**
*
*
* @param ids
* @return
*/
int deleteRiskAreaByIds(int[] ids);
/**
*
*
* @param id
* @return
*/
int deleteRiskAreaById(int id);
}

View File

@ -0,0 +1,64 @@
package com.hbt.safety.supervision.service;
import java.util.List;
import com.hbt.safety.supervision.pojo.Risk;
/**
* Service
*
* @author
* @date 2023-02-14
*/
public interface IRiskService
{
/**
*
*
* @param id
* @return
*/
Risk selectRiskById(int id);
/**
*
*
* @param risk
* @return
*/
List<Risk> selectRiskList(Risk risk);
/**
*
*
* @param risk
* @return
*/
int insertRisk(Risk risk);
/**
*
*
* @param risk
* @return
*/
int updateRisk(Risk risk);
/**
*
*
* @param ids
* @return
*/
int deleteRiskByIds(int[] ids);
/**
*
*
* @param id
* @return
*/
int deleteRiskById(int id);
String riskStatistics();
}

View File

@ -0,0 +1,120 @@
package com.hbt.safety.supervision.service.impl;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.alibaba.fastjson.JSONObject;
import com.hbt.safety.supervision.mapper.EnterpriseInfomationMapper;
import com.hbt.safety.supervision.pojo.EnterpriseInfomation;
import com.hbt.safety.supervision.service.IEnterpriseInfomationService;
import com.hbt.safety.supervision.mapper.PersionMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* Service
*
* @author zhangyu
* @date 2023-02-14
*/
@Service
public class EnterpriseInfomationServiceImpl implements IEnterpriseInfomationService
{
@Autowired
private EnterpriseInfomationMapper enterpriseInfomationMapper;
@Autowired
PersionMapper persionMapper;
/**
*
*
* @param id
* @return
*/
@Override
public EnterpriseInfomation selectEnterpriseInfomationById(int id)
{
return enterpriseInfomationMapper.selectEnterpriseInfomationById(id);
}
/**
*
*
* @param enterpriseInfomation
* @return
*/
@Override
public List<EnterpriseInfomation> selectEnterpriseInfomationList(EnterpriseInfomation enterpriseInfomation)
{
return enterpriseInfomationMapper.selectEnterpriseInfomationList(enterpriseInfomation);
}
/**
*
*
* @param enterpriseInfomation
* @return
*/
@Override
public int insertEnterpriseInfomation(EnterpriseInfomation enterpriseInfomation)
{
return enterpriseInfomationMapper.insertEnterpriseInfomation(enterpriseInfomation);
}
/**
*
*
* @param enterpriseInfomation
* @return
*/
@Override
public int updateEnterpriseInfomation(EnterpriseInfomation enterpriseInfomation)
{
return enterpriseInfomationMapper.updateEnterpriseInfomation(enterpriseInfomation);
}
/**
*
*
* @param ids
* @return
*/
@Override
public int deleteEnterpriseInfomationByIds(int[] ids)
{
return enterpriseInfomationMapper.deleteEnterpriseInfomationByIds(ids);
}
/**
*
*
* @param id
* @return
*/
@Override
public int deleteEnterpriseInfomationById(int id)
{
return enterpriseInfomationMapper.deleteEnterpriseInfomationById(id);
}
@Override
public String enterpriseStatistics() {
Map<String, Object> map = new HashMap<>();
// 企业分类及数量
List<Map<Object, Object>> list = enterpriseInfomationMapper.enterpriseStatistics();
// 在管企业数量
int enterpriseCount = enterpriseInfomationMapper.getEnterpriseCount();
// 企业员工数
int persionCount = persionMapper.getPersionCount();
// 等级车辆数
int carCount = enterpriseInfomationMapper.getCarCount();
map.put("enterpriseClassification", list);
map.put("enterpriseCount", enterpriseCount);
map.put("persionCount", persionCount);
map.put("carCount", carCount);
return JSONObject.toJSONString(map);
}
}

View File

@ -0,0 +1,94 @@
package com.hbt.safety.supervision.service.impl;
import java.util.List;
import com.hbt.safety.supervision.mapper.EscalateHiddenDangerMapper;
import com.hbt.safety.supervision.pojo.EscalateHiddenDanger;
import com.hbt.safety.supervision.service.IEscalateHiddenDangerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* Service
*
* @author
* @date 2023-02-14
*/
@Service
public class EscalateHiddenDangerServiceImpl implements IEscalateHiddenDangerService
{
@Autowired
private EscalateHiddenDangerMapper escalateHiddenDangerMapper;
/**
*
*
* @param id
* @return
*/
@Override
public EscalateHiddenDanger selectEscalateHiddenDangerById(int id)
{
return escalateHiddenDangerMapper.selectEscalateHiddenDangerById(id);
}
/**
*
*
* @param escalateHiddenDanger
* @return
*/
@Override
public List<EscalateHiddenDanger> selectEscalateHiddenDangerList(EscalateHiddenDanger escalateHiddenDanger)
{
return escalateHiddenDangerMapper.selectEscalateHiddenDangerList(escalateHiddenDanger);
}
/**
*
*
* @param escalateHiddenDanger
* @return
*/
@Override
public int insertEscalateHiddenDanger(EscalateHiddenDanger escalateHiddenDanger)
{
return escalateHiddenDangerMapper.insertEscalateHiddenDanger(escalateHiddenDanger);
}
/**
*
*
* @param escalateHiddenDanger
* @return
*/
@Override
public int updateEscalateHiddenDanger(EscalateHiddenDanger escalateHiddenDanger)
{
return escalateHiddenDangerMapper.updateEscalateHiddenDanger(escalateHiddenDanger);
}
/**
*
*
* @param ids
* @return
*/
@Override
public int deleteEscalateHiddenDangerByIds(int[] ids)
{
return escalateHiddenDangerMapper.deleteEscalateHiddenDangerByIds(ids);
}
/**
*
*
* @param id
* @return
*/
@Override
public int deleteEscalateHiddenDangerById(int id)
{
return escalateHiddenDangerMapper.deleteEscalateHiddenDangerById(id);
}
}

View File

@ -0,0 +1,94 @@
package com.hbt.safety.supervision.service.impl;
import java.util.List;
import com.hbt.safety.supervision.pojo.EscalateRisk;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hbt.safety.supervision.mapper.EscalateRiskMapper;
import com.hbt.safety.supervision.service.IEscalateRiskService;
/**
* Service
*
* @author
* @date 2023-02-14
*/
@Service
public class EscalateRiskServiceImpl implements IEscalateRiskService
{
@Autowired
private EscalateRiskMapper escalateRiskMapper;
/**
*
*
* @param id
* @return
*/
@Override
public EscalateRisk selectEscalateRiskById(int id)
{
return escalateRiskMapper.selectEscalateRiskById(id);
}
/**
*
*
* @param escalateRisk
* @return
*/
@Override
public List<EscalateRisk> selectEscalateRiskList(EscalateRisk escalateRisk)
{
return escalateRiskMapper.selectEscalateRiskList(escalateRisk);
}
/**
*
*
* @param escalateRisk
* @return
*/
@Override
public int insertEscalateRisk(EscalateRisk escalateRisk)
{
return escalateRiskMapper.insertEscalateRisk(escalateRisk);
}
/**
*
*
* @param escalateRisk
* @return
*/
@Override
public int updateEscalateRisk(EscalateRisk escalateRisk)
{
return escalateRiskMapper.updateEscalateRisk(escalateRisk);
}
/**
*
*
* @param ids
* @return
*/
@Override
public int deleteEscalateRiskByIds(int[] ids)
{
return escalateRiskMapper.deleteEscalateRiskByIds(ids);
}
/**
*
*
* @param id
* @return
*/
@Override
public int deleteEscalateRiskById(int id)
{
return escalateRiskMapper.deleteEscalateRiskById(id);
}
}

View File

@ -0,0 +1,147 @@
package com.hbt.safety.supervision.service.impl;
import java.util.*;
import java.util.stream.Collectors;
import com.alibaba.fastjson.JSONObject;
import com.hbt.safety.supervision.pojo.HazardousOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hbt.safety.supervision.mapper.HazardousOperationMapper;
import com.hbt.safety.supervision.service.IHazardousOperationService;
/**
* Service
*
* @author zhangyu
* @date 2023-02-14
*/
@Service
public class HazardousOperationServiceImpl implements IHazardousOperationService
{
@Autowired
private HazardousOperationMapper hazardousOperationMapper;
/**
*
*
* @param id
* @return
*/
@Override
public HazardousOperation selectHazardousOperationById(int id)
{
return hazardousOperationMapper.selectHazardousOperationById(id);
}
/**
*
*
* @param hazardousOperation
* @return
*/
@Override
public List<HazardousOperation> selectHazardousOperationList(HazardousOperation hazardousOperation)
{
return hazardousOperationMapper.selectHazardousOperationList(hazardousOperation);
}
/**
*
*
* @param hazardousOperation
* @return
*/
@Override
public int insertHazardousOperation(HazardousOperation hazardousOperation)
{
return hazardousOperationMapper.insertHazardousOperation(hazardousOperation);
}
/**
*
*
* @param hazardousOperation
* @return
*/
@Override
public int updateHazardousOperation(HazardousOperation hazardousOperation)
{
return hazardousOperationMapper.updateHazardousOperation(hazardousOperation);
}
/**
*
*
* @param ids
* @return
*/
@Override
public int deleteHazardousOperationByIds(int[] ids)
{
return hazardousOperationMapper.deleteHazardousOperationByIds(ids);
}
/**
*
*
* @param id
* @return
*/
@Override
public int deleteHazardousOperationById(int id)
{
return hazardousOperationMapper.deleteHazardousOperationById(id);
}
/**
*
*
* @return
*/
@Override
public String hazardousOperationStatistics() {
// 获取当前时间
Date date = new Date();
Map<String, Object> map = new HashMap<>();
// 查询危险作业信息
List<HazardousOperation> list = hazardousOperationMapper.selectHazardousOperations();
if (list == null) {
return "";
}
Map<Object, List<HazardousOperation>> typeList = list.stream()
.collect(Collectors.groupingBy(HazardousOperation::getOperationType));
// 组装类型统计数据
Map<Object, Integer> operationTypeList = new HashMap<>();
for(Object key : typeList.keySet()) {
operationTypeList.put(key, typeList.get(key).size());
}
map.put("operationTypeList", operationTypeList);
// 进行中的危险作业
List<HazardousOperation> hazardousOperations = list.stream()
.filter(s -> s.getOperationStart().before(date) && s.getOperationEnd().after(date))
.collect(Collectors.toList());
map.put("underwayHazardousOperation", hazardousOperations.size());
// 进行危险作业企业
int underwayEnterprise = hazardousOperations.stream().collect(
Collectors.collectingAndThen(
Collectors.toCollection(() -> new TreeSet<>
(Comparator.comparing(HazardousOperation :: getEnterpriseId))), ArrayList:: new)).size();
map.put("underwayEnterprise", underwayEnterprise);
// 待开始危险作业
int toBeStarted = (int) list.stream()
.filter(s -> s.getOperationStart().after(date)).count();
map.put("toBeStarted", toBeStarted);
// 历史危险作业
int historyHazardousOperation = (int) list.stream()
.filter(s -> s.getOperationEnd().before(date)).count();
map.put("historyHazardousOperation", historyHazardousOperation);
return JSONObject.toJSONString(map);
}
}

View File

@ -0,0 +1,115 @@
package com.hbt.safety.supervision.service.impl;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import com.alibaba.fastjson.JSONObject;
import com.hbt.safety.supervision.mapper.HiddenDangerMapper;
import com.hbt.safety.supervision.pojo.HiddenDanger;
import com.hbt.safety.supervision.service.IHiddenDangerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* Service
*
* @author hbt
*/
@Service
public class HiddenDangerServiceImpl implements IHiddenDangerService
{
@Autowired
private HiddenDangerMapper hiddenDangerMapper;
/**
*
*
* @param id
* @return
*/
@Override
public HiddenDanger selectHiddenDangerById(int id)
{
return hiddenDangerMapper.selectHiddenDangerById(id);
}
/**
*
*
* @param hiddenDanger
* @return
*/
@Override
public List<HiddenDanger> selectHiddenDangerList(HiddenDanger hiddenDanger)
{
return hiddenDangerMapper.selectHiddenDangerList(hiddenDanger);
}
/**
*
*
* @param hiddenDanger
* @return
*/
@Override
public int insertHiddenDanger(HiddenDanger hiddenDanger)
{
return hiddenDangerMapper.insertHiddenDanger(hiddenDanger);
}
/**
*
*
* @param hiddenDanger
* @return
*/
@Override
public int updateHiddenDanger(HiddenDanger hiddenDanger)
{
return hiddenDangerMapper.updateHiddenDanger(hiddenDanger);
}
/**
*
*
* @param ids
* @return
*/
@Override
public int deleteHiddenDangerByIds(int[] ids)
{
return hiddenDangerMapper.deleteHiddenDangerByIds(ids);
}
/**
*
*
* @param id
* @return
*/
@Override
public int deleteHiddenDangerById(int id)
{
return hiddenDangerMapper.deleteHiddenDangerById(id);
}
public String hiddenDangerStatistics() {
Map<String, Object> map = new HashMap<>();
List<HiddenDanger> list = hiddenDangerMapper.selectHiddenDangers();
if (list == null) {
return "";
}
Map<Object, List<HiddenDanger>> hiddenDangerMap = list.stream()
.collect(Collectors.groupingBy(HiddenDanger::getReformStatus));
// 组装隐患状态统计数据
Map<Object, Integer> hiddenDangerList = new HashMap<>();
for(Object key : hiddenDangerMap.keySet()) {
hiddenDangerList.put(key, hiddenDangerMap.get(key).size());
}
map.put("hiddenDangerList", hiddenDangerList);
return JSONObject.toJSONString(map);
}
}

View File

@ -0,0 +1,160 @@
package com.hbt.safety.supervision.service.impl;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import com.alibaba.fastjson.JSONObject;
import com.hbt.safety.supervision.mapper.EscalateHiddenDangerMapper;
import com.hbt.safety.supervision.mapper.EscalateRiskMapper;
import com.hbt.safety.supervision.mapper.LawEnforcementInspectionMapper;
import com.hbt.safety.supervision.pojo.LawEnforcementInspection;
import com.hbt.safety.supervision.pojo.vo.LawEnforcementInspectionStatics;
import com.hbt.safety.supervision.pojo.vo.LawEnforcementInspectionVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hbt.safety.supervision.service.ILawEnforcementInspectionService;
/**
* Service
*
* @author zhangyu
* @date 2023-02-14
*/
@Service
public class LawEnforcementInspectionServiceImpl implements ILawEnforcementInspectionService
{
@Autowired
private LawEnforcementInspectionMapper lawEnforcementInspectionMapper;
@Autowired
EscalateHiddenDangerMapper escalateHiddenDangerMapper;
@Autowired
EscalateRiskMapper escalateRiskMapper;
/**
*
*
* @param id
* @return
*/
@Override
public LawEnforcementInspection selectLawEnforcementInspectionById(int id)
{
return lawEnforcementInspectionMapper.selectLawEnforcementInspectionById(id);
}
/**
*
*
* @param lawEnforcementInspection
* @return
*/
@Override
public List<LawEnforcementInspection> selectLawEnforcementInspectionList(LawEnforcementInspection lawEnforcementInspection)
{
return lawEnforcementInspectionMapper.selectLawEnforcementInspectionList(lawEnforcementInspection);
}
/**
*
*
* @param lawEnforcementInspection
* @return
*/
@Override
public int insertLawEnforcementInspection(LawEnforcementInspection lawEnforcementInspection)
{
return lawEnforcementInspectionMapper.insertLawEnforcementInspection(lawEnforcementInspection);
}
/**
*
*
* @param lawEnforcementInspection
* @return
*/
@Override
public int updateLawEnforcementInspection(LawEnforcementInspection lawEnforcementInspection)
{
return lawEnforcementInspectionMapper.updateLawEnforcementInspection(lawEnforcementInspection);
}
/**
*
*
* @param ids
* @return
*/
@Override
public int deleteLawEnforcementInspectionByIds(int[] ids)
{
return lawEnforcementInspectionMapper.deleteLawEnforcementInspectionByIds(ids);
}
/**
*
*
* @param id
* @return
*/
@Override
public int deleteLawEnforcementInspectionById(int id)
{
return lawEnforcementInspectionMapper.deleteLawEnforcementInspectionById(id);
}
@Override
public String monthStatistics() {
List<LawEnforcementInspectionStatics> list = new ArrayList<>();
// 获取当前年份
Calendar calendar = Calendar.getInstance();
int year = calendar.get(Calendar.YEAR);
// 查询巡查列表
List<LawEnforcementInspectionVo> lawList = lawEnforcementInspectionMapper.selectLawEnforcementInspections(year);
if (lawList == null) {
return null;
}
Map<Object, List<LawEnforcementInspectionVo>> typeList = lawList.stream()
.collect(Collectors.groupingBy(LawEnforcementInspectionVo::getInspectionDate));
// 查询隐患表id
List<String> escalateHiddenDangerIds = escalateHiddenDangerMapper.getEscalateHiddenDangerIds();
// 查询风险表id
List<String> escalateRiskIds = escalateRiskMapper.getEscalateRiskIds();
for (Object key : typeList.keySet()) {
LawEnforcementInspectionStatics law = new LawEnforcementInspectionStatics();
law.setMonth(key);
List<LawEnforcementInspectionVo> lawEnforcementInspections = typeList.get(key);
law.setInspectionCount(lawEnforcementInspections.size());
// 获取每月上报隐患数
if (escalateHiddenDangerIds == null) {
law.setHiddenTroubleCount(0);
} else {
int hiddenTroubleCount = (int) lawEnforcementInspections.stream()
.filter( s -> escalateHiddenDangerIds.stream().anyMatch(f -> f.equals(s.getId()))).count();
law.setHiddenTroubleCount(hiddenTroubleCount);
}
// 获取每月上报风险数
if (escalateRiskIds == null) {
law.setRiskCount(0);
} else {
int riskCount = (int) lawEnforcementInspections.stream()
.filter( s -> escalateRiskIds.stream().anyMatch(f -> f.equals(s.getId()))).count();
law.setRiskCount(riskCount);
}
list.add(law);
}
return JSONObject.toJSONString(list);
}
}

View File

@ -0,0 +1,130 @@
package com.hbt.safety.supervision.service.impl;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import com.alibaba.fastjson.JSONObject;
import com.hbt.safety.supervision.service.IMajorHazardSourcesService;
import com.hbt.safety.supervision.pojo.MajorHazardSources;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hbt.safety.supervision.mapper.MajorHazardSourcesMapper;
/**
* Service
*
* @author zhangyu
* @date 2023-02-14
*/
@Service
public class MajorHazardSourcesServiceImpl implements IMajorHazardSourcesService
{
@Autowired
private MajorHazardSourcesMapper majorHazardSourcesMapper;
/**
*
*
* @param id
* @return
*/
@Override
public MajorHazardSources selectMajorHazardSourcesById(int id)
{
return majorHazardSourcesMapper.selectMajorHazardSourcesById(id);
}
/**
*
*
* @param majorHazardSources
* @return
*/
@Override
public List<MajorHazardSources> selectMajorHazardSourcesList(MajorHazardSources majorHazardSources)
{
return majorHazardSourcesMapper.selectMajorHazardSourcesList(majorHazardSources);
}
/**
*
*
* @param majorHazardSources
* @return
*/
@Override
public int insertMajorHazardSources(MajorHazardSources majorHazardSources)
{
return majorHazardSourcesMapper.insertMajorHazardSources(majorHazardSources);
}
/**
*
*
* @param majorHazardSources
* @return
*/
@Override
public int updateMajorHazardSources(MajorHazardSources majorHazardSources)
{
return majorHazardSourcesMapper.updateMajorHazardSources(majorHazardSources);
}
/**
*
*
* @param ids
* @return
*/
@Override
public int deleteMajorHazardSourcesByIds(int[] ids)
{
return majorHazardSourcesMapper.deleteMajorHazardSourcesByIds(ids);
}
/**
*
*
* @param id
* @return
*/
@Override
public int deleteMajorHazardSourcesById(int id)
{
return majorHazardSourcesMapper.deleteMajorHazardSourcesById(id);
}
public String majorHazardSourcesStatistics() {
Map<String, Object> map = new HashMap<>();
// 查询重大危险源信息
List<MajorHazardSources> list = majorHazardSourcesMapper.majorHazardSourcesStatistics();
if (list == null) {
return "";
}
// 根据风险等级分组
Map<Object, List<MajorHazardSources>> typeList = list.stream()
.collect(Collectors.groupingBy(MajorHazardSources::getDangerLevel));
// 组装风险等级统计数据
Map<Object, Integer> dangerLevelList = new HashMap<>();
for(Object key : typeList.keySet()) {
dangerLevelList.put(key, typeList.get(key).size());
}
map.put("dangerLevelList", dangerLevelList);
// 获取生产单元数量
int productionUnit = (int) list.stream()
.filter(s -> s.getUnitType().equals("生产单元")).count();
map.put("productionUnit", productionUnit);
// 获取存储单元数量
int storageCell = (int) list.stream()
.filter(s -> s.getUnitType().equals("存储单元")).count();
map.put("storageCell", storageCell);
return JSONObject.toJSONString(map);
}
}

View File

@ -0,0 +1,94 @@
package com.hbt.safety.supervision.service.impl;
import java.util.List;
import com.hbt.safety.supervision.pojo.Persion;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hbt.safety.supervision.mapper.PersionMapper;
import com.hbt.safety.supervision.service.IPersionService;
/**
* Service
*
* @author
* @date 2023-02-14
*/
@Service
public class PersionServiceImpl implements IPersionService
{
@Autowired
private PersionMapper persionMapper;
/**
*
*
* @param id
* @return
*/
@Override
public Persion selectPersionById(int id)
{
return persionMapper.selectPersionById(id);
}
/**
*
*
* @param persion
* @return
*/
@Override
public List<Persion> selectPersionList(Persion persion)
{
return persionMapper.selectPersionList(persion);
}
/**
*
*
* @param persion
* @return
*/
@Override
public int insertPersion(Persion persion)
{
return persionMapper.insertPersion(persion);
}
/**
*
*
* @param persion
* @return
*/
@Override
public int updatePersion(Persion persion)
{
return persionMapper.updatePersion(persion);
}
/**
*
*
* @param ids
* @return
*/
@Override
public int deletePersionByIds(int[] ids)
{
return persionMapper.deletePersionByIds(ids);
}
/**
*
*
* @param id
* @return
*/
@Override
public int deletePersionById(int id)
{
return persionMapper.deletePersionById(id);
}
}

View File

@ -0,0 +1,94 @@
package com.hbt.safety.supervision.service.impl;
import java.util.List;
import com.hbt.safety.supervision.mapper.RiskAreaMapper;
import com.hbt.safety.supervision.service.IRiskAreaService;
import com.hbt.safety.supervision.pojo.RiskArea;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* Service
*
* @author
* @date 2023-02-14
*/
@Service
public class RiskAreaServiceImpl implements IRiskAreaService
{
@Autowired
private RiskAreaMapper riskAreaMapper;
/**
*
*
* @param id
* @return
*/
@Override
public RiskArea selectRiskAreaById(int id)
{
return riskAreaMapper.selectRiskAreaById(id);
}
/**
*
*
* @param riskArea
* @return
*/
@Override
public List<RiskArea> selectRiskAreaList(RiskArea riskArea)
{
return riskAreaMapper.selectRiskAreaList(riskArea);
}
/**
*
*
* @param riskArea
* @return
*/
@Override
public int insertRiskArea(RiskArea riskArea)
{
return riskAreaMapper.insertRiskArea(riskArea);
}
/**
*
*
* @param riskArea
* @return
*/
@Override
public int updateRiskArea(RiskArea riskArea)
{
return riskAreaMapper.updateRiskArea(riskArea);
}
/**
*
*
* @param ids
* @return
*/
@Override
public int deleteRiskAreaByIds(int[] ids)
{
return riskAreaMapper.deleteRiskAreaByIds(ids);
}
/**
*
*
* @param id
* @return
*/
@Override
public int deleteRiskAreaById(int id)
{
return riskAreaMapper.deleteRiskAreaById(id);
}
}

View File

@ -0,0 +1,101 @@
package com.hbt.safety.supervision.service.impl;
import java.util.List;
import java.util.Map;
import com.alibaba.fastjson.JSONObject;
import com.hbt.safety.supervision.mapper.RiskMapper;
import com.hbt.safety.supervision.pojo.Risk;
import com.hbt.safety.supervision.service.IRiskService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* Service
*
* @author
* @date 2023-02-14
*/
@Service
public class RiskServiceImpl implements IRiskService
{
@Autowired
private RiskMapper riskMapper;
/**
*
*
* @param id
* @return
*/
@Override
public Risk selectRiskById(int id)
{
return riskMapper.selectRiskById(id);
}
/**
*
*
* @param risk
* @return
*/
@Override
public List<Risk> selectRiskList(Risk risk)
{
return riskMapper.selectRiskList(risk);
}
/**
*
*
* @param risk
* @return
*/
@Override
public int insertRisk(Risk risk)
{
return riskMapper.insertRisk(risk);
}
/**
*
*
* @param risk
* @return
*/
@Override
public int updateRisk(Risk risk)
{
return riskMapper.updateRisk(risk);
}
/**
*
*
* @param ids
* @return
*/
@Override
public int deleteRiskByIds(int[] ids)
{
return riskMapper.deleteRiskByIds(ids);
}
/**
*
*
* @param id
* @return
*/
@Override
public int deleteRiskById(int id)
{
return riskMapper.deleteRiskById(id);
}
public String riskStatistics() {
List<Map<Object, Object>> map = riskMapper.riskStatistics();
return JSONObject.toJSONString(map);
}
}

View File

@ -0,0 +1,8 @@
Spring Boot Version: ${spring-boot.version}
Spring Application Name: ${spring.application.name}
__ __ __ ____ __ _ _
/ /_ / /_ / /_ _________ _/ __/__ / /___ __ _______ ______ ___ ______ __(_)____(_)___ ____
/ __ \/ __ \/ __/_____/ ___/ __ `/ /_/ _ \/ __/ / / /_____/ ___/ / / / __ \/ _ \/ ___/ | / / / ___/ / __ \/ __ \
/ / / / /_/ / /_/_____(__ ) /_/ / __/ __/ /_/ /_/ /_____(__ ) /_/ / /_/ / __/ / | |/ / (__ ) / /_/ / / / /
/_/ /_/_.___/\__/ /____/\__,_/_/ \___/\__/\__, / /____/\__,_/ .___/\___/_/ |___/_/____/_/\____/_/ /_/
/____/ /_/

View File

@ -5,7 +5,7 @@ server:
spring:
application:
# 应用名称
name: hbt-ep
name: hbt-safety-supervision
profiles:
# 环境配置
active: dev

View File

@ -0,0 +1,118 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.hbt.safety.supervision.mapper.EnterpriseInfomationMapper">
<resultMap type="com.hbt.safety.supervision.pojo.EnterpriseInfomation" id="EnterpriseInfomationResult">
<result property="id" column="id" />
<result property="unifySocialCreditCode" column="unify_social_credit_code" />
<result property="name" column="name" />
<result property="registrationNumber" column="registration_number" />
<result property="legalRepresentative" column="legal_representative" />
<result property="type" column="type" />
<result property="establishmentDate" column="establishment_date" />
<result property="fundAmount" column="fund_amount" />
<result property="approvalDate" column="approval_date" />
<result property="registrationAuthority" column="registration_authority" />
<result property="registrationStatus" column="registration_status" />
<result property="dwellingPlace" column="dwelling_place" />
<result property="businessScope" column="business_scope" />
</resultMap>
<sql id="selectEnterpriseInfomationVo">
select id, unify_social_credit_code, name, registration_number, legal_representative, type, establishment_date, fund_amount, approval_date, registration_authority, registration_status, dwelling_place, business_scope from enterprise_infomation
</sql>
<select id="selectEnterpriseInfomationList" parameterType="com.hbt.safety.supervision.pojo.EnterpriseInfomation" resultMap="EnterpriseInfomationResult">
<include refid="selectEnterpriseInfomationVo"/>
<where>
<if test="id != null "> and id = #{id}</if>
</where>
</select>
<select id="selectEnterpriseInfomationById" parameterType="Integer" resultMap="EnterpriseInfomationResult">
<include refid="selectEnterpriseInfomationVo"/>
where id = #{id}
</select>
<insert id="insertEnterpriseInfomation" parameterType="com.hbt.safety.supervision.pojo.EnterpriseInfomation">
insert into enterprise_infomation
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">id,</if>
<if test="unifySocialCreditCode != null">unify_social_credit_code,</if>
<if test="name != null">name,</if>
<if test="registrationNumber != null">registration_number,</if>
<if test="legalRepresentative != null">legal_representative,</if>
<if test="type != null">type,</if>
<if test="establishmentDate != null">establishment_date,</if>
<if test="fundAmount != null">fund_amount,</if>
<if test="approvalDate != null">approval_date,</if>
<if test="registrationAuthority != null">registration_authority,</if>
<if test="registrationStatus != null">registration_status,</if>
<if test="dwellingPlace != null">dwelling_place,</if>
<if test="businessScope != null">business_scope,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id},</if>
<if test="unifySocialCreditCode != null">#{unifySocialCreditCode},</if>
<if test="name != null">#{name},</if>
<if test="registrationNumber != null">#{registrationNumber},</if>
<if test="legalRepresentative != null">#{legalRepresentative},</if>
<if test="type != null">#{type},</if>
<if test="establishmentDate != null">#{establishmentDate},</if>
<if test="fundAmount != null">#{fundAmount},</if>
<if test="approvalDate != null">#{approvalDate},</if>
<if test="registrationAuthority != null">#{registrationAuthority},</if>
<if test="registrationStatus != null">#{registrationStatus},</if>
<if test="dwellingPlace != null">#{dwellingPlace},</if>
<if test="businessScope != null">#{businessScope},</if>
</trim>
</insert>
<update id="updateEnterpriseInfomation" parameterType="com.hbt.safety.supervision.pojo.EnterpriseInfomation">
update enterprise_infomation
<trim prefix="SET" suffixOverrides=",">
<if test="unifySocialCreditCode != null">unify_social_credit_code = #{unifySocialCreditCode},</if>
<if test="name != null">name = #{name},</if>
<if test="registrationNumber != null">registration_number = #{registrationNumber},</if>
<if test="legalRepresentative != null">legal_representative = #{legalRepresentative},</if>
<if test="type != null">type = #{type},</if>
<if test="establishmentDate != null">establishment_date = #{establishmentDate},</if>
<if test="fundAmount != null">fund_amount = #{fundAmount},</if>
<if test="approvalDate != null">approval_date = #{approvalDate},</if>
<if test="registrationAuthority != null">registration_authority = #{registrationAuthority},</if>
<if test="registrationStatus != null">registration_status = #{registrationStatus},</if>
<if test="dwellingPlace != null">dwelling_place = #{dwellingPlace},</if>
<if test="businessScope != null">business_scope = #{businessScope},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteEnterpriseInfomationById" parameterType="Integer">
delete from enterprise_infomation where id = #{id}
</delete>
<delete id="deleteEnterpriseInfomationByIds" parameterType="String">
delete from enterprise_infomation where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
<select id="selectEnterpriseInfomations" resultType="com.hbt.safety.supervision.pojo.EnterpriseInfomation">
select from enterprise_infomation
</select>
<select id="enterpriseStatistics" resultType="java.util.Map">
select type as type, count(id) as num from enterprise_infomation group by type
</select>
<select id="getEnterpriseCount" resultType="Integer">
select count(*) from enterprise_infomation
</select>
<select id="getCarCount" resultType="Integer">
select count(*) from enterprise_car
</select>
</mapper>

View File

@ -0,0 +1,69 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.hbt.safety.supervision.mapper.EscalateHiddenDangerMapper">
<resultMap type="com.hbt.safety.supervision.pojo.EscalateHiddenDanger" id="EscalateHiddenDangerResult">
<result property="id" column="id" />
<result property="enforcementId" column="enforcement_id" />
<result property="hiddenDangerId" column="hidden_danger_id" />
</resultMap>
<sql id="selectEscalateHiddenDangerVo">
select id, enforcement_id, hidden_danger_id from escalate_hidden_danger
</sql>
<select id="selectEscalateHiddenDangerList" parameterType="com.hbt.safety.supervision.pojo.EscalateHiddenDanger" resultMap="EscalateHiddenDangerResult">
<include refid="selectEscalateHiddenDangerVo"/>
<where>
</where>
</select>
<select id="selectEscalateHiddenDangerById" parameterType="Integer" resultMap="EscalateHiddenDangerResult">
<include refid="selectEscalateHiddenDangerVo"/>
where id = #{id}
</select>
<insert id="insertEscalateHiddenDanger" parameterType="com.hbt.safety.supervision.pojo.EscalateHiddenDanger">
insert into escalate_hidden_danger
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">id,</if>
<if test="enforcementId != null">enforcement_id,</if>
<if test="hiddenDangerId != null">hidden_danger_id,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id},</if>
<if test="enforcementId != null">#{enforcementId},</if>
<if test="hiddenDangerId != null">#{hiddenDangerId},</if>
</trim>
</insert>
<update id="updateEscalateHiddenDanger" parameterType="com.hbt.safety.supervision.pojo.EscalateHiddenDanger">
update escalate_hidden_danger
<trim prefix="SET" suffixOverrides=",">
<if test="enforcementId != null">enforcement_id = #{enforcementId},</if>
<if test="hiddenDangerId != null">hidden_danger_id = #{hiddenDangerId},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteEscalateHiddenDangerById" parameterType="Integer">
delete from escalate_hidden_danger where id = #{id}
</delete>
<delete id="deleteEscalateHiddenDangerByIds" parameterType="String">
delete from escalate_hidden_danger where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
<select id="getTotalEscalateHiddenDanger" resultType="Integer">
select count(*) from escalate_hidden_danger
</select>
<select id="getEscalateHiddenDangerIds" resultType="String">
select enforcement_id from escalate_hidden_danger
</select>
</mapper>

View File

@ -0,0 +1,65 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.hbt.safety.supervision.mapper.EscalateRiskMapper">
<resultMap type="com.hbt.safety.supervision.pojo.EscalateRisk" id="EscalateRiskResult">
<result property="id" column="id" />
<result property="enforcementId" column="enforcement_id" />
<result property="riskId" column="risk_id" />
</resultMap>
<sql id="selectEscalateRiskVo">
select id, enforcement_id, risk_id from escalate_risk
</sql>
<select id="selectEscalateRiskList" parameterType="com.hbt.safety.supervision.pojo.EscalateRisk" resultMap="EscalateRiskResult">
<include refid="selectEscalateRiskVo"/>
<where>
</where>
</select>
<select id="selectEscalateRiskById" parameterType="Integer" resultMap="EscalateRiskResult">
<include refid="selectEscalateRiskVo"/>
where id = #{id}
</select>
<insert id="insertEscalateRisk" parameterType="com.hbt.safety.supervision.pojo.EscalateRisk">
insert into escalate_risk
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">id,</if>
<if test="enforcementId != null">enforcement_id,</if>
<if test="riskId != null">risk_id,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id},</if>
<if test="enforcementId != null">#{enforcementId},</if>
<if test="riskId != null">#{riskId},</if>
</trim>
</insert>
<update id="updateEscalateRisk" parameterType="com.hbt.safety.supervision.pojo.EscalateRisk">
update escalate_risk
<trim prefix="SET" suffixOverrides=",">
<if test="enforcementId != null">enforcement_id = #{enforcementId},</if>
<if test="riskId != null">risk_id = #{riskId},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteEscalateRiskById" parameterType="Integer">
delete from escalate_risk where id = #{id}
</delete>
<delete id="deleteEscalateRiskByIds" parameterType="String">
delete from escalate_risk where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
<select id="getEscalateRiskIds" resultType="String">
select enforcement_id from escalate_risk
</select>
</mapper>

View File

@ -0,0 +1,94 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.hbt.safety.supervision.mapper.HazardousOperationMapper">
<resultMap type="com.hbt.safety.supervision.pojo.HazardousOperation" id="HazardousOperationResult">
<result property="id" column="id" />
<result property="name" column="name" />
<result property="operationLevel" column="operation_level" />
<result property="enterpriseId" column="enterprise_id" />
<result property="operationContent" column="operation_content" />
<result property="operationLongitude" column="operation_longitude" />
<result property="operationLatitude" column="operation_latitude" />
<result property="operationType" column="operation_type" />
<result property="operationStart" column="operation_start" />
<result property="operationEnd" column="operation_end" />
</resultMap>
<sql id="selectHazardousOperationVo">
select id, name, operation_level, enterprise_id, operation_content, operation_longitude, operation_latitude, operation_type, operation_start, operation_end from hazardous_operation
</sql>
<select id="selectHazardousOperationList" parameterType="com.hbt.safety.supervision.pojo.HazardousOperation" resultMap="HazardousOperationResult">
<include refid="selectHazardousOperationVo"/>
<where>
<if test="id != null "> and id = #{id}</if>
</where>
</select>
<select id="selectHazardousOperationById" parameterType="Integer" resultMap="HazardousOperationResult">
<include refid="selectHazardousOperationVo"/>
where id = #{id}
</select>
<insert id="insertHazardousOperation" parameterType="com.hbt.safety.supervision.pojo.HazardousOperation">
insert into hazardous_operation
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">id,</if>
<if test="name != null">name,</if>
<if test="operationLevel != null">operation_level,</if>
<if test="enterpriseId != null">enterprise_id,</if>
<if test="operationContent != null">operation_content,</if>
<if test="operationLongitude != null">operation_longitude,</if>
<if test="operationLatitude != null">operation_latitude,</if>
<if test="operationType != null">operation_type,</if>
<if test="operationStart != null">operation_start,</if>
<if test="operationEnd != null">operation_end,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id},</if>
<if test="name != null">#{name},</if>
<if test="operationLevel != null">#{operationLevel},</if>
<if test="enterpriseId != null">#{enterpriseId},</if>
<if test="operationContent != null">#{operationContent},</if>
<if test="operationLongitude != null">#{operationLongitude},</if>
<if test="operationLatitude != null">#{operationLatitude},</if>
<if test="operationType != null">#{operationType},</if>
<if test="operationStart != null">#{operationStart},</if>
<if test="operationEnd != null">#{operationEnd},</if>
</trim>
</insert>
<update id="updateHazardousOperation" parameterType="com.hbt.safety.supervision.pojo.HazardousOperation">
update hazardous_operation
<trim prefix="SET" suffixOverrides=",">
<if test="name != null">name = #{name},</if>
<if test="operationLevel != null">operation_level = #{operationLevel},</if>
<if test="enterpriseId != null">enterprise_id = #{enterpriseId},</if>
<if test="operationContent != null">operation_content = #{operationContent},</if>
<if test="operationLongitude != null">operation_longitude = #{operationLongitude},</if>
<if test="operationLatitude != null">operation_latitude = #{operationLatitude},</if>
<if test="operationType != null">operation_type = #{operationType},</if>
<if test="operationStart != null">operation_start = #{operationStart},</if>
<if test="operationEnd != null">operation_end = #{operationEnd},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteHazardousOperationById" parameterType="Integer">
delete from hazardous_operation where id = #{id}
</delete>
<delete id="deleteHazardousOperationByIds" parameterType="String">
delete from hazardous_operation where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
<select id="selectHazardousOperations" resultType="com.hbt.safety.supervision.pojo.HazardousOperation">
select id,operation_type operationType,operation_start operationStart ,operation_end operationEnd,enterprise_id enterpriseId from hazardous_operation
</select>
</mapper>

View File

@ -0,0 +1,109 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.hbt.safety.supervision.mapper.HiddenDangerMapper">
<resultMap type="com.hbt.safety.supervision.pojo.HiddenDanger" id="HiddenDangerResult">
<result property="id" column="id" />
<result property="name" column="name" />
<result property="details" column="details" />
<result property="riskId" column="risk_id" />
<result property="submitDate" column="submit_date" />
<result property="submitPersonId" column="submit_person_id" />
<result property="submitEnterpriseId" column="submit_enterprise_id" />
<result property="reformMeasures" column="reform_measures" />
<result property="reformStatus" column="reform_status" />
<result property="exceedTimeLimitStatus" column="exceed_time_limit_status" />
<result property="enterpriseId" column="enterprise_id" />
<result property="personId" column="person_id" />
<result property="remarks" column="remarks" />
<result property="rectificationPeriod" column="rectification_period" />
</resultMap>
<sql id="selectHiddenDangerVo">
select id, name, details, risk_id, submit_date, submit_person_id, submit_enterprise_id, reform_measures, reform_status, exceed_time_limit_status, enterprise_id, person_id, remarks, rectification_period from hidden_danger
</sql>
<select id="selectHiddenDangerList" parameterType="com.hbt.safety.supervision.pojo.HiddenDanger" resultMap="HiddenDangerResult">
<include refid="selectHiddenDangerVo"/>
<where>
</where>
</select>
<select id="selectHiddenDangerById" parameterType="Integer" resultMap="HiddenDangerResult">
<include refid="selectHiddenDangerVo"/>
where id = #{id}
</select>
<insert id="insertHiddenDanger" parameterType="com.hbt.safety.supervision.pojo.HiddenDanger">
insert into hidden_danger
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">id,</if>
<if test="name != null">name,</if>
<if test="details != null">details,</if>
<if test="riskId != null">risk_id,</if>
<if test="submitDate != null">submit_date,</if>
<if test="submitPersonId != null">submit_person_id,</if>
<if test="submitEnterpriseId != null">submit_enterprise_id,</if>
<if test="reformMeasures != null">reform_measures,</if>
<if test="reformStatus != null">reform_status,</if>
<if test="exceedTimeLimitStatus != null">exceed_time_limit_status,</if>
<if test="enterpriseId != null">enterprise_id,</if>
<if test="personId != null">person_id,</if>
<if test="remarks != null">remarks,</if>
<if test="rectificationPeriod != null">rectification_period,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id},</if>
<if test="name != null">#{name},</if>
<if test="details != null">#{details},</if>
<if test="riskId != null">#{riskId},</if>
<if test="submitDate != null">#{submitDate},</if>
<if test="submitPersonId != null">#{submitPersonId},</if>
<if test="submitEnterpriseId != null">#{submitEnterpriseId},</if>
<if test="reformMeasures != null">#{reformMeasures},</if>
<if test="reformStatus != null">#{reformStatus},</if>
<if test="exceedTimeLimitStatus != null">#{exceedTimeLimitStatus},</if>
<if test="enterpriseId != null">#{enterpriseId},</if>
<if test="personId != null">#{personId},</if>
<if test="remarks != null">#{remarks},</if>
<if test="rectificationPeriod != null">#{rectificationPeriod},</if>
</trim>
</insert>
<update id="updateHiddenDanger" parameterType="com.hbt.safety.supervision.pojo.HiddenDanger">
update hidden_danger
<trim prefix="SET" suffixOverrides=",">
<if test="name != null">name = #{name},</if>
<if test="details != null">details = #{details},</if>
<if test="riskId != null">risk_id = #{riskId},</if>
<if test="submitDate != null">submit_date = #{submitDate},</if>
<if test="submitPersonId != null">submit_person_id = #{submitPersonId},</if>
<if test="submitEnterpriseId != null">submit_enterprise_id = #{submitEnterpriseId},</if>
<if test="reformMeasures != null">reform_measures = #{reformMeasures},</if>
<if test="reformStatus != null">reform_status = #{reformStatus},</if>
<if test="exceedTimeLimitStatus != null">exceed_time_limit_status = #{exceedTimeLimitStatus},</if>
<if test="enterpriseId != null">enterprise_id = #{enterpriseId},</if>
<if test="personId != null">person_id = #{personId},</if>
<if test="remarks != null">remarks = #{remarks},</if>
<if test="rectificationPeriod != null">rectification_period = #{rectificationPeriod},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteHiddenDangerById" parameterType="Integer">
delete from hidden_danger where id = #{id}
</delete>
<delete id="deleteHiddenDangerByIds" parameterType="String">
delete from hidden_danger where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
<select id="selectHiddenDangers" resultType="com.hbt.safety.supervision.pojo.HiddenDanger">
select reform_status reformStatus from hidden_danger where exceed_time_limit_status = 0
</select>
</mapper>

View File

@ -0,0 +1,73 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.hbt.safety.supervision.mapper.LawEnforcementInspectionMapper">
<resultMap type="com.hbt.safety.supervision.pojo.LawEnforcementInspection" id="LawEnforcementInspectionResult">
<result property="id" column="id" />
<result property="inspectionDate" column="inspection_date" />
<result property="persionId" column="persion_id" />
<result property="name" column="name" />
<result property="remarks" column="remarks" />
</resultMap>
<sql id="selectLawEnforcementInspectionVo">
select id, inspection_date, persion_id, name, remarks from law_enforcement_inspection
</sql>
<select id="selectLawEnforcementInspectionList" parameterType="com.hbt.safety.supervision.pojo.LawEnforcementInspection" resultMap="LawEnforcementInspectionResult">
<include refid="selectLawEnforcementInspectionVo"/>
<where>
</where>
</select>
<select id="selectLawEnforcementInspectionById" parameterType="Integer" resultMap="LawEnforcementInspectionResult">
<include refid="selectLawEnforcementInspectionVo"/>
where id = #{id}
</select>
<insert id="insertLawEnforcementInspection" parameterType="com.hbt.safety.supervision.pojo.LawEnforcementInspection">
insert into law_enforcement_inspection
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">id,</if>
<if test="inspectionDate != null">inspection_date,</if>
<if test="persionId != null">persion_id,</if>
<if test="name != null">name,</if>
<if test="remarks != null">remarks,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id},</if>
<if test="inspectionDate != null">#{inspectionDate},</if>
<if test="persionId != null">#{persionId},</if>
<if test="name != null">#{name},</if>
<if test="remarks != null">#{remarks},</if>
</trim>
</insert>
<update id="updateLawEnforcementInspection" parameterType="com.hbt.safety.supervision.pojo.LawEnforcementInspection">
update law_enforcement_inspection
<trim prefix="SET" suffixOverrides=",">
<if test="inspectionDate != null">inspection_date = #{inspectionDate},</if>
<if test="persionId != null">persion_id = #{persionId},</if>
<if test="name != null">name = #{name},</if>
<if test="remarks != null">remarks = #{remarks},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteLawEnforcementInspectionById" parameterType="Integer">
delete from law_enforcement_inspection where id = #{id}
</delete>
<delete id="deleteLawEnforcementInspectionByIds" parameterType="String">
delete from law_enforcement_inspection where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
<select id="selectLawEnforcementInspections" resultType="com.hbt.safety.supervision.pojo.vo.LawEnforcementInspectionVo">
select id,MONTH(inspection_date) inspectionDate from law_enforcement_inspection where YEAR(inspection_date) = #{year}
</select>
</mapper>

View File

@ -0,0 +1,119 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.hbt.safety.supervision.mapper.MajorHazardSourcesMapper">
<resultMap type="com.hbt.safety.supervision.pojo.MajorHazardSources" id="MajorHazardSourcesResult">
<result property="id" column="id" />
<result property="mainResponsiblePersonId" column="main_responsible_person_id" />
<result property="mainResponsiblePerson" column="main_responsible_person" />
<result property="technologyResponsiblePersonId" column="technology_responsible_person_id" />
<result property="technologyResponsiblePerson" column="technology_responsible_person" />
<result property="operateResponsiblePersonId" column="operate_responsible_person_id" />
<result property="operateResponsiblePerson" column="operate_responsible_person" />
<result property="name" column="name" />
<result property="riskFactor" column="risk_factor" />
<result property="consequence" column="consequence" />
<result property="dangerLevel" column="danger_level" />
<result property="controlMeasures" column="control_measures" />
<result property="unifiedCoding" column="unified_coding" />
<result property="unitType" column="unit_type" />
<result property="memorySpace" column="memory_space" />
<result property="longitude" column="longitude" />
<result property="latitude" column="latitude" />
<result property="enterpriseId" column="enterprise_id" />
<result property="enterprise" column="enterprise" />
<result property="hazardousChemicalsName" column="hazardous_chemicals_name" />
</resultMap>
<sql id="selectMajorHazardSourcesVo">
select name, danger_level, unified_coding, memory_space, longitude, latitude from major_hazard_sources
</sql>
<select id="selectMajorHazardSourcesList" parameterType="com.hbt.safety.supervision.pojo.MajorHazardSources" resultMap="MajorHazardSourcesResult">
<include refid="selectMajorHazardSourcesVo"/>
<where>
</where>
</select>
<sql id="selectMajorHazardVo">
select id, name, danger_level, unified_coding, hazardous_chemicals_name,risk_factor, consequence ,control_measures ,enterprise, main_responsible_person_id, main_responsible_person ,technology_responsible_person,technology_responsible_person_id,operate_responsible_person_id,operate_responsible_person from major_hazard_sources
</sql>
<select id="selectMajorHazardSourcesById" parameterType="Integer" resultMap="MajorHazardSourcesResult">
<include refid="selectMajorHazardVo"/>
where id = #{id}
</select>
<insert id="insertMajorHazardSources" parameterType="com.hbt.safety.supervision.pojo.MajorHazardSources">
insert into major_hazard_sources
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">id,</if>
<if test="mainResponsiblePerson != null">main_responsible_person,</if>
<if test="technologyResponsiblePerson != null">technology_responsible_person,</if>
<if test="operateResponsiblePerson != null">operate_responsible_person,</if>
<if test="name != null">name,</if>
<if test="riskFactor != null">risk_factor,</if>
<if test="consequence != null">consequence,</if>
<if test="dangerLevel != null">danger_level,</if>
<if test="controlMeasures != null">control_measures,</if>
<if test="unifiedCoding != null">unified_coding,</if>
<if test="unitType != null">unified_coding,</if>
<if test="memorySpace != null">memory_space,</if>
<if test="longitude != null">longitude,</if>
<if test="latitude != null">latitude,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id},</if>
<if test="mainResponsiblePerson != null">#{mainResponsiblePerson},</if>
<if test="technologyResponsiblePerson != null">#{technologyResponsiblePerson},</if>
<if test="operateResponsiblePerson != null">#{operateResponsiblePerson},</if>
<if test="name != null">#{name},</if>
<if test="riskFactor != null">#{riskFactor},</if>
<if test="consequence != null">#{consequence},</if>
<if test="dangerLevel != null">#{dangerLevel},</if>
<if test="controlMeasures != null">#{controlMeasures},</if>
<if test="unifiedCoding != null">#{unifiedCoding},</if>
<if test="unit_type != null">#{unitType},</if>
<if test="memory_space != null">#{memorySpace},</if>
<if test="longitude != null">#{longitude},</if>
<if test="latitude != null">#{latitude},</if>
</trim>
</insert>
<update id="updateMajorHazardSources" parameterType="com.hbt.safety.supervision.pojo.MajorHazardSources">
update major_hazard_sources
<trim prefix="SET" suffixOverrides=",">
<if test="mainResponsiblePerson != null">main_responsible_person = #{mainResponsiblePerson},</if>
<if test="technologyResponsiblePerson != null">technology_responsible_person = #{technologyResponsiblePerson},</if>
<if test="operateResponsiblePerson != null">operate_responsible_person = #{operateResponsiblePerson},</if>
<if test="name != null">name = #{name},</if>
<if test="riskFactor != null">risk_factor = #{riskFactor},</if>
<if test="consequence != null">consequence = #{consequence},</if>
<if test="dangerLevel != null">danger_level = #{dangerLevel},</if>
<if test="controlMeasures != null">control_measures = #{controlMeasures},</if>
<if test="unifiedCoding != null">unified_coding = #{unifiedCoding},</if>
<if test="unitType != null">unit_type = #{unitType},</if>
<if test="memorySpace != null">memory_space = #{memorySpace},</if>
<if test="longitude != null">unit_type = #{longitude},</if>
<if test="latitude != null">unit_type = #{latitude},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteMajorHazardSourcesById" parameterType="Integer">
delete from major_hazard_sources where id = #{id}
</delete>
<delete id="deleteMajorHazardSourcesByIds" parameterType="String">
delete from major_hazard_sources where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
<select id="majorHazardSourcesStatistics" resultType="com.hbt.safety.supervision.pojo.MajorHazardSources">
select danger_level dangerLevel, unit_type unitType from major_hazard_sources
</select>
</mapper>

View File

@ -0,0 +1,90 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.hbt.safety.supervision.mapper.PersionMapper">
<resultMap type="com.hbt.safety.supervision.pojo.Persion" id="PersionResult">
<result property="id" column="id" />
<result property="name" column="name" />
<result property="sex" column="sex" />
<result property="age" column="age" />
<result property="identityCard" column="identity_card" />
<result property="enterpriseId" column="enterprise_id" />
<result property="phone" column="phone" />
<result property="remarks" column="remarks" />
<result property="addr" column="addr" />
</resultMap>
<sql id="selectPersionVo">
select name, phone, addr from persion
</sql>
<select id="selectPersionList" parameterType="com.hbt.safety.supervision.pojo.Persion" resultMap="PersionResult">
<include refid="selectPersionVo"/>
<where>
<if test="enterpriseId != null "> and enterprise_id = #{enterpriseId}</if>
</where>
</select>
<select id="selectPersionById" parameterType="Integer" resultMap="PersionResult">
<include refid="selectPersionVo"/>
where id = #{id}
</select>
<insert id="insertPersion" parameterType="com.hbt.safety.supervision.pojo.Persion">
insert into persion
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">id,</if>
<if test="name != null">name,</if>
<if test="sex != null">sex,</if>
<if test="age != null">age,</if>
<if test="identityCard != null">identity_card,</if>
<if test="enterpriseId != null">enterprise_id,</if>
<if test="phone != null">phone,</if>
<if test="remarks != null">remarks,</if>
<if test="addr != null">addr,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id},</if>
<if test="name != null">#{name},</if>
<if test="sex != null">#{sex},</if>
<if test="age != null">#{age},</if>
<if test="identityCard != null">#{identityCard},</if>
<if test="enterpriseId != null">#{enterpriseId},</if>
<if test="phone != null">#{phone},</if>
<if test="remarks != null">#{remarks},</if>
<if test="addr != null">#{addr},</if>
</trim>
</insert>
<update id="updatePersion" parameterType="com.hbt.safety.supervision.pojo.Persion">
update persion
<trim prefix="SET" suffixOverrides=",">
<if test="name != null">name = #{name},</if>
<if test="sex != null">sex = #{sex},</if>
<if test="age != null">age = #{age},</if>
<if test="identityCard != null">identity_card = #{identityCard},</if>
<if test="enterpriseId != null">enterprise_id = #{enterpriseId},</if>
<if test="phone != null">phone = #{phone},</if>
<if test="remarks != null">remarks = #{remarks},</if>
<if test="addr != null">addr = #{addr},</if>
</trim>
where id = #{id}
</update>
<delete id="deletePersionById" parameterType="Integer">
delete from persion where id = #{id}
</delete>
<delete id="deletePersionByIds" parameterType="String">
delete from persion where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
<select id="getPersionCount" resultType="Integer">
select count(*) from persion
</select>
</mapper>

View File

@ -0,0 +1,63 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.hbt.safety.supervision.mapper.RiskAreaMapper">
<resultMap type="com.hbt.safety.supervision.pojo.RiskArea" id="RiskAreaResult">
<result property="id" column="id" />
<result property="name" column="name" />
<result property="polgyn" column="polgyn" />
<result property="riskLevel" column="risk_level" />
</resultMap>
<sql id="selectRiskAreaVo">
select id, name, polgyn, risk_level from risk_area
</sql>
<select id="selectRiskAreaList" parameterType="com.hbt.safety.supervision.pojo.RiskArea" resultMap="RiskAreaResult">
<include refid="selectRiskAreaVo"/>
<where>
</where>
</select>
<select id="selectRiskAreaById" parameterType="Integer" resultMap="RiskAreaResult">
<include refid="selectRiskAreaVo"/>
where id = #{id}
</select>
<insert id="insertRiskArea" parameterType="com.hbt.safety.supervision.pojo.RiskArea" useGeneratedKeys="true" keyProperty="id">
insert into risk_area
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="name != null">name,</if>
<if test="polgyn != null">polgyn,</if>
<if test="riskLevel != null">risk_level,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="name != null">#{name},</if>
<if test="polgyn != null">#{polgyn},</if>
<if test="riskLevel != null">#{riskLevel},</if>
</trim>
</insert>
<update id="updateRiskArea" parameterType="com.hbt.safety.supervision.pojo.RiskArea">
update risk_area
<trim prefix="SET" suffixOverrides=",">
<if test="name != null">name = #{name},</if>
<if test="polgyn != null">polgyn = #{polgyn},</if>
<if test="riskLevel != null">risk_level = #{riskLevel},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteRiskAreaById" parameterType="Integer">
delete from risk_area where id = #{id}
</delete>
<delete id="deleteRiskAreaByIds" parameterType="String">
delete from risk_area where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -0,0 +1,97 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.hbt.safety.supervision.mapper.RiskMapper">
<resultMap type="com.hbt.safety.supervision.pojo.Risk" id="RiskResult">
<result property="id" column="id" />
<result property="name" column="name" />
<result property="riskProbability" column="risk_probability" />
<result property="riskFactor" column="risk_factor" />
<result property="affectConsequences" column="affect_consequences" />
<result property="level" column="level" />
<result property="enterpriseId" column="enterprise_id" />
<result property="responsiblePersonId" column="responsible_person_id" />
<result property="riskControlMeasures" column="risk_control_measures" />
<result property="lastReviewDate" column="last_review_date" />
<result property="majorHazardSourcesId" column="major_hazard_sources_id" />
</resultMap>
<sql id="selectRiskVo">
select id, name, risk_probability, risk_factor, affect_consequences, level, enterprise_id, responsible_person_id, risk_control_measures, last_review_date, major_hazard_sources_id from risk
</sql>
<select id="selectRiskList" parameterType="com.hbt.safety.supervision.pojo.Risk" resultMap="RiskResult">
<include refid="selectRiskVo"/>
<where>
</where>
</select>
<select id="selectRiskById" parameterType="Integer" resultMap="RiskResult">
<include refid="selectRiskVo"/>
where id = #{id}
</select>
<insert id="insertRisk" parameterType="com.hbt.safety.supervision.pojo.Risk">
insert into risk
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">id,</if>
<if test="name != null">name,</if>
<if test="riskProbability != null">risk_probability,</if>
<if test="riskFactor != null">risk_factor,</if>
<if test="affectConsequences != null">affect_consequences,</if>
<if test="level != null">level,</if>
<if test="enterpriseId != null">enterprise_id,</if>
<if test="responsiblePersonId != null">responsible_person_id,</if>
<if test="riskControlMeasures != null">risk_control_measures,</if>
<if test="lastReviewDate != null">last_review_date,</if>
<if test="majorHazardSourcesId != null">major_hazard_sources_id,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id},</if>
<if test="name != null">#{name},</if>
<if test="riskProbability != null">#{riskProbability},</if>
<if test="riskFactor != null">#{riskFactor},</if>
<if test="affectConsequences != null">#{affectConsequences},</if>
<if test="level != null">#{level},</if>
<if test="enterpriseId != null">#{enterpriseId},</if>
<if test="responsiblePersonId != null">#{responsiblePersonId},</if>
<if test="riskControlMeasures != null">#{riskControlMeasures},</if>
<if test="lastReviewDate != null">#{lastReviewDate},</if>
<if test="majorHazardSourcesId != null">#{majorHazardSourcesId},</if>
</trim>
</insert>
<update id="updateRisk" parameterType="com.hbt.safety.supervision.pojo.Risk">
update risk
<trim prefix="SET" suffixOverrides=",">
<if test="name != null">name = #{name},</if>
<if test="riskProbability != null">risk_probability = #{riskProbability},</if>
<if test="riskFactor != null">risk_factor = #{riskFactor},</if>
<if test="affectConsequences != null">affect_consequences = #{affectConsequences},</if>
<if test="level != null">level = #{level},</if>
<if test="enterpriseId != null">enterprise_id = #{enterpriseId},</if>
<if test="responsiblePersonId != null">responsible_person_id = #{responsiblePersonId},</if>
<if test="riskControlMeasures != null">risk_control_measures = #{riskControlMeasures},</if>
<if test="lastReviewDate != null">last_review_date = #{lastReviewDate},</if>
<if test="majorHazardSourcesId != null">major_hazard_sources_id = #{majorHazardSourcesId},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteRiskById" parameterType="Integer">
delete from risk where id = #{id}
</delete>
<delete id="deleteRiskByIds" parameterType="String">
delete from risk where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
<select id="riskStatistics" resultType="java.util.Map">
select level as level, count(id) as num from risk group by level
</select>
</mapper>

View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8">
<output url="file://$MODULE_DIR$/target/classes" />
<output-test url="file://$MODULE_DIR$/target/test-classes" />
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/target" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

View File

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<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">
<parent>
<groupId>com.hbt</groupId>
<artifactId>wit-park-backend</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<modules>
<module>hbt-safety-supervision-api</module>
<module>hbt-safety-supervision-biz</module>
</modules>
<artifactId>hbt-safety-supervision</artifactId>
<packaging>pom</packaging>
<description>
hbt-safety-supervision智慧安监模块
</description>
</project>

View File

@ -9,7 +9,7 @@
<version>1.0-SNAPSHOT</version>
<description>智慧园区体系</description>
<modules>
<module>hbt-ep</module>
<module>hbt-safety-supervision</module>
</modules>
<packaging>pom</packaging>