设备管理模块--设备维护、设备类型维护更新
parent
0bbd169dea
commit
dae0eacf45
@ -0,0 +1,210 @@
|
||||
<?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="web" name="Web">
|
||||
<configuration>
|
||||
<webroots />
|
||||
</configuration>
|
||||
</facet>
|
||||
<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$">
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/target" />
|
||||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
<orderEntry type="library" name="Maven: cn.hutool:hutool-all:5.0.6" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.foreverwin.modular:modular-core:1.0-SNAPSHOT.standlone-hana" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-web:1.5.22.RELEASE" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: org.springframework.boot:spring-boot-starter-tomcat:1.5.22.RELEASE" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: org.apache.tomcat.embed:tomcat-embed-core:8.5.43" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: org.apache.tomcat:tomcat-annotations-api:8.5.43" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: org.apache.tomcat.embed:tomcat-embed-el:8.5.43" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: org.apache.tomcat.embed:tomcat-embed-websocket:8.5.43" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.hibernate:hibernate-validator:5.3.6.Final" level="project" />
|
||||
<orderEntry type="library" name="Maven: javax.validation:validation-api:1.1.0.Final" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.jboss.logging:jboss-logging:3.3.2.Final" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.fasterxml:classmate:1.3.4" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-databind:2.8.11.3" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-web:4.3.25.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-webmvc:4.3.25.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-expression:4.3.25.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-log4j2:1.5.22.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.logging.log4j:log4j-slf4j-impl:2.7" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.logging.log4j:log4j-api:2.7" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.logging.log4j:log4j-core:2.7" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.slf4j:jcl-over-slf4j:1.7.26" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.slf4j:jul-to-slf4j:1.7.26" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-test:1.5.22.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-test:1.5.22.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-test-autoconfigure:1.5.22.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.jayway.jsonpath:json-path:2.2.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: net.minidev:json-smart:2.2.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: net.minidev:accessors-smart:1.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: junit:junit:4.12" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.assertj:assertj-core:2.6.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.mockito:mockito-core:1.10.19" level="project" />
|
||||
<orderEntry type="library" scope="RUNTIME" name="Maven: org.objenesis:objenesis:2.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.hamcrest:hamcrest-core:1.3" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.hamcrest:hamcrest-library:1.3" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.skyscreamer:jsonassert:1.4.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.vaadin.external.google:android-json:0.0.20131108.vaadin1" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-core:4.3.25.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-test:4.3.25.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.baomidou:dynamic-datasource-spring-boot-starter:2.5.6" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-jdbc:1.5.1.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-jdbc:4.3.25.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-aop:1.5.22.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.aspectj:aspectjweaver:1.8.14" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.mybatis:mybatis:3.4.2" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.baomidou:mybatis-plus-boot-starter:3.1.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.baomidou:mybatis-plus:3.1.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.baomidou:mybatis-plus-extension:3.1.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.baomidou:mybatis-plus-core:3.1.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.baomidou:mybatis-plus-annotation:3.1.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.github.jsqlparser:jsqlparser:1.4" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.mybatis:mybatis-spring:2.0.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.zaxxer:HikariCP:2.5.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: mysql:mysql-connector-java:5.1.48" level="project" />
|
||||
<orderEntry type="library" name="Maven: ojdbc6:ojdbc6:11.2.0.4" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.sap:ngdbc:2.5.52" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.sap:sapdbc:7.9.09" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-legacy:1.1.0.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.mybatis:mybatis-typehandlers-jsr310:1.0.2" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.8.11" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-annotations:2.8.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-core:2.8.11" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.cxf:cxf-rt-frontend-jaxws:3.1.12" level="project" />
|
||||
<orderEntry type="library" name="Maven: xml-resolver:xml-resolver:1.2" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.ow2.asm:asm:5.0.4" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.cxf:cxf-core:3.1.12" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.codehaus.woodstox:woodstox-core-asl:4.4.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.codehaus.woodstox:stax2-api:3.1.4" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.ws.xmlschema:xmlschema-core:2.2.2" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.cxf:cxf-rt-bindings-soap:3.1.12" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.cxf:cxf-rt-wsdl:3.1.12" level="project" />
|
||||
<orderEntry type="library" name="Maven: wsdl4j:wsdl4j:1.6.3" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.cxf:cxf-rt-databinding-jaxb:3.1.12" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.sun.xml.bind:jaxb-impl:2.2.11" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.sun.xml.bind:jaxb-core:2.2.11" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.cxf:cxf-rt-bindings-xml:3.1.12" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.cxf:cxf-rt-frontend-simple:3.1.12" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.cxf:cxf-rt-ws-addr:3.1.12" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.cxf:cxf-rt-ws-policy:3.1.12" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.neethi:neethi:3.0.3" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.cxf:cxf-rt-transports-http:3.1.12" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.sap:sapjco:NTAMD64-3.0.6" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.eclipse.jetty:jetty-continuation:9.4.19.v20190610" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.eclipse.jetty:jetty-http:9.4.19.v20190610" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.eclipse.jetty:jetty-io:9.4.19.v20190610" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.eclipse.jetty:jetty-server:9.4.19.v20190610" level="project" />
|
||||
<orderEntry type="library" name="Maven: javax.servlet:javax.servlet-api:3.1.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.eclipse.jetty:jetty-util:9.4.19.v20190610" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.eclipse.jetty:jetty-websocket:8.2.0.v20160908" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.alibaba:fastjson:1.2.73" level="project" />
|
||||
<orderEntry type="library" name="Maven: commons-fileupload:commons-fileupload:1.4" level="project" />
|
||||
<orderEntry type="library" name="Maven: commons-io:commons-io:2.2" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.geronimo.specs:geronimo-jta_1.0.1B_spec:1.0.1" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.foreverwin.modular:modular-melib:15.4.0.2.RELEASE" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.activity.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.annotation.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.appconfig.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.backgroundprocess.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.browse.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.certification.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.collaboration.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.common.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.container.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.customdata.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.datacollection.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.dataformat.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.datatransfer.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.datatype.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.demand.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.document.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.extension.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.framework.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.framework.api-internal:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.framework.globalization:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.integration.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.integration.cncdnc.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.integration.erp.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.inventory.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.labor.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.legacy.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.messaging.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.nonconformance.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.numbering.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.plant.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.productdefinition.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.production.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.productiondate.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.reasoncode.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.reporting.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.resourcetracking.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.sampling.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.schedulingstandards.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.script.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.security.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.setpoint.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.status.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.timeelement.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.tooling.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.uom.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.user.api:154.0.2" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:service-core.api:3.4.0" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:common-libs:3.0" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:sap-usermanagement-api:1.0" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: com.sap:me.common.domain:154.0.2" level="project" />
|
||||
<orderEntry type="module" module-name="common" />
|
||||
<orderEntry type="library" name="Maven: javax.mail:mail:1.4.7" level="project" />
|
||||
<orderEntry type="library" name="Maven: javax.activation:activation:1.1.1" level="project" />
|
||||
<orderEntry type="module" module-name="meapi" />
|
||||
<orderEntry type="library" name="Maven: org.apache.poi:poi:3.8" level="project" />
|
||||
<orderEntry type="library" name="Maven: commons-codec:commons-codec:1.10" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.poi:poi-ooxml:3.8" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.poi:poi-ooxml-schemas:3.8" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.xmlbeans:xmlbeans:2.3.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: stax:stax-api:1.0.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: dom4j:dom4j:1.6.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: xml-apis:xml-apis:1.4.01" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-activemq:2.1.3.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter:1.5.22.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot:1.5.22.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-autoconfigure:1.5.22.RELEASE" level="project" />
|
||||
<orderEntry type="library" scope="RUNTIME" name="Maven: org.yaml:snakeyaml:1.17" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-jms:4.3.25.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-aop:4.3.25.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-beans:4.3.25.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-context:4.3.25.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-messaging:4.3.25.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-tx:4.3.25.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.activemq:activemq-broker:5.14.5" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.activemq:activemq-openwire-legacy:5.14.5" level="project" />
|
||||
<orderEntry type="library" name="Maven: javax.jms:javax.jms-api:2.0.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.activemq:activemq-pool:5.13.4" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.slf4j:slf4j-api:1.7.26" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.activemq:activemq-jms-pool:5.14.5" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.geronimo.specs:geronimo-jms_1.1_spec:1.1.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.activemq:activemq-client:5.14.5" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.fusesource.hawtbuf:hawtbuf:1.11" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.geronimo.specs:geronimo-j2ee-management_1.1_spec:1.0.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.commons:commons-pool2:2.4.3" level="project" />
|
||||
<orderEntry type="library" name="Maven: commons-lang:commons-lang:2.4" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.google.guava:guava:28.0-jre" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.google.guava:failureaccess:1.0.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.google.code.findbugs:jsr305:3.0.2" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.checkerframework:checker-qual:2.8.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.google.errorprone:error_prone_annotations:2.3.2" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.google.j2objc:j2objc-annotations:1.3" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.codehaus.mojo:animal-sniffer-annotations:1.17" level="project" />
|
||||
</component>
|
||||
</module>
|
@ -1,4 +0,0 @@
|
||||
package com.foreverwin.com.equip.controller;
|
||||
|
||||
public class EquipTypeController {
|
||||
}
|
@ -0,0 +1,64 @@
|
||||
package com.foreverwin.mesnac.equip.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.foreverwin.modular.core.util.CommonMethods;
|
||||
import com.foreverwin.modular.core.util.R;
|
||||
import com.foreverwin.mesnac.equip.model.EmailGroup;
|
||||
import com.foreverwin.mesnac.equip.service.EmailGroupService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Max
|
||||
* @since 2021-03-11
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/Z-EMAIL-GROUP")
|
||||
public class EmailGroupController {
|
||||
|
||||
@Autowired
|
||||
public EmailGroupService emailGroupService;
|
||||
|
||||
/**
|
||||
* 根据id查询
|
||||
*
|
||||
* @param emailGroup 主键
|
||||
* @return
|
||||
*/
|
||||
@ResponseBody
|
||||
@GetMapping("/search/{emailGroup}")
|
||||
public R getEmailGroupById(@PathVariable("emailGroup") String emailGroup) {
|
||||
String site = CommonMethods.getSite();
|
||||
EmailGroup _emailGroup = new EmailGroup();
|
||||
_emailGroup.setSite( site );
|
||||
_emailGroup.setEmailGroup( emailGroup );
|
||||
QueryWrapper<EmailGroup> queryWrapper = new QueryWrapper<>();
|
||||
queryWrapper.setEntity( _emailGroup );
|
||||
EmailGroup eg = emailGroupService.getOne( queryWrapper );
|
||||
if ( eg == null ) {
|
||||
return R.failed( "邮件群组["+emailGroup+"]不存在" );
|
||||
}
|
||||
return R.ok(eg);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询所有数据
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@ResponseBody
|
||||
@GetMapping("")
|
||||
public R getEmailGroupList(EmailGroup emailGroup){
|
||||
String site = CommonMethods.getSite();
|
||||
List<EmailGroup> result;
|
||||
emailGroup.setSite( site );
|
||||
QueryWrapper<EmailGroup> queryWrapper = new QueryWrapper<>();
|
||||
queryWrapper.setEntity(emailGroup);
|
||||
result = emailGroupService.list(queryWrapper);
|
||||
return R.ok(result);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,193 @@
|
||||
package com.foreverwin.mesnac.equip.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.foreverwin.mesnac.equip.model.Equip;
|
||||
import com.foreverwin.mesnac.equip.model.EquipType;
|
||||
import com.foreverwin.mesnac.equip.model.EquipTypeEquip;
|
||||
import com.foreverwin.mesnac.equip.service.EquipService;
|
||||
import com.foreverwin.mesnac.equip.service.EquipTypeEquipService;
|
||||
import com.foreverwin.mesnac.equip.service.EquipTypeService;
|
||||
import com.foreverwin.mesnac.meapi.model.CustomFields;
|
||||
import com.foreverwin.mesnac.meapi.service.CustomFieldsService;
|
||||
import com.foreverwin.mesnac.meapi.util.StringUtils;
|
||||
import com.foreverwin.modular.core.exception.BusinessException;
|
||||
import com.foreverwin.modular.core.util.CommonMethods;
|
||||
import com.foreverwin.modular.core.util.R;
|
||||
import com.foreverwin.mesnac.common.enums.HandleEnum;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Max
|
||||
* @since 2020-10-10
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/EQUIP")
|
||||
public class EquipController {
|
||||
|
||||
@Autowired
|
||||
public EquipService equipService;
|
||||
@Autowired
|
||||
public EquipTypeEquipService equipTypeEquipService;
|
||||
@Autowired
|
||||
public CustomFieldsService customFieldsService;
|
||||
@Autowired
|
||||
public EquipTypeService equipTypeService;
|
||||
|
||||
/**
|
||||
* 根据设备查询
|
||||
* @return
|
||||
*/
|
||||
@ResponseBody
|
||||
@GetMapping("/search/{equip}")
|
||||
public R getEquipById(@PathVariable("equip") String equip) {
|
||||
String site = CommonMethods.getSite();
|
||||
String handle = HandleEnum.RESOURCE.getHandle(site, equip);
|
||||
String equipType = "";
|
||||
Equip _equip = equipService.getById( handle );
|
||||
if ( _equip == null ) {
|
||||
return R.failed(null,"设备["+equip+"]不存在" );
|
||||
}
|
||||
QueryWrapper<EquipTypeEquip> queryWrapper = new QueryWrapper<>();
|
||||
queryWrapper.eq("EQUIP_BO",_equip.getHandle() );
|
||||
EquipTypeEquip equipTypeEquip = equipTypeEquipService.getOne( queryWrapper );
|
||||
if ( equipTypeEquip != null ) {
|
||||
String equipTypeBo = equipTypeEquip.getEquipTypeBo();
|
||||
equipType = (equipTypeBo.split(":")[1]).split(",")[1];
|
||||
}
|
||||
//查询设备自定义数据
|
||||
List<CustomFields> statusList = customFieldsService.getCustomFields( handle,"STATUS" );
|
||||
String status = "";
|
||||
String department = "";
|
||||
String serialNum = "";
|
||||
if ( statusList.size() != 0 ) {
|
||||
CustomFields statusField = statusList.get(0);
|
||||
status = statusField.getValue();
|
||||
}
|
||||
List<CustomFields> departmentList = customFieldsService.getCustomFields( handle,"DEPARTMENT" );
|
||||
if ( departmentList.size() != 0 ) {
|
||||
CustomFields departmentField = departmentList.get(0);
|
||||
department = departmentField.getValue();
|
||||
}
|
||||
List<CustomFields> serialNumberList = customFieldsService.getCustomFields( handle,"SERIAL_NUMBER" );
|
||||
if ( serialNumberList.size() != 0 ) {
|
||||
CustomFields serialNumberField = serialNumberList.get(0);
|
||||
serialNum = serialNumberField.getValue();
|
||||
}
|
||||
_equip.setEquipType( equipType );
|
||||
_equip.setStatus( status );
|
||||
_equip.setDepartment( department );
|
||||
_equip.setSerialNumber( serialNum );
|
||||
return R.ok( _equip );
|
||||
}
|
||||
|
||||
/**
|
||||
* 设备弹出框
|
||||
* @return
|
||||
*/
|
||||
@ResponseBody
|
||||
@GetMapping("")
|
||||
public R getEquipList(Equip equip){
|
||||
String site = CommonMethods.getSite();
|
||||
equip.setSite( site );
|
||||
List<Equip> result;
|
||||
QueryWrapper<Equip> queryWrapper = new QueryWrapper<>();
|
||||
queryWrapper.setEntity(equip);
|
||||
result = equipService.list(queryWrapper);
|
||||
Collections.sort(result);
|
||||
return R.ok(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存
|
||||
* @param equip 传递的实体
|
||||
* @return null 失败 实体成功
|
||||
*/
|
||||
@ResponseBody
|
||||
@PostMapping("/save")
|
||||
public R save(@RequestBody Equip equip) {
|
||||
String site = CommonMethods.getSite();
|
||||
//校验设备类型是否存在 2020/12/04
|
||||
String equipType = equip.getEquipType();
|
||||
if ( StringUtils.notEmpty( equipType ) ) {
|
||||
QueryWrapper<EquipType> queryWrapper = new QueryWrapper<>();
|
||||
EquipType et = new EquipType();
|
||||
et.setSite(site);
|
||||
et.setEquipType( equipType );
|
||||
queryWrapper.setEntity(et);
|
||||
EquipType _et = equipTypeService.getOne( queryWrapper );
|
||||
if ( _et == null ) {
|
||||
throw BusinessException.build("设备类型不存在:"+equipType);
|
||||
}
|
||||
}
|
||||
//-----------------------------------------------------------------------------------------------
|
||||
String handle = equip.getHandle();
|
||||
String equipName = equip.getResrce();
|
||||
String resourceHandle = HandleEnum.RESOURCE.getHandle(site, equipName);
|
||||
equip.setHandle( resourceHandle );
|
||||
String status = equip.getStatusBo();
|
||||
String statusBo = HandleEnum.STATUS.getHandle(site, status);
|
||||
equip.setSite( site );
|
||||
equip.setStatusBo( statusBo );
|
||||
equip.setCreatedDateTime( new Date() );
|
||||
equip.setModifiedDateTime( new Date() );
|
||||
//判断是更新还是新增 2020/12/01
|
||||
Equip ep =equipService.getById( resourceHandle );
|
||||
if ( ep != null && !ep.getHandle().equals(handle) ) {
|
||||
throw BusinessException.build(equipName+" 已存在,请先检索");
|
||||
}
|
||||
//删除原先设备类型
|
||||
QueryWrapper<EquipTypeEquip> queryWrapper = new QueryWrapper<>();
|
||||
queryWrapper.eq("EQUIP_BO", resourceHandle );
|
||||
equipTypeEquipService.remove( queryWrapper );
|
||||
//保存设备类型设备
|
||||
String resourceType = equip.getEquipType();
|
||||
if ( resourceType != null && !resourceType.equals("")) {
|
||||
String resourceTypeHandle = HandleEnum.RESOURCE_TYPE.getHandle(site, resourceType);
|
||||
// String resourceTypeResourceHandle = HandleUtil.buildResourceTypeResourceHandle(resourceTypeHandle, resourceHandle);
|
||||
String resourceTypeResourceHandle = HandleEnum.RESOURCE_TYPE_RESOURCEBO.getHandle(resourceTypeHandle,resourceHandle);
|
||||
EquipTypeEquip equipTypeEquip = new EquipTypeEquip();
|
||||
equipTypeEquip.setHandle(resourceTypeResourceHandle);
|
||||
equipTypeEquip.setEquipTypeBo(resourceTypeHandle);
|
||||
equipTypeEquip.setEquipBo(resourceHandle);
|
||||
equipTypeEquipService.save(equipTypeEquip);
|
||||
}
|
||||
//保存设备自定义数据
|
||||
String _status = equip.getStatus();
|
||||
String _serialNumber = equip.getSerialNumber();
|
||||
String _department = equip.getDepartment();
|
||||
if (StringUtils.notEmpty( _status )) {
|
||||
customFieldsService.setCustom(resourceHandle,"STATUS",_status);
|
||||
}
|
||||
if (StringUtils.notEmpty( _serialNumber )) {
|
||||
customFieldsService.setCustom(resourceHandle,"SERIAL_NUMBER",_serialNumber);
|
||||
}
|
||||
if (StringUtils.notEmpty( _department )) {
|
||||
customFieldsService.setCustom(resourceHandle,"DEPARTMENT",_department);
|
||||
}
|
||||
//保存或更新设备
|
||||
return R.ok(equipService.saveOrUpdate( equip ),"保存成功");
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除
|
||||
* @return
|
||||
*/
|
||||
@ResponseBody
|
||||
@GetMapping("/remove/{equip}")
|
||||
public R removeById(@PathVariable("equip") String equip) {
|
||||
String site = CommonMethods.getSite();
|
||||
String handle = HandleEnum.RESOURCE.getHandle(site,equip);
|
||||
//删除与设备类型的关系
|
||||
QueryWrapper<EquipTypeEquip> queryWrapper = new QueryWrapper<>();
|
||||
queryWrapper.eq("EQUIP_BO",handle );
|
||||
equipTypeEquipService.remove( queryWrapper );
|
||||
//删除设备
|
||||
return R.ok( equipService.removeById( handle ),"删除成功" );
|
||||
}
|
||||
}
|
@ -0,0 +1,125 @@
|
||||
package com.foreverwin.mesnac.equip.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.foreverwin.mesnac.common.enums.HandleEnum;
|
||||
import com.foreverwin.modular.core.exception.BusinessException;
|
||||
import com.foreverwin.modular.core.util.CommonMethods;
|
||||
import com.foreverwin.modular.core.util.R;
|
||||
import com.foreverwin.mesnac.equip.model.Equip;
|
||||
import com.foreverwin.mesnac.equip.model.EquipType;
|
||||
import com.foreverwin.mesnac.equip.model.EquipTypeEquip;
|
||||
import com.foreverwin.mesnac.equip.service.EquipTypeEquipService;
|
||||
import com.foreverwin.mesnac.equip.service.EquipTypeService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Max
|
||||
* @since 2020-10-10
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/Z-EQUIP-TYPE")
|
||||
public class EquipTypeController {
|
||||
|
||||
@Autowired
|
||||
public EquipTypeService equipTypeService;
|
||||
@Autowired
|
||||
public EquipTypeEquipService equipTypeEquipService;
|
||||
|
||||
/**
|
||||
* 根据设备类型查询
|
||||
* @return
|
||||
*/
|
||||
@ResponseBody
|
||||
@GetMapping("/search/{equipType}")
|
||||
public R getEquipTypeById(@PathVariable("equipType") String equipType) {
|
||||
String site = CommonMethods.getSite();
|
||||
String handle = HandleEnum.RESOURCE_TYPE.getHandle(site,equipType);
|
||||
EquipType _equipType = equipTypeService.getById( handle );
|
||||
if ( _equipType == null ) {
|
||||
return R.failed( null,"设备类型不存在" );
|
||||
}
|
||||
return R.ok( _equipType,"检索成功" );
|
||||
}
|
||||
|
||||
/**
|
||||
* 设备类型弹出框
|
||||
* @return
|
||||
*/
|
||||
@ResponseBody
|
||||
@GetMapping("")
|
||||
public R getEquipTypeList(EquipType equipType){
|
||||
String site = CommonMethods.getSite();
|
||||
equipType.setSite( site );
|
||||
List<EquipType> result;
|
||||
QueryWrapper<EquipType> queryWrapper = new QueryWrapper<>();
|
||||
queryWrapper.setEntity(equipType);
|
||||
result = equipTypeService.list( queryWrapper );
|
||||
return R.ok( result );
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过设备检验设备类型是否存在
|
||||
* @return
|
||||
*/
|
||||
@ResponseBody
|
||||
@GetMapping("/equip")
|
||||
public R getEquipTypeByEquip(Equip equip){
|
||||
String site = CommonMethods.getSite();
|
||||
String resource = equip.getResrce();
|
||||
String resourceBo = HandleEnum.RESOURCE.getHandle(site,resource);
|
||||
|
||||
EquipTypeEquip equipTypeEquip = new EquipTypeEquip();
|
||||
equipTypeEquip.setEquipBo( resourceBo );
|
||||
QueryWrapper<EquipTypeEquip> queryWrapper = new QueryWrapper<>();
|
||||
queryWrapper.setEntity( equipTypeEquip );
|
||||
EquipTypeEquip _equipTypeEquip = equipTypeEquipService.getOne( queryWrapper );
|
||||
if ( _equipTypeEquip == null ) {
|
||||
return R.failed(null,"当前设备["+resource+"]未维护设备类型");
|
||||
}
|
||||
return R.ok( _equipTypeEquip);
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存
|
||||
*/
|
||||
@ResponseBody
|
||||
@PostMapping("/save")
|
||||
public R save(@RequestBody EquipType equipType) {
|
||||
String site = CommonMethods.getSite();
|
||||
String _handle = equipType.getHandle();
|
||||
String equipTypeName = equipType.getEquipType();
|
||||
String handle = HandleEnum.RESOURCE_TYPE.getHandle(site,equipTypeName);
|
||||
equipType.setHandle( handle );
|
||||
equipType.setSite( site );
|
||||
equipType.setCreatedDateTime( new Date() );
|
||||
equipType.setModifiedDateTime( new Date() );
|
||||
//判断是更新还是新增 2020/12/01
|
||||
EquipType et =equipTypeService.getById( handle );
|
||||
if ( et != null && !et.getHandle().equals(_handle) ) {
|
||||
throw BusinessException.build(equipTypeName+" 已存在,请先检索");
|
||||
}
|
||||
return R.ok( equipTypeService.saveOrUpdate(equipType),"保存成功" );
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除
|
||||
* @return
|
||||
*/
|
||||
@ResponseBody
|
||||
@GetMapping("/remove/{equipType}")
|
||||
public R removeById(@PathVariable("equipType") String equipType) {
|
||||
String site = CommonMethods.getSite();
|
||||
String handle = HandleEnum.RESOURCE_TYPE.getHandle(site,equipType);
|
||||
//删除与设备的关系
|
||||
QueryWrapper<EquipTypeEquip> queryWrapper = new QueryWrapper<>();
|
||||
queryWrapper.eq("EQUIP_TYPE_BO",handle );
|
||||
equipTypeEquipService.remove( queryWrapper );
|
||||
//删除设备类型
|
||||
return R.ok( equipTypeService.removeById( handle ),"删除成功" );
|
||||
}
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
package com.foreverwin.mesnac.equip.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.foreverwin.mesnac.equip.model.EmailGroup;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author Max
|
||||
* @since 2021-03-11
|
||||
*/
|
||||
@Repository
|
||||
public interface EmailGroupMapper extends BaseMapper<EmailGroup> {
|
||||
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
package com.foreverwin.mesnac.equip.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
import com.foreverwin.mesnac.equip.model.Equip;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author Max
|
||||
* @since 2020-10-10
|
||||
*/
|
||||
@Repository
|
||||
public interface EquipMapper extends BaseMapper<Equip> {
|
||||
List<Equip> selectBySiteType(@Param("site") String site, @Param("type") String type);
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
package com.foreverwin.mesnac.equip.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.foreverwin.mesnac.equip.model.EquipTypeEquip;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author Max
|
||||
* @since 2020-10-10
|
||||
*/
|
||||
@Repository
|
||||
public interface EquipTypeEquipMapper extends BaseMapper<EquipTypeEquip> {
|
||||
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
package com.foreverwin.mesnac.equip.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.foreverwin.mesnac.equip.model.EquipType;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author Max
|
||||
* @since 2020-10-10
|
||||
*/
|
||||
@Repository
|
||||
public interface EquipTypeMapper extends BaseMapper<EquipType> {
|
||||
|
||||
}
|
@ -0,0 +1,123 @@
|
||||
package com.foreverwin.mesnac.equip.model;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author Max
|
||||
* @since 2021-03-11
|
||||
*/
|
||||
|
||||
@TableName("Z_EMAIL_GROUP")
|
||||
|
||||
public class EmailGroup extends Model<EmailGroup> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* EmailGroupBO:SITE,EMAIL_GROUP
|
||||
*/
|
||||
@TableId(value = "HANDLE", type = IdType.INPUT)
|
||||
private String handle;
|
||||
/**
|
||||
* 工厂
|
||||
*/
|
||||
@TableField("SITE")
|
||||
private String site;
|
||||
/**
|
||||
* 邮箱群组
|
||||
*/
|
||||
@TableField("EMAIL_GROUP")
|
||||
private String emailGroup;
|
||||
/**
|
||||
* 邮箱群组描述
|
||||
*/
|
||||
@TableField("DESCRIPTION")
|
||||
private String description;
|
||||
/**
|
||||
* 维护时间
|
||||
*/
|
||||
@TableField("CREATED_DATE_TIME")
|
||||
private LocalDateTime createdDateTime;
|
||||
/**
|
||||
* 维护人员
|
||||
*/
|
||||
@TableField("CREATED_USER")
|
||||
private String createdUser;
|
||||
|
||||
|
||||
public String getHandle() {
|
||||
return handle;
|
||||
}
|
||||
|
||||
public void setHandle(String handle) {
|
||||
this.handle = handle;
|
||||
}
|
||||
|
||||
public String getSite() {
|
||||
return site;
|
||||
}
|
||||
|
||||
public void setSite(String site) {
|
||||
this.site = site;
|
||||
}
|
||||
|
||||
public String getEmailGroup() {
|
||||
return emailGroup;
|
||||
}
|
||||
|
||||
public void setEmailGroup(String emailGroup) {
|
||||
this.emailGroup = emailGroup;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public LocalDateTime getCreatedDateTime() {
|
||||
return createdDateTime;
|
||||
}
|
||||
|
||||
public void setCreatedDateTime(LocalDateTime createdDateTime) {
|
||||
this.createdDateTime = createdDateTime;
|
||||
}
|
||||
|
||||
public String getCreatedUser() {
|
||||
return createdUser;
|
||||
}
|
||||
|
||||
public void setCreatedUser(String createdUser) {
|
||||
this.createdUser = createdUser;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Serializable pkVal() {
|
||||
return this.handle;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "EmailGroup{" +
|
||||
"handle = " + handle +
|
||||
", site = " + site +
|
||||
", emailGroup = " + emailGroup +
|
||||
", description = " + description +
|
||||
", createdDateTime = " + createdDateTime +
|
||||
", createdUser = " + createdUser +
|
||||
"}";
|
||||
}
|
||||
}
|
@ -0,0 +1,161 @@
|
||||
package com.foreverwin.mesnac.equip.model;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author Max
|
||||
* @since 2020-10-10
|
||||
*/
|
||||
|
||||
@TableName("RESRCE")
|
||||
|
||||
public class Equip extends Model<Equip> implements Comparable<Equip> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@TableId(value = "HANDLE", type = IdType.INPUT)
|
||||
private String handle;
|
||||
@TableField("SITE")
|
||||
private String site;
|
||||
@TableField("RESRCE")
|
||||
private String resrce;
|
||||
@TableField("DESCRIPTION")
|
||||
private String description;
|
||||
@TableField("STATUS_BO")
|
||||
private String statusBo;
|
||||
@TableField(exist = false)
|
||||
private String equipType;
|
||||
@TableField("CREATED_DATE_TIME")
|
||||
private Date createdDateTime;
|
||||
@TableField("MODIFIED_DATE_TIME")
|
||||
private Date modifiedDateTime;
|
||||
@TableField(exist = false)
|
||||
private String status;
|
||||
@TableField(exist = false)
|
||||
private String department;
|
||||
@TableField(exist = false)
|
||||
private String serialNumber;
|
||||
|
||||
public String getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(String status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getDepartment() {
|
||||
return department;
|
||||
}
|
||||
|
||||
public void setDepartment(String department) {
|
||||
this.department = department;
|
||||
}
|
||||
|
||||
public String getSerialNumber() {
|
||||
return serialNumber;
|
||||
}
|
||||
|
||||
public void setSerialNumber(String serialNumber) {
|
||||
this.serialNumber = serialNumber;
|
||||
}
|
||||
|
||||
public String getHandle() {
|
||||
return handle;
|
||||
}
|
||||
|
||||
public void setHandle(String handle) {
|
||||
this.handle = handle;
|
||||
}
|
||||
|
||||
public String getSite() {
|
||||
return site;
|
||||
}
|
||||
|
||||
public void setSite(String site) {
|
||||
this.site = site;
|
||||
}
|
||||
|
||||
public String getResrce() {
|
||||
return resrce;
|
||||
}
|
||||
|
||||
public void setResrce(String resrce) {
|
||||
this.resrce = resrce;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public String getStatusBo() {
|
||||
return statusBo;
|
||||
}
|
||||
|
||||
public void setStatusBo(String statusBo) {
|
||||
this.statusBo = statusBo;
|
||||
}
|
||||
|
||||
public String getEquipType() {
|
||||
return equipType;
|
||||
}
|
||||
|
||||
public void setEquipType(String equipType) {
|
||||
this.equipType = equipType;
|
||||
}
|
||||
|
||||
public Date getCreatedDateTime() {
|
||||
return createdDateTime;
|
||||
}
|
||||
|
||||
public void setCreatedDateTime(Date createdDateTime) {
|
||||
this.createdDateTime = createdDateTime;
|
||||
}
|
||||
|
||||
public Date getModifiedDateTime() {
|
||||
return modifiedDateTime;
|
||||
}
|
||||
|
||||
public void setModifiedDateTime(Date modifiedDateTime) {
|
||||
this.modifiedDateTime = modifiedDateTime;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Serializable pkVal() {
|
||||
return this.handle;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "Equip{" +
|
||||
"handle = " + handle +
|
||||
", site = " + site +
|
||||
", resrce = " + resrce +
|
||||
", description = " + description +
|
||||
", statusBo = " + statusBo +
|
||||
", createdDateTime = " + createdDateTime +
|
||||
", modifiedDateTime = " + modifiedDateTime +
|
||||
"}";
|
||||
}
|
||||
|
||||
@Override
|
||||
public int compareTo(Equip o) {
|
||||
return this.getResrce().compareTo(o.getResrce());
|
||||
}
|
||||
}
|
@ -0,0 +1,106 @@
|
||||
package com.foreverwin.mesnac.equip.model;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author Max
|
||||
* @since 2020-10-10
|
||||
*/
|
||||
|
||||
@TableName("Z_PMS_EQUIP_TYPE")
|
||||
|
||||
public class EquipType extends Model<EquipType> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@TableId(value = "HANDLE", type = IdType.INPUT)
|
||||
private String handle;
|
||||
@TableField("SITE")
|
||||
private String site;
|
||||
@TableField("EQUIP_TYPE")
|
||||
private String equipType;
|
||||
@TableField("DESCRIPTION")
|
||||
private String description;
|
||||
@TableField("CREATED_DATE_TIME")
|
||||
private Date createdDateTime;
|
||||
@TableField("MODIFIED_DATE_TIME")
|
||||
private Date modifiedDateTime;
|
||||
|
||||
|
||||
public String getHandle() {
|
||||
return handle;
|
||||
}
|
||||
|
||||
public void setHandle(String handle) {
|
||||
this.handle = handle;
|
||||
}
|
||||
|
||||
public String getSite() {
|
||||
return site;
|
||||
}
|
||||
|
||||
public void setSite(String site) {
|
||||
this.site = site;
|
||||
}
|
||||
|
||||
public String getEquipType() {
|
||||
return equipType;
|
||||
}
|
||||
|
||||
public void setEquipType(String equipType) {
|
||||
this.equipType = equipType;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public Date getCreatedDateTime() {
|
||||
return createdDateTime;
|
||||
}
|
||||
|
||||
public void setCreatedDateTime(Date createdDateTime) {
|
||||
this.createdDateTime = createdDateTime;
|
||||
}
|
||||
|
||||
public Date getModifiedDateTime() {
|
||||
return modifiedDateTime;
|
||||
}
|
||||
|
||||
public void setModifiedDateTime(Date modifiedDateTime) {
|
||||
this.modifiedDateTime = modifiedDateTime;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Serializable pkVal() {
|
||||
return this.handle;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "EquipType{" +
|
||||
"handle = " + handle +
|
||||
", site = " + site +
|
||||
", equipType = " + equipType +
|
||||
", description = " + description +
|
||||
", createdDateTime = " + createdDateTime +
|
||||
", modifiedDateTime = " + modifiedDateTime +
|
||||
"}";
|
||||
}
|
||||
}
|
@ -0,0 +1,71 @@
|
||||
package com.foreverwin.mesnac.equip.model;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author Max
|
||||
* @since 2020-10-10
|
||||
*/
|
||||
|
||||
@TableName("Z_PMS_EQUIP_TYPE_EQUIP")
|
||||
|
||||
public class EquipTypeEquip extends Model<EquipTypeEquip> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@TableId(value = "HANDLE", type = IdType.INPUT)
|
||||
private String handle;
|
||||
@TableField("EQUIP_TYPE_BO")
|
||||
private String equipTypeBo;
|
||||
@TableField("EQUIP_BO")
|
||||
private String equipBo;
|
||||
|
||||
|
||||
public String getHandle() {
|
||||
return handle;
|
||||
}
|
||||
|
||||
public void setHandle(String handle) {
|
||||
this.handle = handle;
|
||||
}
|
||||
|
||||
public String getEquipTypeBo() {
|
||||
return equipTypeBo;
|
||||
}
|
||||
|
||||
public void setEquipTypeBo(String equipTypeBo) {
|
||||
this.equipTypeBo = equipTypeBo;
|
||||
}
|
||||
|
||||
public String getEquipBo() {
|
||||
return equipBo;
|
||||
}
|
||||
|
||||
public void setEquipBo(String equipBo) {
|
||||
this.equipBo = equipBo;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Serializable pkVal() {
|
||||
return this.handle;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "EquipTypeEquip{" +
|
||||
"handle = " + handle +
|
||||
", equipTypeBo = " + equipTypeBo +
|
||||
", equipBo = " + equipBo +
|
||||
"}";
|
||||
}
|
||||
}
|
@ -0,0 +1,28 @@
|
||||
package com.foreverwin.mesnac.equip.service;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.foreverwin.mesnac.equip.model.EmailGroup;
|
||||
import com.foreverwin.modular.core.util.FrontPage;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 服务类
|
||||
* </p>
|
||||
*
|
||||
* @author Max
|
||||
* @since 2021-03-11
|
||||
*/
|
||||
public interface EmailGroupService extends IService<EmailGroup> {
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
* @param frontPage
|
||||
* @return
|
||||
*/
|
||||
IPage<EmailGroup> selectPage(FrontPage<EmailGroup> frontPage, EmailGroup emailGroup);
|
||||
|
||||
List<EmailGroup> selectList(EmailGroup emailGroup);
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
package com.foreverwin.mesnac.equip.service;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.foreverwin.mesnac.equip.model.Equip;
|
||||
import com.foreverwin.modular.core.util.FrontPage;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 服务类
|
||||
* </p>
|
||||
*
|
||||
* @author Max
|
||||
* @since 2020-10-10
|
||||
*/
|
||||
public interface EquipService extends IService<Equip> {
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
* @param frontPage
|
||||
* @return
|
||||
*/
|
||||
IPage<Equip> selectPage(FrontPage<Equip> frontPage, Equip equip);
|
||||
|
||||
List<Equip> selectList(Equip equip);
|
||||
|
||||
List<Equip> selectBySiteType(String site, String type);
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
package com.foreverwin.mesnac.equip.service;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.foreverwin.mesnac.equip.model.EquipTypeEquip;
|
||||
import com.foreverwin.modular.core.util.FrontPage;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 服务类
|
||||
* </p>
|
||||
*
|
||||
* @author Max
|
||||
* @since 2020-10-10
|
||||
*/
|
||||
public interface EquipTypeEquipService extends IService<EquipTypeEquip> {
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
* @param frontPage
|
||||
* @return
|
||||
*/
|
||||
IPage<EquipTypeEquip> selectPage(FrontPage<EquipTypeEquip> frontPage, EquipTypeEquip equipTypeEquip);
|
||||
|
||||
List<EquipTypeEquip> selectList(EquipTypeEquip equipTypeEquip);
|
||||
|
||||
String selectEquipTypeByEquip ( String site,String equip );
|
||||
}
|
@ -0,0 +1,26 @@
|
||||
package com.foreverwin.mesnac.equip.service;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.foreverwin.mesnac.equip.model.EquipType;
|
||||
import com.foreverwin.modular.core.util.FrontPage;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 服务类
|
||||
* </p>
|
||||
*
|
||||
* @author Max
|
||||
* @since 2020-10-10
|
||||
*/
|
||||
public interface EquipTypeService extends IService<EquipType> {
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
* @param frontPage
|
||||
* @return
|
||||
*/
|
||||
IPage<EquipType> selectPage(FrontPage<EquipType> frontPage, EquipType equipType);
|
||||
|
||||
//List<EquipType> selectList(EquipType equipType);
|
||||
}
|
@ -0,0 +1,48 @@
|
||||
package com.foreverwin.mesnac.equip.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.foreverwin.mesnac.equip.mapper.EmailGroupMapper;
|
||||
import com.foreverwin.mesnac.equip.model.EmailGroup;
|
||||
import com.foreverwin.mesnac.equip.service.EmailGroupService;
|
||||
import com.foreverwin.modular.core.util.FrontPage;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 服务实现类
|
||||
* </p>
|
||||
*
|
||||
* @author Max
|
||||
* @since 2021-03-11
|
||||
*/
|
||||
@Service
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public class EmailGroupServiceImpl extends ServiceImpl<EmailGroupMapper, EmailGroup> implements EmailGroupService {
|
||||
|
||||
|
||||
@Autowired
|
||||
private EmailGroupMapper emailGroupMapper;
|
||||
|
||||
@Override
|
||||
public IPage<EmailGroup> selectPage(FrontPage<EmailGroup> frontPage, EmailGroup emailGroup) {
|
||||
QueryWrapper<EmailGroup> queryWrapper = new QueryWrapper<>();
|
||||
queryWrapper.setEntity(emailGroup);
|
||||
return super.page(frontPage.getPagePlus(), queryWrapper);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<EmailGroup> selectList(EmailGroup emailGroup) {
|
||||
QueryWrapper<EmailGroup> queryWrapper = new QueryWrapper<>();
|
||||
queryWrapper.setEntity(emailGroup);
|
||||
return super.list(queryWrapper);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,50 @@
|
||||
package com.foreverwin.mesnac.equip.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.foreverwin.mesnac.equip.mapper.EquipMapper;
|
||||
import com.foreverwin.mesnac.equip.model.Equip;
|
||||
import com.foreverwin.mesnac.equip.service.EquipService;
|
||||
import com.foreverwin.modular.core.util.FrontPage;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 服务实现类
|
||||
* </p>
|
||||
*
|
||||
* @author Max
|
||||
* @since 2020-10-10
|
||||
*/
|
||||
@Service
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public class EquipServiceImpl extends ServiceImpl<EquipMapper, Equip> implements EquipService {
|
||||
|
||||
|
||||
@Autowired
|
||||
private EquipMapper equipMapper;
|
||||
|
||||
@Override
|
||||
public IPage<Equip> selectPage(FrontPage<Equip> frontPage, Equip equip) {
|
||||
QueryWrapper<Equip> queryWrapper = new QueryWrapper<>();
|
||||
queryWrapper.setEntity(equip);
|
||||
return super.page(frontPage.getPagePlus(), queryWrapper);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Equip> selectList(Equip equip) {
|
||||
QueryWrapper<Equip> queryWrapper = new QueryWrapper<>();
|
||||
queryWrapper.setEntity(equip);
|
||||
return super.list(queryWrapper);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Equip> selectBySiteType(String site, String type) {
|
||||
return baseMapper.selectBySiteType(site, type);
|
||||
}
|
||||
}
|
@ -0,0 +1,69 @@
|
||||
package com.foreverwin.mesnac.equip.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.foreverwin.mesnac.common.enums.HandleEnum;
|
||||
import com.foreverwin.mesnac.common.util.StringUtil;
|
||||
import com.foreverwin.mesnac.equip.mapper.EquipTypeEquipMapper;
|
||||
import com.foreverwin.mesnac.equip.model.EquipTypeEquip;
|
||||
import com.foreverwin.mesnac.equip.service.EquipTypeEquipService;
|
||||
import com.foreverwin.mesnac.equip.util.ConstantUtil;
|
||||
import com.foreverwin.modular.core.util.FrontPage;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 服务实现类
|
||||
* </p>
|
||||
*
|
||||
* @author Max
|
||||
* @since 2020-10-10
|
||||
*/
|
||||
@Service
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public class EquipTypeEquipServiceImpl extends ServiceImpl<EquipTypeEquipMapper, EquipTypeEquip> implements EquipTypeEquipService {
|
||||
|
||||
|
||||
@Autowired
|
||||
private EquipTypeEquipMapper equipTypeEquipMapper;
|
||||
|
||||
@Override
|
||||
public IPage<EquipTypeEquip> selectPage(FrontPage<EquipTypeEquip> frontPage, EquipTypeEquip equipTypeEquip) {
|
||||
QueryWrapper<EquipTypeEquip> queryWrapper = new QueryWrapper<>();
|
||||
queryWrapper.setEntity(equipTypeEquip);
|
||||
return super.page(frontPage.getPagePlus(), queryWrapper);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<EquipTypeEquip> selectList(EquipTypeEquip equipTypeEquip) {
|
||||
QueryWrapper<EquipTypeEquip> queryWrapper = new QueryWrapper<>();
|
||||
queryWrapper.setEntity(equipTypeEquip);
|
||||
return super.list(queryWrapper);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String selectEquipTypeByEquip( String site,String equip ) {
|
||||
//
|
||||
String equipBo = HandleEnum.RESOURCE+site+","+equip;
|
||||
String equipType = "";
|
||||
EquipTypeEquip equipTypeEquip = new EquipTypeEquip();
|
||||
equipTypeEquip.setEquipBo( equipBo );
|
||||
QueryWrapper<EquipTypeEquip> queryWrapper = new QueryWrapper<>();
|
||||
queryWrapper.setEntity( equipTypeEquip );
|
||||
equipTypeEquip = super.getOne( queryWrapper );
|
||||
if ( equipTypeEquip == null ) {
|
||||
return null;
|
||||
}
|
||||
if ( StringUtil.notEmpty( equipTypeEquip.getEquipTypeBo() ) ) {
|
||||
equipType = equipTypeEquip.getEquipTypeBo().split(",")[1];
|
||||
}
|
||||
return equipType;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,45 @@
|
||||
package com.foreverwin.mesnac.equip.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.foreverwin.mesnac.equip.mapper.EquipTypeMapper;
|
||||
import com.foreverwin.mesnac.equip.model.EquipType;
|
||||
import com.foreverwin.mesnac.equip.service.EquipTypeService;
|
||||
import com.foreverwin.modular.core.util.FrontPage;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 服务实现类
|
||||
* </p>
|
||||
*
|
||||
* @author Max
|
||||
* @since 2020-10-10
|
||||
*/
|
||||
@Service
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public class EquipTypeServiceImpl extends ServiceImpl<EquipTypeMapper, EquipType> implements EquipTypeService {
|
||||
|
||||
|
||||
@Autowired
|
||||
private EquipTypeMapper equipTypeMapper;
|
||||
|
||||
@Override
|
||||
public IPage<EquipType> selectPage(FrontPage<EquipType> frontPage, EquipType equipType) {
|
||||
QueryWrapper<EquipType> queryWrapper = new QueryWrapper<>();
|
||||
queryWrapper.setEntity(equipType);
|
||||
return super.page(frontPage.getPagePlus(), queryWrapper);
|
||||
}
|
||||
|
||||
/*@Override
|
||||
public List<EquipType> selectList(EquipType equipType) {
|
||||
QueryWrapper<EquipType> queryWrapper = new QueryWrapper<>();
|
||||
queryWrapper.setEntity(equipType);
|
||||
return super.list(queryWrapper);
|
||||
}*/
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,100 @@
|
||||
package com.foreverwin.mesnac.equip.util;
|
||||
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.Map;
|
||||
|
||||
public class ConstantUtil {
|
||||
|
||||
public static final String KEYWORD_TRUE = "TRUE";
|
||||
public static final String KEYWORD_FALSE = "FALSE";
|
||||
|
||||
public static final String ATTACHED_EQUIP = "1";
|
||||
public static final String ATTACHED_EQUIP_TYPE = "2"
|
||||
;
|
||||
public static final String MAINTAIN_PLAN_UNIT_1 = "1";
|
||||
public static final String MAINTAIN_PLAN_UNIT_2 = "2";
|
||||
public static final String MAINTAIN_PLAN_UNIT_3 = "3";
|
||||
public static final String MAINTAIN_PLAN_UNIT_4 = "4";
|
||||
public static final String MAINTAIN_PLAN_UNIT_5 = "5";
|
||||
|
||||
public static final String ACTION_NAME_CYCLE = "1";
|
||||
public static final String ACTION_NAME_INTERVAL = "2";
|
||||
|
||||
public static final String LIST_TYPE_INSPECT = "I";
|
||||
public static final String LIST_TYPE_MAINTAIN = "M";
|
||||
|
||||
public static final String TOOL_MAINTAIN_LIST_RESULT_TYPE_BOOL = "1";
|
||||
public static final String TOOL_MAINTAIN_LIST_RESULT_TYPE_TEXT = "2";
|
||||
public static final String TOOL_MAINTAIN_LIST_RESULT_TYPE_NUMBER = "3";
|
||||
|
||||
public static final Integer EXT_POSITION_1 = 1;
|
||||
public static final Integer EXT_POSITION_2 = 2;
|
||||
public static final Integer EXT_POSITION_3 = 3;
|
||||
|
||||
public static final String STATUS_ENABLED = "301";
|
||||
public static final String STATUS_DISABLED = "302";
|
||||
public static final String STATUS_NEW = "401";
|
||||
public static final String STATUS_IN_QUEUE = "402";
|
||||
|
||||
public static final String TASK_STATUS_1 = "1";
|
||||
public static final String TASK_STATUS_2 = "2";
|
||||
public static final String TASK_STATUS_3 = "3";
|
||||
public static final String TASK_STATUS_4 = "4";
|
||||
|
||||
public static final String REPAIR_STATUS_1 = "1";
|
||||
public static final String REPAIR_STATUS_2 = "2";
|
||||
public static final String REPAIR_STATUS_3 = "3";
|
||||
public static final String REPAIR_STATUS_4 = "4";
|
||||
public static final String REPAIR_STATUS_5 = "5";
|
||||
public static final String REPAIR_STATUS_6 = "6";
|
||||
public static final String REPAIR_STATUS_7 = "7";
|
||||
public static final String REPAIR_STATUS_8 = "8";
|
||||
|
||||
public static final String MAINTAIN_TASK_TYPE_1 = "1";
|
||||
public static final String MAINTAIN_TASK_TYPE_2 = "2";
|
||||
public static final String MAINTAIN_TASK_TYPE_3 = "3";
|
||||
public static final String MAINTAIN_TASK_TYPE_4 = "4";
|
||||
|
||||
public static final Map<String, String> MAINTAIN_PLAN_UNITS = new LinkedHashMap<String, String>();
|
||||
public static final Map<String, String> TASK_STATUSES = new LinkedHashMap<String, String>();
|
||||
public static final Map<String, String> TOOL_MAINTAIN_LIST_RESULT_TYPES = new LinkedHashMap<String, String>();
|
||||
public static final Map<String, String> REPAIR_STATUS = new LinkedHashMap<String, String>();
|
||||
public static final Map<String, String> MAINTAIN_TASK_TYPE = new LinkedHashMap<String, String>();
|
||||
public static final Map<String, String> PLAN_STATUS = new LinkedHashMap<String, String>();
|
||||
|
||||
static {
|
||||
//----------------------------------------------------------------------------------------------------------------------------------
|
||||
MAINTAIN_PLAN_UNITS.put(MAINTAIN_PLAN_UNIT_1, "小时");
|
||||
MAINTAIN_PLAN_UNITS.put(MAINTAIN_PLAN_UNIT_2, "日");
|
||||
MAINTAIN_PLAN_UNITS.put(MAINTAIN_PLAN_UNIT_3, "周");
|
||||
MAINTAIN_PLAN_UNITS.put(MAINTAIN_PLAN_UNIT_4, "月");
|
||||
MAINTAIN_PLAN_UNITS.put(MAINTAIN_PLAN_UNIT_5, "年");
|
||||
//----------------------------------------------------------------------------------------------------------------------------------
|
||||
TASK_STATUSES.put(TASK_STATUS_1, "未开始");
|
||||
TASK_STATUSES.put(TASK_STATUS_2, "进行中");
|
||||
TASK_STATUSES.put(TASK_STATUS_3, "关闭");
|
||||
TASK_STATUSES.put(TASK_STATUS_4, "完成");
|
||||
//----------------------------------------------------------------------------------------------------------------------------------
|
||||
TOOL_MAINTAIN_LIST_RESULT_TYPES.put(TOOL_MAINTAIN_LIST_RESULT_TYPE_BOOL, "布尔值");
|
||||
TOOL_MAINTAIN_LIST_RESULT_TYPES.put(TOOL_MAINTAIN_LIST_RESULT_TYPE_TEXT, "文本");
|
||||
TOOL_MAINTAIN_LIST_RESULT_TYPES.put(TOOL_MAINTAIN_LIST_RESULT_TYPE_NUMBER, "数字");
|
||||
//----------------------------------------------------------------------------------------------------------------
|
||||
REPAIR_STATUS.put(REPAIR_STATUS_1,"新建");
|
||||
REPAIR_STATUS.put(REPAIR_STATUS_2,"已报修");
|
||||
REPAIR_STATUS.put(REPAIR_STATUS_3,"维修中");
|
||||
REPAIR_STATUS.put(REPAIR_STATUS_4,"维修完成");
|
||||
REPAIR_STATUS.put(REPAIR_STATUS_5,"待生产确认");
|
||||
REPAIR_STATUS.put(REPAIR_STATUS_6,"待品质确认");
|
||||
REPAIR_STATUS.put(REPAIR_STATUS_7,"确认完成");
|
||||
REPAIR_STATUS.put(REPAIR_STATUS_8,"关闭");//取消或者重修的任务状态
|
||||
//-------------------------------------------------------------------------------------------------------------------
|
||||
MAINTAIN_TASK_TYPE.put(MAINTAIN_TASK_TYPE_1,"周保养");
|
||||
MAINTAIN_TASK_TYPE.put(MAINTAIN_TASK_TYPE_2,"月保养");
|
||||
MAINTAIN_TASK_TYPE.put(MAINTAIN_TASK_TYPE_3,"季保养");
|
||||
MAINTAIN_TASK_TYPE.put(MAINTAIN_TASK_TYPE_4,"年保养");
|
||||
//-------------------------------------------------------------------------------------------------------------------
|
||||
PLAN_STATUS.put( STATUS_ENABLED,"启动" );
|
||||
PLAN_STATUS.put( STATUS_DISABLED,"禁止" );
|
||||
PLAN_STATUS.put( STATUS_NEW,"新建" );
|
||||
}
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
<?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.foreverwin.pms.mapper.EquipMapper">
|
||||
|
||||
<select id="selectBySiteType" resultType="com.foreverwin.mesnac.equip.model.Equip">
|
||||
SELECT R.*
|
||||
FROM RESRCE R
|
||||
INNER JOIN Z_PMS_EQUIP_TYPE_EQUIP ETE
|
||||
ON R.HANDLE = ETE.EQUIP_BO
|
||||
INNER JOIN Z_PMS_EQUIP_TYPE ET
|
||||
ON ET.HANDLE = ETE.EQUIP_TYPE_BO
|
||||
WHERE R.SITE = #{site} AND ET.SITE = #{site} AND ET.EQUIP_TYPE = #{type}
|
||||
</select>
|
||||
</mapper>
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,14 @@
|
||||
<?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.foreverwin.pms.mapper.EquipMapper">
|
||||
|
||||
<select id="selectBySiteType" resultType="com.foreverwin.mesnac.equip.model.Equip">
|
||||
SELECT R.*
|
||||
FROM RESRCE R
|
||||
INNER JOIN Z_PMS_EQUIP_TYPE_EQUIP ETE
|
||||
ON R.HANDLE = ETE.EQUIP_BO
|
||||
INNER JOIN Z_PMS_EQUIP_TYPE ET
|
||||
ON ET.HANDLE = ETE.EQUIP_TYPE_BO
|
||||
WHERE R.SITE = #{site} AND ET.SITE = #{site} AND ET.EQUIP_TYPE = #{type}
|
||||
</select>
|
||||
</mapper>
|
Loading…
Reference in New Issue