Browse Source

fix:演示数据脚本

zhongwei
haungxing 7 months ago
parent
commit
b2fa12af19
  1. 339
      hzims-service/inspect/hzinfo-inspect.iml
  2. 15
      hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/showTempalte/mapper/EventRecordTemplateMapper.java
  3. 8
      hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/showTempalte/mapper/EventTemplateMapper.java
  4. 15
      hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/showTempalte/mapper/PlanTemplateMapper.java
  5. 10
      hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/showTempalte/mapper/TaskObjectProjectContentTemplateMapper.java
  6. 9
      hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/showTempalte/mapper/TaskObjectProjectTemplateMapper.java
  7. 8
      hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/showTempalte/mapper/TaskObjectTemplateMapper.java
  8. 8
      hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/showTempalte/mapper/TaskTemplateMapper.java
  9. 8
      hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/showTempalte/service/IEventRecordTemplateService.java
  10. 8
      hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/showTempalte/service/IEventTemplateService.java
  11. 15
      hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/showTempalte/service/IPlanTemplateService.java
  12. 15
      hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/showTempalte/service/ITaskObjectProjectContentTemplateService.java
  13. 8
      hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/showTempalte/service/ITaskObjectProjectTemplateService.java
  14. 7
      hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/showTempalte/service/ITaskObjectTemplateService.java
  15. 7
      hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/showTempalte/service/ITaskTemplateService.java
  16. 19
      hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/showTempalte/service/impl/EventRecordTemplateServiceImpl.java
  17. 19
      hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/showTempalte/service/impl/EventTemplateServiceImpl.java
  18. 20
      hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/showTempalte/service/impl/PlanTemplateServiceImpl.java
  19. 19
      hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/showTempalte/service/impl/TaskObjectProjectContentTemplateServiceImpl.java
  20. 16
      hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/showTempalte/service/impl/TaskObjectProjectTemplateServiceImpl.java
  21. 19
      hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/showTempalte/service/impl/TaskObjectTemplateServiceImpl.java
  22. 17
      hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/showTempalte/service/impl/TaskTemplateServiceImpl.java
  23. 39
      hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/task/controller/CreateTaskController.java
  24. 20
      hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/task/entity/EventRecordTemplateEntity.java
  25. 27
      hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/task/entity/EventTemplateEntity.java
  26. 9
      hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/task/service/ICreateTaskService.java
  27. 269
      hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/task/service/impl/CreateTaskServiceImpl.java

339
hzims-service/inspect/hzinfo-inspect.iml

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4"> <module version="4">
<component name="FacetManager"> <component name="FacetManager">
<facet type="web" name="Web"> <facet type="web" name="Web">
<configuration> <configuration>
@ -7,6 +7,7 @@
<sourceRoots> <sourceRoots>
<root url="file://$MODULE_DIR$/src/main/java" /> <root url="file://$MODULE_DIR$/src/main/java" />
<root url="file://$MODULE_DIR$/src/main/resources" /> <root url="file://$MODULE_DIR$/src/main/resources" />
<root url="file://$MODULE_DIR$/target/generated-sources/annotations" />
</sourceRoots> </sourceRoots>
</configuration> </configuration>
</facet> </facet>
@ -14,340 +15,4 @@
<configuration /> <configuration />
</facet> </facet>
</component> </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$">
<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" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="Maven: org.springblade:blade-starter-datascope:5.1.1.RELEASE.fix.1" level="project" />
<orderEntry type="library" name="Maven: org.springblade:blade-starter-cache:5.1.1.RELEASE.fix.1" level="project" />
<orderEntry type="library" name="Maven: org.springblade:blade-starter-auth:5.1.1.RELEASE.fix.1" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-cache:2.1.16.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-context-support:5.1.17.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springblade:blade-starter-mybatis:5.1.1.RELEASE.fix.1" level="project" />
<orderEntry type="library" name="Maven: com.baomidou:mybatis-plus:3.3.2" level="project" />
<orderEntry type="library" name="Maven: com.baomidou:mybatis-plus-extension:3.3.2" level="project" />
<orderEntry type="library" name="Maven: com.baomidou:mybatis-plus-core:3.3.2" level="project" />
<orderEntry type="library" name="Maven: com.baomidou:mybatis-plus-annotation:3.3.2" level="project" />
<orderEntry type="library" name="Maven: com.github.jsqlparser:jsqlparser:3.1" level="project" />
<orderEntry type="library" name="Maven: org.mybatis:mybatis-spring:2.0.3" level="project" />
<orderEntry type="library" name="Maven: org.mybatis:mybatis:3.5.3" level="project" />
<orderEntry type="library" name="Maven: org.mybatis:mybatis-typehandlers-jsr310:1.0.2" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-jdbc:2.1.16.RELEASE" level="project" />
<orderEntry type="library" name="Maven: com.zaxxer:HikariCP:3.2.0" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-jdbc:5.1.17.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-tx:5.1.17.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-aop:2.1.16.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter:2.1.16.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-logging:2.1.16.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.apache.logging.log4j:log4j-to-slf4j:2.17.1" level="project" />
<orderEntry type="library" name="Maven: org.apache.logging.log4j:log4j-api:2.17.1" level="project" />
<orderEntry type="library" name="Maven: org.slf4j:jul-to-slf4j:1.7.30" level="project" />
<orderEntry type="library" name="Maven: javax.annotation:javax.annotation-api:1.3.2" level="project" />
<orderEntry type="library" name="Maven: org.yaml:snakeyaml:1.23" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-aop:5.1.17.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.aspectj:aspectjweaver:1.9.6" level="project" />
<orderEntry type="library" name="Maven: org.springframework.retry:spring-retry:1.2.5.RELEASE" level="project" />
<orderEntry type="library" name="Maven: com.hzinfo.framework:hnac-framework-mqtt-starters:5.1.1.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.2.1" level="project" />
<orderEntry type="library" name="Maven: org.springblade:blade-core-boot:5.1.1.RELEASE.fix.1" level="project" />
<orderEntry type="library" name="Maven: org.springblade:blade-core-db:5.1.1.RELEASE.fix.1" level="project" />
<orderEntry type="library" name="Maven: com.baomidou:mybatis-plus-boot-starter:3.3.2" level="project" />
<orderEntry type="library" name="Maven: com.alibaba:druid-spring-boot-starter:1.1.22" level="project" />
<orderEntry type="library" name="Maven: com.alibaba:druid:1.1.22" level="project" />
<orderEntry type="library" name="Maven: mysql:mysql-connector-java:8.0.27" level="project" />
<orderEntry type="library" name="Maven: com.google.protobuf:protobuf-java:3.5.1" level="project" />
<orderEntry type="library" name="Maven: com.oracle:ojdbc7:12.2.0.1" level="project" />
<orderEntry type="library" name="Maven: org.postgresql:postgresql:42.2.6" level="project" />
<orderEntry type="library" name="Maven: com.microsoft.sqlserver:mssql-jdbc:6.4.0.jre8" level="project" />
<orderEntry type="library" name="Maven: org.springblade:blade-core-secure:5.1.1.RELEASE.fix.1" level="project" />
<orderEntry type="library" name="Maven: org.springblade:blade-core-cloud:5.1.1.RELEASE.fix.1" level="project" />
<orderEntry type="library" name="Maven: org.springframework.cloud:spring-cloud-stream:2.1.4.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-validation:2.1.16.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.apache.tomcat.embed:tomcat-embed-el:9.0.37" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-messaging:5.1.17.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.integration:spring-integration-core:5.1.12.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.integration:spring-integration-jmx:5.1.12.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-tuple:1.0.0.RELEASE" level="project" />
<orderEntry type="library" name="Maven: com.esotericsoftware:kryo-shaded:3.0.3" level="project" />
<orderEntry type="library" name="Maven: com.esotericsoftware:minlog:1.3.0" level="project" />
<orderEntry type="library" name="Maven: org.springframework.integration:spring-integration-tuple:1.0.0.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.cloud:spring-cloud-function-context:2.0.2.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.cloud:spring-cloud-function-core:2.0.2.RELEASE" level="project" />
<orderEntry type="library" name="Maven: io.github.openfeign:feign-okhttp:10.4.0" level="project" />
<orderEntry type="library" name="Maven: org.springframework.cloud:spring-cloud-starter-netflix-hystrix:2.1.5.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.cloud:spring-cloud-netflix-hystrix:2.1.5.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.cloud:spring-cloud-starter-netflix-archaius:2.1.5.RELEASE" level="project" />
<orderEntry type="library" name="Maven: commons-configuration:commons-configuration:1.8" level="project" />
<orderEntry type="library" name="Maven: commons-lang:commons-lang:2.6" level="project" />
<orderEntry type="library" name="Maven: com.netflix.hystrix:hystrix-core:1.5.18" level="project" />
<orderEntry type="library" name="Maven: io.reactivex:rxjava:1.3.8" level="project" />
<orderEntry type="library" name="Maven: org.hdrhistogram:HdrHistogram:2.1.9" level="project" />
<orderEntry type="library" name="Maven: com.netflix.hystrix:hystrix-serialization:1.5.18" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: com.fasterxml.jackson.module:jackson-module-afterburner:2.13.0" level="project" />
<orderEntry type="library" name="Maven: com.netflix.hystrix:hystrix-metrics-event-stream:1.5.18" level="project" />
<orderEntry type="library" name="Maven: com.netflix.hystrix:hystrix-javanica:1.5.18" level="project" />
<orderEntry type="library" name="Maven: io.reactivex:rxjava-reactive-streams:1.2.1" level="project" />
<orderEntry type="library" name="Maven: org.reactivestreams:reactive-streams:1.0.3" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-actuator:2.1.16.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-actuator-autoconfigure:2.1.16.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-actuator:2.1.16.RELEASE" level="project" />
<orderEntry type="library" name="Maven: io.micrometer:micrometer-core:1.1.16" level="project" />
<orderEntry type="library" name="Maven: org.latencyutils:LatencyUtils:2.0.3" level="project" />
<orderEntry type="library" name="Maven: com.alibaba.cloud:spring-cloud-starter-alibaba-nacos-discovery:2.1.2.RELEASE" level="project" />
<orderEntry type="library" name="Maven: com.alibaba.nacos:nacos-client:1.2.1" level="project" />
<orderEntry type="library" name="Maven: com.alibaba.nacos:nacos-common:1.2.1" level="project" />
<orderEntry type="library" name="Maven: com.alibaba.nacos:nacos-api:1.2.1" level="project" />
<orderEntry type="library" name="Maven: io.prometheus:simpleclient:0.5.0" level="project" />
<orderEntry type="library" name="Maven: com.alibaba.spring:spring-context-support:1.0.6" level="project" />
<orderEntry type="library" name="Maven: org.springframework.cloud:spring-cloud-starter-netflix-ribbon:2.1.5.RELEASE" level="project" />
<orderEntry type="library" name="Maven: com.netflix.ribbon:ribbon:2.3.0" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: com.netflix.ribbon:ribbon-transport:2.3.0" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: io.reactivex:rxnetty-contexts:0.4.9" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: io.reactivex:rxnetty-servo:0.4.9" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: javax.inject:javax.inject:1" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: io.reactivex:rxnetty:0.4.9" level="project" />
<orderEntry type="library" name="Maven: com.netflix.ribbon:ribbon-core:2.3.0" level="project" />
<orderEntry type="library" name="Maven: com.netflix.ribbon:ribbon-httpclient:2.3.0" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: commons-collections:commons-collections:3.2.2" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: com.sun.jersey:jersey-client:1.19.1" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: com.sun.jersey:jersey-core:1.19.1" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: javax.ws.rs:jsr311-api:1.1.1" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: com.sun.jersey.contribs:jersey-apache-client4:1.19.1" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: com.netflix.servo:servo-core:0.12.21" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: com.netflix.netflix-commons:netflix-commons-util:0.3.0" level="project" />
<orderEntry type="library" name="Maven: com.netflix.ribbon:ribbon-loadbalancer:2.3.0" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: com.netflix.netflix-commons:netflix-statistics:0.1.1" level="project" />
<orderEntry type="library" name="Maven: org.junit.jupiter:junit-jupiter:5.5.2" level="project" />
<orderEntry type="library" name="Maven: org.junit.jupiter:junit-jupiter-api:5.3.2" level="project" />
<orderEntry type="library" name="Maven: org.apiguardian:apiguardian-api:1.0.0" level="project" />
<orderEntry type="library" name="Maven: org.opentest4j:opentest4j:1.1.1" level="project" />
<orderEntry type="library" name="Maven: org.junit.platform:junit-platform-commons:1.3.2" level="project" />
<orderEntry type="library" name="Maven: org.junit.jupiter:junit-jupiter-params:5.3.2" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: org.junit.jupiter:junit-jupiter-engine:5.3.2" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: org.junit.platform:junit-platform-engine:1.3.2" level="project" />
<orderEntry type="library" name="Maven: org.mockito:mockito-junit-jupiter:2.23.4" level="project" />
<orderEntry type="library" name="Maven: com.alibaba.cloud:spring-cloud-starter-alibaba-nacos-config:2.1.2.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springblade:blade-starter-redis:5.1.1.RELEASE.fix.1" level="project" />
<orderEntry type="library" name="Maven: org.springblade:blade-starter-jwt:5.1.1.RELEASE.fix.1" level="project" />
<orderEntry type="library" name="Maven: io.jsonwebtoken:jjwt:0.9.1" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-data-redis:2.1.16.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.data:spring-data-redis:2.1.19.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.data:spring-data-keyvalue:2.1.19.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.data:spring-data-commons:2.1.19.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-oxm:5.1.17.RELEASE" level="project" />
<orderEntry type="library" name="Maven: redis.clients:jedis:2.9.3" level="project" />
<orderEntry type="library" name="Maven: org.apache.commons:commons-pool2:2.6.2" level="project" />
<orderEntry type="library" name="Maven: org.redisson:redisson:3.11.6" level="project" />
<orderEntry type="library" name="Maven: io.netty:netty-common:4.1.51.Final" level="project" />
<orderEntry type="library" name="Maven: io.netty:netty-codec:4.1.51.Final" level="project" />
<orderEntry type="library" name="Maven: io.netty:netty-buffer:4.1.51.Final" level="project" />
<orderEntry type="library" name="Maven: io.netty:netty-transport:4.1.51.Final" level="project" />
<orderEntry type="library" name="Maven: io.netty:netty-resolver:4.1.51.Final" level="project" />
<orderEntry type="library" name="Maven: io.netty:netty-resolver-dns:4.1.51.Final" level="project" />
<orderEntry type="library" name="Maven: io.netty:netty-codec-dns:4.1.51.Final" level="project" />
<orderEntry type="library" name="Maven: io.netty:netty-handler:4.1.51.Final" level="project" />
<orderEntry type="library" name="Maven: javax.cache:cache-api:1.1.1" level="project" />
<orderEntry type="library" name="Maven: io.projectreactor:reactor-core:3.2.19.RELEASE" level="project" />
<orderEntry type="library" name="Maven: io.reactivex.rxjava2:rxjava:2.2.19" level="project" />
<orderEntry type="library" name="Maven: de.ruedigermoeller:fst:2.57" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.13.0" level="project" />
<orderEntry type="library" name="Maven: net.bytebuddy:byte-buddy:1.9.16" level="project" />
<orderEntry type="library" name="Maven: org.jodd:jodd-bean:5.0.13" level="project" />
<orderEntry type="library" name="Maven: org.jodd:jodd-core:5.0.13" level="project" />
<orderEntry type="library" name="Maven: org.springblade:blade-starter-log:5.1.1.RELEASE.fix.1" level="project" />
<orderEntry type="library" name="Maven: net.logstash.logback:logstash-logback-encoder:6.2" level="project" />
<orderEntry type="library" name="Maven: org.codehaus.janino:janino:3.0.15" level="project" />
<orderEntry type="library" name="Maven: org.codehaus.janino:commons-compiler:3.0.16" level="project" />
<orderEntry type="library" name="Maven: org.springblade:blade-starter-swagger:5.1.1.RELEASE.fix.1" level="project" />
<orderEntry type="library" name="Maven: com.github.xiaoymin:knife4j-micro-spring-boot-starter:2.0.4" level="project" />
<orderEntry type="library" name="Maven: com.github.xiaoymin:knife4j-spring-boot-autoconfigure:2.0.4" level="project" />
<orderEntry type="library" name="Maven: com.github.xiaoymin:knife4j-spring:2.0.4" level="project" />
<orderEntry type="library" name="Maven: com.github.xiaoymin:knife4j-annotations:2.0.4" level="project" />
<orderEntry type="library" name="Maven: com.github.xiaoymin:knife4j-core:2.0.4" level="project" />
<orderEntry type="library" name="Maven: io.springfox:springfox-bean-validators:2.9.2" level="project" />
<orderEntry type="library" name="Maven: org.springblade:blade-core-tool:5.1.1.RELEASE.fix.1" level="project" />
<orderEntry type="library" name="Maven: org.springblade:blade-core-launch:5.1.1.RELEASE.fix.1" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-web:2.1.16.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-json:2.1.16.RELEASE" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.13.0" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml.jackson.module:jackson-module-parameter-names:2.13.0" level="project" />
<orderEntry type="library" name="Maven: org.hibernate.validator:hibernate-validator:6.0.20.Final" level="project" />
<orderEntry type="library" name="Maven: org.jboss.logging:jboss-logging:3.3.3.Final" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-undertow:2.1.16.RELEASE" level="project" />
<orderEntry type="library" name="Maven: io.undertow:undertow-core:2.0.30.Final" level="project" />
<orderEntry type="library" name="Maven: org.jboss.xnio:xnio-api:3.3.8.Final" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: org.jboss.xnio:xnio-nio:3.3.8.Final" level="project" />
<orderEntry type="library" name="Maven: io.undertow:undertow-servlet:2.0.30.Final" level="project" />
<orderEntry type="library" name="Maven: org.jboss.spec.javax.annotation:jboss-annotations-api_1.2_spec:1.0.2.Final" level="project" />
<orderEntry type="library" name="Maven: io.undertow:undertow-websockets-jsr:2.0.30.Final" level="project" />
<orderEntry type="library" name="Maven: org.jboss.spec.javax.websocket:jboss-websocket-api_1.1_spec:1.1.4.Final" level="project" />
<orderEntry type="library" name="Maven: javax.servlet:javax.servlet-api:4.0.1" level="project" />
<orderEntry type="library" name="Maven: org.glassfish:javax.el:3.0.0" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.13.0" level="project" />
<orderEntry type="library" name="Maven: org.jsoup:jsoup:1.12.1" level="project" />
<orderEntry type="library" name="Maven: com.google.guava:guava:20.0" level="project" />
<orderEntry type="library" name="Maven: io.springfox:springfox-swagger2:2.9.2" level="project" />
<orderEntry type="library" name="Maven: io.swagger:swagger-annotations:1.5.20" level="project" />
<orderEntry type="library" name="Maven: io.springfox:springfox-spi:2.9.2" level="project" />
<orderEntry type="library" name="Maven: io.springfox:springfox-core:2.9.2" level="project" />
<orderEntry type="library" name="Maven: io.springfox:springfox-schema:2.9.2" level="project" />
<orderEntry type="library" name="Maven: io.springfox:springfox-swagger-common:2.9.2" level="project" />
<orderEntry type="library" name="Maven: io.springfox:springfox-spring-web:2.9.2" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml:classmate:1.4.0" level="project" />
<orderEntry type="library" name="Maven: org.springframework.plugin:spring-plugin-core:1.2.0.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.plugin:spring-plugin-metadata:1.2.0.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.mapstruct:mapstruct:1.2.0.Final" level="project" />
<orderEntry type="library" name="Maven: io.swagger:swagger-models:1.5.21" level="project" />
<orderEntry type="library" name="Maven: io.protostuff:protostuff-core:1.6.0" level="project" />
<orderEntry type="library" name="Maven: io.protostuff:protostuff-api:1.6.0" level="project" />
<orderEntry type="library" name="Maven: io.protostuff:protostuff-runtime:1.6.0" level="project" />
<orderEntry type="library" name="Maven: io.protostuff:protostuff-collectionschema:1.6.0" level="project" />
<orderEntry type="library" name="Maven: org.springblade:blade-dict-api:5.1.1.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.cloud:spring-cloud-openfeign-core:2.1.5.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.cloud:spring-cloud-netflix-ribbon:2.1.5.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.cloud:spring-cloud-netflix-archaius:2.1.5.RELEASE" 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: commons-fileupload:commons-fileupload:1.3.3" level="project" />
<orderEntry type="library" name="Maven: commons-io:commons-io:2.6" level="project" />
<orderEntry type="library" name="Maven: org.springblade:blade-user-api:5.1.1.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springblade:blade-flow-api:4.5.3.RELEASE" level="project" />
<orderEntry type="library" name="Maven: com.xuxueli:xxl-job-core:2.1.2" level="project" />
<orderEntry type="library" name="Maven: com.xuxueli:xxl-rpc-core:1.5.0" level="project" />
<orderEntry type="library" name="Maven: io.netty:netty-all:4.1.51.Final" level="project" />
<orderEntry type="library" name="Maven: com.caucho:hessian:4.0.60" level="project" />
<orderEntry type="library" name="Maven: com.xuxueli:xxl-registry-client:1.1.0" level="project" />
<orderEntry type="library" name="Maven: org.codehaus.groovy:groovy:2.5.13" level="project" />
<orderEntry type="library" scope="TEST" name="Maven: org.springblade:blade-core-test:5.1.1.RELEASE.fix.1" level="project" />
<orderEntry type="library" scope="TEST" name="Maven: org.springframework.boot:spring-boot-starter-test:2.1.16.RELEASE" level="project" />
<orderEntry type="library" scope="TEST" name="Maven: org.springframework.boot:spring-boot-test:2.1.16.RELEASE" level="project" />
<orderEntry type="library" scope="TEST" name="Maven: org.springframework.boot:spring-boot-test-autoconfigure:2.1.16.RELEASE" level="project" />
<orderEntry type="library" scope="TEST" name="Maven: com.jayway.jsonpath:json-path:2.4.0" level="project" />
<orderEntry type="library" scope="TEST" name="Maven: net.minidev:json-smart:2.3" level="project" />
<orderEntry type="library" scope="TEST" name="Maven: net.minidev:accessors-smart:1.2" level="project" />
<orderEntry type="library" scope="TEST" name="Maven: junit:junit:4.12" level="project" />
<orderEntry type="library" scope="TEST" name="Maven: org.assertj:assertj-core:3.11.1" level="project" />
<orderEntry type="library" name="Maven: org.mockito:mockito-core:2.23.4" level="project" />
<orderEntry type="library" name="Maven: net.bytebuddy:byte-buddy-agent:1.9.16" level="project" />
<orderEntry type="library" name="Maven: org.objenesis:objenesis:2.6" level="project" />
<orderEntry type="library" scope="TEST" name="Maven: org.hamcrest:hamcrest-core:1.3" level="project" />
<orderEntry type="library" scope="TEST" name="Maven: org.hamcrest:hamcrest-library:1.3" level="project" />
<orderEntry type="library" scope="TEST" name="Maven: org.skyscreamer:jsonassert:1.5.0" level="project" />
<orderEntry type="library" scope="TEST" name="Maven: com.vaadin.external.google:android-json:0.0.20131108.vaadin1" level="project" />
<orderEntry type="library" scope="TEST" name="Maven: org.xmlunit:xmlunit-core:2.6.4" level="project" />
<orderEntry type="library" scope="TEST" name="Maven: javax.xml.bind:jaxb-api:2.3.1" level="project" />
<orderEntry type="library" scope="TEST" name="Maven: javax.activation:javax.activation-api:1.2.0" level="project" />
<orderEntry type="library" name="Maven: org.springblade:blade-starter-http:5.1.1.RELEASE.fix.1" level="project" />
<orderEntry type="library" name="Maven: com.squareup.okhttp3:okhttp:3.14.5" level="project" />
<orderEntry type="library" name="Maven: com.squareup.okhttp3:logging-interceptor:3.14.5" level="project" />
<orderEntry type="library" name="Maven: com.google.code.findbugs:jsr305:3.0.2" level="project" />
<orderEntry type="module" module-name="safeproduct-api" />
<orderEntry type="library" name="Maven: org.springframework.cloud:spring-cloud-starter-openfeign:2.1.5.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.cloud:spring-cloud-starter:2.1.6.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.security:spring-security-rsa:1.0.9.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.bouncycastle:bcpkix-jdk15on:1.59" level="project" />
<orderEntry type="library" name="Maven: org.bouncycastle:bcprov-jdk15on:1.59" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-web:5.1.17.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.cloud:spring-cloud-commons:2.1.6.RELEASE" level="project" />
<orderEntry type="library" name="Maven: io.github.openfeign:feign-core:10.4.0" level="project" />
<orderEntry type="library" name="Maven: io.github.openfeign:feign-slf4j:10.4.0" level="project" />
<orderEntry type="library" name="Maven: io.github.openfeign:feign-hystrix:10.4.0" level="project" />
<orderEntry type="library" name="Maven: com.netflix.archaius:archaius-core:0.7.6" level="project" />
<orderEntry type="module" module-name="equipment-api" />
<orderEntry type="library" name="Maven: com.hnac.hzinfo.data:hzinfo-data-sdk:5.1.1.RELEASE" level="project" />
<orderEntry type="module" module-name="hzims-operational-api" />
<orderEntry type="module" module-name="weather-api" />
<orderEntry type="module" module-name="common-api" />
<orderEntry type="library" name="Maven: com.github.ben-manes.caffeine:caffeine:2.6.2" level="project" />
<orderEntry type="library" name="Maven: cn.afterturn:easypoi-base:4.4.0" level="project" />
<orderEntry type="library" name="Maven: ognl:ognl:3.2.6" level="project" />
<orderEntry type="library" name="Maven: javax.validation:validation-api:2.0.1.Final" level="project" />
<orderEntry type="library" name="Maven: cn.afterturn:easypoi-annotation:4.4.0" level="project" />
<orderEntry type="module" module-name="inspect-api" />
<orderEntry type="library" name="Maven: com.hikvision.ga:artemis-http-client:1.1.2" level="project" />
<orderEntry type="library" name="Maven: org.apache.httpcomponents:httpclient:4.5.2" level="project" />
<orderEntry type="library" name="Maven: org.apache.httpcomponents:httpcore:4.4.13" level="project" />
<orderEntry type="library" name="Maven: commons-logging:commons-logging:1.2" level="project" />
<orderEntry type="library" name="Maven: commons-codec:commons-codec:1.11" level="project" />
<orderEntry type="library" name="Maven: org.apache.commons:commons-lang3:3.8.1" level="project" />
<orderEntry type="library" name="Maven: org.slf4j:slf4j-api:1.7.30" level="project" />
<orderEntry type="library" name="Maven: net.sf.ehcache:ehcache-core:2.6.9" level="project" />
<orderEntry type="library" name="Maven: org.springblade:blade-resource-api:5.1.1.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springblade:blade-core-sms:5.1.1.RELEASE.fix.1" level="project" />
<orderEntry type="library" name="Maven: org.springblade:blade-core-push:5.1.1.RELEASE.fix.1" level="project" />
<orderEntry type="library" name="Maven: org.springblade:blade-core-speech:5.1.0.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springblade:blade-core-oss:5.1.1.RELEASE.fix.1" level="project" />
<orderEntry type="library" name="Maven: io.minio:minio:6.0.7" level="project" />
<orderEntry type="library" name="Maven: com.google.http-client:google-http-client-xml:1.20.0" level="project" />
<orderEntry type="library" name="Maven: com.google.http-client:google-http-client:1.20.0" level="project" />
<orderEntry type="library" name="Maven: xpp3:xpp3:1.1.4c" level="project" />
<orderEntry type="library" name="Maven: com.squareup.okio:okio:1.17.3" level="project" />
<orderEntry type="library" name="Maven: joda-time:joda-time:2.10.6" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-annotations:2.13.0" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-core:2.13.0" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-databind:2.13.0" level="project" />
<orderEntry type="library" name="Maven: com.google.code.findbugs:annotations:3.0.1" level="project" />
<orderEntry type="library" name="Maven: net.jcip:jcip-annotations:1.0" level="project" />
<orderEntry type="library" name="Maven: org.springblade:blade-starter-oss-minio:2.7.3.RELEASE" level="project" />
<orderEntry type="module" module-name="message-api" />
<orderEntry type="library" name="Maven: com.alibaba:easyexcel:2.2.7" level="project" />
<orderEntry type="library" name="Maven: org.apache.poi:poi:3.17" level="project" />
<orderEntry type="library" name="Maven: org.apache.commons:commons-collections4:4.4" level="project" />
<orderEntry type="library" name="Maven: org.apache.poi:poi-ooxml:3.17" level="project" />
<orderEntry type="library" name="Maven: com.github.virtuald:curvesapi:1.04" level="project" />
<orderEntry type="library" name="Maven: org.apache.poi:poi-ooxml-schemas:3.17" level="project" />
<orderEntry type="library" name="Maven: org.apache.xmlbeans:xmlbeans:2.6.0" level="project" />
<orderEntry type="library" name="Maven: stax:stax-api:1.0.1" level="project" />
<orderEntry type="library" name="Maven: cglib:cglib:3.1" level="project" />
<orderEntry type="library" name="Maven: org.ow2.asm:asm:4.2" level="project" />
<orderEntry type="library" name="Maven: org.ehcache:ehcache:3.6.3" level="project" />
<orderEntry type="library" name="Maven: com.itextpdf:itextpdf:5.5.13" level="project" />
<orderEntry type="library" name="Maven: com.itextpdf.tool:xmlworker:5.5.13" level="project" />
<orderEntry type="library" name="Maven: org.xhtmlrenderer:flying-saucer-pdf-itext5:9.0.7" level="project" />
<orderEntry type="library" name="Maven: org.xhtmlrenderer:flying-saucer-core:9.0.7" level="project" />
<orderEntry type="library" name="Maven: com.google.zxing:javase:2.2" level="project" />
<orderEntry type="library" name="Maven: com.google.zxing:core:3.1.0" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-test:5.0.5.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-core:5.1.17.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-jcl:5.1.17.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springblade:blade-system-api:5.1.1.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springblade:blade-common:5.1.1.RELEASE.fix.1" level="project" />
<orderEntry type="library" name="Maven: com.github.oshi:oshi-core:3.9.1" level="project" />
<orderEntry type="library" name="Maven: net.java.dev.jna:jna-platform:4.5.2" level="project" />
<orderEntry type="library" name="Maven: net.java.dev.jna:jna:4.5.2" level="project" />
<orderEntry type="library" name="Maven: ch.qos.logback.db:logback-classic-db:1.2.11.1" level="project" />
<orderEntry type="library" name="Maven: ch.qos.logback:logback-core:test-jar:tests:1.2.11" level="project" />
<orderEntry type="library" name="Maven: ch.qos.logback:logback-core:1.2.3" level="project" />
<orderEntry type="library" name="Maven: ch.qos.logback.db:logback-core-db:1.2.11.1" level="project" />
<orderEntry type="library" name="Maven: ch.qos.logback:logback-classic:1.2.3" level="project" />
<orderEntry type="library" name="Maven: org.reflections:reflections:0.10.2" level="project" />
<orderEntry type="library" name="Maven: org.javassist:javassist:3.28.0-GA" level="project" />
<orderEntry type="library" name="Maven: org.apache.commons:commons-compress:1.18" level="project" />
<orderEntry type="module" module-name="hzims-biz-common" />
<orderEntry type="library" name="Maven: com.alibaba:fastjson:1.2.73" level="project" />
<orderEntry type="library" name="Maven: org.springblade:blade-starter-tenant:5.1.1.RELEASE.fix.1" level="project" />
<orderEntry type="library" name="Maven: com.baomidou:dynamic-datasource-spring-boot-starter:3.3.2" level="project" />
<orderEntry type="library" name="Maven: org.springblade:blade-starter-api-crypto:5.1.1.RELEASE.fix.1" level="project" />
<orderEntry type="library" name="Maven: org.springframework.cloud:spring-cloud-context:2.1.6.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.security:spring-security-crypto:5.1.11.RELEASE" level="project" />
<orderEntry type="module" module-name="middle-api" />
<orderEntry type="library" name="Maven: cn.afterturn:easypoi-spring-boot-starter:4.4.0" level="project" />
<orderEntry type="library" name="Maven: cn.afterturn:easypoi-web:4.4.0" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-webmvc:5.1.17.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-expression:5.1.17.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-context:5.1.17.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-beans:5.1.17.RELEASE" level="project" />
<orderEntry type="library" name="Maven: cn.afterturn:easypoi-wps:4.4.0" level="project" />
<orderEntry type="library" name="Maven: cn.hutool:hutool-all:5.6.6" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-autoconfigure:2.1.16.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot:2.1.16.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.projectlombok:lombok:1.18.12" level="project" />
</component>
</module> </module>

15
hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/showTempalte/mapper/EventRecordTemplateMapper.java

@ -0,0 +1,15 @@
package com.hnac.hzinfo.inspect.showTempalte.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hnac.hzinfo.inspect.task.entity.EventRecordTemplateEntity;
/**
* @ClassName EventRecordTemplateMapper
* @description:
* @author: hx
* @create: 2023-10-12 15:08
* @Version 4.0
**/
public interface EventRecordTemplateMapper extends BaseMapper<EventRecordTemplateEntity> {
}

8
hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/showTempalte/mapper/EventTemplateMapper.java

@ -0,0 +1,8 @@
package com.hnac.hzinfo.inspect.showTempalte.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hnac.hzinfo.inspect.task.entity.EventTemplateEntity;
public interface EventTemplateMapper extends BaseMapper<EventTemplateEntity> {
}

15
hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/showTempalte/mapper/PlanTemplateMapper.java

@ -0,0 +1,15 @@
package com.hnac.hzinfo.inspect.showTempalte.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hnac.hzinfo.inspect.showTemplate.entity.PlanTemplateEntity;
/**
* @ClassName PlanTemplateMapper
* @description:
* @author: hx
* @create: 2023-10-12 10:16
* @Version 4.0
**/
public interface PlanTemplateMapper extends BaseMapper<PlanTemplateEntity> {
}

10
hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/showTempalte/mapper/TaskObjectProjectContentTemplateMapper.java

@ -0,0 +1,10 @@
package com.hnac.hzinfo.inspect.showTempalte.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hnac.hzinfo.inspect.showTemplate.entity.TaskObjectProjectContentTemplateEntity;
public interface TaskObjectProjectContentTemplateMapper extends BaseMapper<TaskObjectProjectContentTemplateEntity> {
}

9
hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/showTempalte/mapper/TaskObjectProjectTemplateMapper.java

@ -0,0 +1,9 @@
package com.hnac.hzinfo.inspect.showTempalte.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hnac.hzinfo.inspect.showTemplate.entity.TaskObjectProjectTemplateEntity;
public interface TaskObjectProjectTemplateMapper extends BaseMapper<TaskObjectProjectTemplateEntity> {
}

8
hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/showTempalte/mapper/TaskObjectTemplateMapper.java

@ -0,0 +1,8 @@
package com.hnac.hzinfo.inspect.showTempalte.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hnac.hzinfo.inspect.showTemplate.entity.TaskObjectTemplateEntity;
public interface TaskObjectTemplateMapper extends BaseMapper<TaskObjectTemplateEntity> {
}

8
hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/showTempalte/mapper/TaskTemplateMapper.java

@ -0,0 +1,8 @@
package com.hnac.hzinfo.inspect.showTempalte.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hnac.hzinfo.inspect.showTemplate.entity.TaskTemplateEntity;
public interface TaskTemplateMapper extends BaseMapper<TaskTemplateEntity> {
}

8
hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/showTempalte/service/IEventRecordTemplateService.java

@ -0,0 +1,8 @@
package com.hnac.hzinfo.inspect.showTempalte.service;
import com.hnac.hzinfo.inspect.task.entity.EventRecordTemplateEntity;
import org.springblade.core.mp.base.BaseService;
public interface IEventRecordTemplateService extends BaseService<EventRecordTemplateEntity> {
}

8
hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/showTempalte/service/IEventTemplateService.java

@ -0,0 +1,8 @@
package com.hnac.hzinfo.inspect.showTempalte.service;
import com.hnac.hzinfo.inspect.task.entity.EventTemplateEntity;
import org.springblade.core.mp.base.BaseService;
public interface IEventTemplateService extends BaseService<EventTemplateEntity> {
}

15
hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/showTempalte/service/IPlanTemplateService.java

@ -0,0 +1,15 @@
package com.hnac.hzinfo.inspect.showTempalte.service;
import com.hnac.hzinfo.inspect.showTemplate.entity.PlanTemplateEntity;
import org.springblade.core.mp.base.BaseService;
/**
* @ClassName IPlanTemplateService
* @description:
* @author: hx
* @create: 2023-10-12 10:18
* @Version 4.0
**/
public interface IPlanTemplateService extends BaseService<PlanTemplateEntity> {
}

15
hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/showTempalte/service/ITaskObjectProjectContentTemplateService.java

@ -0,0 +1,15 @@
package com.hnac.hzinfo.inspect.showTempalte.service;
import com.hnac.hzinfo.inspect.showTemplate.entity.TaskObjectProjectContentTemplateEntity;
import org.springblade.core.mp.base.BaseService;
/**
* @ClassName ITaskObjectProjectContentTemplateService
* @description:
* @author: hx
* @create: 2023-10-12 14:53
* @Version 4.0
**/
public interface ITaskObjectProjectContentTemplateService extends BaseService<TaskObjectProjectContentTemplateEntity> {
}

8
hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/showTempalte/service/ITaskObjectProjectTemplateService.java

@ -0,0 +1,8 @@
package com.hnac.hzinfo.inspect.showTempalte.service;
import com.hnac.hzinfo.inspect.showTemplate.entity.TaskObjectProjectTemplateEntity;
import org.springblade.core.mp.base.BaseService;
public interface ITaskObjectProjectTemplateService extends BaseService<TaskObjectProjectTemplateEntity> {
}

7
hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/showTempalte/service/ITaskObjectTemplateService.java

@ -0,0 +1,7 @@
package com.hnac.hzinfo.inspect.showTempalte.service;
import com.hnac.hzinfo.inspect.showTemplate.entity.TaskObjectTemplateEntity;
import org.springblade.core.mp.base.BaseService;
public interface ITaskObjectTemplateService extends BaseService<TaskObjectTemplateEntity> {
}

7
hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/showTempalte/service/ITaskTemplateService.java

@ -0,0 +1,7 @@
package com.hnac.hzinfo.inspect.showTempalte.service;
import com.hnac.hzinfo.inspect.showTemplate.entity.TaskTemplateEntity;
import org.springblade.core.mp.base.BaseService;
public interface ITaskTemplateService extends BaseService<TaskTemplateEntity> {
}

19
hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/showTempalte/service/impl/EventRecordTemplateServiceImpl.java

@ -0,0 +1,19 @@
package com.hnac.hzinfo.inspect.showTempalte.service.impl;
import com.hnac.hzinfo.inspect.showTempalte.mapper.EventRecordTemplateMapper;
import com.hnac.hzinfo.inspect.showTempalte.service.IEventRecordTemplateService;
import com.hnac.hzinfo.inspect.task.entity.EventRecordTemplateEntity;
import org.springblade.core.mp.base.BaseServiceImpl;
import org.springframework.stereotype.Service;
/**
* @ClassName EventRecordTemplateServiceImpl
* @description:
* @author: hx
* @create: 2023-10-12 15:16
* @Version 4.0
**/
@Service
public class EventRecordTemplateServiceImpl extends BaseServiceImpl<EventRecordTemplateMapper, EventRecordTemplateEntity> implements IEventRecordTemplateService {
}

19
hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/showTempalte/service/impl/EventTemplateServiceImpl.java

@ -0,0 +1,19 @@
package com.hnac.hzinfo.inspect.showTempalte.service.impl;
import com.hnac.hzinfo.inspect.showTempalte.mapper.EventTemplateMapper;
import com.hnac.hzinfo.inspect.showTempalte.service.IEventTemplateService;
import com.hnac.hzinfo.inspect.task.entity.EventTemplateEntity;
import org.springblade.core.mp.base.BaseServiceImpl;
import org.springframework.stereotype.Service;
/**
* @ClassName EventTemplateServiceImpl
* @description:
* @author: hx
* @create: 2023-10-12 15:11
* @Version 4.0
**/
@Service
public class EventTemplateServiceImpl extends BaseServiceImpl<EventTemplateMapper,EventTemplateEntity> implements IEventTemplateService {
}

20
hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/showTempalte/service/impl/PlanTemplateServiceImpl.java

@ -0,0 +1,20 @@
package com.hnac.hzinfo.inspect.showTempalte.service.impl;
import com.hnac.hzinfo.inspect.showTempalte.mapper.PlanTemplateMapper;
import com.hnac.hzinfo.inspect.showTempalte.service.IPlanTemplateService;
import com.hnac.hzinfo.inspect.showTemplate.entity.PlanTemplateEntity;
import org.springblade.core.mp.base.BaseServiceImpl;
import org.springframework.stereotype.Service;
/**
* @ClassName PlanTemplateServiceImpl
* @description:
* @author: hx
* @create: 2023-10-12 10:18
* @Version 4.0
**/
@Service
public class PlanTemplateServiceImpl extends BaseServiceImpl<PlanTemplateMapper, PlanTemplateEntity> implements IPlanTemplateService {
}

19
hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/showTempalte/service/impl/TaskObjectProjectContentTemplateServiceImpl.java

@ -0,0 +1,19 @@
package com.hnac.hzinfo.inspect.showTempalte.service.impl;
import com.hnac.hzinfo.inspect.showTempalte.mapper.TaskObjectProjectContentTemplateMapper;
import com.hnac.hzinfo.inspect.showTempalte.service.ITaskObjectProjectContentTemplateService;
import com.hnac.hzinfo.inspect.showTemplate.entity.TaskObjectProjectContentTemplateEntity;
import org.springblade.core.mp.base.BaseServiceImpl;
import org.springframework.stereotype.Service;
/**
* @ClassName TaskObjectProjectContentTemplateServiceImpl
* @description:
* @author: hx
* @create: 2023-10-12 14:54
* @Version 4.0
**/
@Service
public class TaskObjectProjectContentTemplateServiceImpl extends BaseServiceImpl<TaskObjectProjectContentTemplateMapper, TaskObjectProjectContentTemplateEntity> implements ITaskObjectProjectContentTemplateService {
}

16
hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/showTempalte/service/impl/TaskObjectProjectTemplateServiceImpl.java

@ -0,0 +1,16 @@
package com.hnac.hzinfo.inspect.showTempalte.service.impl;
import com.hnac.hzinfo.inspect.showTempalte.mapper.TaskObjectProjectTemplateMapper;
import com.hnac.hzinfo.inspect.showTempalte.service.ITaskObjectProjectTemplateService;
import com.hnac.hzinfo.inspect.showTemplate.entity.TaskObjectProjectTemplateEntity;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springblade.core.mp.base.BaseServiceImpl;
import org.springframework.stereotype.Service;
@Service
@AllArgsConstructor
@Slf4j
public class TaskObjectProjectTemplateServiceImpl extends BaseServiceImpl<TaskObjectProjectTemplateMapper, TaskObjectProjectTemplateEntity> implements ITaskObjectProjectTemplateService {
}

19
hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/showTempalte/service/impl/TaskObjectTemplateServiceImpl.java

@ -0,0 +1,19 @@
package com.hnac.hzinfo.inspect.showTempalte.service.impl;
import com.hnac.hzinfo.inspect.showTempalte.mapper.TaskObjectTemplateMapper;
import com.hnac.hzinfo.inspect.showTempalte.service.ITaskObjectTemplateService;
import com.hnac.hzinfo.inspect.showTemplate.entity.TaskObjectTemplateEntity;
import org.springblade.core.mp.base.BaseServiceImpl;
import org.springframework.stereotype.Service;
/**
* @ClassName TaskObjectTemplateServiceImpl
* @description:
* @author: hx
* @create: 2023-10-12 13:34
* @Version 4.0
**/
@Service
public class TaskObjectTemplateServiceImpl extends BaseServiceImpl<TaskObjectTemplateMapper, TaskObjectTemplateEntity> implements ITaskObjectTemplateService {
}

17
hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/showTempalte/service/impl/TaskTemplateServiceImpl.java

@ -0,0 +1,17 @@
package com.hnac.hzinfo.inspect.showTempalte.service.impl;
import com.hnac.hzinfo.inspect.showTempalte.mapper.TaskTemplateMapper;
import com.hnac.hzinfo.inspect.showTempalte.service.ITaskTemplateService;
import com.hnac.hzinfo.inspect.showTemplate.entity.TaskTemplateEntity;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springblade.core.mp.base.BaseServiceImpl;
import org.springframework.stereotype.Service;
@Service
@AllArgsConstructor
@Slf4j
public class TaskTemplateServiceImpl extends BaseServiceImpl<TaskTemplateMapper, TaskTemplateEntity> implements ITaskTemplateService {
}

39
hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/task/controller/CreateTaskController.java

@ -0,0 +1,39 @@
package com.hnac.hzinfo.inspect.task.controller;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import com.hnac.hzinfo.inspect.request.GenerateTaskVO;
import com.hnac.hzinfo.inspect.task.service.ICreateTaskService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.springblade.core.boot.ctrl.BladeController;
import org.springblade.core.tool.api.R;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* @ClassName CreateTaskController
* @description:
* @author: hx
* @create: 2023-10-12 17:31
* @Version 4.0
**/
@RestController
@RequestMapping("/create/task")
@AllArgsConstructor
@Api(value = "创建巡检任务管理",tags = "创建巡检任务管理")
public class CreateTaskController extends BladeController {
private final ICreateTaskService createTaskService;
@PostMapping("/createShowTask")
@ApiOperation("生成演示数据")
@ApiOperationSupport(order = 1)
public R createShowTask(@RequestBody GenerateTaskVO request) {
createTaskService.createShowTask(request);
return R.success("成功!");
}
}

20
hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/task/entity/EventRecordTemplateEntity.java

@ -0,0 +1,20 @@
package com.hnac.hzinfo.inspect.task.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
@Data
@TableName("hz_st_ex_event_record_template")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "巡检情况对象-演示模板", description = "")
public class EventRecordTemplateEntity extends EventRecordEntity implements Serializable {
@ApiModelProperty("是否启用")
private Boolean enable;
}

27
hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/task/entity/EventTemplateEntity.java

@ -0,0 +1,27 @@
package com.hnac.hzinfo.inspect.task.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
/**
* @ClassName EventTemplateEntity
* @description:
* @author: hx
* @create: 2023-10-12 15:04
* @Version 4.0
**/
@Data
@TableName("hz_st_ex_event_template")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "巡检任务情况-演示数据模板", description = "巡检任务情况-演示数据模板")
public class EventTemplateEntity extends EventEntity implements Serializable {
@ApiModelProperty("是否启用")
private Boolean enable;
}

9
hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/task/service/ICreateTaskService.java

@ -0,0 +1,9 @@
package com.hnac.hzinfo.inspect.task.service;
import com.hnac.hzinfo.inspect.request.GenerateTaskVO;
public interface ICreateTaskService {
void createShowTask(GenerateTaskVO request);
}

269
hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/task/service/impl/CreateTaskServiceImpl.java

@ -0,0 +1,269 @@
package com.hnac.hzinfo.inspect.task.service.impl;
import com.alibaba.fastjson.JSON;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.google.common.collect.Lists;
import com.hnac.hzinfo.inspect.obj.utils.CodeUtils;
import com.hnac.hzinfo.inspect.plan.entity.PlanEntity;
import com.hnac.hzinfo.inspect.plan.service.IPlanService;
import com.hnac.hzinfo.inspect.request.GenerateTaskVO;
import com.hnac.hzinfo.inspect.showTempalte.service.*;
import com.hnac.hzinfo.inspect.showTemplate.entity.*;
import com.hnac.hzinfo.inspect.task.entity.*;
import com.hnac.hzinfo.inspect.task.service.*;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springblade.core.tool.utils.BeanUtil;
import org.springblade.core.tool.utils.CollectionUtil;
import org.springblade.core.tool.utils.DateUtil;
import org.springblade.system.user.entity.User;
import org.springblade.system.user.feign.IUserClient;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.util.List;
import java.util.Optional;
import java.util.stream.Collectors;
/**
* @ClassName CreateTaskServiceImpl
* @description:
* @author: hx
* @create: 2023-10-12 09:20
* @Version 4.0
**/
@Service
@Slf4j
@AllArgsConstructor
public class CreateTaskServiceImpl implements ICreateTaskService {
private final IUserClient userClient;
private final IPlanTemplateService planTemplateService;
private final IPlanService planService;
private final ITaskTemplateService taskTemplateService;
private final ITaskService taskService;
private final ITaskUserService taskUserService;
private final ITaskObjectTemplateService taskObjectTemplateService;
private final ITaskObjectService taskObjectService;
private final ITaskObjectProjectTemplateService taskObjectProjectTemplateService;
private final ITaskObjectProjectService taskObjectProjectService;
private final ITaskObjectProjectContentTemplateService taskObjectProjectContentTemplateService;
private final ITaskObjectProjectContentService taskObjectProjectContentService;
private final IEventTemplateService eventTemplateService;
private final IEventService eventService;
private final IEventRecordTemplateService eventRecordTemplateService;
private final IEventRecordService eventRecordService;
@Override
@Transactional
public void createShowTask(GenerateTaskVO request) {
// R<List<User>> userListR = userClient.userListByDeptId(request.getAreaDeptId());
// Assert.isTrue(userListR.isSuccess() && CollectionUtil.isNotEmpty(userListR.getData()),() ->{
// throw new ServiceException("获取当前机构下用户列表失败!");
// });
// List<User> userList = userListR.getData();
User user = new User();
user.setId(1699662065616064514L);
List<User> userList = Lists.newArrayList(user);
List<PlanTemplateEntity> planList = planTemplateService.list(Wrappers.<PlanTemplateEntity>lambdaQuery().eq(PlanTemplateEntity::getEnable, true));
planList.forEach(planTemplate -> this.generateTask(request,planTemplate,userList));
}
private void generateTask(GenerateTaskVO request,PlanTemplateEntity planTemplate,List<User> userList) {
// 创建计划
PlanEntity plan = this.convert(request, planTemplate, userList);
planService.save(plan);
// 创建任务
List<TaskTemplateEntity> taskList = taskTemplateService.list(
Wrappers.<TaskTemplateEntity>lambdaQuery().eq(TaskTemplateEntity::getPlanId, planTemplate.getId())
.eq(TaskTemplateEntity::getEnable, true)
);
List<LocalDate> dates = this.dateList(request.getStartDate(), request.getEndDate());
if(CollectionUtil.isNotEmpty(dates)) {
dates.forEach(date -> {
taskList.forEach(taskTemplate -> {
TaskEntity task = this.convert(request, taskTemplate, userList,date,plan);
taskService.save(task);
// 创建任务执行人员
TaskUserEntity taskUser = this.getUserByTaskId(request,task.getId(), userList.get(0).getId(), task.getPlanStartTime());
taskUserService.save(taskUser);
// 创建任务执行对象
List<TaskObjectTemplateEntity> taskObjectTemplates = taskObjectTemplateService.list(Wrappers.<TaskObjectTemplateEntity>lambdaQuery().eq(TaskObjectTemplateEntity::getTaskId, taskTemplate.getId()).eq(TaskObjectTemplateEntity::getEnable, true));
List<TaskObjectEntity> TaskObjectList = taskObjectTemplates.stream().map(taskObjectTemplate -> this.convert(request, taskObjectTemplate, userList,task.getId(),date)).collect(Collectors.toList());
taskObjectService.saveBatch(TaskObjectList);
// 创建任务执行对象项目关联表
List<TaskObjectProjectTemplateEntity> taskObjectProjectTemplates = taskObjectProjectTemplateService.list(Wrappers.<TaskObjectProjectTemplateEntity>lambdaQuery().eq(TaskObjectProjectTemplateEntity::getTaskId, taskTemplate.getId()).eq(TaskObjectProjectTemplateEntity::getEnable, true));
List<TaskObjectProjectEntity> taskObjectProjectList = taskObjectProjectTemplates.stream().map(taskObjectProjectTemplate -> this.convert(request, taskObjectProjectTemplate, userList, task.getId(), date)).collect(Collectors.toList());
taskObjectProjectService.saveBatch(taskObjectProjectList);
// 创建任务执行对象内容项目关联表
List<TaskObjectProjectContentTemplateEntity> taskObjectProjectContentTemplates = taskObjectProjectContentTemplateService.list(Wrappers.<TaskObjectProjectContentTemplateEntity>lambdaQuery().eq(TaskObjectProjectContentTemplateEntity::getTaskId, taskTemplate.getId()).eq(TaskObjectProjectContentTemplateEntity::getEnable, true));
List<TaskObjectProjectContentEntity> taskObjectProjectContentList = taskObjectProjectContentTemplates.stream().map(taskObjectProjectContentTemplate -> this.convert(request, taskObjectProjectContentTemplate, userList, task.getId(), date)).collect(Collectors.toList());
taskObjectProjectContentService.saveBatch(taskObjectProjectContentList);
// 创建任务执行结果表
List<EventTemplateEntity> eventTemplates = eventTemplateService.list(Wrappers.<EventTemplateEntity>lambdaQuery().eq(EventTemplateEntity::getTaskId, taskTemplate.getId()).eq(EventTemplateEntity::getEnable, true));
eventTemplates.forEach(eventTemplate -> {
EventEntity event = this.convert(request, eventTemplate, userList, task.getId(), date);
eventService.save(event);
List<EventRecordTemplateEntity> eventRecordTemplates = eventRecordTemplateService.list(Wrappers.<EventRecordTemplateEntity>lambdaQuery().eq(EventRecordTemplateEntity::getEventId, eventTemplate.getId()).eq(EventRecordTemplateEntity::getEnable, true));
List<EventRecordEntity> eventRecordList = eventRecordTemplates.stream().map(eventRecordTemplate -> this.convert(request, eventRecordTemplate, userList, event.getId(), date)).collect(Collectors.toList());
eventRecordService.saveBatch(eventRecordList);
});
});
});
}
}
private EventRecordEntity convert(GenerateTaskVO request, EventRecordTemplateEntity eventRecordTemplate, List<User> userList, Long eventId, LocalDate date) {
EventRecordEntity result = BeanUtil.copy(eventRecordTemplate,EventRecordEntity.class);
result.setId(null);
result.setEventId(eventId);
result.setCreateUser(userList.get(0).getId());
result.setCreateDept(request.getAreaDeptId());
result.setCreateTime(DateUtil.toDate(LocalDateTime.of(date,LocalTime.MIN)));
result.setUpdateUser(userList.get(0).getId());
result.setCreateTime(DateUtil.toDate(LocalDateTime.of(date,LocalTime.MIN)));
result.setTenantId(null);
log.info("转换后的任务对象项目内容为:{}",JSON.toJSONString(result));
return result;
}
private EventEntity convert(GenerateTaskVO request, EventTemplateEntity eventTemplate, List<User> userList, Long taskId, LocalDate date) {
EventTemplateEntity result = BeanUtil.copy(eventTemplate,EventTemplateEntity.class);
result.setId(null);
result.setTaskId(taskId);
result.setTitle(Optional.ofNullable(result.getTitle()).map(s -> s.replaceAll("stationName",request.getStationName())).orElse(null));
result.setDescription(Optional.ofNullable(result.getDescription()).map(s -> s.replaceAll("stationName",request.getStationName())).orElse(null));
result.setCreateUser(userList.get(0).getId());
result.setCreateDept(request.getAreaDeptId());
result.setCreateTime(DateUtil.toDate(LocalDateTime.of(date,LocalTime.MIN)));
result.setUpdateUser(userList.get(0).getId());
result.setCreateTime(DateUtil.toDate(LocalDateTime.of(date,LocalTime.MIN)));
result.setTenantId(null);
log.info("转换后的任务对象项目内容为:{}",JSON.toJSONString(result));
return result;
}
private TaskObjectProjectContentEntity convert(GenerateTaskVO request, TaskObjectProjectContentTemplateEntity taskObjectProjectContentTemplate, List<User> userList, Long taskId, LocalDate date) {
TaskObjectProjectContentEntity result = BeanUtil.copy(taskObjectProjectContentTemplate,TaskObjectProjectContentEntity.class);
result.setId(null);
result.setCode(CodeUtils.randomCode());
result.setTaskId(taskId);
result.setName(result.getName().replaceAll("stationName",request.getStationName()));
result.setCreateUser(userList.get(0).getId());
result.setCreateDept(request.getAreaDeptId());
result.setCreateTime(DateUtil.toDate(LocalDateTime.of(date,LocalTime.MIN)));
result.setUpdateUser(userList.get(0).getId());
result.setCreateTime(DateUtil.toDate(LocalDateTime.of(date,LocalTime.MIN)));
result.setTenantId(null);
log.info("转换后的任务对象项目内容为:{}",JSON.toJSONString(result));
return result;
}
private TaskObjectProjectEntity convert(GenerateTaskVO request, TaskObjectProjectTemplateEntity taskObjectProjectTemplate, List<User> userList, Long taskId, LocalDate date) {
TaskObjectProjectEntity result = BeanUtil.copy(taskObjectProjectTemplate,TaskObjectProjectEntity.class);
result.setId(null);
result.setTaskId(taskId);
result.setCode(CodeUtils.randomCode());
result.setName(result.getName().replaceAll("stationName",request.getStationName()));
result.setCreateUser(userList.get(0).getId());
result.setCreateDept(request.getAreaDeptId());
result.setCreateTime(DateUtil.toDate(LocalDateTime.of(date,LocalTime.MIN)));
result.setUpdateUser(userList.get(0).getId());
result.setCreateTime(DateUtil.toDate(LocalDateTime.of(date,LocalTime.MIN)));
result.setTenantId(null);
log.info("转换后的任务对象项目为:{}",JSON.toJSONString(result));
return result;
}
private TaskObjectEntity convert(GenerateTaskVO request, TaskObjectTemplateEntity taskObjectTemplate, List<User> userList,Long taskId,LocalDate date) {
TaskObjectEntity result = BeanUtil.copy(taskObjectTemplate,TaskObjectEntity.class);
result.setId(null);
result.setTaskId(taskId);
result.setCode(CodeUtils.randomCode());
result.setName(result.getName().replaceAll("stationName",request.getStationName()));
result.setCreateUser(userList.get(0).getId());
result.setCreateDept(request.getAreaDeptId());
result.setCreateTime(DateUtil.toDate(LocalDateTime.of(date,LocalTime.MIN)));
result.setUpdateUser(userList.get(0).getId());
result.setCreateTime(DateUtil.toDate(LocalDateTime.of(date,LocalTime.MIN)));
result.setTaskId(taskId);
result.setTenantId(null);
log.info("转换后的任务对象为:{}",JSON.toJSONString(result));
return result;
}
private TaskUserEntity getUserByTaskId(GenerateTaskVO request,Long taskId,Long userId,LocalDateTime claimTime) {
TaskUserEntity result = new TaskUserEntity();
result.setUserId(userId);
result.setTaskId(taskId);
result.setClaimTime(claimTime);
result.setClaimStatus("1");
result.setCreateUser(userId);
result.setCreateDept(request.getAreaDeptId());
result.setCreateTime(DateUtil.toDate(LocalDateTime.of(claimTime.toLocalDate(),LocalTime.MIN)));
result.setUpdateUser(userId);
result.setCreateTime(DateUtil.toDate(LocalDateTime.of(claimTime.toLocalDate(),LocalTime.MIN)));
result.setTenantId(null);
return result;
}
private TaskEntity convert(GenerateTaskVO request,TaskTemplateEntity taskTemplate,List<User> userList,LocalDate date,PlanEntity plan) {
TaskEntity result = BeanUtil.copy(taskTemplate,TaskEntity.class);
result.setPlanId(plan.getId());
result.setPlanName(plan.getName());
result.setBatchNumber(DateUtil.format(date,"yyyy_MM_dd")+"N");
result.setPlanStartTime(LocalDateTime.of(date,request.getStartTime()));
result.setPlanEndTime(LocalDateTime.of(date,request.getEndTime()));
result.setStartTime(LocalDateTime.of(date,request.getStartTime()));
result.setEndTime(LocalDateTime.of(date,request.getEndTime()));
result.setCreateUser(userList.get(0).getId());
result.setCreateDept(request.getAreaDeptId());
result.setCreateTime(DateUtil.toDate(LocalDateTime.of(date,LocalTime.MIN)));
result.setUpdateUser(userList.get(0).getId());
result.setCreateTime(DateUtil.toDate(LocalDateTime.of(date,LocalTime.MIN)));
result.setStartRemindTime(LocalDateTime.of(date,LocalTime.MIN));
result.setEndRemindTime(LocalDateTime.of(date,LocalTime.MAX));
result.setTenantId(null);
result.setId(null);
log.info("转换后的任务为:{}",JSON.toJSONString(result));
return result;
}
private PlanEntity convert(GenerateTaskVO request,PlanTemplateEntity planTemplate,List<User> userList) {
PlanEntity result = BeanUtil.copy(planTemplate,PlanEntity.class);
result.setId(null);
result.setTenantId(null);
result.setCode(CodeUtils.randomCode());
result.setName(result.getName().replaceAll("stationName",request.getStationName()));
result.setStartTime(request.getStartDate());
result.setEndTime(request.getEndDate());
result.setApprover(userList.get(0).getId());
result.setApproveTime(LocalDateTime.of(request.getStartDate(),LocalTime.MIN));
result.setCreateUser(userList.get(0).getId());
result.setCreateDept(request.getAreaDeptId());
result.setCreateTime(DateUtil.toDate(LocalDateTime.of(request.getStartDate(),LocalTime.MIN)));
result.setCreateUser(userList.get(0).getId());
result.setUpdateUser(userList.get(0).getId());
result.setUpdateTime(DateUtil.toDate(LocalDateTime.of(request.getStartDate(),LocalTime.MIN)));
result.setRouteData(result.getRouteData().replaceAll("stationName",request.getStationName()));
result.setRouteName(result.getRouteName().replaceAll("stationName",request.getStationName()));
result.setExecTimeJson(result.getExecTimeJson().replaceAll("startTime",DateUtil.format(request.getStartTime(),DateUtil.PATTERN_TIME)).replaceAll("endtTime",DateUtil.format(request.getEndTime(),DateUtil.PATTERN_TIME)));
log.info("转换后的计划为:{}", JSON.toJSONString(result));
return result;
}
private List<LocalDate> dateList(LocalDate startDate,LocalDate endDate) {
List<LocalDate> result = Lists.newArrayList();
do {
//log.info(DateUtil.format(startDate,DateUtil.PATTERN_DATE));
result.add(startDate);
startDate = startDate.plusDays(1);
}
while(startDate.isBefore(endDate.plusDays(1)));
return result;
}
}
Loading…
Cancel
Save