1
This commit is contained in:
273
mosty-jcgl/mosty-jcgl.iml
Normal file
273
mosty-jcgl/mosty-jcgl.iml
Normal file
@ -0,0 +1,273 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
|
||||
<component name="FacetManager">
|
||||
<facet type="Spring" name="Spring">
|
||||
<configuration />
|
||||
</facet>
|
||||
<facet type="web" name="Web">
|
||||
<configuration>
|
||||
<webroots />
|
||||
</configuration>
|
||||
</facet>
|
||||
<facet type="JRebel" name="JRebel">
|
||||
<configuration>
|
||||
<option name="ideModuleStorage">
|
||||
<map>
|
||||
<entry key="com.zeroturnaround.jrebel.FormatVersion" value="7.0.0" />
|
||||
<entry key="com.zeroturnaround.jrebel.remoting.DeleteUnindexedFiles" value="false" />
|
||||
<entry key="com.zeroturnaround.jrebel.remoting.ModuleRemoteServerSelection" value="off" />
|
||||
<entry key="jrebelEnabled" value="true" />
|
||||
<entry key="lastExternalPluginCheckTime" value="1721024353924" />
|
||||
</map>
|
||||
</option>
|
||||
<option name="version" value="2" />
|
||||
</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: org.springframework.boot:spring-boot-starter:2.2.4.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot:2.2.4.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-context:5.2.8.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-aop:5.2.8.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-expression:5.2.8.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-autoconfigure:2.2.4.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-logging:2.2.4.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: ch.qos.logback:logback-classic:1.2.3" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.logging.log4j:log4j-to-slf4j:2.12.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.logging.log4j:log4j-api:2.13.3" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.slf4j:jul-to-slf4j:1.7.30" level="project" />
|
||||
<orderEntry type="library" name="Maven: jakarta.annotation:jakarta.annotation-api:1.3.5" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-core:5.2.8.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-jcl:5.2.8.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.yaml:snakeyaml:1.25" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-test:2.2.4.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-test:2.2.4.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-test-autoconfigure:2.2.4.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.jayway.jsonpath:json-path:2.4.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: net.minidev:json-smart:2.3" level="project" />
|
||||
<orderEntry type="library" name="Maven: net.minidev:accessors-smart:1.2" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.ow2.asm:asm:5.0.4" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.slf4j:slf4j-api:1.7.30" level="project" />
|
||||
<orderEntry type="library" name="Maven: jakarta.xml.bind:jakarta.xml.bind-api:2.3.2" level="project" />
|
||||
<orderEntry type="library" name="Maven: jakarta.activation:jakarta.activation-api:1.2.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.junit.jupiter:junit-jupiter:5.6.2" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.junit.jupiter:junit-jupiter-api:5.6.2" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.opentest4j:opentest4j:1.2.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.junit.platform:junit-platform-commons:1.6.2" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.junit.jupiter:junit-jupiter-params:5.6.2" level="project" />
|
||||
<orderEntry type="library" scope="RUNTIME" name="Maven: org.junit.jupiter:junit-jupiter-engine:5.6.2" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.junit.vintage:junit-vintage-engine:5.6.2" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apiguardian:apiguardian-api:1.1.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.junit.platform:junit-platform-engine:1.6.2" level="project" />
|
||||
<orderEntry type="library" name="Maven: junit:junit:4.12" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.mockito:mockito-junit-jupiter:3.1.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.assertj:assertj-core:3.13.2" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.hamcrest:hamcrest:2.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.mockito:mockito-core:3.1.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: net.bytebuddy:byte-buddy:1.10.6" level="project" />
|
||||
<orderEntry type="library" name="Maven: net.bytebuddy:byte-buddy-agent:1.10.6" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.objenesis:objenesis:2.6" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.skyscreamer:jsonassert:1.5.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-test:5.2.8.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.xmlunit:xmlunit-core:2.6.3" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.cloud:spring-cloud-starter:2.2.5.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.cloud:spring-cloud-context:2.2.5.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.security:spring-security-crypto:5.3.3.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.cloud:spring-cloud-commons:2.2.5.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.64" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.bouncycastle:bcprov-jdk15on:1.64" level="project" />
|
||||
<orderEntry type="library" name="Maven: mysql:mysql-connector-java:8.0.16" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.alibaba.cloud:spring-cloud-starter-alibaba-nacos-discovery:2.2.4.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.alibaba.nacos:nacos-client:1.4.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.alibaba.nacos:nacos-common:1.4.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: commons-io:commons-io:2.2" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.httpcomponents:httpasyncclient:4.1.4" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.httpcomponents:httpcore-nio:4.4.13" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.alibaba.nacos:nacos-api:1.4.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.google.guava:guava:29.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.11.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.google.errorprone:error_prone_annotations:2.3.4" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.google.j2objc:j2objc-annotations:1.3" level="project" />
|
||||
<orderEntry type="library" name="Maven: commons-codec:commons-codec:1.13" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-core:2.11.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-databind:2.11.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-annotations:2.11.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.10" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.cloud:spring-cloud-starter-netflix-ribbon:2.2.5.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.cloud:spring-cloud-netflix-ribbon:2.2.5.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.cloud:spring-cloud-netflix-archaius:2.2.5.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.cloud:spring-cloud-starter-netflix-archaius:2.2.5.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: commons-configuration:commons-configuration:1.8" 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: commons-lang:commons-lang:2.6" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.netflix.ribbon:ribbon-httpclient:2.3.0" level="project" />
|
||||
<orderEntry type="library" 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: io.reactivex:rxjava:1.3.8" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.cloud:spring-cloud-starter-openfeign:2.2.5.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.cloud:spring-cloud-openfeign-core:2.2.5.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-aop:2.2.4.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.aspectj:aspectjweaver:1.9.5" 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.4" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-web:5.2.8.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-beans:5.2.8.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: io.github.openfeign:feign-core:10.10.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: io.github.openfeign:feign-slf4j:10.10.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: io.github.openfeign:feign-hystrix:10.10.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.netflix.archaius:archaius-core:0.7.6" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.netflix.hystrix:hystrix-core:1.5.18" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.hdrhistogram:HdrHistogram:2.1.9" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.mosty:common-magic-api-starter:1.0.0-SNAPSHOT" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.mosty:common-base-starter:1.0.0-SNAPSHOT" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.velocity:velocity-engine-core:2.3" level="project" />
|
||||
<orderEntry type="library" name="Maven: io.springfox:springfox-swagger2:2.8.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: io.swagger:swagger-annotations:1.5.14" level="project" />
|
||||
<orderEntry type="library" name="Maven: io.swagger:swagger-models:1.5.14" level="project" />
|
||||
<orderEntry type="library" name="Maven: io.springfox:springfox-spi:2.8.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: io.springfox:springfox-core:2.8.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: io.springfox:springfox-schema:2.8.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: io.springfox:springfox-swagger-common:2.8.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: io.springfox:springfox-spring-web:2.8.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.reflections:reflections:0.9.11" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.javassist:javassist:3.21.0-GA" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.fasterxml:classmate:1.5.1" 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.springfox:springfox-swagger-ui:2.8.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.github.caspar-chen:swagger-ui-layer:1.1.3" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-web:2.2.4.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-json:2.2.4.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.11.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.11.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.fasterxml.jackson.module:jackson-module-parameter-names:2.11.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-tomcat:2.2.4.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.tomcat.embed:tomcat-embed-core:9.0.30" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.tomcat.embed:tomcat-embed-websocket:9.0.30" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-webmvc:5.2.8.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: cn.hutool:hutool-all:5.7.20" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.belerweb:pinyin4j:2.5.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.alibaba:fastjson:1.2.83" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.commons:commons-lang3:3.9" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.projectlombok:lombok:1.18.10" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.github.pagehelper:pagehelper:5.3.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.github.jsqlparser:jsqlparser:4.2" level="project" />
|
||||
<orderEntry type="library" name="Maven: jakarta.validation:jakarta.validation-api:2.0.2" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.baomidou:mybatis-plus-boot-starter:3.4.3" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.baomidou:mybatis-plus:3.4.3" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-jdbc:2.2.4.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.zaxxer:HikariCP:3.4.2" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.baomidou:mybatis-plus-extension:3.4.3" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.baomidou:mybatis-plus-core:3.4.3" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.baomidou:mybatis-plus-annotation:3.4.3" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.mybatis:mybatis:3.5.7" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.mybatis:mybatis-spring:2.0.6" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.poi:poi-ooxml:4.1.2" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.poi:poi-ooxml-schemas:4.1.2" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.xmlbeans:xmlbeans:3.1.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.commons:commons-compress:1.19" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.github.virtuald:curvesapi:1.06" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.poi:poi:4.1.2" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.commons:commons-collections4:4.4" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.commons:commons-math3:3.6.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.zaxxer:SparseBitSet:1.2" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.ssssssss:magic-api-spring-boot-starter:2.0.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.ssssssss:magic-api:2.0.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-websocket:2.2.4.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-messaging:5.2.8.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-websocket:5.2.8.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-jdbc:5.2.8.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.commons:commons-text:1.6" level="project" />
|
||||
<orderEntry type="library" name="Maven: commons-beanutils:commons-beanutils:1.9.4" level="project" />
|
||||
<orderEntry type="library" name="Maven: commons-logging:commons-logging:1.2" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.ssssssss:magic-script:1.8.5" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.ssssssss:magic-editor:2.0.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.ssssssss:magic-api-plugin-swagger:2.0.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.mosty:common-token-starter:1.0.0-SNAPSHOT" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.alibaba:transmittable-thread-local:2.11.5" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.auth0:java-jwt:3.8.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.mosty:common-redis-starter:1.0.0-SNAPSHOT" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-data-redis:2.2.4.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.data:spring-data-redis:2.3.2.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.data:spring-data-keyvalue:2.3.2.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.data:spring-data-commons:2.3.2.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-tx:5.2.8.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-oxm:5.2.8.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-context-support:5.2.8.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: io.lettuce:lettuce-core:5.2.1.RELEASE" 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-handler: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-buffer: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-transport:4.1.51.Final" level="project" />
|
||||
<orderEntry type="library" name="Maven: io.projectreactor:reactor-core:3.3.8.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.reactivestreams:reactive-streams:1.0.3" level="project" />
|
||||
<orderEntry type="module" module-name="mosty-base-feign-sdk" />
|
||||
<orderEntry type="library" name="Maven: com.netflix.feign:feign-slf4j:8.14.4" level="project" />
|
||||
<orderEntry type="library" scope="RUNTIME" name="Maven: com.netflix.feign:feign-core:8.14.4" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.mosty:common-core-starter:1.0.0-SNAPSHOT" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.mosty:common-config-starter:1.0.0-SNAPSHOT" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.mybatis.spring.boot:mybatis-spring-boot-starter:2.2.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.mybatis.spring.boot:mybatis-spring-boot-autoconfigure:2.2.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.shiro:shiro-core:1.8.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.shiro:shiro-lang:1.8.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.shiro:shiro-cache:1.8.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.shiro:shiro-crypto-hash:1.8.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.shiro:shiro-crypto-core:1.8.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.shiro:shiro-crypto-cipher:1.8.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.shiro:shiro-config-core:1.8.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.shiro:shiro-config-ogdl:1.8.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.shiro:shiro-event:1.8.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.shiro:shiro-ehcache:1.8.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: net.sf.ehcache:ehcache-core:2.6.11" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-validation:2.2.4.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.tomcat.embed:tomcat-embed-el:9.0.30" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.hibernate.validator:hibernate-validator:6.0.18.Final" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.jboss.logging:jboss-logging:3.4.1.Final" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.github.penggle:kaptcha:2.3.2" level="project" />
|
||||
<orderEntry type="library" name="Maven: javax.servlet:javax.servlet-api:4.0.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.jhlabs:filters:2.0.235-1" level="project" />
|
||||
<orderEntry type="library" name="Maven: io.minio:minio:8.0.3" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.carrotsearch.thirdparty:simple-xml-safe:2.7.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.squareup.okhttp3:okhttp:3.14.6" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.squareup.okio:okio:1.17.2" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.httpcomponents:httpclient:4.5.10" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.httpcomponents:httpcore:4.4.13" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.hikvision.ga:artemis-http-client:1.1.3" level="project" />
|
||||
<orderEntry type="library" name="Maven: ch.qos.logback:logback-core:1.2.3" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.locationtech.jts:jts-core:1.18.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.mosty:operation-log-aspect-starter:1.0.0-SNAPSHOT" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.vividsolutions:jts:1.13" level="project" />
|
||||
</component>
|
||||
</module>
|
109
mosty-jcgl/pom.xml
Normal file
109
mosty-jcgl/pom.xml
Normal file
@ -0,0 +1,109 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<parent>
|
||||
<artifactId>mosty-dyga-cloud</artifactId>
|
||||
<groupId>com.mosty</groupId>
|
||||
<version>1.0.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>mosty-jcgl</artifactId>
|
||||
<description>基础管理</description>
|
||||
|
||||
<properties>
|
||||
<maven.compiler.source>8</maven.compiler.source>
|
||||
<maven.compiler.target>8</maven.compiler.target>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-test</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>mysql</groupId>
|
||||
<artifactId>mysql-connector-java</artifactId>
|
||||
<version>8.0.16</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.alibaba.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
|
||||
<version>2.2.4.RELEASE</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-openfeign</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!--magicAPI-->
|
||||
<dependency>
|
||||
<groupId>com.mosty</groupId>
|
||||
<artifactId>common-magic-api-starter</artifactId>
|
||||
<version>1.0.0-SNAPSHOT</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<!--登录jar包-->
|
||||
<dependency>
|
||||
<groupId>com.mosty</groupId>
|
||||
<artifactId>common-token-starter</artifactId>
|
||||
<version>1.0.0-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<!--redis包-->
|
||||
<dependency>
|
||||
<groupId>com.mosty</groupId>
|
||||
<artifactId>common-redis-starter</artifactId>
|
||||
<version>1.0.0-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<!--base-feign-->
|
||||
<dependency>
|
||||
<groupId>com.mosty</groupId>
|
||||
<artifactId>mosty-base-feign-sdk</artifactId>
|
||||
</dependency>
|
||||
<!--日志包-->
|
||||
<dependency>
|
||||
<groupId>com.mosty</groupId>
|
||||
<artifactId>operation-log-aspect-starter</artifactId>
|
||||
<version>1.0.0-SNAPSHOT</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.vividsolutions</groupId>
|
||||
<artifactId>jts</artifactId>
|
||||
<version>1.13</version>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<!-- 这个插件,可以将应用打包成一个可执行的jar包;-->
|
||||
<plugin>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
</plugin>
|
||||
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<configuration>
|
||||
<source>8</source>
|
||||
<target>8</target>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
</project>
|
@ -0,0 +1,30 @@
|
||||
package com.mosty.base.manager;
|
||||
|
||||
import com.mosty.common.base.timeconsume.EnableTimeConsume;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
|
||||
import org.springframework.cloud.openfeign.EnableFeignClients;
|
||||
import org.springframework.scheduling.annotation.EnableScheduling;
|
||||
|
||||
/**
|
||||
* 基础管理微服务
|
||||
* @author kevin
|
||||
* @date 2022/1/22 4:23 PM
|
||||
* @since 1.0.0
|
||||
*/
|
||||
@EnableTimeConsume
|
||||
//@ComponentScan("com.mosty")
|
||||
//@MapperScan(basePackages = {"com.mosty","com.mosty.*.mapper"})
|
||||
@EnableFeignClients(basePackages = "com.mosty.base.feign.service")
|
||||
@EnableDiscoveryClient
|
||||
@EnableScheduling
|
||||
@SpringBootApplication
|
||||
public class MostyJcglApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
SpringApplication.run(MostyJcglApplication.class, args);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,23 @@
|
||||
package com.mosty.base.manager.config;
|
||||
|
||||
import feign.RequestInterceptor;
|
||||
import feign.RequestTemplate;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.web.context.request.RequestContextHolder;
|
||||
import org.springframework.web.context.request.ServletRequestAttributes;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
|
||||
@Configuration
|
||||
public class FeignConfig implements RequestInterceptor {
|
||||
|
||||
@Override
|
||||
public void apply(RequestTemplate requestTemplate) {
|
||||
ServletRequestAttributes attr = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes();
|
||||
if (attr != null) {
|
||||
HttpServletRequest request = attr.getRequest();
|
||||
// 添加token
|
||||
requestTemplate.header("Authorization", request.getHeader("Authorization"));
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
package com.mosty.base.manager.config;
|
||||
|
||||
import lombok.Data;
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 全局配置
|
||||
* @author kevin
|
||||
* @date 2022/5/25 1:56 上午
|
||||
* @since 1.0.0
|
||||
*/
|
||||
@Data
|
||||
@Configuration
|
||||
@ConfigurationProperties("exclude.path-patterns")
|
||||
public class GlobalYmlConfig {
|
||||
|
||||
/**
|
||||
* swagger 静态文件的放行列表
|
||||
*/
|
||||
private List<String> swagger;
|
||||
|
||||
}
|
@ -0,0 +1,122 @@
|
||||
package com.mosty.base.manager.config;
|
||||
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.fasterxml.jackson.core.JsonGenerator;
|
||||
import com.fasterxml.jackson.databind.DeserializationFeature;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import com.fasterxml.jackson.databind.SerializationFeature;
|
||||
import com.fasterxml.jackson.databind.module.SimpleModule;
|
||||
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateDeserializer;
|
||||
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
|
||||
import com.fasterxml.jackson.datatype.jsr310.deser.LocalTimeDeserializer;
|
||||
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateSerializer;
|
||||
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
|
||||
import com.fasterxml.jackson.datatype.jsr310.ser.LocalTimeSerializer;
|
||||
import com.mosty.common.token.SysUserInterceptor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.InitializingBean;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.http.MediaType;
|
||||
import org.springframework.http.converter.HttpMessageConverter;
|
||||
import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter;
|
||||
import org.springframework.web.servlet.config.annotation.*;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.time.LocalDate;
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.LocalTime;
|
||||
import java.time.format.DateTimeFormatter;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 单体服务拦截器
|
||||
* @author kevin
|
||||
* @date 2022/3/21 11:17 PM
|
||||
* @since 1.0.0
|
||||
*/
|
||||
@Configuration
|
||||
@Slf4j
|
||||
public class WebMvcConfig implements WebMvcConfigurer, InitializingBean {
|
||||
|
||||
private static final String DEFAULT_TIME_FORMAT = "HH:mm:ss";
|
||||
private static final String DEFAULT_DATE_FORMAT = "yyyy-MM-dd";
|
||||
private static final String DEFAULT_DATE_TIME_FORMAT = "yyyy-MM-dd HH:mm:ss";
|
||||
|
||||
@Value("${server.servlet.context-path:/}")
|
||||
private String contextPath;
|
||||
|
||||
@Autowired
|
||||
private GlobalYmlConfig globalYmlConfig;
|
||||
|
||||
@Override
|
||||
public void extendMessageConverters(List<HttpMessageConverter<?>> converters) {
|
||||
MappingJackson2HttpMessageConverter converter = new MappingJackson2HttpMessageConverter();
|
||||
ObjectMapper objectMapper = converter.getObjectMapper();
|
||||
// 生成JSON时,将所有Long转换成String
|
||||
SimpleModule simpleModule = new SimpleModule();
|
||||
//日期格式化
|
||||
simpleModule.addSerializer(LocalDateTime.class, new LocalDateTimeSerializer(DateTimeFormatter.ofPattern(DEFAULT_DATE_TIME_FORMAT)));
|
||||
simpleModule.addSerializer(LocalDate.class, new LocalDateSerializer(DateTimeFormatter.ofPattern(DEFAULT_DATE_FORMAT)));
|
||||
simpleModule.addSerializer(LocalTime.class, new LocalTimeSerializer(DateTimeFormatter.ofPattern(DEFAULT_TIME_FORMAT)));
|
||||
simpleModule.addDeserializer(LocalDateTime.class, new LocalDateTimeDeserializer(DateTimeFormatter.ofPattern(DEFAULT_DATE_TIME_FORMAT)));
|
||||
simpleModule.addDeserializer(LocalDate.class, new LocalDateDeserializer(DateTimeFormatter.ofPattern(DEFAULT_DATE_FORMAT)));
|
||||
simpleModule.addDeserializer(LocalTime.class, new LocalTimeDeserializer(DateTimeFormatter.ofPattern(DEFAULT_TIME_FORMAT)));
|
||||
objectMapper.registerModule(simpleModule);
|
||||
// 时间格式化
|
||||
objectMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
|
||||
objectMapper.configure(JsonGenerator.Feature.WRITE_BIGDECIMAL_AS_PLAIN, true);
|
||||
objectMapper.configure(JsonGenerator.Feature.IGNORE_UNKNOWN, true);
|
||||
objectMapper.setDateFormat(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"));
|
||||
objectMapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS);
|
||||
// 设置格式化内容
|
||||
converter.setObjectMapper(objectMapper);
|
||||
converters.add(0, converter);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void afterPropertiesSet() throws Exception {
|
||||
log.info("当前服务的 contextPath={}", contextPath);
|
||||
log.info("当前服务的 swaggerExcludePathPatterns={}", JSON.toJSONString(globalYmlConfig.getSwagger()));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addViewControllers(ViewControllerRegistry registry) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void configureContentNegotiation(ContentNegotiationConfigurer configurer) {
|
||||
configurer.defaultContentType(MediaType.APPLICATION_JSON);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addInterceptors(InterceptorRegistry registry) {
|
||||
registry.addInterceptor(userInfoInterceptor()).addPathPatterns("/**")
|
||||
.excludePathPatterns(globalYmlConfig.getSwagger());
|
||||
log.info("初始化WebMvcConfig 监控拦截器SysUserInterceptor");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addResourceHandlers(ResourceHandlerRegistry registry) {
|
||||
if (!registry.hasMappingForPattern("/template/**")) {
|
||||
registry.addResourceHandler("/template/**").addResourceLocations("classpath:/template/");
|
||||
}
|
||||
registry.addResourceHandler("swagger-ui.html")
|
||||
.addResourceLocations("classpath:/META-INF/resources/");
|
||||
registry.addResourceHandler("docs.html")
|
||||
.addResourceLocations("classpath:/META-INF/resources/");
|
||||
registry.addResourceHandler("doc.html")
|
||||
.addResourceLocations("classpath:/META-INF/resources/");
|
||||
registry.addResourceHandler("/webjars/**")
|
||||
.addResourceLocations("classpath:/META-INF/resources/webjars/");
|
||||
WebMvcConfigurer.super.addResourceHandlers(registry);
|
||||
}
|
||||
|
||||
@Bean
|
||||
public SysUserInterceptor userInfoInterceptor() {
|
||||
log.info("初始化WebMvcConfig 拦截器SysUserInterceptor");
|
||||
return new SysUserInterceptor();
|
||||
}
|
||||
}
|
@ -0,0 +1,70 @@
|
||||
package com.mosty.base.manager.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.mosty.base.manager.service.TbJcglAbfcService;
|
||||
import com.mosty.base.model.dto.jcgl.TbJcglAbfcDto;
|
||||
import com.mosty.base.model.entity.jcgl.TbJcglAbfc;
|
||||
import com.mosty.base.model.query.jcgl.TbJcglAbfcQuery;
|
||||
import com.mosty.common.base.domain.ResponseResult;
|
||||
import com.mosty.common.base.entity.log.BusinessType;
|
||||
import com.mosty.common.base.entity.log.Log;
|
||||
import com.mosty.common.token.JwtSysUser;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author dw
|
||||
* @since 2022/9/26
|
||||
**/
|
||||
@Api(tags = "安保风采相关接口")
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
@RequestMapping("/abfc")
|
||||
public class TbJcglAbfcController {
|
||||
|
||||
private final TbJcglAbfcService tbJcglAbfcService;
|
||||
|
||||
@ApiOperation("添加安保风采")
|
||||
@JwtSysUser
|
||||
@PostMapping
|
||||
@Log(title = "添加安保风采", businessType = BusinessType.INSERT)
|
||||
public ResponseResult<Integer> addEntity(@RequestBody TbJcglAbfcDto dto) {
|
||||
return ResponseResult.success(this.tbJcglAbfcService.addEntity(dto));
|
||||
}
|
||||
|
||||
@ApiOperation("修改安保风采")
|
||||
@JwtSysUser
|
||||
@PutMapping
|
||||
@Log(title = "修改安保风采", businessType = BusinessType.UPDATE)
|
||||
public ResponseResult<Integer> editEntity(@RequestBody TbJcglAbfcDto dto) {
|
||||
return ResponseResult.success(this.tbJcglAbfcService.editEntity(dto));
|
||||
}
|
||||
|
||||
@ApiOperation("批量删除安保风采")
|
||||
@JwtSysUser
|
||||
@DeleteMapping
|
||||
@Log(title = "批量删除安保风采", businessType = BusinessType.DELETE)
|
||||
public ResponseResult<Void> deleteEntity(@RequestParam List<String> ids) {
|
||||
this.tbJcglAbfcService.deleteEntity(ids);
|
||||
return ResponseResult.success();
|
||||
}
|
||||
|
||||
@ApiOperation("查询安保风采列表")
|
||||
@JwtSysUser
|
||||
@GetMapping
|
||||
public ResponseResult<List<TbJcglAbfc>> getPageList(TbJcglAbfcQuery dto) {
|
||||
return ResponseResult.success(this.tbJcglAbfcService.getPageList(dto));
|
||||
}
|
||||
|
||||
@ApiOperation("查询安保风采详情")
|
||||
@JwtSysUser
|
||||
@GetMapping("{id}")
|
||||
public ResponseResult<TbJcglAbfc> getInfo(@PathVariable("id") String id) {
|
||||
return ResponseResult.success(this.tbJcglAbfcService.getInfo(id));
|
||||
}
|
||||
}
|
@ -0,0 +1,161 @@
|
||||
package com.mosty.base.manager.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.mosty.base.model.dto.jcgl.TbJcglBqDto;
|
||||
import com.mosty.base.model.query.jcgl.TbJcglBqQuery;
|
||||
import com.mosty.base.model.vo.jcgl.TbJcglBqVo;
|
||||
import com.mosty.base.manager.service.TbJcglBqService;
|
||||
import com.mosty.common.base.domain.ResponseResult;
|
||||
import com.mosty.common.base.entity.log.BusinessType;
|
||||
import com.mosty.common.base.entity.log.Log;
|
||||
import com.mosty.common.token.JwtSysUser;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 巡防警力标签表(技能/经验);(tb_jcgl_bq)表控制层
|
||||
* @author : http://www.chiner.pro
|
||||
* @date : 2022-6-6
|
||||
*/
|
||||
@Api(tags = "巡防警力标签表对象功能接口")
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
@RequestMapping("/tbJcglBq")
|
||||
public class TbJcglBqController{
|
||||
|
||||
private final TbJcglBqService tbJcglBqService;
|
||||
|
||||
/**
|
||||
* 通过ID查询单条数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 实例对象
|
||||
*/
|
||||
@ApiOperation("通过ID查询单条数据")
|
||||
@JwtSysUser
|
||||
@GetMapping("{id}")
|
||||
@Log(title = "巡防警力标签单条数据", businessType = BusinessType.OTHER)
|
||||
@ApiImplicitParam(name = "id", value = "标签ID", paramType = "path", required = true, dataType="String")
|
||||
public ResponseResult<TbJcglBqVo> queryById(@PathVariable String id){
|
||||
return ResponseResult.success(tbJcglBqService.queryById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
*
|
||||
* @param tbJcglBq 筛选条件
|
||||
* @return 查询结果
|
||||
*/
|
||||
@ApiOperation("分页查询")
|
||||
@JwtSysUser
|
||||
@GetMapping
|
||||
public ResponseResult<IPage<TbJcglBqVo>> paginQuery(TbJcglBqQuery tbJcglBq){
|
||||
IPage<TbJcglBqVo> page = tbJcglBqService.paginQuery(tbJcglBq);
|
||||
return ResponseResult.success(page);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增数据
|
||||
*
|
||||
* @param tbJcglBq 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
@ApiOperation("新增数据")
|
||||
@JwtSysUser
|
||||
@PostMapping
|
||||
@Log(title = "巡防警力标签新增", businessType = BusinessType.INSERT)
|
||||
public ResponseResult<Integer> add(@RequestBody TbJcglBqDto tbJcglBq){
|
||||
return ResponseResult.success(tbJcglBqService.insert(tbJcglBq));
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新数据
|
||||
*
|
||||
* @param tbJcglBq 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
@ApiOperation("更新数据")
|
||||
@JwtSysUser
|
||||
@PutMapping
|
||||
@Log(title = "巡防警力标签更新", businessType = BusinessType.UPDATE)
|
||||
public ResponseResult<Integer> edit(@RequestBody TbJcglBqDto tbJcglBq){
|
||||
return ResponseResult.success(tbJcglBqService.update(tbJcglBq));
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过主键删除数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 是否成功
|
||||
*/
|
||||
@ApiOperation("通过主键删除数据")
|
||||
@DeleteMapping("{id}")
|
||||
@Log(title = "巡防警力标签删除", businessType = BusinessType.UPDATE)
|
||||
@ApiImplicitParam(name = "id", value = "标签主键", paramType = "path", required = true, dataType="String")
|
||||
public ResponseResult<Boolean> deleteById(@PathVariable("id") String id){
|
||||
return ResponseResult.success(tbJcglBqService.deleteById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过主键删除数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 是否成功
|
||||
*/
|
||||
@ApiOperation("通过主键删除数据")
|
||||
@DeleteMapping("/bacth")
|
||||
@Log(title = "巡防警力标签删除", businessType = BusinessType.UPDATE)
|
||||
@ApiImplicitParam(name = "id", value = "标签主键", paramType = "path", required = true, dataType="String")
|
||||
public ResponseResult<Boolean> deleteByIds(@RequestParam List<String> id){
|
||||
return ResponseResult.success(tbJcglBqService.deleteByIds(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过标签名称验证是否重复
|
||||
*
|
||||
* @param mc 标签名称
|
||||
* @return 是否成功
|
||||
*/
|
||||
@ApiOperation("通过标签名称验证是否重复")
|
||||
@JwtSysUser
|
||||
@GetMapping("/check")
|
||||
@ApiImplicitParam(name = "mc", value = "标签名称", paramType = "query", required = true, dataType="String")
|
||||
public ResponseResult<Boolean> check(@RequestParam(value = "mc") String mc){
|
||||
return ResponseResult.success(tbJcglBqService.checkMc(mc));
|
||||
}
|
||||
|
||||
/**
|
||||
* 统计标签数量
|
||||
*
|
||||
* @param
|
||||
* @return 是否成功
|
||||
*/
|
||||
@ApiOperation("统计标签数量")
|
||||
@JwtSysUser
|
||||
@GetMapping("/countBqsl")
|
||||
public ResponseResult countBqsl(TbJcglBqVo tbJcglBqVo){
|
||||
return ResponseResult.success(tbJcglBqService.countBqsl(tbJcglBqVo ));
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过主键注销数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 是否成功
|
||||
*/
|
||||
@ApiOperation("通过主键注销数据")
|
||||
@JwtSysUser
|
||||
@PutMapping("/zcbqByIds")
|
||||
@Log(title = "巡防警力标签注销", businessType = BusinessType.UPDATE)
|
||||
// @ApiImplicitParam(name = "id", value = "标签主键", paramType = "path", required = true, dataType="String")
|
||||
public ResponseResult<Boolean> zcbqByIds(@RequestBody List<String> id){
|
||||
return ResponseResult.success(tbJcglBqService.zcbqByIds(id));
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,73 @@
|
||||
package com.mosty.base.manager.controller;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.mosty.base.model.entity.jcgl.TbJcglBxd;
|
||||
import com.mosty.base.model.query.jcgl.TbJcglBxdQuery;
|
||||
import com.mosty.base.manager.service.TbJcglBxdService;
|
||||
import com.mosty.common.base.domain.ResponseResult;
|
||||
import com.mosty.common.base.entity.log.BusinessType;
|
||||
import com.mosty.common.base.entity.log.Log;
|
||||
import com.mosty.common.token.JwtSysUser;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@Api(tags = {"巡防区域必巡点接口"})
|
||||
@AllArgsConstructor
|
||||
@RestController
|
||||
@RequestMapping("/tbJcglBxd")
|
||||
public class TbJcglBxdController {
|
||||
|
||||
private final TbJcglBxdService tbJcglBxdService;
|
||||
|
||||
@GetMapping({"/queryList"})
|
||||
@JwtSysUser
|
||||
@ApiOperation(value = "查询必巡点列表")
|
||||
public ResponseResult<IPage<TbJcglBxd>> queryList(TbJcglBxdQuery bxdQuery) {
|
||||
return ResponseResult.success(tbJcglBxdService.queryBxd(bxdQuery));
|
||||
}
|
||||
|
||||
@PostMapping({"/addBxd"})
|
||||
@JwtSysUser
|
||||
@Log(title = "新增必巡点", businessType = BusinessType.INSERT)
|
||||
@ApiOperation(value = "新增必巡点")
|
||||
public ResponseResult addBxd(@RequestBody TbJcglBxd bxd) {
|
||||
return ResponseResult.success(tbJcglBxdService.addBxd(bxd));
|
||||
}
|
||||
|
||||
@PostMapping({"/updateBxd"})
|
||||
@JwtSysUser
|
||||
@Log(title = "修改必巡点", businessType = BusinessType.UPDATE)
|
||||
@ApiOperation(value = "修改必巡点")
|
||||
public ResponseResult updateBxd(@RequestBody TbJcglBxd bxd) {
|
||||
return ResponseResult.success(tbJcglBxdService.editBxd(bxd));
|
||||
}
|
||||
|
||||
@GetMapping({"/selectById"})
|
||||
@JwtSysUser
|
||||
@ApiOperation(value = "查询必巡点详情")
|
||||
public ResponseResult selectByid(String id) {
|
||||
return ResponseResult.success(tbJcglBxdService.selectById(id));
|
||||
}
|
||||
|
||||
@PostMapping({"/deleteBxd"})
|
||||
@JwtSysUser
|
||||
@Log(title = "删除必巡点", businessType = BusinessType.DELETE)
|
||||
@ApiOperation(value = "删除必巡点")
|
||||
public ResponseResult deleteBxd(@RequestBody List<String> list) {
|
||||
return ResponseResult.success(tbJcglBxdService.deleteBxd(list));
|
||||
}
|
||||
|
||||
@PostMapping({"/createdBxd"})
|
||||
@ApiOperation(value = "自动计算的必巡点添加")
|
||||
public ResponseResult createdBxd(@RequestBody List<Map<String, Object>> list) {
|
||||
tbJcglBxdService.createdBxd(list);
|
||||
return ResponseResult.success();
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,66 @@
|
||||
package com.mosty.base.manager.controller;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.mosty.base.model.dto.jcgl.TbJcglBxxDto;
|
||||
import com.mosty.base.model.query.jcgl.TbJcglBxxQuery;
|
||||
import com.mosty.base.manager.service.TbJcglBxxService;
|
||||
import com.mosty.common.base.domain.ResponseResult;
|
||||
import com.mosty.common.base.entity.log.BusinessType;
|
||||
import com.mosty.common.base.entity.log.Log;
|
||||
import com.mosty.common.token.JwtSysUser;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Api(tags = {"巡防区域必巡线接口"})
|
||||
@AllArgsConstructor
|
||||
@RestController
|
||||
@RequestMapping("/tbJcglBxx")
|
||||
public class TbJcglBxxController {
|
||||
|
||||
private final TbJcglBxxService tbJcglBxxService;
|
||||
|
||||
@GetMapping({"/queryList"})
|
||||
@JwtSysUser
|
||||
@ApiOperation(value = "查询必巡线列表")
|
||||
public ResponseResult<IPage<TbJcglBxxDto>> queryList(TbJcglBxxQuery bxxQuery) {
|
||||
return ResponseResult.success(tbJcglBxxService.queryBxx(bxxQuery));
|
||||
}
|
||||
|
||||
@PostMapping({"/addBxx"})
|
||||
@JwtSysUser
|
||||
@Log(title = "新增必巡线", businessType = BusinessType.INSERT)
|
||||
@ApiOperation(value = "新增必巡线")
|
||||
public ResponseResult<Integer> addBxx(@RequestBody TbJcglBxxDto bxx) {
|
||||
return ResponseResult.success(tbJcglBxxService.addBxx(bxx));
|
||||
}
|
||||
|
||||
@PostMapping({"/updateBxx"})
|
||||
@JwtSysUser
|
||||
@Log(title = "修改必巡线", businessType = BusinessType.UPDATE)
|
||||
@ApiOperation(value = "修改必巡线")
|
||||
public ResponseResult<Integer> updateBxx(@RequestBody TbJcglBxxDto bxx) {
|
||||
return ResponseResult.success(tbJcglBxxService.editBxx(bxx));
|
||||
}
|
||||
|
||||
@GetMapping({"/selectById"})
|
||||
@JwtSysUser
|
||||
@ApiOperation(value = "查询必巡线详情")
|
||||
public ResponseResult<TbJcglBxxDto> selectByid(String id) {
|
||||
return ResponseResult.success(tbJcglBxxService.selectById(id));
|
||||
}
|
||||
|
||||
@PostMapping({"/deleteBxx"})
|
||||
@JwtSysUser
|
||||
@Log(title = "删除必巡线", businessType = BusinessType.DELETE)
|
||||
@ApiOperation(value = "删除必巡线")
|
||||
public ResponseResult<Integer> deleteBxx(@RequestBody List<String> list) {
|
||||
return ResponseResult.success(tbJcglBxxService.deleteBxx(list));
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -0,0 +1,90 @@
|
||||
package com.mosty.base.manager.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.mosty.base.manager.service.TbJcglAbfcService;
|
||||
import com.mosty.base.manager.service.TbJcglDsfService;
|
||||
import com.mosty.base.model.dto.jcgl.TbJcglAbfcDto;
|
||||
import com.mosty.base.model.dto.jcgl.TbJcglDsfDto;
|
||||
import com.mosty.base.model.dto.jcgl.TbJcglDsfJudgeDto;
|
||||
import com.mosty.base.model.entity.jcgl.TbJcglAbfc;
|
||||
import com.mosty.base.model.entity.jcgl.TbJcglDsf;
|
||||
import com.mosty.base.model.query.jcgl.TbJcglAbfcQuery;
|
||||
import com.mosty.base.model.query.jcgl.TbJcglDsfQuery;
|
||||
import com.mosty.base.model.vo.jcgl.TbJcglDsfVo;
|
||||
import com.mosty.common.base.domain.ResponseResult;
|
||||
import com.mosty.common.base.entity.log.BusinessType;
|
||||
import com.mosty.common.base.entity.log.Log;
|
||||
import com.mosty.common.token.JwtSysUser;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author dw
|
||||
* @since 2022/9/28
|
||||
**/
|
||||
@Api(tags = "第三方相关接口")
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
@RequestMapping("/dsf")
|
||||
public class TbJcglDsfController {
|
||||
|
||||
private final TbJcglDsfService tbJcglDsfService;
|
||||
|
||||
@ApiOperation("添加第三方数据")
|
||||
@JwtSysUser
|
||||
@PostMapping
|
||||
@Log(title = "添加第三方数据", businessType = BusinessType.INSERT)
|
||||
public ResponseResult<Integer> addEntity(@RequestBody TbJcglDsfDto dto) {
|
||||
return ResponseResult.success(this.tbJcglDsfService.addEntity(dto));
|
||||
}
|
||||
|
||||
@ApiOperation("修改第三方数据")
|
||||
@JwtSysUser
|
||||
@PutMapping
|
||||
@Log(title = "修改第三方数据", businessType = BusinessType.UPDATE)
|
||||
public ResponseResult<Integer> editEntity(@RequestBody TbJcglDsfDto dto) {
|
||||
return ResponseResult.success(this.tbJcglDsfService.editEntity(dto));
|
||||
}
|
||||
|
||||
@ApiOperation("批量删除第三方")
|
||||
@JwtSysUser
|
||||
@DeleteMapping
|
||||
@Log(title = "批量删除第三方", businessType = BusinessType.DELETE)
|
||||
public ResponseResult<Void> deleteEntity(@RequestParam List<String> ids) {
|
||||
this.tbJcglDsfService.deleteEntity(ids);
|
||||
return ResponseResult.success();
|
||||
}
|
||||
|
||||
@ApiOperation("查询第三方列表")
|
||||
@JwtSysUser
|
||||
@GetMapping
|
||||
public ResponseResult<IPage<TbJcglDsf>> getPageList(TbJcglDsfQuery dto) {
|
||||
return ResponseResult.success(this.tbJcglDsfService.getPageList(dto));
|
||||
}
|
||||
|
||||
@ApiOperation("查询第三方详情")
|
||||
@JwtSysUser
|
||||
@GetMapping("{id}")
|
||||
public ResponseResult<TbJcglDsf> getInfo(@PathVariable("id") String id) {
|
||||
return ResponseResult.success(this.tbJcglDsfService.getInfo(id));
|
||||
}
|
||||
|
||||
@ApiOperation("修改第三方状态")
|
||||
@JwtSysUser
|
||||
@PostMapping("judge")
|
||||
@Log(title = "修改第三方状态", businessType = BusinessType.UPDATE)
|
||||
public ResponseResult<Integer> judge(@RequestBody TbJcglDsfJudgeDto dto) {
|
||||
return ResponseResult.success(this.tbJcglDsfService.judge(dto));
|
||||
}
|
||||
@ApiOperation("根据code查询第三方详情")
|
||||
@JwtSysUser
|
||||
@GetMapping("/getDsfInfo/{code}")
|
||||
public ResponseResult<TbJcglDsfVo> getDsfInfo(@PathVariable("code") String code){
|
||||
return ResponseResult.success(this.tbJcglDsfService.getDsfInfo(code));
|
||||
}
|
||||
}
|
@ -0,0 +1,66 @@
|
||||
package com.mosty.base.manager.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.mosty.base.model.entity.jcgl.TbJcglJwz;
|
||||
import com.mosty.base.manager.service.TbJcglJwzService;
|
||||
import com.mosty.common.base.domain.ResponseResult;
|
||||
import com.mosty.common.base.entity.log.BusinessType;
|
||||
import com.mosty.common.base.entity.log.Log;
|
||||
import com.mosty.common.token.JwtSysUser;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Api(tags = "警务站")
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
@RequestMapping("/tbJcglJwz")
|
||||
public class TbJcglJwzController {
|
||||
|
||||
private final TbJcglJwzService tbJcglJwzService;
|
||||
|
||||
@GetMapping({"/selectJwzList"})
|
||||
@JwtSysUser
|
||||
@ApiOperation(value = "查询警务站列表")
|
||||
public ResponseResult<IPage<TbJcglJwz>> selectJwzList(TbJcglJwz jwz) {
|
||||
IPage<TbJcglJwz> page = new Page<>(jwz.getPageNo(), jwz.getPageSize());
|
||||
return ResponseResult.success(tbJcglJwzService.selectJwzList(jwz, page));
|
||||
}
|
||||
|
||||
@PostMapping({"/addJwz"})
|
||||
@JwtSysUser
|
||||
@Log(title = "新增警务站", businessType = BusinessType.INSERT)
|
||||
@ApiOperation(value = "新增警务站")
|
||||
public ResponseResult<Void> addJwz(@RequestBody TbJcglJwz tbJcglJwz) {
|
||||
tbJcglJwzService.addJwz(tbJcglJwz);
|
||||
return ResponseResult.success();
|
||||
}
|
||||
|
||||
@PostMapping({"/updateJwz"})
|
||||
@JwtSysUser
|
||||
@Log(title = "修改警务站", businessType = BusinessType.UPDATE)
|
||||
@ApiOperation(value = "修改警务站")
|
||||
public ResponseResult<Void> updateJwz(@RequestBody TbJcglJwz jwz) {
|
||||
tbJcglJwzService.updateJwz(jwz);
|
||||
return ResponseResult.success();
|
||||
}
|
||||
|
||||
@PostMapping({"/deleteJwz"})
|
||||
@JwtSysUser
|
||||
@Log(title = "删除警务站", businessType = BusinessType.DELETE)
|
||||
@ApiOperation(value = "删除警务站")
|
||||
public ResponseResult<Boolean> deleteJwz(@RequestBody List<String> id) {
|
||||
return ResponseResult.success(tbJcglJwzService.deleteJwz(id));
|
||||
}
|
||||
|
||||
@GetMapping({"/selectByid"})
|
||||
@JwtSysUser
|
||||
@ApiOperation(value = "查询警务站详情")
|
||||
public ResponseResult selectByid(String id) {
|
||||
return ResponseResult.success(tbJcglJwzService.selectByid(id));
|
||||
}
|
||||
}
|
@ -0,0 +1,134 @@
|
||||
package com.mosty.base.manager.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.mosty.base.manager.service.TbJcglJyqxService;
|
||||
import com.mosty.base.model.dto.qwzx.AppSearchQuery;
|
||||
import com.mosty.base.model.entity.jcgl.TbJcglJyqx;
|
||||
import com.mosty.base.model.query.jcgl.TbJcglJyqxQuery;
|
||||
import com.mosty.common.base.domain.ResponseResult;
|
||||
import com.mosty.common.base.entity.log.BusinessType;
|
||||
import com.mosty.common.base.entity.log.Log;
|
||||
import com.mosty.common.config.Excel.ExcelUtil;
|
||||
import com.mosty.common.token.JwtSysUser;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
@RequestMapping({"/tpJcglJyqx"})
|
||||
@Api(tags = {"警用器械"})
|
||||
public class TbJcglJyqxController {
|
||||
|
||||
private final TbJcglJyqxService tbJcglJyqxService;
|
||||
|
||||
|
||||
|
||||
@PostMapping({"/xfJyqx"})
|
||||
@JwtSysUser
|
||||
@Log(title = "下发警用器械", businessType = BusinessType.INSERT)
|
||||
@ApiOperation(value = "下发警用器械")
|
||||
public ResponseResult xfZnzb(@RequestBody TbJcglJyqx zb) {
|
||||
tbJcglJyqxService.xfZnzb(zb);
|
||||
return ResponseResult.success();
|
||||
|
||||
}
|
||||
|
||||
@GetMapping({"/htJyqx"})
|
||||
@JwtSysUser
|
||||
@ApiOperation(value = "回退警用器械")
|
||||
public ResponseResult htZnzb(String id,long sl) {
|
||||
tbJcglJyqxService.htZnzb(id,sl);
|
||||
return ResponseResult.success();
|
||||
}
|
||||
|
||||
@GetMapping({"/bsJyqx"})
|
||||
@JwtSysUser
|
||||
@ApiOperation(value = "报损警用器械")
|
||||
public ResponseResult bsZnzb(String id,long sl) {
|
||||
tbJcglJyqxService.bsZnzb(id,sl);
|
||||
return ResponseResult.success();
|
||||
}
|
||||
|
||||
|
||||
@PostMapping("/addJyqx")
|
||||
@JwtSysUser
|
||||
@ApiOperation(value = "新增警用器械")
|
||||
public ResponseResult<Object> addJyqx(@RequestBody TbJcglJyqx jyqx) {
|
||||
tbJcglJyqxService.addJyqx(jyqx);
|
||||
return ResponseResult.success();
|
||||
}
|
||||
|
||||
@GetMapping({"/selectJyqx"})
|
||||
@JwtSysUser
|
||||
@ApiOperation(value = "查询警用装备")
|
||||
public ResponseResult<IPage<TbJcglJyqx>> selectJyqx(TbJcglJyqx jyqx) {
|
||||
IPage<TbJcglJyqx> page = new Page<>(jyqx.getPageNo(), jyqx.getPageSize());
|
||||
return ResponseResult.success(tbJcglJyqxService.selectJyqx(jyqx, page));
|
||||
}
|
||||
|
||||
@PostMapping({"/updateJyqx"})
|
||||
@JwtSysUser
|
||||
@ApiOperation(value = "修改警用装备")
|
||||
public ResponseResult updateJyqx(@RequestBody TbJcglJyqx jyqx) {
|
||||
tbJcglJyqxService.updateJyqx(jyqx);
|
||||
return ResponseResult.success();
|
||||
}
|
||||
|
||||
@PostMapping({"/deleteJyQxzb"})
|
||||
@JwtSysUser
|
||||
@ApiOperation(value = "删除警用装备")
|
||||
public ResponseResult deleteJyQxzb(@RequestBody List<String> id) {
|
||||
tbJcglJyqxService.deleteJyQxzb(id);
|
||||
return ResponseResult.success();
|
||||
}
|
||||
|
||||
@GetMapping({"selectJyqxXq"})
|
||||
@JwtSysUser
|
||||
@ApiOperation(value = "id查询警用器械")
|
||||
public ResponseResult selectJyqxXq(String id) {
|
||||
return ResponseResult.success(tbJcglJyqxService.selectJyqxXq(id));
|
||||
}
|
||||
|
||||
@ApiOperation("警用器械到期提醒")
|
||||
@JwtSysUser
|
||||
@GetMapping("/jyqxDqtx")
|
||||
public ResponseResult<IPage<TbJcglJyqx>> jyqxDqtx(TbJcglJyqxQuery jyqx) {
|
||||
IPage<TbJcglJyqx> page = new Page<>(jyqx.getPageCurrent(), jyqx.getPageSize());
|
||||
return ResponseResult.success(tbJcglJyqxService.selectDqjyqx(jyqx, page));
|
||||
}
|
||||
|
||||
@ApiOperation("app查询警用器械信息")
|
||||
@JwtSysUser
|
||||
@GetMapping("/getJyqxList")
|
||||
public ResponseResult<IPage<TbJcglJyqx>> getJyqxList(AppSearchQuery dto) {
|
||||
return ResponseResult.success(tbJcglJyqxService.getJyqxList(dto));
|
||||
}
|
||||
|
||||
@Log(title = "导入警用器械", businessType = BusinessType.IMPORT)
|
||||
@PostMapping("/importData")
|
||||
@JwtSysUser
|
||||
@Transactional
|
||||
public ResponseResult<String> importData(MultipartFile file, boolean updateSupport) throws Exception {
|
||||
ExcelUtil<TbJcglJyqx> util = new ExcelUtil<TbJcglJyqx>(TbJcglJyqx.class);
|
||||
List<TbJcglJyqx> jyqxList = util.importExcel(file.getInputStream());
|
||||
String s = this.tbJcglJyqxService.importData(jyqxList, updateSupport);
|
||||
return ResponseResult.success(s);
|
||||
}
|
||||
|
||||
|
||||
@Log(title = "警用器械模板下载", businessType = BusinessType.IMPORT)
|
||||
@GetMapping("/importTemplate")
|
||||
@JwtSysUser
|
||||
public void importTemplate(HttpServletResponse response) throws Exception {
|
||||
ExcelUtil<TbJcglJyqx> util = new ExcelUtil<TbJcglJyqx>(TbJcglJyqx.class);
|
||||
util.importTemplateExcel(response, "警用器械");
|
||||
}
|
||||
}
|
@ -0,0 +1,91 @@
|
||||
package com.mosty.base.manager.controller;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.mosty.base.model.dto.qwzx.AppSearchQuery;
|
||||
import com.mosty.base.model.query.jcgl.TbJcglJzQuery;
|
||||
import com.mosty.base.model.vo.jcgl.TbJcglJzAllVo;
|
||||
import com.mosty.base.manager.service.TbJcglJzService;
|
||||
import com.mosty.base.model.vo.jcgl.TbJcglJzVo;
|
||||
import com.mosty.common.base.domain.ResponseResult;
|
||||
import com.mosty.common.base.entity.log.BusinessType;
|
||||
import com.mosty.common.base.entity.log.Log;
|
||||
import com.mosty.common.token.JwtSysUser;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 勤务警组 前端控制器
|
||||
* </p>
|
||||
*
|
||||
* @author zengbo
|
||||
* @since 2022-06-30
|
||||
*/
|
||||
@Api(tags = {"勤务警组接口"})
|
||||
@AllArgsConstructor
|
||||
@RestController
|
||||
@RequestMapping("/tbJcglJz")
|
||||
public class TbJcglJzController {
|
||||
|
||||
private final TbJcglJzService tbJcglJzService;
|
||||
|
||||
@GetMapping({"/queryList"})
|
||||
@JwtSysUser
|
||||
@ApiOperation(value = "查询勤务警组列表")
|
||||
public ResponseResult<IPage<TbJcglJzAllVo>> queryList(TbJcglJzQuery tbJcglJzQuery) {
|
||||
return ResponseResult.success(this.tbJcglJzService.queryList(tbJcglJzQuery));
|
||||
}
|
||||
|
||||
@PostMapping({"/addJz"})
|
||||
@JwtSysUser
|
||||
@Log(title = "新增勤务警组", businessType = BusinessType.INSERT)
|
||||
@ApiOperation(value = "新增勤务警组")
|
||||
public ResponseResult<Integer> addJz(@RequestBody TbJcglJzAllVo vo) {
|
||||
return ResponseResult.success(this.tbJcglJzService.saveJz(vo));
|
||||
}
|
||||
|
||||
@PostMapping({"/updateJz"})
|
||||
@JwtSysUser
|
||||
@Log(title = "修改勤务警组", businessType = BusinessType.UPDATE)
|
||||
@ApiOperation(value = "修改勤务警组")
|
||||
public ResponseResult<Integer> updateJz(@RequestBody TbJcglJzAllVo vo) {
|
||||
return ResponseResult.success(this.tbJcglJzService.updateJz(vo));
|
||||
}
|
||||
|
||||
@GetMapping({"/selectByid"})
|
||||
@JwtSysUser
|
||||
@ApiOperation(value = "查询勤务警组详情")
|
||||
public ResponseResult<TbJcglJzAllVo> selectByid(String id) {
|
||||
return ResponseResult.success(this.tbJcglJzService.selectById(id));
|
||||
}
|
||||
|
||||
@PostMapping({"/deleteJz"})
|
||||
@JwtSysUser
|
||||
@Log(title = "删除勤务警组", businessType = BusinessType.DELETE)
|
||||
@ApiOperation(value = "删除勤务警组")
|
||||
public ResponseResult<Boolean> deleteJz(@RequestBody List<String> list) {
|
||||
return ResponseResult.success(this.tbJcglJzService.deleteBatch(list));
|
||||
}
|
||||
|
||||
@GetMapping("selectJzList")
|
||||
@JwtSysUser
|
||||
@ApiOperation(value = "app查询警组信息")
|
||||
public ResponseResult<Page<TbJcglJzAllVo>> selectJzList(AppSearchQuery dto) {
|
||||
return ResponseResult.success(this.tbJcglJzService.selectJzList(dto));
|
||||
}
|
||||
|
||||
|
||||
@GetMapping({"/tbJzQx"})
|
||||
@ApiOperation(value = "同步警组器械")
|
||||
public ResponseResult<Void> tbJzQx() {
|
||||
this.tbJcglJzService.tbJzQx();
|
||||
return ResponseResult.success();
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,86 @@
|
||||
package com.mosty.base.manager.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.mosty.base.model.dto.jcgl.TbJcglKfdDto;
|
||||
import com.mosty.base.model.dto.qwzx.AppSearchQuery;
|
||||
import com.mosty.base.model.entity.jcgl.TbJcglKfd;
|
||||
import com.mosty.base.model.query.jcgl.TbJcglKfdQuery;
|
||||
import com.mosty.base.manager.service.TbJcglKfdService;
|
||||
import com.mosty.common.base.domain.ResponseResult;
|
||||
import com.mosty.common.base.entity.log.BusinessType;
|
||||
import com.mosty.common.base.entity.log.Log;
|
||||
import com.mosty.common.token.JwtSysUser;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author dw
|
||||
* @since 2022/8/4
|
||||
**/
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
@RequestMapping("/tpJcglKfd")
|
||||
@Api(tags = "快返点")
|
||||
public class TbJcglKfdController {
|
||||
|
||||
private final TbJcglKfdService tbJcglKfdService;
|
||||
|
||||
@GetMapping({"/selectKfdList"})
|
||||
@JwtSysUser
|
||||
@ApiOperation(value = "查询快返点列表")
|
||||
public ResponseResult<IPage<TbJcglKfdDto>> selectKfdList(TbJcglKfdQuery dto) {
|
||||
return ResponseResult.success(tbJcglKfdService.selectKfdList(dto));
|
||||
}
|
||||
|
||||
@PostMapping("/addKfd")
|
||||
@JwtSysUser
|
||||
@Log(title = "新增快返点", businessType = BusinessType.INSERT)
|
||||
@ApiOperation("新增快返点")
|
||||
public ResponseResult<Integer> addKfd(@RequestBody TbJcglKfdDto dto) {
|
||||
return ResponseResult.success(tbJcglKfdService.addKfd(dto));
|
||||
}
|
||||
|
||||
|
||||
@PostMapping({"/updateKfd"})
|
||||
@JwtSysUser
|
||||
@Log(title = "修改快返点列表", businessType = BusinessType.UPDATE)
|
||||
@ApiOperation(value = "修改快返点列表")
|
||||
public ResponseResult<Integer> updateKfd(@RequestBody TbJcglKfdDto dto) {
|
||||
return ResponseResult.success(tbJcglKfdService.updateKfd(dto));
|
||||
}
|
||||
|
||||
@GetMapping({"/selectByid"})
|
||||
@JwtSysUser
|
||||
@ApiOperation(value = "查询快返点详情")
|
||||
public ResponseResult<TbJcglKfdDto> selectByid(String id) {
|
||||
return ResponseResult.success(tbJcglKfdService.selectByid(id));
|
||||
}
|
||||
|
||||
@PostMapping({"/deleteKfd"})
|
||||
@JwtSysUser
|
||||
@Log(title = "删除返点详情", businessType = BusinessType.DELETE)
|
||||
@ApiOperation(value = "删除返点")
|
||||
public ResponseResult<Void> deleteKfd(@RequestBody List<String> id) {
|
||||
tbJcglKfdService.deleteKfd(id);
|
||||
return ResponseResult.success();
|
||||
}
|
||||
|
||||
@GetMapping("getKfdList")
|
||||
@JwtSysUser
|
||||
@ApiOperation(value = "app获取快反点列表")
|
||||
public ResponseResult<Page<TbJcglKfd>> getKfdList(AppSearchQuery dto) {
|
||||
return ResponseResult.success(tbJcglKfdService.getKfdList(dto));
|
||||
}
|
||||
|
||||
@PostMapping("getListAll")
|
||||
@JwtSysUser
|
||||
@ApiOperation(value = "获取所有快反点")
|
||||
public ResponseResult<List<TbJcglKfdDto>> getListAll() {
|
||||
return ResponseResult.success(tbJcglKfdService.getListAll());
|
||||
}
|
||||
}
|
@ -0,0 +1,63 @@
|
||||
package com.mosty.base.manager.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.mosty.base.manager.service.TbJcglKhbmService;
|
||||
import com.mosty.base.model.dto.jcgl.TbJcglKhbmEditPzDto;
|
||||
import com.mosty.base.model.entity.jcgl.TbJcglKhbm;
|
||||
import com.mosty.base.model.query.jcgl.TbJcglKhbmQuery;
|
||||
import com.mosty.base.model.vo.jcgl.TbJcglKhbmVo;
|
||||
import com.mosty.common.base.domain.ResponseResult;
|
||||
import com.mosty.common.token.JwtSysUser;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
@RequestMapping("/khbm")
|
||||
@Api(tags = "绩效考核部门相关接口")
|
||||
public class TbJcglKhbmController {
|
||||
|
||||
private final TbJcglKhbmService tbJcglKhbmService;
|
||||
|
||||
@PostMapping("/addKhbm")
|
||||
@JwtSysUser
|
||||
@ApiOperation(value = "添加绩效考核部门")
|
||||
public ResponseResult<Void> addKhbm(@RequestBody List<String> ssbmidList) {
|
||||
this.tbJcglKhbmService.addKhbm(ssbmidList);
|
||||
return ResponseResult.success();
|
||||
}
|
||||
|
||||
@DeleteMapping("/delKhbm")
|
||||
@JwtSysUser
|
||||
@ApiOperation(value = "删除绩效考核部门")
|
||||
public ResponseResult<Void> delKhbm(@RequestBody List<String> ids) {
|
||||
this.tbJcglKhbmService.delKhbm(ids);
|
||||
return ResponseResult.success();
|
||||
}
|
||||
|
||||
@GetMapping("/getPageList")
|
||||
@JwtSysUser
|
||||
@ApiOperation(value = "查询绩效考核参与部门列表")
|
||||
public ResponseResult<IPage<TbJcglKhbmVo>> getPageList(TbJcglKhbmQuery dto) {
|
||||
return ResponseResult.success(this.tbJcglKhbmService.getPageList(dto));
|
||||
}
|
||||
|
||||
@GetMapping("/getAllKhbm")
|
||||
@JwtSysUser
|
||||
@ApiOperation(value = "查询所有的已选中的部门")
|
||||
public ResponseResult<List<String>> getAllKhbm() {
|
||||
return ResponseResult.success(this.tbJcglKhbmService.getAllKhbm());
|
||||
}
|
||||
|
||||
@PostMapping("/editKhbm")
|
||||
@JwtSysUser
|
||||
@ApiOperation(value = "修改考核部门配置")
|
||||
public ResponseResult<Void> editKhbm(@RequestBody TbJcglKhbm dto) {
|
||||
this.tbJcglKhbmService.editKhbm(dto);
|
||||
return ResponseResult.success();
|
||||
}
|
||||
}
|
@ -0,0 +1,75 @@
|
||||
package com.mosty.base.manager.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.mosty.base.manager.service.TbJcglKfdService;
|
||||
import com.mosty.base.manager.service.TbJcglKhmxService;
|
||||
import com.mosty.base.model.dto.jcgl.TbJcglKfdDto;
|
||||
import com.mosty.base.model.dto.qwzx.AppSearchQuery;
|
||||
import com.mosty.base.model.entity.jcgl.TbJcglKfd;
|
||||
import com.mosty.base.model.entity.jcgl.TbJcglKhmx;
|
||||
import com.mosty.base.model.query.jcgl.TbJcglKfdQuery;
|
||||
import com.mosty.base.model.query.jcgl.TbJcglKhmxQuery;
|
||||
import com.mosty.base.model.vo.jcgl.TbJcglKhmxVo;
|
||||
import com.mosty.common.base.domain.ResponseResult;
|
||||
import com.mosty.common.base.entity.log.BusinessType;
|
||||
import com.mosty.common.base.entity.log.Log;
|
||||
import com.mosty.common.token.JwtSysUser;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
@RequestMapping("/tbjcglKhmx")
|
||||
@Api(tags = "考核模型")
|
||||
public class TbJcglKhmxController {
|
||||
|
||||
private final TbJcglKhmxService tbJcglKhmxService;
|
||||
|
||||
@GetMapping({"/selectPage"})
|
||||
@JwtSysUser
|
||||
@ApiOperation(value = "查询考核模型")
|
||||
public ResponseResult<IPage<TbJcglKhmx>> selectKfdList(TbJcglKhmxQuery tbJcglkhmx) {
|
||||
return ResponseResult.success(tbJcglKhmxService.paginQuery(tbJcglkhmx));
|
||||
}
|
||||
|
||||
@PostMapping("/addKhmx")
|
||||
@JwtSysUser
|
||||
@Log(title = "新增考核模型", businessType = BusinessType.INSERT)
|
||||
@ApiOperation("新增考核模型")
|
||||
public ResponseResult<Integer> addKhmx(@RequestBody TbJcglKhmx tbJcglKhmx) {
|
||||
return ResponseResult.success(tbJcglKhmxService.insert(tbJcglKhmx));
|
||||
}
|
||||
|
||||
|
||||
@PostMapping({"/updateKhmx"})
|
||||
@JwtSysUser
|
||||
@Log(title = "修改考核模型", businessType = BusinessType.UPDATE)
|
||||
@ApiOperation(value = "修改考核模型")
|
||||
public ResponseResult<Integer> updateKhmx(@RequestBody TbJcglKhmx tbJcglKhmx) {
|
||||
return ResponseResult.success(tbJcglKhmxService.update(tbJcglKhmx));
|
||||
}
|
||||
|
||||
@GetMapping({"/selectByid"})
|
||||
@JwtSysUser
|
||||
@ApiOperation(value = "查询考核模型详情")
|
||||
public ResponseResult<TbJcglKhmxVo> selectByid(String id) {
|
||||
return ResponseResult.success(tbJcglKhmxService.queryById(id));
|
||||
}
|
||||
|
||||
@PostMapping({"/delete"})
|
||||
@JwtSysUser
|
||||
@Log(title = "删除考核模型", businessType = BusinessType.DELETE)
|
||||
@ApiOperation(value = "删除考核模型")
|
||||
public ResponseResult<Void> delete(@RequestBody List<String> id) {
|
||||
tbJcglKhmxService.deleteByIds(id);
|
||||
return ResponseResult.success();
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,187 @@
|
||||
package com.mosty.base.manager.controller;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.mosty.base.manager.service.TbJcglKhtjService;
|
||||
import com.mosty.base.manager.task.TbJcglJxkhTask;
|
||||
import com.mosty.base.model.entity.jcgl.TbJcglKhtj;
|
||||
import com.mosty.base.model.query.jcgl.TbJcglKhtjQuery;
|
||||
import com.mosty.base.model.query.jcgl.TbJcglKhtjStatisticsQuery;
|
||||
import com.mosty.base.model.vo.jcgl.TbJcglKhtjVo;
|
||||
import com.mosty.base.utils.DecimalUtils;
|
||||
import com.mosty.common.base.domain.ResponseResult;
|
||||
import com.mosty.common.config.Excel.ExcelExp;
|
||||
import com.mosty.common.config.Excel.ExcelUtil;
|
||||
import com.mosty.common.config.Excel.ExcelUtilManySheet;
|
||||
import com.mosty.common.token.JwtSysUser;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.apache.commons.lang3.ObjectUtils;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.util.CollectionUtils;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.math.BigDecimal;
|
||||
import java.text.NumberFormat;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
@RequestMapping("/khtj")
|
||||
@Api(tags = "绩效考核统计相关接口")
|
||||
public class TbJcglKhtjController {
|
||||
|
||||
private final TbJcglKhtjService tbJcglKhtjService;
|
||||
|
||||
@GetMapping(value = "/autoTimeJxkh")
|
||||
@ApiOperation("启动或者修改定时器绩效考核")
|
||||
public ResponseResult<Boolean> autoTimeXzjq() {
|
||||
TbJcglJxkhTask.jxkh = !TbJcglJxkhTask.jxkh;
|
||||
return ResponseResult.success(TbJcglJxkhTask.jxkh);
|
||||
}
|
||||
|
||||
@PostMapping("/builder")
|
||||
@JwtSysUser
|
||||
@ApiOperation(value = "统计某一天的数据")
|
||||
public ResponseResult<Void> addKhbm(String time) {
|
||||
this.tbJcglKhtjService.builder(time);
|
||||
return ResponseResult.success();
|
||||
}
|
||||
|
||||
@GetMapping("/getPageList")
|
||||
@JwtSysUser
|
||||
@ApiOperation(value = "条件查询列表信息")
|
||||
public ResponseResult<IPage<TbJcglKhtjVo>> getPageList(TbJcglKhtjQuery dto) {
|
||||
return ResponseResult.success(this.tbJcglKhtjService.getPageList(dto));
|
||||
}
|
||||
|
||||
@GetMapping("/getStatistics")
|
||||
@JwtSysUser
|
||||
@ApiOperation(value = "统计数据")
|
||||
public ResponseResult<Map<String, Object>> getStatistics(TbJcglKhtjStatisticsQuery dto) {
|
||||
return ResponseResult.success(this.tbJcglKhtjService.getStatistics(dto));
|
||||
}
|
||||
|
||||
@PostMapping("/export")
|
||||
@JwtSysUser
|
||||
@ApiOperation(value = "导出统计")
|
||||
public void getStatistics(HttpServletResponse response, TbJcglKhtjQuery dto) throws Exception {
|
||||
List<TbJcglKhtjVo> pageList = this.tbJcglKhtjService.getFxbm(dto);
|
||||
if (!CollectionUtils.isEmpty(pageList)) {
|
||||
List<ExcelExp> sheet = new ArrayList<>();
|
||||
for (TbJcglKhtjVo vo : pageList) {
|
||||
dto.setSsbmdm(vo.getSsbmdm());
|
||||
List<TbJcglKhtj> list = this.tbJcglKhtjService.getList(dto);
|
||||
List<TbJcglKhtjVo> voList = new ArrayList<>();
|
||||
if (!CollectionUtils.isEmpty(list)) {
|
||||
TbJcglKhtjVo tj = new TbJcglKhtjVo();
|
||||
tj.setSsbm("统计");
|
||||
tj.setTjrq(list.get(0).getTjrq());
|
||||
for (TbJcglKhtj khtj : list) {
|
||||
TbJcglKhtjVo khtjVo = new TbJcglKhtjVo();
|
||||
BeanUtils.copyProperties(khtj, khtjVo);
|
||||
khtjVo.setWbbl(khtjVo.getSjbb() == 0 ? "0" : getPercent(khtjVo.getSjbb(), khtjVo.getYbb()));
|
||||
khtjVo.setXlbl(khtjVo.getSjxl() == 0 ? "0" : getPercent(khtjVo.getSjxl(), khtjVo.getYxl()));
|
||||
khtjVo.setXllcbl(khtjVo.getSjxllc() == 0 ? "0" : getPercent(khtjVo.getSjxllc(), khtjVo.getYxllc()));
|
||||
khtjVo.setXlscbl(khtjVo.getSjxlsc() == 0 ? "0" : getPercent(khtjVo.getSjxlsc(), khtjVo.getYxlsc()));
|
||||
double kf = 0;
|
||||
//计算三项扣分 得分
|
||||
if ((ObjectUtils.isNotEmpty(khtjVo.getXlkf()) && khtjVo.getXlkf().compareTo(BigDecimal.ZERO) > 0)
|
||||
|| (ObjectUtils.isNotEmpty(khtjVo.getXlsckf()) && khtjVo.getXlsckf().compareTo(BigDecimal.ZERO) > 0)
|
||||
|| (ObjectUtils.isNotEmpty(khtjVo.getXllckf()) && khtjVo.getXllckf().compareTo(BigDecimal.ZERO) > 0)
|
||||
) {
|
||||
kf = 0.15;
|
||||
}
|
||||
khtjVo.setSxdf(10 - kf);
|
||||
khtjVo.setSxkf(kf);
|
||||
|
||||
// khtjVo.setQsbl(khtjVo.getSjqs() == 0 ? "0" : getPercent(khtjVo.getSjqs(), khtjVo.getYqs()));
|
||||
// khtjVo.setCrbl(khtjVo.getSjcr() == 0 ? "0" : getPercent(khtjVo.getSjcr(), khtjVo.getZscr()));
|
||||
// khtjVo.setCcbl(khtjVo.getSjcc() == 0 ? "0" : getPercent(khtjVo.getSjcc(), khtjVo.getzscc()));
|
||||
|
||||
|
||||
voList.add(khtjVo);
|
||||
|
||||
tj.setYbb(khtj.getYbb() + tj.getYbb());
|
||||
tj.setZsbb(khtj.getZsbb() + tj.getZsbb());
|
||||
tj.setSjbb(khtj.getSjbb() + tj.getSjbb());
|
||||
tj.setWbb(khtj.getWbb() + tj.getWbb());
|
||||
tj.setBbkf(DecimalUtils.add(khtj.getBbkf(), tj.getBbkf()));
|
||||
|
||||
|
||||
tj.setYxl(khtj.getYxl() + tj.getYxl());
|
||||
tj.setZsxl(khtj.getZsxl() + tj.getZsxl());
|
||||
tj.setSjxl(khtj.getSjxl() + tj.getSjxl());
|
||||
tj.setWxl(khtj.getWxl() + tj.getWxl());
|
||||
tj.setXlkf(DecimalUtils.add(khtj.getXlkf(), tj.getXlkf()));
|
||||
|
||||
|
||||
//
|
||||
// tj.setYqs(khtj.getYqs() + tj.getYqs());
|
||||
// tj.setSjqs(khtj.getSjqs() + tj.getSjqs());
|
||||
// tj.setWqs(khtj.getWqs() + tj.getWqs());
|
||||
|
||||
//
|
||||
// tj.setYcr(khtj.getYcr() + tj.getYcr());
|
||||
// tj.setSjcr(khtj.getSjcr() + tj.getSjcr());
|
||||
// tj.setWcr(khtj.getWcr() + tj.getWcr());
|
||||
|
||||
|
||||
// tj.setYcc(khtj.getYcc() + tj.getYcc());
|
||||
// tj.setSjcc(khtj.getSjcc() + tj.getSjcc());
|
||||
// tj.setWcc(khtj.getWcc() + tj.getWcc());
|
||||
|
||||
|
||||
tj.setYxllc(khtj.getYxllc() + tj.getYxllc());
|
||||
tj.setZsxllc(khtj.getZsxllc() + tj.getZsxllc());
|
||||
tj.setSjxllc(khtj.getSjxllc() + tj.getSjxllc());
|
||||
tj.setWxllc(khtj.getWxllc() + tj.getWxllc());
|
||||
tj.setXllckf(DecimalUtils.add(khtj.getXllckf(), tj.getXllckf()));
|
||||
|
||||
tj.setYxlsc(khtj.getYxlsc() + tj.getYxlsc());
|
||||
tj.setZsxlsc(khtj.getZsxlsc() + tj.getZsxlsc());
|
||||
tj.setSjxlsc(khtj.getSjxlsc() + tj.getSjxlsc());
|
||||
tj.setWxlsc(khtj.getWxlsc() + tj.getWxlsc());
|
||||
tj.setXlsckf(DecimalUtils.add(khtj.getXlsckf(), tj.getXlsckf()));
|
||||
tj.setSxkf(kf + tj.getSxkf());
|
||||
tj.setSxdf(10 - tj.getSxkf());
|
||||
|
||||
|
||||
}
|
||||
tj.setWbbl(tj.getSjbb() == 0 ? "0" : getPercent(tj.getSjbb(), tj.getYbb()));
|
||||
tj.setXlbl(tj.getSjxl() == 0 ? "0" : getPercent(tj.getSjxl(), tj.getYxl()));
|
||||
// tj.setQsbl(tj.getSjqs() == 0 ? "0" : getPercent(tj.getSjqs(), tj.getYqs()));
|
||||
// tj.setCrbl(tj.getSjcr() == 0 ? "0" : getPercent(tj.getSjcr(), tj.getYcr()));
|
||||
// tj.setCcbl(tj.getSjcc() == 0 ? "0" : getPercent(tj.getSjcc(), tj.getYcc()));
|
||||
tj.setXllcbl(tj.getSjxllc() == 0 ? "0" : getPercent(tj.getSjxllc(), tj.getYxllc()));
|
||||
tj.setXlscbl(tj.getSjxlsc() == 0 ? "0" : getPercent(tj.getSjxlsc(), tj.getYxlsc()));
|
||||
voList.add(tj);
|
||||
ExcelExp excelExp = new ExcelExp(vo.getSsbm(), voList, TbJcglKhtjVo.class);
|
||||
sheet.add(excelExp);
|
||||
}
|
||||
}
|
||||
ExcelUtilManySheet<List<ExcelExp>> util2 = new ExcelUtilManySheet<List<ExcelExp>>(sheet);
|
||||
util2.exportExcelManySheet(response, sheet);
|
||||
}
|
||||
|
||||
|
||||
/* List<TbJcglKhtj> list = this.tbJcglKhtjService.getList(dto);
|
||||
ExcelUtil<TbJcglKhtj> util = new ExcelUtil<>(TbJcglKhtj.class);
|
||||
util.exportExcel(response, list, "考核统计", "考核统计");*/
|
||||
}
|
||||
|
||||
public String getPercent(int x, int y) {
|
||||
double d1 = x * 1.0;
|
||||
double d2 = y * 1.0;
|
||||
NumberFormat per = NumberFormat.getPercentInstance();
|
||||
per.setMaximumFractionDigits(2);
|
||||
return per.format(d1 / d2);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,73 @@
|
||||
package com.mosty.base.manager.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.mosty.base.manager.service.TbJcglPzfzService;
|
||||
import com.mosty.base.model.dto.jcgl.TbJcglPzfzDto;
|
||||
import com.mosty.base.model.entity.jcgl.TbJcglPzfz;
|
||||
import com.mosty.common.base.domain.ResponseResult;
|
||||
import com.mosty.common.base.entity.log.BusinessType;
|
||||
import com.mosty.common.base.entity.log.Log;
|
||||
import com.mosty.common.token.JwtSysUser;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@Api(tags = "分值配置相关接口")
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
@RequestMapping("/fzpz")
|
||||
public class TbJcglPzfzController {
|
||||
|
||||
private final TbJcglPzfzService tbJcglPzfzService;
|
||||
|
||||
@ApiOperation("查询配置分值列表")
|
||||
@JwtSysUser
|
||||
@GetMapping({"/selectPzfzByPzrxm"})
|
||||
public ResponseResult<IPage<Map<String, Object>>> getPageList(TbJcglPzfzDto dto) {
|
||||
return ResponseResult.success(this.tbJcglPzfzService.getPageList(dto));
|
||||
}
|
||||
|
||||
@ApiOperation("查询配置分值列表(无条件)")
|
||||
@JwtSysUser
|
||||
@GetMapping({"/selectPzfzwtj"})
|
||||
public ResponseResult<List<TbJcglPzfz>> getPageListWtj() {
|
||||
return ResponseResult.success(this.tbJcglPzfzService.getPageListWtj());
|
||||
}
|
||||
|
||||
@ApiOperation("添加配置分值")
|
||||
@JwtSysUser
|
||||
@PostMapping({"/addPzfz"})
|
||||
@Log(title = "添加配置分值", businessType = BusinessType.INSERT)
|
||||
public ResponseResult<Integer> addEntity(@RequestBody TbJcglPzfzDto dto) {
|
||||
return ResponseResult.success(this.tbJcglPzfzService.addEntity(dto));
|
||||
}
|
||||
|
||||
@ApiOperation("删除配置分值")
|
||||
@JwtSysUser
|
||||
@DeleteMapping({"/deleteEntity/{id}"})
|
||||
@Log(title = "删除配置分值", businessType = BusinessType.DELETE)
|
||||
public ResponseResult<Integer> deleteEntity(@PathVariable("id") String id) {
|
||||
tbJcglPzfzService.deleteEntity(id);
|
||||
return ResponseResult.success();
|
||||
}
|
||||
|
||||
@ApiOperation("修改配置分值")
|
||||
@JwtSysUser
|
||||
@PutMapping({"/editEntity"})
|
||||
@Log(title = "修改配置分值", businessType = BusinessType.UPDATE)
|
||||
public ResponseResult<Integer> editEntity(@RequestBody TbJcglPzfzDto dto) {
|
||||
return ResponseResult.success(this.tbJcglPzfzService.editEntity(dto));
|
||||
}
|
||||
|
||||
@ApiOperation("查询配置分值详情")
|
||||
@JwtSysUser
|
||||
@GetMapping("{pzlx}")
|
||||
public ResponseResult<TbJcglPzfz> getInfo(@PathVariable("pzlx") String pzlx) {
|
||||
return ResponseResult.success(this.tbJcglPzfzService.getInfo(pzlx));
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,69 @@
|
||||
package com.mosty.base.manager.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.mosty.base.model.dto.jcgl.TbJcglShabllInsertAndEditDto;
|
||||
import com.mosty.base.model.entity.jcgl.TbJcglShabll;
|
||||
import com.mosty.base.model.query.jcgl.TbJcglShabllQuery;
|
||||
import com.mosty.base.manager.service.TbJcglShabllService;
|
||||
import com.mosty.common.base.domain.ResponseResult;
|
||||
import com.mosty.common.base.entity.log.BusinessType;
|
||||
import com.mosty.common.base.entity.log.Log;
|
||||
import com.mosty.common.token.JwtSysUser;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author dw
|
||||
* @since 2022/7/11
|
||||
**/
|
||||
@Api(tags = "社会安保力量接口")
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
@RequestMapping("/tbJcglShabll")
|
||||
public class TbJcglShabllController {
|
||||
|
||||
private final TbJcglShabllService tbJcglShabllService;
|
||||
|
||||
@ApiOperation("新增社会安保力量")
|
||||
@JwtSysUser
|
||||
@PostMapping
|
||||
@Log(title = "新增社会安保力量", businessType = BusinessType.INSERT)
|
||||
public ResponseResult<Integer> addEntity(@RequestBody TbJcglShabllInsertAndEditDto dto) {
|
||||
return ResponseResult.success(this.tbJcglShabllService.addEntity(dto));
|
||||
}
|
||||
|
||||
@ApiOperation("修改社会安保力量")
|
||||
@JwtSysUser
|
||||
@PutMapping
|
||||
@Log(title = "修改社会安保力量", businessType = BusinessType.UPDATE)
|
||||
public ResponseResult<Integer> editEntity(@RequestBody TbJcglShabllInsertAndEditDto dto) {
|
||||
return ResponseResult.success(this.tbJcglShabllService.editEntity(dto));
|
||||
}
|
||||
|
||||
@ApiOperation("查询社会安保力量-分页")
|
||||
@JwtSysUser
|
||||
@GetMapping
|
||||
public ResponseResult<IPage<TbJcglShabll>> getPageList(TbJcglShabllQuery dto) {
|
||||
return ResponseResult.success(this.tbJcglShabllService.getPageList(dto));
|
||||
}
|
||||
|
||||
@ApiOperation("删除社会安保力量-批量删除")
|
||||
@JwtSysUser
|
||||
@DeleteMapping
|
||||
@Log(title = "删除社会安保力量-批量删除", businessType = BusinessType.UPDATE)
|
||||
public ResponseResult<Integer> delEntity(@RequestBody List<String> ids) {
|
||||
return ResponseResult.success(this.tbJcglShabllService.delEntity(ids));
|
||||
}
|
||||
|
||||
@ApiOperation("社会安保力量详情")
|
||||
@JwtSysUser
|
||||
@GetMapping("{id}")
|
||||
public ResponseResult<TbJcglShabll> getInfo(@PathVariable("id") String id) {
|
||||
return ResponseResult.success(this.tbJcglShabllService.getInfo(id));
|
||||
}
|
||||
}
|
@ -0,0 +1,140 @@
|
||||
package com.mosty.base.manager.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.mosty.base.manager.service.TbJcglBqService;
|
||||
import com.mosty.base.manager.service.TbJcglXfService;
|
||||
import com.mosty.base.model.dto.jcgl.TbJcglBqDto;
|
||||
import com.mosty.base.model.entity.jcgl.TbJcglXf;
|
||||
import com.mosty.base.model.query.jcgl.TbJcglBqQuery;
|
||||
import com.mosty.base.model.query.jcgl.TbJcglXfQuery;
|
||||
import com.mosty.base.model.vo.jcgl.TbJcglBqVo;
|
||||
import com.mosty.common.base.domain.ResponseResult;
|
||||
import com.mosty.common.base.entity.log.BusinessType;
|
||||
import com.mosty.common.base.entity.log.Log;
|
||||
import com.mosty.common.token.JwtSysUser;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 巡防接口
|
||||
*/
|
||||
@Api(tags = "巡访接口")
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
@RequestMapping("/tbJcglXf")
|
||||
public class TbJcglXfController {
|
||||
|
||||
private final TbJcglXfService tbJcglXfService;
|
||||
|
||||
/**
|
||||
* 通过ID查询单条数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 实例对象
|
||||
*/
|
||||
@ApiOperation("通过ID查询单条数据")
|
||||
@JwtSysUser
|
||||
@GetMapping("{id}")
|
||||
@Log(title = "巡防单条数据", businessType = BusinessType.OTHER)
|
||||
@ApiImplicitParam(name = "id", value = "巡访ID", paramType = "path", required = true, dataType = "String")
|
||||
public ResponseResult<TbJcglXf> queryById(@PathVariable String id) {
|
||||
return ResponseResult.success(tbJcglXfService.queryById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
*
|
||||
* @param query 筛选条件
|
||||
* @return 查询结果
|
||||
*/
|
||||
@ApiOperation("分页查询")
|
||||
@JwtSysUser
|
||||
@GetMapping
|
||||
public ResponseResult<IPage<TbJcglXf>> paginQuery(TbJcglXfQuery query) {
|
||||
IPage<TbJcglXf> page = tbJcglXfService.paginQuery(query);
|
||||
return ResponseResult.success(page);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增数据
|
||||
*
|
||||
* @param xf 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
@ApiOperation("新增数据")
|
||||
@JwtSysUser
|
||||
@PostMapping
|
||||
@Log(title = "巡访签新增", businessType = BusinessType.INSERT)
|
||||
public ResponseResult<Integer> add(@RequestBody TbJcglXf xf) {
|
||||
return ResponseResult.success(tbJcglXfService.insert(xf));
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新数据
|
||||
*
|
||||
* @param xf 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
@ApiOperation("更新数据")
|
||||
@JwtSysUser
|
||||
@PutMapping
|
||||
@Log(title = "巡访更新", businessType = BusinessType.UPDATE)
|
||||
public ResponseResult<Integer> edit(@RequestBody TbJcglXf xf) {
|
||||
return ResponseResult.success(tbJcglXfService.update(xf));
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过主键删除数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 是否成功
|
||||
*/
|
||||
@ApiOperation("通过主键删除数据")
|
||||
@DeleteMapping("{id}")
|
||||
@Log(title = "巡访删除", businessType = BusinessType.UPDATE)
|
||||
@ApiImplicitParam(name = "id", value = "标签主键", paramType = "path", required = true, dataType = "String")
|
||||
public ResponseResult<Boolean> deleteById(@PathVariable("id") String id) {
|
||||
return ResponseResult.success(tbJcglXfService.deleteById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 是否成功
|
||||
*/
|
||||
@ApiOperation("批量删除")
|
||||
@PostMapping("/bacth")
|
||||
@Log(title = "巡访删除", businessType = BusinessType.UPDATE)
|
||||
@ApiImplicitParam(name = "id", value = "标签主键", paramType = "path", required = true, dataType = "String")
|
||||
public ResponseResult<Boolean> deleteByIds(@RequestBody List<String> id) {
|
||||
return ResponseResult.success(tbJcglXfService.deleteByIds(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 巡访部门统计
|
||||
*
|
||||
* @param query
|
||||
*/
|
||||
@ApiOperation("巡访部门统计")
|
||||
@PostMapping("/xfbmtj")
|
||||
@Log(title = "巡访部门统计", businessType = BusinessType.OTHER)
|
||||
public ResponseResult<List<Map<String,Object>>> xfbmtj(@RequestBody TbJcglXfQuery query) {
|
||||
return ResponseResult.success(tbJcglXfService.xfbmtj(query));
|
||||
}
|
||||
|
||||
@ApiOperation("批量申报")
|
||||
@PostMapping("/bacthSb")
|
||||
@Log(title = "批量申报", businessType = BusinessType.UPDATE)
|
||||
@ApiImplicitParam(name = "id", value = "标签主键", paramType = "path", required = true, dataType = "String")
|
||||
public ResponseResult<Integer> bacthSb(@RequestBody List<String> id) {
|
||||
return ResponseResult.success(tbJcglXfService.bacthSb(id));
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,115 @@
|
||||
package com.mosty.base.manager.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.mosty.base.manager.service.TbJcglXfCyryService;
|
||||
import com.mosty.base.model.entity.jcgl.TbJcglXfCyry;
|
||||
import com.mosty.base.model.query.jcgl.TbJcglXfCyryQuery;
|
||||
import com.mosty.common.base.domain.ResponseResult;
|
||||
import com.mosty.common.base.entity.log.BusinessType;
|
||||
import com.mosty.common.base.entity.log.Log;
|
||||
import com.mosty.common.token.JwtSysUser;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 巡防接口
|
||||
*/
|
||||
@Api(tags = "从业人员接口")
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
@RequestMapping("/tbJcglXfCyry")
|
||||
public class TbJcglXfCyryController {
|
||||
|
||||
private final TbJcglXfCyryService tbJcglXfCyryService;
|
||||
|
||||
/**
|
||||
* 通过ID查询单条数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 实例对象
|
||||
*/
|
||||
@ApiOperation("通过ID查询单条数据")
|
||||
@JwtSysUser
|
||||
@GetMapping("{id}")
|
||||
@Log(title = "巡防单条数据", businessType = BusinessType.OTHER)
|
||||
@ApiImplicitParam(name = "id", value = "从业人员ID", paramType = "path", required = true, dataType = "String")
|
||||
public ResponseResult<TbJcglXfCyry> queryById(@PathVariable String id) {
|
||||
return ResponseResult.success(tbJcglXfCyryService.queryById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
*
|
||||
* @param query 筛选条件
|
||||
* @return 查询结果
|
||||
*/
|
||||
@ApiOperation("分页查询")
|
||||
@JwtSysUser
|
||||
@GetMapping
|
||||
public ResponseResult<IPage<TbJcglXfCyry>> paginQuery(TbJcglXfCyryQuery query) {
|
||||
IPage<TbJcglXfCyry> page = tbJcglXfCyryService.paginQuery(query);
|
||||
return ResponseResult.success(page);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增数据
|
||||
*
|
||||
* @param xf 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
@ApiOperation("新增数据")
|
||||
@JwtSysUser
|
||||
@PostMapping
|
||||
@Log(title = "从业人员新增", businessType = BusinessType.INSERT)
|
||||
public ResponseResult<Integer> add(@RequestBody TbJcglXfCyry xf) {
|
||||
return ResponseResult.success(tbJcglXfCyryService.insert(xf));
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新数据
|
||||
*
|
||||
* @param xf 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
@ApiOperation("更新数据")
|
||||
@JwtSysUser
|
||||
@PutMapping
|
||||
@Log(title = "从业人员更新", businessType = BusinessType.UPDATE)
|
||||
public ResponseResult<Integer> edit(@RequestBody TbJcglXfCyry xf) {
|
||||
return ResponseResult.success(tbJcglXfCyryService.update(xf));
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过主键删除数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 是否成功
|
||||
*/
|
||||
@ApiOperation("通过主键删除数据")
|
||||
@DeleteMapping("{id}")
|
||||
@Log(title = "巡访删除", businessType = BusinessType.UPDATE)
|
||||
@ApiImplicitParam(name = "id", value = "标签主键", paramType = "path", required = true, dataType = "String")
|
||||
public ResponseResult<Boolean> deleteById(@PathVariable("id") String id) {
|
||||
return ResponseResult.success(tbJcglXfCyryService.deleteById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过主键删除数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 是否成功
|
||||
*/
|
||||
@ApiOperation("通过主键删除数据")
|
||||
@PostMapping("/bacth")
|
||||
@Log(title = "巡访删除", businessType = BusinessType.DELETE)
|
||||
@ApiImplicitParam(name = "id", value = "标签主键", paramType = "path", required = true, dataType = "String")
|
||||
public ResponseResult<Boolean> deleteByIds(@RequestBody List<String> id) {
|
||||
return ResponseResult.success(tbJcglXfCyryService.deleteByIds(id));
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,115 @@
|
||||
package com.mosty.base.manager.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.mosty.base.manager.service.TbJcglXfDwglService;
|
||||
import com.mosty.base.model.entity.jcgl.TbJcglXfDwgl;
|
||||
import com.mosty.base.model.query.jcgl.TbJcglXfDwglQuery;
|
||||
import com.mosty.common.base.domain.ResponseResult;
|
||||
import com.mosty.common.base.entity.log.BusinessType;
|
||||
import com.mosty.common.base.entity.log.Log;
|
||||
import com.mosty.common.token.JwtSysUser;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 巡防接口
|
||||
*/
|
||||
@Api(tags = "单位管理接口")
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
@RequestMapping("/tbJcglXfDwgl")
|
||||
public class TbJcglXfDwglController {
|
||||
|
||||
private final TbJcglXfDwglService tbJcglXfDwglService;
|
||||
|
||||
/**
|
||||
* 通过ID查询单条数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 实例对象
|
||||
*/
|
||||
@ApiOperation("通过ID查询单条数据")
|
||||
@JwtSysUser
|
||||
@GetMapping("{id}")
|
||||
@Log(title = "巡防单条数据", businessType = BusinessType.OTHER)
|
||||
@ApiImplicitParam(name = "id", value = "单位管理ID", paramType = "path", required = true, dataType = "String")
|
||||
public ResponseResult<TbJcglXfDwgl> queryById(@PathVariable String id) {
|
||||
return ResponseResult.success(tbJcglXfDwglService.queryById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
*
|
||||
* @param query 筛选条件
|
||||
* @return 查询结果
|
||||
*/
|
||||
@ApiOperation("分页查询")
|
||||
@JwtSysUser
|
||||
@GetMapping
|
||||
public ResponseResult<IPage<TbJcglXfDwgl>> paginQuery(TbJcglXfDwglQuery query) {
|
||||
IPage<TbJcglXfDwgl> page = tbJcglXfDwglService.paginQuery(query);
|
||||
return ResponseResult.success(page);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增数据
|
||||
*
|
||||
* @param xf 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
@ApiOperation("新增数据")
|
||||
@JwtSysUser
|
||||
@PostMapping
|
||||
@Log(title = "单位管理新增", businessType = BusinessType.INSERT)
|
||||
public ResponseResult<Integer> add(@RequestBody TbJcglXfDwgl xf) {
|
||||
return ResponseResult.success(tbJcglXfDwglService.insert(xf));
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新数据
|
||||
*
|
||||
* @param xf 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
@ApiOperation("更新数据")
|
||||
@JwtSysUser
|
||||
@PutMapping
|
||||
@Log(title = "单位管理更新", businessType = BusinessType.UPDATE)
|
||||
public ResponseResult<Integer> edit(@RequestBody TbJcglXfDwgl xf) {
|
||||
return ResponseResult.success(tbJcglXfDwglService.update(xf));
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过主键删除数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 是否成功
|
||||
*/
|
||||
@ApiOperation("通过主键删除数据")
|
||||
@DeleteMapping("{id}")
|
||||
@Log(title = "单位管理删除", businessType = BusinessType.UPDATE)
|
||||
@ApiImplicitParam(name = "id", value = "标签主键", paramType = "path", required = true, dataType = "String")
|
||||
public ResponseResult<Boolean> deleteById(@PathVariable("id") String id) {
|
||||
return ResponseResult.success(tbJcglXfDwglService.deleteById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过主键删除数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 是否成功
|
||||
*/
|
||||
@ApiOperation("通过主键删除数据")
|
||||
@PostMapping("/bacth")
|
||||
@Log(title = "单位管理删除", businessType = BusinessType.DELETE)
|
||||
@ApiImplicitParam(name = "id", value = "标签主键", paramType = "path", required = true, dataType = "String")
|
||||
public ResponseResult<Boolean> deleteByIds(@RequestBody List<String> id) {
|
||||
return ResponseResult.success(tbJcglXfDwglService.deleteByIds(id));
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,118 @@
|
||||
package com.mosty.base.manager.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.mosty.base.manager.service.TbJcglXfNrmbService;
|
||||
import com.mosty.base.manager.service.TbJcglXfService;
|
||||
import com.mosty.base.model.entity.jcgl.TbJcglXf;
|
||||
import com.mosty.base.model.entity.jcgl.TbJcglXfNrmb;
|
||||
import com.mosty.base.model.query.jcgl.TbJcglXfNrmbQuery;
|
||||
import com.mosty.base.model.query.jcgl.TbJcglXfQuery;
|
||||
import com.mosty.common.base.domain.ResponseResult;
|
||||
import com.mosty.common.base.entity.log.BusinessType;
|
||||
import com.mosty.common.base.entity.log.Log;
|
||||
import com.mosty.common.token.JwtSysUser;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 巡访内容模板
|
||||
*/
|
||||
@Api(tags = "巡访内容模板接口")
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
@RequestMapping("/tbJcglXfNrmb")
|
||||
public class TbJcglXfNrmbController {
|
||||
|
||||
private final TbJcglXfNrmbService tbJcglXfNrmbService;
|
||||
|
||||
/**
|
||||
* 通过ID查询单条数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 实例对象
|
||||
*/
|
||||
@ApiOperation("通过ID查询单条数据")
|
||||
@JwtSysUser
|
||||
@GetMapping("{id}")
|
||||
@Log(title = "巡防内容数据", businessType = BusinessType.OTHER)
|
||||
@ApiImplicitParam(name = "id", value = "内容ID", paramType = "path", required = true, dataType = "String")
|
||||
public ResponseResult<TbJcglXfNrmb> queryById(@PathVariable String id) {
|
||||
return ResponseResult.success(tbJcglXfNrmbService.queryById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
*
|
||||
* @param query 筛选条件
|
||||
* @return 查询结果
|
||||
*/
|
||||
@ApiOperation("分页查询")
|
||||
@JwtSysUser
|
||||
@GetMapping
|
||||
public ResponseResult<IPage<TbJcglXfNrmb>> paginQuery(TbJcglXfNrmbQuery query) {
|
||||
IPage<TbJcglXfNrmb> page = tbJcglXfNrmbService.paginQuery(query);
|
||||
return ResponseResult.success(page);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增数据
|
||||
*
|
||||
* @param xf 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
@ApiOperation("新增数据")
|
||||
@JwtSysUser
|
||||
@PostMapping
|
||||
@Log(title = "巡访内容新增", businessType = BusinessType.INSERT)
|
||||
public ResponseResult<Integer> add(@RequestBody TbJcglXfNrmb xf) {
|
||||
return ResponseResult.success(tbJcglXfNrmbService.insert(xf));
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新数据
|
||||
*
|
||||
* @param xf 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
@ApiOperation("更新数据")
|
||||
@JwtSysUser
|
||||
@PutMapping
|
||||
@Log(title = "巡访内容更新", businessType = BusinessType.UPDATE)
|
||||
public ResponseResult<Integer> edit(@RequestBody TbJcglXfNrmb xf) {
|
||||
return ResponseResult.success(tbJcglXfNrmbService.update(xf));
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过主键删除数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 是否成功
|
||||
*/
|
||||
@ApiOperation("通过主键删除数据")
|
||||
@DeleteMapping("{id}")
|
||||
@Log(title = "巡访内容删除", businessType = BusinessType.UPDATE)
|
||||
@ApiImplicitParam(name = "id", value = "标签主键", paramType = "path", required = true, dataType = "String")
|
||||
public ResponseResult<Boolean> deleteById(@PathVariable("id") String id) {
|
||||
return ResponseResult.success(tbJcglXfNrmbService.deleteById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 是否成功
|
||||
*/
|
||||
@ApiOperation("批量删除")
|
||||
@PostMapping("/bacth")
|
||||
@Log(title = "巡访内容批量删除", businessType = BusinessType.UPDATE)
|
||||
@ApiImplicitParam(name = "id", value = "标签主键", paramType = "path", required = true, dataType = "String")
|
||||
public ResponseResult<Boolean> deleteByIds(@RequestBody List<String> id) {
|
||||
return ResponseResult.success(tbJcglXfNrmbService.deleteByIds(id));
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,118 @@
|
||||
package com.mosty.base.manager.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.mosty.base.manager.service.TbJcglXfService;
|
||||
import com.mosty.base.manager.service.TbJcglXfZgService;
|
||||
import com.mosty.base.model.entity.jcgl.TbJcglXf;
|
||||
import com.mosty.base.model.entity.jcgl.TbJcglXfZg;
|
||||
import com.mosty.base.model.query.jcgl.TbJcglXfQuery;
|
||||
import com.mosty.base.model.query.jcgl.TbJcglXfZgQuery;
|
||||
import com.mosty.common.base.domain.ResponseResult;
|
||||
import com.mosty.common.base.entity.log.BusinessType;
|
||||
import com.mosty.common.base.entity.log.Log;
|
||||
import com.mosty.common.token.JwtSysUser;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 巡访战果
|
||||
*/
|
||||
@Api(tags = "巡访战果")
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
@RequestMapping("/tbJcglXfZg")
|
||||
public class TbJcglXfZgController {
|
||||
|
||||
private final TbJcglXfZgService tbJcglXfZgService;
|
||||
|
||||
/**
|
||||
* 通过ID查询单条数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 实例对象
|
||||
*/
|
||||
@ApiOperation("通过ID查询单条数据")
|
||||
@JwtSysUser
|
||||
@GetMapping("{id}")
|
||||
@Log(title = "巡防战果单条数据", businessType = BusinessType.OTHER)
|
||||
@ApiImplicitParam(name = "id", value = "战果ID", paramType = "path", required = true, dataType = "String")
|
||||
public ResponseResult<TbJcglXfZg> queryById(@PathVariable String id) {
|
||||
return ResponseResult.success(tbJcglXfZgService.queryById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
*
|
||||
* @param query 筛选条件
|
||||
* @return 查询结果
|
||||
*/
|
||||
@ApiOperation("分页查询")
|
||||
@JwtSysUser
|
||||
@GetMapping
|
||||
public ResponseResult<IPage<TbJcglXfZg>> paginQuery(TbJcglXfZgQuery query) {
|
||||
IPage<TbJcglXfZg> page = tbJcglXfZgService.paginQuery(query);
|
||||
return ResponseResult.success(page);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增数据
|
||||
*
|
||||
* @param xf 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
@ApiOperation("新增数据")
|
||||
@JwtSysUser
|
||||
@PostMapping
|
||||
@Log(title = "巡访签新增", businessType = BusinessType.INSERT)
|
||||
public ResponseResult<Integer> add(@RequestBody TbJcglXfZg xf) {
|
||||
return ResponseResult.success(tbJcglXfZgService.insert(xf));
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新数据
|
||||
*
|
||||
* @param xf 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
@ApiOperation("更新数据")
|
||||
@JwtSysUser
|
||||
@PutMapping
|
||||
@Log(title = "巡访更新", businessType = BusinessType.UPDATE)
|
||||
public ResponseResult<Integer> edit(@RequestBody TbJcglXfZg xf) {
|
||||
return ResponseResult.success(tbJcglXfZgService.update(xf));
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过主键删除数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 是否成功
|
||||
*/
|
||||
@ApiOperation("通过主键删除数据")
|
||||
@DeleteMapping("{id}")
|
||||
@Log(title = "巡访删除", businessType = BusinessType.UPDATE)
|
||||
@ApiImplicitParam(name = "id", value = "标签主键", paramType = "path", required = true, dataType = "String")
|
||||
public ResponseResult<Boolean> deleteById(@PathVariable("id") String id) {
|
||||
return ResponseResult.success(tbJcglXfZgService.deleteById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过主键删除数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 是否成功
|
||||
*/
|
||||
@ApiOperation("通过主键删除数据")
|
||||
@PostMapping("/bacth")
|
||||
@Log(title = "巡访删除", businessType = BusinessType.UPDATE)
|
||||
@ApiImplicitParam(name = "id", value = "标签主键", paramType = "path", required = true, dataType = "String")
|
||||
public ResponseResult<Boolean> deleteByIds(@RequestBody List<String> id) {
|
||||
return ResponseResult.success(tbJcglXfZgService.deleteByIds(id));
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,100 @@
|
||||
package com.mosty.base.manager.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.mosty.base.model.dto.qwzx.AppSearchQuery;
|
||||
import com.mosty.base.model.entity.jcgl.TbJcglJyqx;
|
||||
import com.mosty.base.model.entity.jcgl.TbJcglXfcl;
|
||||
import com.mosty.base.model.query.jcgl.TbJcglXfclQuery;
|
||||
import com.mosty.base.manager.service.TbJcglXfclService;
|
||||
import com.mosty.common.base.domain.ResponseResult;
|
||||
import com.mosty.common.base.entity.log.BusinessType;
|
||||
import com.mosty.common.base.entity.log.Log;
|
||||
import com.mosty.common.config.Excel.ExcelUtil;
|
||||
import com.mosty.common.token.JwtSysUser;
|
||||
import com.sun.org.apache.xpath.internal.operations.Bool;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
@RequestMapping({"/tpJcglXfcl"})
|
||||
@Api(tags = {"巡防车辆"})
|
||||
public class TbJcglXfclController {
|
||||
|
||||
private final TbJcglXfclService tbJcglXfclService;
|
||||
|
||||
@GetMapping({"/getXfclList"})
|
||||
@JwtSysUser
|
||||
@ApiOperation(value = "查询巡防车辆")
|
||||
public ResponseResult<IPage<TbJcglXfcl>> getXfclList(TbJcglXfclQuery dto) {
|
||||
return ResponseResult.success(tbJcglXfclService.getXfclList(dto));
|
||||
}
|
||||
|
||||
@PostMapping({"/addXfcl"})
|
||||
@JwtSysUser
|
||||
@ApiOperation(value = "新增巡防车辆")
|
||||
public ResponseResult<Void> addXfcl(@RequestBody TbJcglXfcl cl) {
|
||||
tbJcglXfclService.addXfcl(cl);
|
||||
return ResponseResult.success();
|
||||
}
|
||||
|
||||
@PostMapping({"/updateXfcl"})
|
||||
@JwtSysUser
|
||||
@ApiOperation(value = "修改巡防车辆")
|
||||
public ResponseResult<Void> updateXfcl(@RequestBody TbJcglXfcl cl) {
|
||||
tbJcglXfclService.updateXfcl(cl);
|
||||
return ResponseResult.success();
|
||||
}
|
||||
|
||||
@PostMapping({"/deleteXfcl"})
|
||||
@JwtSysUser
|
||||
@ApiOperation(value = "删除巡防车辆")
|
||||
public ResponseResult<Boolean> deleteXfcl(@RequestBody List<String> id) {
|
||||
return ResponseResult.success(tbJcglXfclService.deleteXfcl(id));
|
||||
}
|
||||
|
||||
@GetMapping({"/selectClxq"})
|
||||
@JwtSysUser
|
||||
@ApiOperation(value = "查询车辆详情")
|
||||
public ResponseResult<TbJcglXfcl> selectClxq(String id) {
|
||||
return ResponseResult.success(tbJcglXfclService.selectClxq(id));
|
||||
}
|
||||
|
||||
@GetMapping({"/selectXfclList"})
|
||||
@JwtSysUser
|
||||
@ApiOperation(value = "app查询车辆列表")
|
||||
public ResponseResult<Page<TbJcglXfcl>> selectXfclList(AppSearchQuery dto) {
|
||||
return ResponseResult.success(tbJcglXfclService.selectXfclList(dto));
|
||||
}
|
||||
|
||||
|
||||
@Log(title = "导入巡防车辆", businessType = BusinessType.IMPORT)
|
||||
@PostMapping("/importData")
|
||||
@JwtSysUser
|
||||
@Transactional
|
||||
public ResponseResult<String> importData(MultipartFile file, boolean updateSupport) throws Exception {
|
||||
ExcelUtil<TbJcglXfcl> util = new ExcelUtil<TbJcglXfcl>(TbJcglXfcl.class);
|
||||
List<TbJcglXfcl> xfclList = util.importExcel(file.getInputStream());
|
||||
String s = this.tbJcglXfclService.importData(xfclList, updateSupport);
|
||||
return ResponseResult.success(s);
|
||||
}
|
||||
|
||||
|
||||
@Log(title = "巡防车辆模板下载", businessType = BusinessType.IMPORT)
|
||||
@GetMapping("/importTemplate")
|
||||
@JwtSysUser
|
||||
public void importTemplate(HttpServletResponse response) throws Exception {
|
||||
ExcelUtil<TbJcglXfcl> util = new ExcelUtil<TbJcglXfcl>(TbJcglXfcl.class);
|
||||
util.importTemplateExcel(response, "巡防车辆");
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,72 @@
|
||||
package com.mosty.base.manager.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.mosty.base.manager.service.TbJcglXfclSbService;
|
||||
import com.mosty.base.model.entity.jcgl.TbJcglXfclSb;
|
||||
import com.mosty.base.model.query.jcgl.TbJcglXfclSbQuery;
|
||||
import com.mosty.common.base.domain.ResponseResult;
|
||||
import com.mosty.common.base.entity.log.BusinessType;
|
||||
import com.mosty.common.base.entity.log.Log;
|
||||
import com.mosty.common.token.JwtSysUser;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.util.CollectionUtils;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Api(tags = "巡防车辆设备接口")
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
@RequestMapping("/xfclSb")
|
||||
public class TbJcglXfclSbController {
|
||||
|
||||
private final TbJcglXfclSbService tbJcglXfclSbService;
|
||||
|
||||
@ApiOperation("添加巡防车辆设备")
|
||||
@JwtSysUser
|
||||
@PostMapping
|
||||
@Log(title = "添加巡防车辆设备", businessType = BusinessType.INSERT)
|
||||
public ResponseResult<Integer> addEntity(@RequestBody TbJcglXfclSb dto) {
|
||||
return ResponseResult.success(this.tbJcglXfclSbService.addEntity(dto));
|
||||
}
|
||||
|
||||
@ApiOperation("修改巡防车辆设备")
|
||||
@JwtSysUser
|
||||
@PutMapping
|
||||
@Log(title = "修改巡防车辆设备", businessType = BusinessType.UPDATE)
|
||||
public ResponseResult<Integer> editEntity(@RequestBody TbJcglXfclSb dto) {
|
||||
return ResponseResult.success(this.tbJcglXfclSbService.editEntity(dto));
|
||||
}
|
||||
|
||||
@ApiOperation("批量删除巡防车辆设备")
|
||||
@JwtSysUser
|
||||
@DeleteMapping
|
||||
@Log(title = "批量删除巡防车辆设备", businessType = BusinessType.DELETE)
|
||||
public ResponseResult<Integer> deleteEntity(@RequestBody List<String> ids) {
|
||||
if(CollectionUtils.isEmpty(ids)){ return ResponseResult.fail("参数不能为空!");}
|
||||
return ResponseResult.success(this.tbJcglXfclSbService.delEntity(ids));
|
||||
}
|
||||
|
||||
@ApiOperation("分页查询车辆设备列表")
|
||||
@JwtSysUser
|
||||
@PostMapping("getPageList")
|
||||
public ResponseResult<IPage<TbJcglXfclSb>> getPageList(@RequestBody TbJcglXfclSbQuery dto) {
|
||||
return ResponseResult.success(this.tbJcglXfclSbService.getXfclSbPage(dto));
|
||||
}
|
||||
|
||||
@ApiOperation("查询车辆设备列表")
|
||||
@JwtSysUser
|
||||
@PostMapping("getXfclSbList")
|
||||
public ResponseResult<List<TbJcglXfclSb>> getXfclSbList(@RequestBody TbJcglXfclSbQuery dto) {
|
||||
return ResponseResult.success(this.tbJcglXfclSbService.getXfclSbList(dto));
|
||||
}
|
||||
|
||||
@ApiOperation("查询巡防车辆设备详情")
|
||||
@JwtSysUser
|
||||
@GetMapping("{id}")
|
||||
public ResponseResult<TbJcglXfclSb> getInfo(@PathVariable("id") String id) {
|
||||
return ResponseResult.success(this.tbJcglXfclSbService.getInfo(id));
|
||||
}
|
||||
}
|
@ -0,0 +1,333 @@
|
||||
package com.mosty.base.manager.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.mosty.base.manager.mapper.TbJcglYbfjMapper;
|
||||
import com.mosty.base.manager.service.TbJcglXfllService;
|
||||
import com.mosty.base.model.dto.jcgl.TbJcglXfllDto;
|
||||
import com.mosty.base.model.dto.jcgl.TbJcglXfllSearchQuery;
|
||||
import com.mosty.base.model.dto.jcgl.TbJcglZyjzSearchDto;
|
||||
import com.mosty.base.model.entity.jcgl.TbJcglXfll;
|
||||
import com.mosty.base.model.entity.jcgl.Ybfj;
|
||||
import com.mosty.base.model.query.jcgl.TbJcglXfllQuery;
|
||||
import com.mosty.base.model.query.jcgl.TbJcglXfllQueryAllDto;
|
||||
import com.mosty.base.model.vo.jcgl.TbJcglXfllVo;
|
||||
import com.mosty.base.model.vo.jcgl.TbJcglZyjz;
|
||||
import com.mosty.common.base.domain.ResponseResult;
|
||||
import com.mosty.common.base.entity.log.BusinessType;
|
||||
import com.mosty.common.base.entity.log.Log;
|
||||
import com.mosty.common.base.exception.BusinessException;
|
||||
import com.mosty.common.config.Excel.ExcelUtil;
|
||||
import com.mosty.common.core.business.entity.SysUser;
|
||||
import com.mosty.common.core.business.entity.Ybmj;
|
||||
import com.mosty.common.core.business.mapper.SysUserMapper;
|
||||
import com.mosty.common.core.business.mapper.YbmjMapper;
|
||||
import com.mosty.common.token.JwtSysUser;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.util.CollectionUtils;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 巡防力量表;(tb_jcgl_xfll)表控制层
|
||||
*
|
||||
* @author : Lhh
|
||||
* @date : 2022-6-4
|
||||
*/
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
@Api(tags = "巡防力量表对象功能接口")
|
||||
@RequestMapping("/tbJcglXfll")
|
||||
public class TbJcglXfllController {
|
||||
|
||||
private final TbJcglXfllService tbJcglXfllService;
|
||||
private final TbJcglYbfjMapper tbJcglYbfjMapper;
|
||||
private final YbmjMapper ybmjMapper;
|
||||
private final SysUserMapper sysUserMapper;
|
||||
|
||||
|
||||
@GetMapping("/ybmjtb")
|
||||
@JwtSysUser
|
||||
@ApiOperation(value = "宜宾民警同步")
|
||||
@Log(title = "宜宾民警同步", businessType = BusinessType.OTHER)
|
||||
public ResponseResult<Void> ybmjtb() {
|
||||
// return ResponseResult.success(tbJcglXfllService.queryById(id));
|
||||
List<Ybmj> ybmjs = ybmjMapper.selectList(new QueryWrapper<>());
|
||||
if (!CollectionUtils.isEmpty(ybmjs)) {
|
||||
for (Ybmj ybmj : ybmjs) {
|
||||
TbJcglXfllDto tbJcglXfllDto = new TbJcglXfllDto();
|
||||
tbJcglXfllDto.setFl("01");
|
||||
tbJcglXfllDto.setXm(ybmj.getXm());
|
||||
tbJcglXfllDto.setSfzh(ybmj.getSfzh());
|
||||
//计算男女
|
||||
int gender = Integer.parseInt(ybmj.getSfzh().substring(16, 17));
|
||||
if (gender % 2 == 1) {
|
||||
tbJcglXfllDto.setXbdm("1");
|
||||
} else {
|
||||
tbJcglXfllDto.setXbdm("2");
|
||||
}
|
||||
tbJcglXfllDto.setMzdm("01");
|
||||
tbJcglXfllDto.setZzmm("1");
|
||||
tbJcglXfllDto.setJh(ybmj.getJh());
|
||||
tbJcglXfllDto.setLx("02");
|
||||
tbJcglXfllDto.setLxdh(ybmj.getDh());
|
||||
tbJcglXfllDto.setSsbmdm(ybmj.getSsbmdm());
|
||||
SysUser user = sysUserMapper.selectOne(new QueryWrapper<SysUser>().eq("id_entity_card", ybmj.getSfzh()));
|
||||
if (user != null) {
|
||||
tbJcglXfllDto.setRyid(String.valueOf(user.getId()));
|
||||
}
|
||||
tbJcglXfllService.add(tbJcglXfllDto);
|
||||
ybmjMapper.deleteById(ybmj);
|
||||
}
|
||||
}
|
||||
return ResponseResult.success();
|
||||
}
|
||||
|
||||
|
||||
@GetMapping("/ybfjtb")
|
||||
@JwtSysUser
|
||||
@ApiOperation(value = "宜宾辅警同步")
|
||||
@Log(title = "宜宾辅警同步", businessType = BusinessType.OTHER)
|
||||
public ResponseResult<Void> ybfjtb() {
|
||||
// return ResponseResult.success(tbJcglXfllService.queryById(id));
|
||||
List<Ybfj> ybfjs = tbJcglYbfjMapper.selectList(new QueryWrapper<>());
|
||||
if (!CollectionUtils.isEmpty(ybfjs)) {
|
||||
for (Ybfj ybfj : ybfjs) {
|
||||
TbJcglXfllDto tbJcglXfllDto = new TbJcglXfllDto();
|
||||
tbJcglXfllDto.setFl("02");
|
||||
|
||||
tbJcglXfllDto.setXm(ybfj.getXm());
|
||||
tbJcglXfllDto.setSfzh(ybfj.getSfzh());
|
||||
//计算男女
|
||||
int gender = Integer.parseInt(ybfj.getSfzh().substring(16, 17));
|
||||
if (gender % 2 == 1) {
|
||||
tbJcglXfllDto.setXbdm("1");
|
||||
} else {
|
||||
tbJcglXfllDto.setXbdm("2");
|
||||
}
|
||||
tbJcglXfllDto.setMzdm("01");
|
||||
tbJcglXfllDto.setZzmm("1");
|
||||
tbJcglXfllDto.setJh(ybfj.getJh());
|
||||
tbJcglXfllDto.setLx("02");
|
||||
tbJcglXfllDto.setLxdh(ybfj.getDh());
|
||||
tbJcglXfllDto.setSsbmdm(ybfj.getSsbmdm());
|
||||
tbJcglXfllService.add(tbJcglXfllDto);
|
||||
tbJcglYbfjMapper.deleteById(ybfj);
|
||||
}
|
||||
}
|
||||
return ResponseResult.success();
|
||||
}
|
||||
|
||||
@GetMapping("{id}")
|
||||
@JwtSysUser
|
||||
@ApiOperation(value = "通过ID查询单条数据")
|
||||
@Log(title = "巡防力量ID查询", businessType = BusinessType.OTHER)
|
||||
@ApiImplicitParam(name = "id", value = "巡防力量ID", paramType = "path", required = true, dataType = "String")
|
||||
public ResponseResult<TbJcglXfllVo> queryById(@PathVariable("id") String id) {
|
||||
return ResponseResult.success(tbJcglXfllService.queryById(id));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "分页查询", httpMethod = "GET")
|
||||
@JwtSysUser
|
||||
@GetMapping
|
||||
@Log(title = "巡防力量分页查询", businessType = BusinessType.OTHER)
|
||||
public ResponseResult<IPage<TbJcglXfllVo>> paginQuery(TbJcglXfllQuery tbJcglXfll) {
|
||||
IPage<TbJcglXfllVo> page = tbJcglXfllService.getList(tbJcglXfll);
|
||||
return ResponseResult.success(page);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "巡防力量查询--第三方接口", httpMethod = "GET")
|
||||
@GetMapping("getXfllPage")
|
||||
public ResponseResult<IPage<TbJcglXfllVo>> getXfllPage(TbJcglXfllQuery tbJcglXfll) {
|
||||
IPage<TbJcglXfllVo> page = tbJcglXfllService.getXfllPage(tbJcglXfll);
|
||||
return ResponseResult.success(page);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "分页查询", httpMethod = "GET")
|
||||
@JwtSysUser
|
||||
@GetMapping("/querySfzh")
|
||||
@Log(title = "查询身份证号集合", businessType = BusinessType.OTHER)
|
||||
public ResponseResult querySfzh() {
|
||||
List<String> list = tbJcglXfllService.querySfzh();
|
||||
return ResponseResult.success(list);
|
||||
}
|
||||
|
||||
@ApiOperation("新增数据")
|
||||
@PostMapping
|
||||
@JwtSysUser
|
||||
@Log(title = "巡防力量新增", businessType = BusinessType.INSERT)
|
||||
public ResponseResult<Boolean> add(@RequestBody TbJcglXfllDto tbJcglXfllDto) {
|
||||
tbJcglXfllService.add(tbJcglXfllDto);
|
||||
return ResponseResult.success();
|
||||
}
|
||||
|
||||
@ApiOperation("验证人员身份证是否存在")
|
||||
@GetMapping("/check/")
|
||||
@ApiImplicitParam(name = "sfzh", value = "巡防力量身份证号", paramType = "query", required = true, dataType = "String")
|
||||
public ResponseResult<Boolean> add(@RequestParam("sfzh") String sfzh) {
|
||||
tbJcglXfllService.cheskXfll(sfzh);
|
||||
return ResponseResult.success();
|
||||
}
|
||||
|
||||
@ApiOperation("更新数据")
|
||||
@JwtSysUser
|
||||
@PutMapping
|
||||
@Log(title = "巡防力量修改", businessType = BusinessType.UPDATE)
|
||||
public ResponseResult<Boolean> edit(@RequestBody TbJcglXfllDto tbJcglXfllDto) {
|
||||
tbJcglXfllService.edit(tbJcglXfllDto);
|
||||
return ResponseResult.success();
|
||||
}
|
||||
|
||||
@ApiOperation("通过主键删除数据")
|
||||
@JwtSysUser
|
||||
@PostMapping("deleteList")
|
||||
@Log(title = "巡防力量删除", businessType = BusinessType.DELETE)
|
||||
@ApiImplicitParam(name = "id", value = "巡防力量ID", paramType = "query", required = true, dataType = "String")
|
||||
public ResponseResult deleteById(@RequestBody List<String> id) {
|
||||
return ResponseResult.success(tbJcglXfllService.deleteList(id));
|
||||
}
|
||||
|
||||
@ApiOperation("通过主键删除数据(单个)")
|
||||
@PostMapping("delXfll/{id}")
|
||||
@Log(title = "通过主键删除数据(单个)", businessType = BusinessType.DELETE)
|
||||
public ResponseResult deleteById(@PathVariable("id") String id) {
|
||||
List<String> list = new ArrayList<String>() {{
|
||||
this.add(id);
|
||||
}};
|
||||
return ResponseResult.success(tbJcglXfllService.deleteList(list));
|
||||
}
|
||||
|
||||
@ApiOperation("大屏-勤务中心-警力情况")
|
||||
@JwtSysUser
|
||||
@PostMapping("selectAllPolice")
|
||||
@Log(title = "大屏-勤务中心-警力情况", businessType = BusinessType.OTHER)
|
||||
@ApiImplicitParam(name = "id", value = "巡防力量ID", paramType = "query", required = true, dataType = "String")
|
||||
public ResponseResult selectAllPolice(@RequestBody TbJcglXfllDto tbJcglXfllDto) {
|
||||
return ResponseResult.success(tbJcglXfllService.selectAllPolice(tbJcglXfllDto));
|
||||
}
|
||||
|
||||
@ApiOperation("查询部门下所有的辅警信息")
|
||||
@JwtSysUser
|
||||
@PostMapping("getFjList/{deptid}")
|
||||
public ResponseResult<List<com.mosty.base.model.dto.jcgl.TbJcglXfllVo>> getFjList(@PathVariable("deptid") String deptid) {
|
||||
return ResponseResult.success(tbJcglXfllService.getFjList(deptid));
|
||||
}
|
||||
|
||||
@ApiOperation("查询部门下的专业警种信息")
|
||||
@JwtSysUser
|
||||
@PostMapping("getZyjzList")
|
||||
public ResponseResult<IPage<TbJcglZyjz>> getZyjzList(@RequestBody TbJcglZyjzSearchDto dto) {
|
||||
return ResponseResult.success(tbJcglXfllService.getZyjzList(dto));
|
||||
}
|
||||
|
||||
@ApiOperation("查询部门下的巡防力量信息")
|
||||
@PostMapping("getXfll")
|
||||
public ResponseResult<List<TbJcglXfllVo>> getXfll(@RequestBody TbJcglXfllQueryAllDto dto) {
|
||||
return ResponseResult.success(tbJcglXfllService.getXfll(dto));
|
||||
}
|
||||
|
||||
@ApiOperation("查询巡防力量 民警、辅警")
|
||||
@JwtSysUser
|
||||
@GetMapping("getXfllList")
|
||||
public ResponseResult<IPage<TbJcglXfllVo>> getXfllList(TbJcglXfllSearchQuery dto) {
|
||||
if (dto.getPageCurrent() == null || dto.getPageSize() == null) {
|
||||
throw new BusinessException("需要分页参数!!");
|
||||
}
|
||||
return ResponseResult.success(tbJcglXfllService.getXfllList(dto));
|
||||
}
|
||||
|
||||
@ApiOperation("根据身份证查询巡组力量信息")
|
||||
@PostMapping("getXfllBySfz/{sfzh}")
|
||||
public ResponseResult<TbJcglXfllDto> getXfllBySfz(@PathVariable("sfzh") String sfzh) {
|
||||
return ResponseResult.success(tbJcglXfllService.getXfllBySfz(sfzh));
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation("通过主键离职人员")
|
||||
@JwtSysUser
|
||||
@PostMapping("lzList")
|
||||
@Log(title = "巡防力量离职", businessType = BusinessType.DELETE)
|
||||
@ApiImplicitParam(name = "id", value = "巡防力量ID", paramType = "query", required = true, dataType = "String")
|
||||
public ResponseResult lzList(@RequestBody List<String> id) {
|
||||
tbJcglXfllService.lzList(id);
|
||||
return ResponseResult.success();
|
||||
}
|
||||
|
||||
@ApiOperation("通过主键离职人员(单个)")
|
||||
@PostMapping("lzXfll/{id}")
|
||||
@Log(title = "通过主键离职人员(单个)", businessType = BusinessType.DELETE)
|
||||
public ResponseResult lzXfll(@PathVariable("id") String id) {
|
||||
List<String> list = new ArrayList<String>() {{
|
||||
this.add(id);
|
||||
}};
|
||||
tbJcglXfllService.lzList(list);
|
||||
return ResponseResult.success();
|
||||
}
|
||||
|
||||
@ApiOperation(value = "获取离职人员列表")
|
||||
@PostMapping("getLzPage")
|
||||
public ResponseResult<IPage<TbJcglXfll>> getLzPage(@RequestBody TbJcglXfllQuery tbJcglXfll) {
|
||||
IPage<TbJcglXfll> page = tbJcglXfllService.getLzPage(tbJcglXfll);
|
||||
return ResponseResult.success(page);
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation(value = "查询部门下面人员数量")
|
||||
@GetMapping("getRysl")
|
||||
@JwtSysUser
|
||||
public ResponseResult<Integer> getRysl(String ssbmdm) {
|
||||
return ResponseResult.success(tbJcglXfllService.getRysl(ssbmdm));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "人员统计")
|
||||
@GetMapping("getRytj")
|
||||
@JwtSysUser
|
||||
public ResponseResult<Map<String, Object>> getRytj(String ssbmdm) {
|
||||
return ResponseResult.success(tbJcglXfllService.getRytj(ssbmdm));
|
||||
}
|
||||
|
||||
@ApiOperation("获取部门列表")
|
||||
@GetMapping("/getBmAll")
|
||||
@JwtSysUser
|
||||
public ResponseResult<List<TbJcglXfll>> getBmAll() {
|
||||
return ResponseResult.success(this.tbJcglXfllService.getBmAll());
|
||||
}
|
||||
|
||||
@Log(title = "导出巡防力量", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/exportZY")
|
||||
@JwtSysUser
|
||||
public void export(HttpServletResponse response) {
|
||||
List<TbJcglXfll> list = tbJcglXfllService.export();
|
||||
ExcelUtil<TbJcglXfll> util = new ExcelUtil<
|
||||
>(TbJcglXfll.class);
|
||||
util.exportExcel(response, list, "巡逻辅警导出", "巡逻辅警导出");
|
||||
}
|
||||
|
||||
|
||||
@Log(title = "导入巡防力量", businessType = BusinessType.IMPORT)
|
||||
@PostMapping("/importData")
|
||||
@JwtSysUser
|
||||
public ResponseResult<String> importData(MultipartFile file, boolean updateSupport) throws Exception {
|
||||
ExcelUtil<TbJcglXfll> util = new ExcelUtil<TbJcglXfll>(TbJcglXfll.class);
|
||||
List<TbJcglXfll> userList = util.importExcel(file.getInputStream());
|
||||
String s = this.tbJcglXfllService.importData(userList, updateSupport);
|
||||
return ResponseResult.success(s);
|
||||
}
|
||||
|
||||
|
||||
@Log(title = "模板下载", businessType = BusinessType.IMPORT)
|
||||
@GetMapping("/importTemplate")
|
||||
@JwtSysUser
|
||||
public void importTemplate(HttpServletResponse response) throws Exception {
|
||||
ExcelUtil<TbJcglXfll> util = new ExcelUtil<TbJcglXfll>(TbJcglXfll.class);
|
||||
util.importTemplateExcel(response, "巡防力量");
|
||||
}
|
||||
}
|
@ -0,0 +1,88 @@
|
||||
package com.mosty.base.manager.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.mosty.base.manager.service.TbJcglXfllFzService;
|
||||
import com.mosty.base.model.entity.jcgl.TbJcglXfllFz;
|
||||
import com.mosty.base.model.query.jcgl.TbJcglXfllFzQuery;
|
||||
import com.mosty.common.base.domain.ResponseResult;
|
||||
import com.mosty.common.base.entity.log.BusinessType;
|
||||
import com.mosty.common.base.entity.log.Log;
|
||||
import com.mosty.common.token.JwtSysUser;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
@Api(tags = "巡防分组接口")
|
||||
@RequestMapping("/tbJcglXfllFz")
|
||||
public class TbJcglXfllFzController {
|
||||
|
||||
private final TbJcglXfllFzService tbJcglXfllFzService;
|
||||
|
||||
@GetMapping("{id}")
|
||||
@JwtSysUser
|
||||
@ApiOperation(value = "通过ID查询单条数据")
|
||||
@Log(title = "巡防力量ID查询", businessType = BusinessType.OTHER)
|
||||
@ApiImplicitParam(name = "id", value = "巡防分组ID", paramType = "path", required = true, dataType = "String")
|
||||
public ResponseResult<TbJcglXfllFz> queryById(@PathVariable("id") String id) {
|
||||
return ResponseResult.success(tbJcglXfllFzService.getById(id));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "分页查询", httpMethod = "GET")
|
||||
@JwtSysUser
|
||||
@GetMapping
|
||||
@Log(title = "巡防分组分页查询", businessType = BusinessType.OTHER)
|
||||
public ResponseResult<IPage<TbJcglXfllFz>> paginQuery(TbJcglXfllFzQuery query) {
|
||||
IPage<TbJcglXfllFz> page = new Page<>(query.getPageCurrent(), query.getPageSize());
|
||||
page = this.tbJcglXfllFzService.page(page, new QueryWrapper<TbJcglXfllFz>().lambda()
|
||||
.like(StringUtils.isNotBlank(query.getJzmc()), TbJcglXfllFz::getJzmc, query.getJzmc())
|
||||
.like(StringUtils.isNotBlank(query.getKeyword()), TbJcglXfllFz::getJzry, query.getKeyword())
|
||||
.orderByDesc(TbJcglXfllFz::getXtCjsj)
|
||||
);
|
||||
return ResponseResult.success(page);
|
||||
}
|
||||
|
||||
@ApiOperation("新增数据")
|
||||
@PostMapping
|
||||
@JwtSysUser
|
||||
@Log(title = "巡防力量分组", businessType = BusinessType.INSERT)
|
||||
public ResponseResult<Boolean> add(@RequestBody TbJcglXfllFz fz) {
|
||||
tbJcglXfllFzService.save(fz);
|
||||
return ResponseResult.success();
|
||||
}
|
||||
|
||||
@ApiOperation("修改数据")
|
||||
@PutMapping
|
||||
@JwtSysUser
|
||||
@Log(title = "修改巡防分组", businessType = BusinessType.UPDATE)
|
||||
public ResponseResult<Boolean> update(@RequestBody TbJcglXfllFz fz) {
|
||||
tbJcglXfllFzService.updateById(fz);
|
||||
return ResponseResult.success();
|
||||
}
|
||||
|
||||
@ApiOperation("通过主键删除数据")
|
||||
@JwtSysUser
|
||||
@PostMapping("deleteList")
|
||||
@Log(title = "巡防分组删除", businessType = BusinessType.DELETE)
|
||||
@ApiImplicitParam(name = "id", value = "ID", paramType = "query", required = true, dataType = "List")
|
||||
public ResponseResult deleteById(@RequestBody List<String> id) {
|
||||
return ResponseResult.success(tbJcglXfllFzService.removeByIds(id));
|
||||
}
|
||||
|
||||
@ApiOperation("通过主键删除数据(单个)")
|
||||
@PostMapping("delXfll/{id}")
|
||||
@Log(title = "通过主键删除数据(单个)", businessType = BusinessType.DELETE)
|
||||
public ResponseResult deleteById(@PathVariable("id") String id) {
|
||||
return ResponseResult.success(tbJcglXfllFzService.removeById(id));
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,107 @@
|
||||
package com.mosty.base.manager.controller;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.mosty.base.model.dto.jcgl.TbJcglXfqyDto;
|
||||
import com.mosty.base.model.dto.qwzx.AppSearchQuery;
|
||||
import com.mosty.base.model.entity.jcgl.TbJcglXfqy;
|
||||
import com.mosty.base.model.query.hczx.RyClTjQuery;
|
||||
import com.mosty.base.model.query.jcgl.TbJcglXfqyQuery;
|
||||
import com.mosty.base.manager.service.TbJcglXfqyService;
|
||||
import com.mosty.base.model.query.jcgl.XfqyQuery;
|
||||
import com.mosty.common.base.domain.ResponseResult;
|
||||
import com.mosty.common.base.entity.log.BusinessType;
|
||||
import com.mosty.common.base.entity.log.Log;
|
||||
import com.mosty.common.token.JwtSysUser;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @author zengbo
|
||||
* @since 2022-07-14
|
||||
*/
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
@Api(tags = "巡防区域功能接口")
|
||||
@RequestMapping("/tbJcglXfqy")
|
||||
public class TbJcglXfqyController {
|
||||
|
||||
private final TbJcglXfqyService tbJcglXfqyService;
|
||||
|
||||
@GetMapping({"/queryList"})
|
||||
@JwtSysUser
|
||||
@ApiOperation(value = "查询巡防区列表")
|
||||
public ResponseResult<IPage<TbJcglXfqyDto>> queryList(TbJcglXfqyQuery xfqyQuery) {
|
||||
return ResponseResult.success(tbJcglXfqyService.getXfqy(xfqyQuery));
|
||||
}
|
||||
|
||||
@PostMapping({"/addXfqy"})
|
||||
@JwtSysUser
|
||||
@Log(title = "新增巡防区域", businessType = BusinessType.INSERT)
|
||||
@ApiOperation(value = "新增巡防区域")
|
||||
public ResponseResult<Integer> addXfqy(@RequestBody TbJcglXfqyDto xfqy) {
|
||||
return ResponseResult.success(tbJcglXfqyService.addXfqy(xfqy));
|
||||
}
|
||||
|
||||
@PostMapping({"/updateXfqy"})
|
||||
@JwtSysUser
|
||||
@Log(title = "修改巡防区域", businessType = BusinessType.UPDATE)
|
||||
@ApiOperation(value = "修改巡防区域")
|
||||
public ResponseResult<Integer> updateXfqy(@RequestBody TbJcglXfqyDto xfqy) {
|
||||
return ResponseResult.success(tbJcglXfqyService.editXfqy(xfqy));
|
||||
}
|
||||
|
||||
@GetMapping({"/selectById"})
|
||||
@JwtSysUser
|
||||
@ApiOperation(value = "查询巡防区域详情")
|
||||
public ResponseResult<TbJcglXfqyDto> selectByid(String id) {
|
||||
return ResponseResult.success(tbJcglXfqyService.selectById(id));
|
||||
}
|
||||
|
||||
@PostMapping({"/deleteXfqy"})
|
||||
@JwtSysUser
|
||||
@Log(title = "删除巡防区域", businessType = BusinessType.DELETE)
|
||||
@ApiOperation(value = "删除巡防区域")
|
||||
public ResponseResult<Integer> deleteXfqy(@RequestBody List<String> list) {
|
||||
return ResponseResult.success(tbJcglXfqyService.deleteXfqy(list));
|
||||
}
|
||||
|
||||
@GetMapping("/getXfqList")
|
||||
@JwtSysUser
|
||||
@ApiOperation(value = "app获取巡防区域信息")
|
||||
public ResponseResult<Page<TbJcglXfqy>> getXfqList(AppSearchQuery dto) {
|
||||
return ResponseResult.success(tbJcglXfqyService.getXfqList(dto));
|
||||
}
|
||||
|
||||
// 泸州态势统计-各区县重点巡防区域
|
||||
@ApiOperation("泸州态势统计-各区县重点巡防区域")
|
||||
@PostMapping("/getZdxfqy")
|
||||
@JwtSysUser
|
||||
public ResponseResult<Map<String,Object>> getZdxfqy(XfqyQuery dto) {
|
||||
return ResponseResult.success(this.tbJcglXfqyService.getZdxfqy(dto));
|
||||
}
|
||||
|
||||
// 泸州态势统计-各区县重点巡防区域
|
||||
@ApiOperation("泸州态势统计-警情与重点区域巡逻对比分析")
|
||||
@PostMapping("/getJqandQyxf")
|
||||
@JwtSysUser
|
||||
public ResponseResult<Map<String,Object>> getJqandQyxf(XfqyQuery dto) {
|
||||
return ResponseResult.success(this.tbJcglXfqyService.getJqandQyxf(dto));
|
||||
}
|
||||
|
||||
// 查询所有巡防区域数据
|
||||
@ApiOperation("查询所有巡防区域数据")
|
||||
@PostMapping("/getListAll")
|
||||
@JwtSysUser
|
||||
public ResponseResult<List<TbJcglXfqyDto>> getListAll() {
|
||||
return ResponseResult.success(this.tbJcglXfqyService.getListAll());
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -0,0 +1,75 @@
|
||||
package com.mosty.base.manager.controller;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.mosty.base.model.dto.jcgl.TbJcglXfwgInsertDto;
|
||||
import com.mosty.base.model.entity.jcgl.TbJcglXfwg;
|
||||
import com.mosty.base.model.query.jcgl.TbJcglXfwgQuery;
|
||||
import com.mosty.base.manager.service.TbJcglXfwgService;
|
||||
import com.mosty.common.base.domain.ResponseResult;
|
||||
import com.mosty.common.base.entity.log.BusinessType;
|
||||
import com.mosty.common.base.entity.log.Log;
|
||||
import com.mosty.common.token.JwtSysUser;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 巡防网格 前端控制器
|
||||
* </p>
|
||||
*
|
||||
* @author zengbo
|
||||
* @since 2022-07-14
|
||||
*/
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
@Api(tags = "巡防网格功能接口")
|
||||
@RequestMapping("/tbJcglXfwg")
|
||||
public class TbJcglXfwgController {
|
||||
|
||||
private final TbJcglXfwgService tbJcglXfwgService;
|
||||
|
||||
@GetMapping({"/queryList"})
|
||||
@JwtSysUser
|
||||
@ApiOperation(value = "查询巡防网格列表")
|
||||
public ResponseResult<IPage<TbJcglXfwgInsertDto>> queryList(TbJcglXfwgQuery dto) {
|
||||
return ResponseResult.success(tbJcglXfwgService.getXfwg(dto));
|
||||
}
|
||||
|
||||
@PostMapping({"/addXfwg"})
|
||||
@JwtSysUser
|
||||
@Log(title = "新增巡防网格", businessType = BusinessType.INSERT)
|
||||
@ApiOperation(value = "新增巡防网格")
|
||||
public ResponseResult addXfwg(@RequestBody TbJcglXfwgInsertDto xfwg) {
|
||||
return ResponseResult.success(tbJcglXfwgService.addXfwg(xfwg));
|
||||
}
|
||||
|
||||
@PostMapping({"/updateXfwg"})
|
||||
@JwtSysUser
|
||||
@Log(title = "修改巡防网格", businessType = BusinessType.UPDATE)
|
||||
@ApiOperation(value = "修改巡防网格")
|
||||
public ResponseResult updateXfwg(@RequestBody TbJcglXfwgInsertDto xfwg) {
|
||||
return ResponseResult.success(tbJcglXfwgService.editXfwg(xfwg));
|
||||
}
|
||||
|
||||
@GetMapping({"/selectById"})
|
||||
@JwtSysUser
|
||||
@ApiOperation(value = "查询巡防网格详情")
|
||||
public ResponseResult<TbJcglXfwgInsertDto> selectByid(String id) {
|
||||
return ResponseResult.success(tbJcglXfwgService.selectById(id));
|
||||
}
|
||||
|
||||
@PostMapping({"/deleteXfwg"})
|
||||
@JwtSysUser
|
||||
@Log(title = "删除巡防网格", businessType = BusinessType.DELETE)
|
||||
@ApiOperation(value = "删除巡防网格")
|
||||
public ResponseResult deleteXfwg(@RequestBody List<String> list) {
|
||||
return ResponseResult.success(tbJcglXfwgService.deleteXfwg(list));
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -0,0 +1,68 @@
|
||||
package com.mosty.base.manager.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.mosty.base.model.dto.jcgl.TbJcglXlfaDto;
|
||||
import com.mosty.base.model.query.jcgl.TbJcglXlfaQuery;
|
||||
import com.mosty.base.manager.service.TbJcglXlfaService;
|
||||
import com.mosty.common.base.domain.ResponseResult;
|
||||
import com.mosty.common.base.entity.log.BusinessType;
|
||||
import com.mosty.common.base.entity.log.Log;
|
||||
import com.mosty.common.token.JwtSysUser;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author dw
|
||||
* @since 2022/08/11
|
||||
**/
|
||||
@Api(tags = "巡逻方案接口")
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
@RequestMapping("/tbJcglXlfa")
|
||||
public class TbJcglXlfaController {
|
||||
|
||||
private final TbJcglXlfaService tbJcglXlfaService;
|
||||
|
||||
@ApiOperation("新增巡逻方案")
|
||||
@JwtSysUser
|
||||
@PostMapping
|
||||
@Log(title = "新增巡逻方案", businessType = BusinessType.INSERT)
|
||||
public ResponseResult<Integer> addEntity(@RequestBody TbJcglXlfaDto dto) {
|
||||
return ResponseResult.success(this.tbJcglXlfaService.addEntity(dto));
|
||||
}
|
||||
|
||||
@ApiOperation("修改巡逻方案")
|
||||
@JwtSysUser
|
||||
@PutMapping
|
||||
@Log(title = "修改巡逻方案", businessType = BusinessType.UPDATE)
|
||||
public ResponseResult<Integer> updateEntity(@RequestBody TbJcglXlfaDto dto) {
|
||||
return ResponseResult.success(this.tbJcglXlfaService.updateEntity(dto));
|
||||
}
|
||||
|
||||
@ApiOperation("删除巡逻方案")
|
||||
@JwtSysUser
|
||||
@DeleteMapping
|
||||
@Log(title = "删除巡逻方案", businessType = BusinessType.DELETE)
|
||||
public ResponseResult<Integer> delEntity(@RequestBody List<String> ids) {
|
||||
return ResponseResult.success(this.tbJcglXlfaService.delEntity(ids));
|
||||
}
|
||||
|
||||
@ApiOperation("查询巡逻方案列表--分页")
|
||||
@JwtSysUser
|
||||
@GetMapping
|
||||
public ResponseResult<IPage<TbJcglXlfaDto>> getPageList(TbJcglXlfaQuery dto) {
|
||||
return ResponseResult.success(this.tbJcglXlfaService.getPageList(dto));
|
||||
}
|
||||
|
||||
@ApiOperation("查询详情")
|
||||
@JwtSysUser
|
||||
@GetMapping("{id}")
|
||||
public ResponseResult<TbJcglXlfaDto> getInfo(@PathVariable("id") String id) {
|
||||
return ResponseResult.success(this.tbJcglXlfaService.getInfo(id));
|
||||
}
|
||||
}
|
@ -0,0 +1,68 @@
|
||||
package com.mosty.base.manager.controller;
|
||||
|
||||
import com.mosty.base.manager.service.TbJcglXljlService;
|
||||
import com.mosty.base.model.dto.jcgl.TbJcglAbfcDto;
|
||||
import com.mosty.base.model.dto.jcgl.TbJcglXljlDto;
|
||||
import com.mosty.base.model.entity.jcgl.TbJcglAbfc;
|
||||
import com.mosty.base.model.entity.jcgl.TbJcglXljl;
|
||||
import com.mosty.base.model.query.jcgl.TbJcglAbfcQuery;
|
||||
import com.mosty.common.base.domain.ResponseResult;
|
||||
import com.mosty.common.base.entity.log.BusinessType;
|
||||
import com.mosty.common.base.entity.log.Log;
|
||||
import com.mosty.common.token.JwtSysUser;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Api(tags = "训练记录")
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
@RequestMapping("/xljl")
|
||||
public class TbJcglXljlController {
|
||||
|
||||
private final TbJcglXljlService tbJcglXljlService;
|
||||
|
||||
@ApiOperation("添加训练记录")
|
||||
@JwtSysUser
|
||||
@PostMapping
|
||||
@Log(title = "添加训练记录", businessType = BusinessType.INSERT)
|
||||
public ResponseResult<Integer> addEntity(@RequestBody TbJcglXljlDto dto) {
|
||||
return ResponseResult.success(this.tbJcglXljlService.addEntity(dto));
|
||||
}
|
||||
|
||||
@ApiOperation("修改训练记录")
|
||||
@JwtSysUser
|
||||
@PutMapping
|
||||
@Log(title = "修改训练记录", businessType = BusinessType.UPDATE)
|
||||
public ResponseResult<Integer> editEntity(@RequestBody TbJcglXljlDto dto) {
|
||||
return ResponseResult.success(this.tbJcglXljlService.editEntity(dto));
|
||||
}
|
||||
|
||||
@ApiOperation("批量删除训练记录")
|
||||
@JwtSysUser
|
||||
@DeleteMapping
|
||||
@Log(title = "批量删除训练记录", businessType = BusinessType.DELETE)
|
||||
public ResponseResult<Void> deleteEntity(@RequestBody List<String> ids) {
|
||||
this.tbJcglXljlService.deleteEntity(ids);
|
||||
return ResponseResult.success();
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation("查询训练记录详情")
|
||||
@JwtSysUser
|
||||
@GetMapping("{id}")
|
||||
public ResponseResult<TbJcglXljl> getInfo(@PathVariable("id") String id) {
|
||||
return ResponseResult.success(this.tbJcglXljlService.getInfo(id));
|
||||
}
|
||||
|
||||
@ApiOperation("根据巡防人员ID获取人员训练列表")
|
||||
@JwtSysUser
|
||||
@GetMapping("/getListByXfid")
|
||||
public ResponseResult<List<TbJcglXljl>> getListByXfid(String xfid) {
|
||||
return ResponseResult.success(this.tbJcglXljlService.getListByXfid(xfid));
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,73 @@
|
||||
package com.mosty.base.manager.controller;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.mosty.base.model.entity.jcgl.TbJcglZjk;
|
||||
import com.mosty.base.model.query.jcgl.TbJcglZjkQuery;
|
||||
import com.mosty.base.manager.service.TbJcglZjkService;
|
||||
import com.mosty.common.base.domain.ResponseResult;
|
||||
import com.mosty.common.base.entity.log.BusinessType;
|
||||
import com.mosty.common.base.entity.log.Log;
|
||||
import com.mosty.common.token.JwtSysUser;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 基础管理-专家库 前端控制器
|
||||
* </p>
|
||||
*
|
||||
* @author zengbo
|
||||
* @since 2022-07-28
|
||||
*/
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
@Api(tags = "专家库功能接口")
|
||||
@RequestMapping("/tbJcglZjk")
|
||||
public class TbJcglZjkController {
|
||||
|
||||
private final TbJcglZjkService tbJcglZjkService;
|
||||
|
||||
@GetMapping({"/queryList"})
|
||||
@JwtSysUser
|
||||
@ApiOperation(value = "查询专家库列表")
|
||||
public ResponseResult<IPage<TbJcglZjk>> queryList(TbJcglZjkQuery zjkQuery) {
|
||||
return ResponseResult.success(tbJcglZjkService.queryPage(zjkQuery));
|
||||
}
|
||||
|
||||
@PostMapping({"/insert"})
|
||||
@JwtSysUser
|
||||
@Log(title = "新增专家库", businessType = BusinessType.INSERT)
|
||||
@ApiOperation(value = "新增专家库")
|
||||
public ResponseResult insert(@RequestBody TbJcglZjk zjk) {
|
||||
return ResponseResult.success(tbJcglZjkService.insert(zjk));
|
||||
}
|
||||
|
||||
@PostMapping({"/update"})
|
||||
@JwtSysUser
|
||||
@Log(title = "修改专家库", businessType = BusinessType.UPDATE)
|
||||
@ApiOperation(value = "修改专家库")
|
||||
public ResponseResult update(@RequestBody TbJcglZjk zjk) {
|
||||
return ResponseResult.success(tbJcglZjkService.update(zjk));
|
||||
}
|
||||
|
||||
@GetMapping({"/selectById"})
|
||||
@JwtSysUser
|
||||
@ApiOperation(value = "查询专家库详情")
|
||||
public ResponseResult selectByid(String id) {
|
||||
return ResponseResult.success(tbJcglZjkService.selectById(id));
|
||||
}
|
||||
|
||||
@PostMapping({"/delete"})
|
||||
@JwtSysUser
|
||||
@Log(title = "删除专家库", businessType = BusinessType.DELETE)
|
||||
@ApiOperation(value = "删除专家库")
|
||||
public ResponseResult delete(@RequestBody List<String> list) {
|
||||
return ResponseResult.success(tbJcglZjkService.deleteById(list));
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,74 @@
|
||||
package com.mosty.base.manager.controller;
|
||||
|
||||
import com.mosty.base.manager.service.TbSbGzjrService;
|
||||
import com.mosty.base.model.entity.jcgl.TbSbGzjr;
|
||||
import com.mosty.common.base.domain.ResponseResult;
|
||||
import com.mosty.common.base.entity.log.BusinessType;
|
||||
import com.mosty.common.base.entity.log.Log;
|
||||
import com.mosty.common.token.JwtSysUser;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
@Api(tags = "感知接入相关接口")
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
@RequestMapping("/gzjr")
|
||||
public class TbSbGzjrController {
|
||||
|
||||
private final TbSbGzjrService tbSbGzjrService;
|
||||
|
||||
@ApiOperation("添加感知接入")
|
||||
@JwtSysUser
|
||||
@PostMapping
|
||||
@Log(title = "添加感知接入", businessType = BusinessType.INSERT)
|
||||
public ResponseResult<String> addEntity(@RequestBody TbSbGzjr dto) {
|
||||
return ResponseResult.success(this.tbSbGzjrService.addEntity(dto));
|
||||
}
|
||||
|
||||
@ApiOperation("修改感知接入")
|
||||
@JwtSysUser
|
||||
@PutMapping
|
||||
@Log(title = "修改感知接入", businessType = BusinessType.UPDATE)
|
||||
public ResponseResult<Integer> editEntity(@RequestBody TbSbGzjr dto) {
|
||||
return ResponseResult.success(this.tbSbGzjrService.editEntity(dto));
|
||||
}
|
||||
|
||||
@ApiOperation("批量删除感知接入")
|
||||
@JwtSysUser
|
||||
@DeleteMapping
|
||||
@Log(title = "批量删除感知接入", businessType = BusinessType.DELETE)
|
||||
public ResponseResult<Void> deleteEntity(@RequestParam List<String> ids) {
|
||||
this.tbSbGzjrService.deleteEntity(ids);
|
||||
return ResponseResult.success();
|
||||
}
|
||||
|
||||
@ApiOperation("查询感知接入列表")
|
||||
@JwtSysUser
|
||||
@PostMapping("/getList")
|
||||
public ResponseResult<List<TbSbGzjr>> getList(@RequestBody TbSbGzjr dto) {
|
||||
return ResponseResult.success(this.tbSbGzjrService.getList(dto));
|
||||
}
|
||||
|
||||
@ApiOperation("查询感知接入详情")
|
||||
@JwtSysUser
|
||||
@GetMapping("{id}")
|
||||
public ResponseResult<TbSbGzjr> getInfo(@PathVariable("id") String id) {
|
||||
return ResponseResult.success(this.tbSbGzjrService.getInfo(id));
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation("根据id取消接入")
|
||||
@JwtSysUser
|
||||
@PostMapping("/qxjr")
|
||||
public ResponseResult<Integer> qxjrById(@RequestBody TbSbGzjr dto) {
|
||||
return ResponseResult.success(this.tbSbGzjrService.qxjr(dto));
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,68 @@
|
||||
package com.mosty.base.manager.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.mosty.base.model.entity.jcgl.TbJcglZbfl;
|
||||
import com.mosty.base.manager.service.TpJcglZbflService;
|
||||
import com.mosty.common.base.domain.ResponseResult;
|
||||
import com.mosty.common.base.entity.log.BusinessType;
|
||||
import com.mosty.common.base.entity.log.Log;
|
||||
import com.mosty.common.token.JwtSysUser;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
@RequestMapping({"/tpJcglZbfl"})
|
||||
@Api(tags = {"装备分类管理"})
|
||||
public class TpJcglZbflController {
|
||||
|
||||
private final TpJcglZbflService tpJcglZbflService;
|
||||
|
||||
|
||||
@PostMapping("{addZbfl}")
|
||||
@JwtSysUser
|
||||
@Log(title = "新增装备类型", businessType = BusinessType.INSERT)
|
||||
@ApiOperation(value = "新增装备类型")
|
||||
public ResponseResult<Void> addZbfl(@RequestBody TbJcglZbfl zbfl) {
|
||||
tpJcglZbflService.addZbfl(zbfl);
|
||||
return ResponseResult.success();
|
||||
}
|
||||
|
||||
@GetMapping(value = "selectLxList")
|
||||
@JwtSysUser
|
||||
@ApiOperation(value = "查询装备类型列表")
|
||||
public ResponseResult<IPage<TbJcglZbfl>> selectList(TbJcglZbfl zbfl) {
|
||||
IPage<TbJcglZbfl> page = new Page<>(zbfl.getPageNo(),zbfl.getPageSize());
|
||||
return ResponseResult.success(tpJcglZbflService.selectList(zbfl,page));
|
||||
}
|
||||
|
||||
@GetMapping("{zbTree}")
|
||||
@JwtSysUser
|
||||
@ApiOperation(value = "查询装备树")
|
||||
public ResponseResult<List<TbJcglZbfl>> zbTree(String scode) {
|
||||
return ResponseResult.success(tpJcglZbflService.zbTree(scode));
|
||||
}
|
||||
|
||||
@PutMapping("{editZbfl}")
|
||||
@JwtSysUser
|
||||
@Log(title = "编辑装备类型", businessType = BusinessType.UPDATE)
|
||||
@ApiOperation(value = "编辑装备类型")
|
||||
public ResponseResult<Void> editZbfl(@RequestBody TbJcglZbfl zbfl) {
|
||||
tpJcglZbflService.editZbfl(zbfl);
|
||||
return ResponseResult.success();
|
||||
}
|
||||
|
||||
@PostMapping("deleteZbfl")
|
||||
@JwtSysUser
|
||||
@Log(title = "递归删除装备类型", businessType = BusinessType.DELETE)
|
||||
@ApiOperation(value = "递归删除装备类型")
|
||||
public ResponseResult<Void> deleteZbfl(@RequestBody List<String> id) {
|
||||
tpJcglZbflService.deleteZbfl(id);
|
||||
return ResponseResult.success();
|
||||
}
|
||||
}
|
@ -0,0 +1,174 @@
|
||||
package com.mosty.base.manager.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.mosty.base.manager.service.TpjcglZnzbService;
|
||||
import com.mosty.base.model.dto.jcgl.TbJcglZnzbSearchDto;
|
||||
import com.mosty.base.model.dto.qwzx.AppSearchQuery;
|
||||
import com.mosty.base.model.entity.jcgl.TbJcglZnzb;
|
||||
import com.mosty.base.model.query.jcgl.TbJcglZnzbQuery;
|
||||
import com.mosty.base.model.query.jcgl.TbJcglZyzbQuery;
|
||||
import com.mosty.base.model.vo.jcgl.TbJcglZnzbVo;
|
||||
import com.mosty.common.base.domain.ResponseResult;
|
||||
import com.mosty.common.base.entity.log.BusinessType;
|
||||
import com.mosty.common.base.entity.log.Log;
|
||||
import com.mosty.common.config.Excel.ExcelUtil;
|
||||
import com.mosty.common.token.JwtSysUser;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
@RequestMapping({"/tpjcglZnzb"})
|
||||
@Api(tags = {"智能装备管理"})
|
||||
public class TpjcglZnzbController {
|
||||
|
||||
private final TpjcglZnzbService tpjcglZnzbService;
|
||||
|
||||
|
||||
@PostMapping({"/xfZnzb"})
|
||||
@JwtSysUser
|
||||
@Log(title = "下发智能", businessType = BusinessType.INSERT)
|
||||
@ApiOperation(value = "下发智能")
|
||||
public ResponseResult xfZnzb(@RequestBody TbJcglZnzb zb) {
|
||||
tpjcglZnzbService.xfZnzb(zb);
|
||||
return ResponseResult.success();
|
||||
|
||||
}
|
||||
|
||||
@GetMapping({"/htZnzb"})
|
||||
@JwtSysUser
|
||||
@ApiOperation(value = "回退智能装备")
|
||||
public ResponseResult htZnzb(String id) {
|
||||
tpjcglZnzbService.htZnzb(id);
|
||||
return ResponseResult.success();
|
||||
}
|
||||
|
||||
@GetMapping({"/bsZnzb"})
|
||||
@JwtSysUser
|
||||
@ApiOperation(value = "报损智能装备")
|
||||
public ResponseResult bsZnzb(String id) {
|
||||
tpjcglZnzbService.bsZnzb(id);
|
||||
return ResponseResult.success();
|
||||
}
|
||||
|
||||
|
||||
@PostMapping({"/addZnzb"})
|
||||
@JwtSysUser
|
||||
@Log(title = "新增智能装备", businessType = BusinessType.INSERT)
|
||||
@ApiOperation(value = "新增智能装备")
|
||||
public ResponseResult<Integer> addZnzb(@RequestBody TbJcglZnzb tbJcglZnzb) {
|
||||
return ResponseResult.success(tpjcglZnzbService.addZnzb(tbJcglZnzb));
|
||||
}
|
||||
|
||||
|
||||
@PostMapping({"/getZyzb"})
|
||||
@JwtSysUser
|
||||
@ApiOperation(value = "查询专业装备")
|
||||
public ResponseResult<List<TbJcglZnzb>> getZyzb(@RequestBody TbJcglZyzbQuery tbJcglZyzbQuery) {
|
||||
return ResponseResult.success(tpjcglZnzbService.getZyzb(tbJcglZyzbQuery));
|
||||
}
|
||||
|
||||
@GetMapping({"/getZnzb"})
|
||||
@JwtSysUser
|
||||
@ApiOperation(value = "查询智能装备")
|
||||
public ResponseResult<IPage<TbJcglZnzbVo>> getZnzb(TbJcglZnzb zb) {
|
||||
IPage<TbJcglZnzb> tbJcglZnzbIPage = new Page<>(zb.getPageNo(), zb.getPageSize());
|
||||
return ResponseResult.success(tpjcglZnzbService.getZnzb(zb, tbJcglZnzbIPage));
|
||||
}
|
||||
|
||||
@PostMapping({"/editZnzb"})
|
||||
@JwtSysUser
|
||||
@Log(title = "编辑智能装备", businessType = BusinessType.UPDATE)
|
||||
@ApiOperation(value = "编辑智能装备")
|
||||
public ResponseResult editZnzb(@RequestBody TbJcglZnzb tbJcglZnzb) {
|
||||
tpjcglZnzbService.editZnzb(tbJcglZnzb);
|
||||
return ResponseResult.success();
|
||||
}
|
||||
|
||||
@PostMapping({"/deleteZnzb"})
|
||||
@JwtSysUser
|
||||
@Log(title = "删除智能装备", businessType = BusinessType.DELETE)
|
||||
@ApiOperation(value = "删除智能装备")
|
||||
public ResponseResult deleteZnzb(@RequestBody List<String> id) {
|
||||
tpjcglZnzbService.deleteZnzb(id);
|
||||
return ResponseResult.success();
|
||||
}
|
||||
|
||||
@GetMapping("selectZbxq")
|
||||
@JwtSysUser
|
||||
@ApiOperation(value = "id查询智能装备")
|
||||
public ResponseResult<TbJcglZnzbVo> selectZbxq(String id) {
|
||||
return ResponseResult.success(tpjcglZnzbService.selectZbxq(id));
|
||||
}
|
||||
|
||||
@GetMapping({"/znzbDqtx"})
|
||||
@JwtSysUser
|
||||
@ApiOperation(value = "智能装备到期提醒")
|
||||
public ResponseResult<IPage<TbJcglZnzb>> znzbDqtx(TbJcglZnzbQuery tbJcglZnzb) {
|
||||
IPage<TbJcglZnzb> tbJcglZnzbIPage = new Page<>(tbJcglZnzb.getPageCurrent(), tbJcglZnzb.getPageSize());
|
||||
return ResponseResult.success(tpjcglZnzbService.znzbDqtx(tbJcglZnzb, tbJcglZnzbIPage));
|
||||
}
|
||||
|
||||
@GetMapping({"/checkZnzb"})
|
||||
@JwtSysUser
|
||||
@ApiOperation(value = "查询装备到期和故障,提醒部门下的所有人")
|
||||
public ResponseResult<Object> checkZnzb() {
|
||||
return ResponseResult.success(this.tpjcglZnzbService.checkZnzb());
|
||||
}
|
||||
|
||||
@GetMapping({"/getFjzbList"})
|
||||
@JwtSysUser
|
||||
@ApiOperation(value = "查询附近的智能装备")
|
||||
public ResponseResult<IPage<TbJcglZnzbVo>> getFjzbList(TbJcglZnzbSearchDto dto) {
|
||||
return ResponseResult.success(this.tpjcglZnzbService.getFjzbList(dto));
|
||||
}
|
||||
|
||||
@GetMapping("/getZnzbList")
|
||||
@JwtSysUser
|
||||
@ApiOperation(value = "app获取智能装备信息")
|
||||
public ResponseResult<IPage<TbJcglZnzbVo>> getZnzbList(AppSearchQuery dto) {
|
||||
return ResponseResult.success(this.tpjcglZnzbService.getZnzbList(dto));
|
||||
}
|
||||
|
||||
@GetMapping({"/zyZbtj"})
|
||||
@JwtSysUser
|
||||
@ApiOperation(value = "资源装备统计")
|
||||
public ResponseResult<Map<String, Object>> zyZbtj(String ssbmdm) {
|
||||
return ResponseResult.success(tpjcglZnzbService.zyZbtj(ssbmdm));
|
||||
}
|
||||
|
||||
@GetMapping({"/sblxTj"})
|
||||
@JwtSysUser
|
||||
@ApiOperation(value = "设备类型统计")
|
||||
public ResponseResult<List<Map<String, Object>>> sblxTj(String type, String ssbmdm) {
|
||||
return ResponseResult.success(tpjcglZnzbService.sblxTj(type, ssbmdm));
|
||||
}
|
||||
|
||||
@Log(title = "导入智能装备", businessType = BusinessType.IMPORT)
|
||||
@PostMapping("/importData")
|
||||
@JwtSysUser
|
||||
public ResponseResult<String> importData(MultipartFile file, boolean updateSupport) throws Exception {
|
||||
ExcelUtil<TbJcglZnzb> util = new ExcelUtil<TbJcglZnzb>(TbJcglZnzb.class);
|
||||
List<TbJcglZnzb> userList = util.importExcel(file.getInputStream());
|
||||
String s = this.tpjcglZnzbService.importData(userList, updateSupport);
|
||||
return ResponseResult.success(s);
|
||||
}
|
||||
|
||||
|
||||
@Log(title = "模板下载", businessType = BusinessType.IMPORT)
|
||||
@GetMapping("/importTemplate")
|
||||
@JwtSysUser
|
||||
public void importTemplate(HttpServletResponse response) throws Exception {
|
||||
ExcelUtil<TbJcglZnzb> util = new ExcelUtil<TbJcglZnzb>(TbJcglZnzb.class);
|
||||
util.importTemplateExcel(response, "智能装备");
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.mosty.base.manager.controller;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.mosty.base.manager.service.VwSydwJbxxGxService;
|
||||
import com.mosty.base.model.entity.afjcsj.VwSydwCyryGx;
|
||||
import com.mosty.base.model.entity.afjcsj.VwSyrkJzgjGx;
|
||||
import com.mosty.base.model.query.afjcsj.VwSydwCyryPageQuery;
|
||||
import com.mosty.base.model.query.afjcsj.VwSydwJbxxGxQuery;
|
||||
import com.mosty.base.model.entity.afjcsj.VwSydwJbxxGx;
|
||||
import com.mosty.common.base.domain.ResponseResult;
|
||||
import com.mosty.common.token.JwtSysUser;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @author dw
|
||||
* @since 2022-10-27
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/vwSydwJbxxGx")
|
||||
@AllArgsConstructor
|
||||
@Api(tags = {"实有单位基本信息"})
|
||||
public class VwSydwJbxxGxController {
|
||||
|
||||
private VwSydwJbxxGxService vwSydwJbxxGxService;
|
||||
|
||||
@GetMapping(value = "selectSydwList")
|
||||
@JwtSysUser
|
||||
@ApiOperation(value = "查询实有单位列表")
|
||||
public ResponseResult<IPage<VwSydwJbxxGx>> selectList(VwSydwJbxxGxQuery dto) {
|
||||
return ResponseResult.success(vwSydwJbxxGxService.selectList(dto));
|
||||
}
|
||||
|
||||
@GetMapping(value = "getStatistics")
|
||||
@JwtSysUser
|
||||
@ApiOperation(value = "统计实有单位")
|
||||
public ResponseResult<List<Map<String,Object>>> getStatistics() {
|
||||
return ResponseResult.success(vwSydwJbxxGxService.getStatistics());
|
||||
}
|
||||
|
||||
@GetMapping(value = "getSydwInfo/{id}")
|
||||
@JwtSysUser
|
||||
@ApiOperation(value = "查询实有单位详情")
|
||||
public ResponseResult<VwSydwJbxxGx> getSydwInfo(@PathVariable("id") String id) {
|
||||
return ResponseResult.success(vwSydwJbxxGxService.getSydwInfo(id));
|
||||
}
|
||||
|
||||
@GetMapping(value = "getSydwCyryPage")
|
||||
@JwtSysUser
|
||||
@ApiOperation(value = "查询实有单位从业人员列表")
|
||||
public ResponseResult<IPage<VwSydwCyryGx>> getSydwCyryPage(VwSydwCyryPageQuery dto) {
|
||||
return ResponseResult.success(vwSydwJbxxGxService.getSydwCyryPage(dto));
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,72 @@
|
||||
package com.mosty.base.manager.controller;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.mosty.base.manager.service.VwSyrkJzgjGxService;
|
||||
import com.mosty.base.model.entity.afjcsj.VwSydwCyryGx;
|
||||
import com.mosty.base.model.entity.afjcsj.VwSyrkJzgjGx;
|
||||
import com.mosty.base.model.query.afjcsj.VwSydwJbxxGxQuery;
|
||||
import com.mosty.base.model.entity.afjcsj.VwSydwJbxxGx;
|
||||
import com.mosty.base.model.query.afjcsj.VwSyrkJzgjGxListQuery;
|
||||
import com.mosty.base.model.query.afjcsj.VwSyrkJzgjGxQuery;
|
||||
import com.mosty.common.base.domain.ResponseResult;
|
||||
import com.mosty.common.token.JwtSysUser;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @author dw
|
||||
* @since 2022-10-27
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/vwSyrkJzgjGx")
|
||||
@AllArgsConstructor
|
||||
@Api(tags = {"实有人口-居住轨迹接口信息表"})
|
||||
public class VwSyrkJzgjGxController {
|
||||
|
||||
private VwSyrkJzgjGxService vwSyrkJzgjGxService;
|
||||
|
||||
@GetMapping(value = "selectPageList")
|
||||
@JwtSysUser
|
||||
@ApiOperation(value = "查询实有人口列表")
|
||||
public ResponseResult<IPage<VwSyrkJzgjGx>> selectPageList(VwSyrkJzgjGxQuery dto) {
|
||||
return ResponseResult.success(this.vwSyrkJzgjGxService.selectPageList(dto));
|
||||
}
|
||||
|
||||
@GetMapping(value = "selectGjList")
|
||||
@JwtSysUser
|
||||
@ApiOperation(value = "查询实有人口居住轨迹")
|
||||
public ResponseResult<IPage<VwSyrkJzgjGx>> selectGjList(VwSyrkJzgjGxListQuery dto) {
|
||||
return ResponseResult.success(this.vwSyrkJzgjGxService.selectGjList(dto));
|
||||
}
|
||||
|
||||
@GetMapping(value = "getStatistics")
|
||||
@JwtSysUser
|
||||
@ApiOperation(value = "统计实有人口数据")
|
||||
public ResponseResult<List<Map<String, Object>>> getStatistics() {
|
||||
return ResponseResult.success(this.vwSyrkJzgjGxService.getStatistics());
|
||||
}
|
||||
|
||||
@GetMapping(value = "getSyrkCygj/{zjhm}")
|
||||
@JwtSysUser
|
||||
@ApiOperation(value = "查询实有人口从业轨迹")
|
||||
public ResponseResult<List<VwSydwCyryGx>> getSyrkCygj(@PathVariable("zjhm") String zjhm) {
|
||||
return ResponseResult.success(this.vwSyrkJzgjGxService.getSyrkCygj(zjhm));
|
||||
}
|
||||
|
||||
@GetMapping(value = "getSyrkInfo/{id}")
|
||||
@JwtSysUser
|
||||
@ApiOperation(value = "查询实有人口详情")
|
||||
public ResponseResult<VwSydwCyryGx> getSyrkInfo(@PathVariable("id") String id) {
|
||||
return ResponseResult.success(this.vwSyrkJzgjGxService.getSyrkInfo(id));
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,16 @@
|
||||
package com.mosty.base.manager.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.mosty.base.model.entity.jcgl.TbJcglAbfc;
|
||||
import com.mosty.base.model.query.jcgl.TbJcglAbfcQuery;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Mapper
|
||||
public interface TbJcglAbfcMapper extends BaseMapper<TbJcglAbfc> {
|
||||
|
||||
@ApiOperation("查询列表")
|
||||
List<TbJcglAbfc> getList(TbJcglAbfcQuery dto);
|
||||
}
|
@ -0,0 +1,43 @@
|
||||
package com.mosty.base.manager.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.mosty.base.model.entity.jcgl.TbJcglBq;
|
||||
import com.mosty.base.model.query.jcgl.TbJcglBqQuery;
|
||||
import com.mosty.base.model.vo.jcgl.TbJcglBqVo;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 巡防警力标签表(技能/经验);(tb_jcgl_bq)表数据库访问层
|
||||
* @author : http://www.chiner.pro
|
||||
* @date : 2022-6-6
|
||||
*/
|
||||
@Mapper
|
||||
public interface TbJcglBqMapper extends BaseMapper<TbJcglBq>{
|
||||
IPage<TbJcglBqVo> paginQuery(@Param("page") IPage<TbJcglBq> page, @Param("params") TbJcglBqQuery tbJcglBq);
|
||||
|
||||
List<TbJcglBqVo> countBqsl(@Param("vo") TbJcglBqVo tbJcglBqVo);
|
||||
|
||||
/**
|
||||
* 标签类型统计
|
||||
* @param bqlx
|
||||
* @return
|
||||
*/
|
||||
Integer countBqslByBqlx(@Param("bqlx") String bqlx);
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
* @param list
|
||||
*/
|
||||
int deleteBatch(@Param("list") List<String> list);
|
||||
|
||||
/**
|
||||
* 批量注销
|
||||
* @param list
|
||||
*/
|
||||
int zxBatch(@Param("list") List<String> list);
|
||||
|
||||
}
|
@ -0,0 +1,32 @@
|
||||
package com.mosty.base.manager.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.mosty.base.model.entity.jcgl.TbJcglBxd;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 巡防区域必巡点 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author zengbo
|
||||
* @since 2022-07-16
|
||||
*/
|
||||
@Mapper
|
||||
public interface TbJcglBxdMapper extends BaseMapper<TbJcglBxd> {
|
||||
|
||||
int deleteBatch(@Param("list") List<String> list);
|
||||
|
||||
@ApiOperation("添加必循点信息")
|
||||
int insertExtity(TbJcglBxd bxd);
|
||||
|
||||
@ApiOperation("修改必循点西悉尼")
|
||||
int updateEntity(TbJcglBxd bxd);
|
||||
|
||||
@ApiOperation("修改之前生成的必巡点的信息")
|
||||
void updateYesterdayBxd();
|
||||
}
|
@ -0,0 +1,36 @@
|
||||
package com.mosty.base.manager.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.mosty.base.model.entity.jcgl.TbJcglBxx;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @author zengbo
|
||||
* @since 2022-07-16
|
||||
*/
|
||||
@Mapper
|
||||
public interface TbJcglBxxMapper extends BaseMapper<TbJcglBxx> {
|
||||
|
||||
@ApiOperation("根据Id删除数据")
|
||||
int deleteBatch(@Param("list") List<String> list);
|
||||
|
||||
@ApiOperation("添加必巡线")
|
||||
int insertEntity(TbJcglBxx item);
|
||||
|
||||
@ApiOperation("修改必巡线信息")
|
||||
int updateEntity(TbJcglBxx item);
|
||||
|
||||
@ApiOperation("查询列表分页")
|
||||
List<TbJcglBxx> getPageList(Map<String, Object> map);
|
||||
|
||||
@ApiOperation("查询列表数据总和")
|
||||
int getCount(Map<String, Object> map);
|
||||
|
||||
@ApiOperation("查询详情信息")
|
||||
TbJcglBxx getById(@Param("id") String id);
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
package com.mosty.base.manager.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.mosty.base.model.entity.jcgl.TbJcglDsf;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface TbJcglDsfMapper extends BaseMapper<TbJcglDsf> {
|
||||
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
package com.mosty.base.manager.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.mosty.base.model.entity.jcgl.TbJcglJwz;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Mapper
|
||||
public interface TbJcglJwzMapper extends BaseMapper<TbJcglJwz> {
|
||||
|
||||
void deleteJwz(@Param("id") List<String> id);
|
||||
|
||||
@ApiOperation("添加警务站信息")
|
||||
void insertEntity(TbJcglJwz tbJcglJwz);
|
||||
|
||||
@ApiOperation("修改警务站")
|
||||
void updateEntity(TbJcglJwz jwz);
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
package com.mosty.base.manager.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.mosty.base.model.entity.jcgl.TbJcglJyqx;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Mapper
|
||||
public interface TbJcglJyqxMapper extends BaseMapper<TbJcglJyqx> {
|
||||
|
||||
void deleteZb(@Param("id") List<String> id);
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
package com.mosty.base.manager.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.mosty.base.model.entity.jcgl.TbJcglJzCl;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 勤务警组车辆关联表 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author zengbo
|
||||
* @since 2022-06-30
|
||||
*/
|
||||
@Mapper
|
||||
public interface TbJcglJzClMapper extends BaseMapper<TbJcglJzCl> {
|
||||
|
||||
@ApiOperation("批量删除")
|
||||
void deleteBatch(@Param("list") List<String> list);
|
||||
|
||||
@ApiOperation("根据警组ID删除")
|
||||
void deleteByQwjzId(@Param("qwjzId") String qwjzId);
|
||||
|
||||
}
|
@ -0,0 +1,32 @@
|
||||
package com.mosty.base.manager.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.mosty.base.model.entity.jcgl.TbJcglJzJyqx;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 勤务警组警用器械 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author zengbo
|
||||
* @since 2022-06-30
|
||||
*/
|
||||
public interface TbJcglJzJyqxMapper extends BaseMapper<TbJcglJzJyqx> {
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
* @param list
|
||||
*/
|
||||
void deleteBatch(@Param("list") List<String> list);
|
||||
|
||||
/**
|
||||
* 根据警组ID删除
|
||||
* @param qwjzId
|
||||
*/
|
||||
void deleteByQwjzId(@Param("qwjzId") String qwjzId);
|
||||
|
||||
}
|
@ -0,0 +1,38 @@
|
||||
package com.mosty.base.manager.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.mosty.base.model.entity.jcgl.TbJcglJz;
|
||||
import com.mosty.base.model.query.jcgl.TbJcglJzQuery;
|
||||
import com.mosty.base.model.vo.jcgl.TbJcglJzAllVo;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 勤务警组 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author zengbo
|
||||
* @since 2022-06-30
|
||||
*/
|
||||
@Mapper
|
||||
public interface TbJcglJzMapper extends BaseMapper<TbJcglJz> {
|
||||
|
||||
@ApiOperation("警组查询")
|
||||
List<TbJcglJz> queryList(Map<String, Object> map);
|
||||
|
||||
@ApiOperation("批量删除")
|
||||
int deleteBatch(@Param("list") List<String> list);
|
||||
|
||||
@ApiOperation("id查询")
|
||||
TbJcglJzAllVo queryById(@Param("id") String id);
|
||||
|
||||
@ApiOperation("查询数量")
|
||||
int queryCount(Map<String, Object> map);
|
||||
}
|
@ -0,0 +1,32 @@
|
||||
package com.mosty.base.manager.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.mosty.base.model.entity.jcgl.TbJcglJzRy;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 勤务警组人员 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author zengbo
|
||||
* @since 2022-06-30
|
||||
*/
|
||||
public interface TbJcglJzRyMapper extends BaseMapper<TbJcglJzRy> {
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
* @param list
|
||||
*/
|
||||
void deleteBatch(@Param("list") List<String> list);
|
||||
|
||||
/**
|
||||
* 根据警组ID删除
|
||||
* @param qwjzId
|
||||
*/
|
||||
void deleteByQwjzId(@Param("qwjzId") String qwjzId);
|
||||
|
||||
}
|
@ -0,0 +1,26 @@
|
||||
package com.mosty.base.manager.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.mosty.base.model.entity.jcgl.TbJcglJzZnzb;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 勤务警组通讯装备 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author zengbo
|
||||
* @since 2022-06-30
|
||||
*/
|
||||
public interface TbJcglJzZnzbMapper extends BaseMapper<TbJcglJzZnzb> {
|
||||
|
||||
@ApiOperation("批量删除")
|
||||
void deleteBatch(@Param("list") List<String> list);
|
||||
|
||||
@ApiOperation("根据警组ID删除")
|
||||
void deleteByQwjzId(@Param("qwjzId") String qwjzId);
|
||||
|
||||
}
|
@ -0,0 +1,35 @@
|
||||
package com.mosty.base.manager.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.mosty.base.model.entity.jcgl.TbJcglKfd;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@Mapper
|
||||
public interface TbJcglKfdMapper extends BaseMapper<TbJcglKfd> {
|
||||
|
||||
@ApiOperation("删除快反点信息")
|
||||
void deleteKfd(@Param("id") List<String> id);
|
||||
|
||||
@ApiOperation("保存快反点信息")
|
||||
int insertEntity(TbJcglKfd item);
|
||||
|
||||
@ApiOperation("修改快反点信息")
|
||||
int updateEntity(TbJcglKfd item);
|
||||
|
||||
@ApiOperation("查询列表分页")
|
||||
List<TbJcglKfd> getPageList(Map<String, Object> map);
|
||||
|
||||
@ApiOperation("查询列表不分页")
|
||||
List<TbJcglKfd> getListAll();
|
||||
|
||||
@ApiOperation("查询列表数据总和")
|
||||
int getCount(Map<String, Object> map);
|
||||
|
||||
@ApiOperation("查询详情信息")
|
||||
TbJcglKfd getById(@Param("kfdId") String kfdId);
|
||||
}
|
@ -0,0 +1,24 @@
|
||||
package com.mosty.base.manager.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.mosty.base.model.dto.jcgl.TbJcglKhbmEditPzDto;
|
||||
import com.mosty.base.model.entity.jcgl.TbJcglKhbm;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.simpleframework.xml.Path;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Mapper
|
||||
public interface TbJcglKhbmMapper extends BaseMapper<TbJcglKhbm> {
|
||||
|
||||
// 删除绩效考核部门
|
||||
void delKhbm(@Param("list") List<String> ids);
|
||||
|
||||
// 查询所有的已选中的部门
|
||||
List<String> getAllKhbm(@Param("ssbmdm") String ssbmdm);
|
||||
|
||||
// 修改考核部门配置
|
||||
void editKhbm(@Param("dto") TbJcglKhbmEditPzDto dto);
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
package com.mosty.base.manager.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.mosty.base.model.entity.jcgl.TbJcglKhmx;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface TbJcglKhmxMapper extends BaseMapper<TbJcglKhmx> {
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
package com.mosty.base.manager.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.mosty.base.model.entity.jcgl.TbJcglKhtj;
|
||||
import com.mosty.base.model.vo.jcgl.TbJcglKhtjVo;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@Mapper
|
||||
public interface TbJcglKhtjMapper extends BaseMapper<TbJcglKhtj> {
|
||||
|
||||
// 统计数量
|
||||
int getCount(Map<String, Object> mp);
|
||||
|
||||
// 统计列表
|
||||
List<TbJcglKhtjVo> getList(Map<String, Object> mp);
|
||||
|
||||
// 统计数量
|
||||
Map<String, Object> getStatistics(Map<String, Object> map);
|
||||
|
||||
List<TbJcglKhtjVo> getFxbm(Map<String, Object> mp);
|
||||
|
||||
}
|
@ -0,0 +1,26 @@
|
||||
package com.mosty.base.manager.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.mosty.base.model.entity.jcgl.TbJcglPzfz;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@Mapper
|
||||
public interface TbJcglPzfzMapper extends BaseMapper<TbJcglPzfz> {
|
||||
// 查询
|
||||
List<Map<String, Object>> getList(Map<String, Object> map);
|
||||
|
||||
// 删除
|
||||
int deleteByPzfzId(String id);
|
||||
|
||||
// 详情
|
||||
TbJcglPzfz selectPzlx(String pzlx);
|
||||
|
||||
// total
|
||||
int getListCount(Map<String, Object> map);
|
||||
|
||||
// 无条件
|
||||
List<Map<String, Object>> getPageListWtj(Map<String, Object> map);
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
package com.mosty.base.manager.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.mosty.base.model.entity.jcgl.TbJcglShabll;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* @author dw
|
||||
* @since 2022/8/1
|
||||
**/
|
||||
@Mapper
|
||||
public interface TbJcglShabllMapper extends BaseMapper<TbJcglShabll> {
|
||||
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
package com.mosty.base.manager.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.mosty.base.model.entity.jcgl.TbJcglXfCyry;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface TbJcglXfCyryMapper extends BaseMapper<TbJcglXfCyry> {
|
||||
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
package com.mosty.base.manager.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.mosty.base.model.entity.jcgl.TbJcglXfDwgl;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface TbJcglXfDwglMapper extends BaseMapper<TbJcglXfDwgl> {
|
||||
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
package com.mosty.base.manager.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.mosty.base.model.entity.jcgl.TbJcglXf;
|
||||
import com.mosty.base.model.query.jcgl.TbJcglXfQuery;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@Mapper
|
||||
public interface TbJcglXfMapper extends BaseMapper<TbJcglXf> {
|
||||
|
||||
List<Map<String, Object>> xfbmtj(TbJcglXfQuery query);
|
||||
|
||||
|
||||
int bacthSb(@Param("list") List<String> id);
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
package com.mosty.base.manager.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.mosty.base.model.entity.jcgl.TbJcglXfNrmb;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface TbJcglXfNrmbMapper extends BaseMapper<TbJcglXfNrmb> {
|
||||
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
package com.mosty.base.manager.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.mosty.base.model.entity.jcgl.TbJcglXfRw;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface TbJcglXfRwMapper extends BaseMapper<TbJcglXfRw> {
|
||||
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
package com.mosty.base.manager.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.mosty.base.model.entity.jcgl.TbJcglXfZg;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface TbJcglXfZgMapper extends BaseMapper<TbJcglXfZg> {
|
||||
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
package com.mosty.base.manager.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.mosty.base.model.entity.jcgl.TbJcglXfcl;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Mapper
|
||||
public interface TbJcglXfclMapper extends BaseMapper<TbJcglXfcl> {
|
||||
|
||||
void deleteZb(@Param("id") List<String> id);
|
||||
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
package com.mosty.base.manager.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.mosty.base.model.entity.jcgl.TbJcglXfclSb;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface TbJcglXfclSbMapper extends BaseMapper<TbJcglXfclSb> {
|
||||
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
package com.mosty.base.manager.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.mosty.base.model.entity.jcgl.TbJcglXfllFz;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface TbJcglXfllFzMapper extends BaseMapper<TbJcglXfllFz> {
|
||||
|
||||
}
|
@ -0,0 +1,42 @@
|
||||
package com.mosty.base.manager.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.mosty.base.model.vo.jcgl.TbJcglZyjz;
|
||||
import com.mosty.base.model.dto.jcgl.TbJcglXfllDto;
|
||||
import com.mosty.base.model.entity.jcgl.TbJcglXfll;
|
||||
import com.mosty.base.model.query.jcgl.TbJcglXfllQuery;
|
||||
import com.mosty.base.model.vo.jcgl.TbJcglXfllVo;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 巡防力量表;(tb_jcgl_xfll)表数据库访问层
|
||||
* @author : Lhh
|
||||
* @date : 2022-6-4
|
||||
*/
|
||||
@Mapper
|
||||
public interface TbJcglXfllMapper extends BaseMapper<TbJcglXfll> {
|
||||
|
||||
IPage<TbJcglXfllVo> getList(@Param("page") IPage<TbJcglXfll> page, @Param("params") TbJcglXfllQuery tbJcglXfll);
|
||||
|
||||
TbJcglXfllVo queryById(String id);
|
||||
|
||||
void deleteList(@Param("id") List<String> id);
|
||||
|
||||
Map<String, Integer> selectAllPolice(TbJcglXfllDto tbJcglXfllDto);
|
||||
|
||||
Map<String, Integer> selectPolice(TbJcglXfllDto tbJcglXfllDto);
|
||||
|
||||
Map<String, Integer> selectAuxPolice(TbJcglXfllDto tbJcglXfllDto);
|
||||
|
||||
@ApiOperation("条件查询巡防力量列表")
|
||||
List<TbJcglZyjz> getxfllList(Map<String, Object> map);
|
||||
|
||||
@ApiOperation("条件查询巡防力量数量")
|
||||
int getxfllCount(Map<String, Object> map);
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
package com.mosty.base.manager.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.mosty.base.model.entity.jcgl.TbJcglXfllBq;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 巡防力量表;(tb_jcgl_xfll)表数据库访问层
|
||||
* @author : Lhh
|
||||
* @date : 2022-6-4
|
||||
*/
|
||||
@Mapper
|
||||
public interface TbJcglXfllbqMapper extends BaseMapper<TbJcglXfllBq> {
|
||||
|
||||
}
|
@ -0,0 +1,54 @@
|
||||
package com.mosty.base.manager.mapper;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.mosty.base.model.entity.jcgl.TbJcglXfqy;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @author zengbo
|
||||
* @since 2022-07-14
|
||||
*/
|
||||
public interface TbJcglXfqyMapper extends BaseMapper<TbJcglXfqy> {
|
||||
|
||||
@ApiOperation("批量删除")
|
||||
int deleteBatch(@Param("list") List<String> list);
|
||||
|
||||
@ApiOperation("添加巡防区域")
|
||||
int insertEntity(TbJcglXfqy xfqy);
|
||||
|
||||
@ApiOperation("修改巡逻区域")
|
||||
int updateEntity(TbJcglXfqy item);
|
||||
|
||||
@ApiOperation("查询列表分页")
|
||||
List<TbJcglXfqy> getPageList(Map<String, Object> map);
|
||||
|
||||
@ApiOperation("查询列表数据总和")
|
||||
int getCount(Map<String, Object> map);
|
||||
|
||||
@ApiOperation("查询详情信息")
|
||||
TbJcglXfqy getById(@Param("id") String id);
|
||||
|
||||
@ApiOperation("重点区域巡防总数")
|
||||
List<Map<String, Object>> getSfzs();
|
||||
|
||||
@ApiOperation("巡防重点数")
|
||||
List<Map<String, Object>> getSfzd(@Param("kssj") String kssj, @Param("jssj") String jssj);
|
||||
|
||||
@ApiOperation("警情统计")
|
||||
List<Map<String, Object>> getJqTj(@Param("kssj") String kssj);
|
||||
|
||||
@ApiOperation("根据时间统计警情")
|
||||
List<Map<String, Object>> getJqTjByTime(@Param("kssj") String kssj, @Param("jssj") String jssj);
|
||||
|
||||
@ApiOperation("根据时间统计重点巡防次数")
|
||||
List<Map<String, Object>> getXfzdByTime(@Param("kssj") String kssj, @Param("jssj") String jssj);
|
||||
|
||||
@ApiOperation("查询列表分页")
|
||||
List<TbJcglXfqy> getListAll();
|
||||
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
package com.mosty.base.manager.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.mosty.base.model.entity.jcgl.TbJcglXfwg;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Mapper
|
||||
public interface TbJcglXfwgMapper extends BaseMapper<TbJcglXfwg> {
|
||||
|
||||
@ApiOperation("批量删除")
|
||||
int deleteBatch(@Param("list") List<String> list);
|
||||
|
||||
@ApiOperation("新增")
|
||||
int insertEntity(TbJcglXfwg xfwg);
|
||||
|
||||
@ApiOperation("修改")
|
||||
int updateEntity(TbJcglXfwg xfwg);
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
package com.mosty.base.manager.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.mosty.base.model.entity.jcgl.TbJcglXlfa;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* @author dw
|
||||
* @since 2022/8/11
|
||||
**/
|
||||
@Mapper
|
||||
public interface TbJcglXlfaMapper extends BaseMapper<TbJcglXlfa> {
|
||||
|
||||
}
|
@ -0,0 +1,26 @@
|
||||
package com.mosty.base.manager.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.mosty.base.model.entity.jcgl.TbJcglXlfaXldw;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author dw
|
||||
* @since 2022/8/11
|
||||
**/
|
||||
@Mapper
|
||||
public interface TbJcglXlfaXldwMapper extends BaseMapper<TbJcglXlfaXldw> {
|
||||
|
||||
@ApiOperation("新增")
|
||||
void insertEntity(TbJcglXlfaXldw item);
|
||||
|
||||
@ApiOperation("通过方案ID删除数据")
|
||||
void deleteEntity(@Param("faid") String faid);
|
||||
|
||||
@ApiOperation("根据ID查询方案点位")
|
||||
List<TbJcglXlfaXldw> getListByFaId(@Param("faid") String faid);
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
package com.mosty.base.manager.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.mosty.base.model.entity.jcgl.TbJcglXljl;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface TbJcglXljlMapper extends BaseMapper<TbJcglXljl> {
|
||||
|
||||
}
|
@ -0,0 +1,8 @@
|
||||
package com.mosty.base.manager.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.mosty.base.model.entity.jcgl.Ybfj;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface TbJcglYbfjMapper extends BaseMapper<Ybfj> {}
|
@ -0,0 +1,10 @@
|
||||
package com.mosty.base.manager.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.mosty.base.model.entity.jcgl.TbJcglZbjl;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface TbJcglZbjlMapper extends BaseMapper<TbJcglZbjl> {
|
||||
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
package com.mosty.base.manager.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.mosty.base.model.entity.jcgl.TbJcglZjk;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 基础管理-专家库 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author zengbo
|
||||
* @since 2022-07-28
|
||||
*/
|
||||
@Mapper
|
||||
public interface TbJcglZjkMapper extends BaseMapper<TbJcglZjk> {
|
||||
|
||||
@ApiOperation("批量删除")
|
||||
int deleteBatch(@Param("list") List<String> list);
|
||||
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
package com.mosty.base.manager.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.mosty.base.model.entity.jcgl.TbSbGzjr;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface TbSbGzjrMapper extends BaseMapper<TbSbGzjr> {
|
||||
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package com.mosty.base.manager.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.mosty.base.model.entity.jcgl.TbJcglZbfl;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
@Mapper
|
||||
public interface TpJcglZbflMapper extends BaseMapper<TbJcglZbfl> {
|
||||
//查询最大的code
|
||||
String selectMaxCode();
|
||||
|
||||
void updateZt(@Param("scode") String scode);
|
||||
|
||||
void updateType(@Param("id") String id);
|
||||
}
|
@ -0,0 +1,32 @@
|
||||
package com.mosty.base.manager.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.mosty.base.model.vo.jcgl.TbJcglZnzbVo;
|
||||
import com.mosty.base.model.entity.jcgl.TbJcglZnzb;
|
||||
import com.mosty.common.config.entity.SysDictItem;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@Mapper
|
||||
public interface TpjcglZnzbMapper extends BaseMapper<TbJcglZnzb> {
|
||||
|
||||
void deleteZb(@Param("id") List<String> id);
|
||||
|
||||
@ApiOperation("查询附近装备列表")
|
||||
List<TbJcglZnzbVo> getFjzbList(Map<String, Object> map);
|
||||
|
||||
@ApiOperation("查询附近装备数量")
|
||||
int getFjzbCount(Map<String, Object> map);
|
||||
|
||||
List<Map<String, Object>> sblxTj(String ssbmdm);
|
||||
|
||||
@ApiOperation("查询字典")
|
||||
SysDictItem selectDict(@Param("dictName") String dictName, @Param("dm") String dm);
|
||||
|
||||
List<Map<String, Object>> znlxTj(@Param("ssbmdm") String ssbmdm ,@Param("scode") String scode);
|
||||
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
package com.mosty.base.manager.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.mosty.base.model.entity.afjcsj.VwShareStMhJgxxbGx;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* @author dw
|
||||
* @since 2022-10-27
|
||||
*/
|
||||
@Mapper
|
||||
public interface VwShareStMhJgxxbGxMapper extends BaseMapper<VwShareStMhJgxxbGx> {
|
||||
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
package com.mosty.base.manager.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.mosty.base.model.entity.afjcsj.VwShareStShzyJtKyqcgpxxGx;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* @author dw
|
||||
* @since 2022-10-27
|
||||
*/
|
||||
@Mapper
|
||||
public interface VwShareStShzyJtKyqcgpxxGxMapper extends BaseMapper<VwShareStShzyJtKyqcgpxxGx> {
|
||||
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
package com.mosty.base.manager.mapper;
|
||||
|
||||
import com.mosty.base.model.entity.afjcsj.VwShareStTlLksmdpGx;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* @author dw
|
||||
* @since 2022-10-27
|
||||
*/
|
||||
@Mapper
|
||||
public interface VwShareStTlLksmdpGxMapper extends BaseMapper<VwShareStTlLksmdpGx> {
|
||||
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
package com.mosty.base.manager.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.mosty.base.model.entity.afjcsj.VwSydwCyryGx;
|
||||
|
||||
/**
|
||||
* @author dw
|
||||
* @since 2022-10-27
|
||||
*/
|
||||
public interface VwSydwCyryGxMapper extends BaseMapper<VwSydwCyryGx> {
|
||||
|
||||
}
|
@ -0,0 +1,26 @@
|
||||
package com.mosty.base.manager.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.mosty.base.model.entity.afjcsj.VwSydwJbxxGx;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @author dw
|
||||
* @since 2022-10-27
|
||||
*/
|
||||
@Mapper
|
||||
public interface VwSydwJbxxGxMapper extends BaseMapper<VwSydwJbxxGx> {
|
||||
|
||||
@ApiOperation("查询实有单位列表")
|
||||
List<VwSydwJbxxGx> selectSydwList(Map<String,Object> map);
|
||||
|
||||
@ApiOperation("查询是实有单位数量")
|
||||
Integer selectSydwCount(Map<String,Object> map);
|
||||
|
||||
@ApiOperation("实有单位统计")
|
||||
List<Map<String, Object>> getStatistics();
|
||||
}
|
@ -0,0 +1,24 @@
|
||||
package com.mosty.base.manager.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.mosty.base.model.entity.afjcsj.VwSyrkJzgjGx;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @author dw
|
||||
* @since 2022-10-27
|
||||
*/
|
||||
public interface VwSyrkJzgjGxMapper extends BaseMapper<VwSyrkJzgjGx> {
|
||||
|
||||
@ApiOperation("查询实有人口数量")
|
||||
int getCount(Map<String, Object> map);
|
||||
|
||||
@ApiOperation("查询实有人口列表")
|
||||
List<VwSyrkJzgjGx> getList(Map<String, Object> map);
|
||||
|
||||
@ApiOperation("查询实有人口统计")
|
||||
List<Map<String, Object>> getStatistics();
|
||||
}
|
@ -0,0 +1,117 @@
|
||||
package com.mosty.base.manager.mybatisplus;
|
||||
|
||||
import cn.hutool.http.HttpStatus;
|
||||
import com.baomidou.mybatisplus.core.handlers.MetaObjectHandler;
|
||||
import com.mosty.common.base.exception.BusinessException;
|
||||
import com.mosty.common.base.util.IpUtil;
|
||||
import com.mosty.common.token.UserInfo;
|
||||
import com.mosty.common.token.UserInfoManager;
|
||||
import org.apache.ibatis.reflection.MetaObject;
|
||||
|
||||
import java.sql.Timestamp;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* MybatisPlus注入处理器
|
||||
*
|
||||
* @author Lhh
|
||||
* @date 2021/4/25
|
||||
*/
|
||||
public class CreateAndUpdateMetaObjectHandler implements MetaObjectHandler {
|
||||
|
||||
@Override
|
||||
public void insertFill(MetaObject metaObject) {
|
||||
try {
|
||||
UserInfo userInfo = UserInfoManager.getUser();
|
||||
//根据属性名字设置要填充的值
|
||||
if (metaObject.hasGetter("xtCjip")) {
|
||||
if (metaObject.getValue("xtCjip") == null) {
|
||||
this.strictInsertFill(metaObject, "xtCjip", String.class, IpUtil.getIpAddress());
|
||||
}
|
||||
}
|
||||
//根据属性名字设置要填充的值
|
||||
if (metaObject.hasGetter("xtSjzt")) {
|
||||
if (metaObject.getValue("xtSjzt") == null) {
|
||||
this.strictInsertFill(metaObject, "xtSjzt", String.class, "1");
|
||||
}
|
||||
}
|
||||
if (metaObject.hasGetter("xtScbz")) {
|
||||
if (metaObject.getValue("xtScbz") == null) {
|
||||
this.strictInsertFill(metaObject, "xtScbz", String.class, "0");
|
||||
}
|
||||
}
|
||||
if (metaObject.hasGetter("xtCjsj")) {
|
||||
if (metaObject.getValue("xtCjsj") == null) {
|
||||
this.strictInsertFill(metaObject, "xtCjsj", Timestamp.class, new Timestamp(System.currentTimeMillis()));
|
||||
}
|
||||
}
|
||||
if (Objects.nonNull(userInfo)) {
|
||||
if (metaObject.hasGetter("xtCjrId")) {
|
||||
if (metaObject.getValue("xtCjrId") == null) {
|
||||
this.strictInsertFill(metaObject, "xtCjrId", String.class, String.valueOf(userInfo.userId));
|
||||
}
|
||||
}
|
||||
if (metaObject.hasGetter("xtCjr")) {
|
||||
if (metaObject.getValue("xtCjr") == null) {
|
||||
this.strictInsertFill(metaObject, "xtCjr", String.class, String.valueOf(userInfo.userName));
|
||||
}
|
||||
}
|
||||
if (metaObject.hasGetter("xtCjbmdm")) {
|
||||
if (metaObject.getValue("xtCjbmdm") == null) {
|
||||
this.strictInsertFill(metaObject, "xtCjbmdm", String.class, String.valueOf(userInfo.getDeptId()));
|
||||
}
|
||||
}
|
||||
if (metaObject.hasGetter("xtCjbmmc")) {
|
||||
if (metaObject.getValue("xtCjbmmc") == null) {
|
||||
this.strictInsertFill(metaObject, "xtCjbmmc", String.class, userInfo.getDeptName());
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (Exception e) {
|
||||
throw new BusinessException("自动注入异常 => " + e.getMessage(), HttpStatus.HTTP_UNAUTHORIZED);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateFill(MetaObject metaObject) {
|
||||
try {
|
||||
UserInfo userInfo = UserInfoManager.getUser();
|
||||
if (metaObject.hasGetter("xtZhgxip")) {
|
||||
if (metaObject.getValue("xtZhgxip") == null) {
|
||||
this.strictUpdateFill(metaObject, "xtZhgxip", String.class, IpUtil.getIpAddress());
|
||||
}
|
||||
}
|
||||
if (metaObject.hasGetter("xtZhgxsj")) {
|
||||
if (metaObject.getValue("xtZhgxsj") == null) {
|
||||
this.strictUpdateFill(metaObject, "xtZhgxsj", Timestamp.class, new Timestamp(System.currentTimeMillis()));
|
||||
}
|
||||
}
|
||||
if (Objects.nonNull(userInfo)) {
|
||||
if (metaObject.hasGetter("xtZhgxrid")) {
|
||||
if (metaObject.getValue("xtZhgxrid") == null) {
|
||||
this.strictUpdateFill(metaObject, "xtZhgxrid", String.class, String.valueOf(userInfo.userId));
|
||||
}
|
||||
}
|
||||
if (metaObject.hasGetter("xtZhgxr")) {
|
||||
if (metaObject.getValue("xtZhgxr") == null) {
|
||||
this.strictUpdateFill(metaObject, "xtZhgxr", String.class, userInfo.userName);
|
||||
}
|
||||
}
|
||||
|
||||
if (metaObject.hasGetter("xtZhgxbmdm")) {
|
||||
if (metaObject.getValue("xtZhgxbmdm") == null) {
|
||||
this.strictUpdateFill(metaObject, "xtZhgxbmdm", String.class, String.valueOf(userInfo.getDeptId()));
|
||||
}
|
||||
}
|
||||
if (metaObject.hasGetter("xtZhgxbm")) {
|
||||
if (metaObject.getValue("xtZhgxbm") == null) {
|
||||
this.strictUpdateFill(metaObject, "xtZhgxbm", String.class, userInfo.getDeptName());
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (Exception e) {
|
||||
throw new BusinessException("自动注入异常 => " + e.getMessage(), HttpStatus.HTTP_UNAUTHORIZED);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
package com.mosty.base.manager.mybatisplus;
|
||||
|
||||
import com.baomidou.mybatisplus.core.handlers.MetaObjectHandler;
|
||||
import org.mybatis.spring.annotation.MapperScan;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.transaction.annotation.EnableTransactionManagement;
|
||||
|
||||
/**
|
||||
* mybatis-plus配置类
|
||||
*
|
||||
* @author Lhh
|
||||
*/
|
||||
@EnableTransactionManagement(proxyTargetClass = true)
|
||||
@Configuration
|
||||
@MapperScan("com.mosty.base.manager.mapper")
|
||||
public class MybatisPlusConfig {
|
||||
|
||||
/**
|
||||
* 元对象字段填充控制器
|
||||
* https://baomidou.com/guide/auto-fill-metainfo.html
|
||||
*/
|
||||
@Bean
|
||||
public MetaObjectHandler metaObjectHandler() {
|
||||
return new CreateAndUpdateMetaObjectHandler();
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,175 @@
|
||||
package com.mosty.base.manager.remote;
|
||||
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.mosty.base.model.dto.base.GetSsbmDto;
|
||||
import com.mosty.base.model.dto.base.SysDeptDTO;
|
||||
import com.mosty.base.model.dto.base.SysMessageInfoInsertDto;
|
||||
import com.mosty.base.feign.service.MostyBaseFeignService;
|
||||
import com.mosty.base.model.vo.base.DeptInfoVo;
|
||||
import com.mosty.common.base.domain.ResponseResult;
|
||||
import com.mosty.common.base.exception.BusinessException;
|
||||
import com.mosty.common.core.business.entity.vo.SysUserDeptVO;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.sql.BatchUpdateException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 调用部门信息远程适配层
|
||||
*
|
||||
* @author kevin
|
||||
* @date 2022/7/6 10:37 上午
|
||||
* @since 1.0.0
|
||||
*/
|
||||
@Slf4j
|
||||
@Service
|
||||
@AllArgsConstructor
|
||||
public class TbBaseAdaptRemoteService {
|
||||
|
||||
// 部门信息
|
||||
private final MostyBaseFeignService mostyBaseFeignService;
|
||||
|
||||
// 根据部门编码查询部门信息
|
||||
public DeptInfoVo getOrgByOrgcode(String orgcode) {
|
||||
if (StringUtils.isBlank(orgcode)) {
|
||||
return null;
|
||||
}
|
||||
ResponseResult<DeptInfoVo> responseResult = mostyBaseFeignService.getOrgByOrgcode(orgcode);
|
||||
if (responseResult == null || !responseResult.isSuccess()) {
|
||||
log.error("调用部门编码查询部门信息异常 responseResult = {}", JSON.toJSONString(responseResult));
|
||||
throw new BusinessException("调用部门编码查询部门信息异常");
|
||||
}
|
||||
return responseResult.getData();
|
||||
}
|
||||
|
||||
// 根据部门deptid获取所属分县局、所属地市州
|
||||
public DeptInfoVo getOrgByDeptId(String deptid) {
|
||||
if (StringUtils.isBlank(deptid)) {
|
||||
return null;
|
||||
}
|
||||
ResponseResult<DeptInfoVo> responseResult = mostyBaseFeignService.getOrgByDeptId(deptid);
|
||||
if (responseResult == null || !responseResult.isSuccess()) {
|
||||
log.error("调用部门id查询部门详情信息异常 responseResult = {}", JSON.toJSONString(responseResult));
|
||||
throw new BusinessException("调用部门id查询部门详情信息异常");
|
||||
}
|
||||
return responseResult.getData();
|
||||
}
|
||||
|
||||
// 获取部门下的所有的子部门信息
|
||||
public List<String> getChildDept(String deptid) {
|
||||
if (StringUtils.isBlank(deptid)) {
|
||||
return null;
|
||||
}
|
||||
ResponseResult<List<String>> responseResult = mostyBaseFeignService.getChildDept(deptid);
|
||||
if (responseResult == null || !responseResult.isSuccess()) {
|
||||
log.error("调用部门id查询部门部门下的子部门异常 responseResult = {}", JSON.toJSONString(responseResult));
|
||||
throw new BusinessException("调用部门id查询部门部门下的子部门异常");
|
||||
}
|
||||
return responseResult.getData();
|
||||
}
|
||||
|
||||
// 获取部门下的所有的子部门信息
|
||||
public List<String> getChildDeptByOrgCode(String ssbmdm) {
|
||||
if (StringUtils.isBlank(ssbmdm)) {
|
||||
return null;
|
||||
}
|
||||
ResponseResult<List<String>> responseResult = mostyBaseFeignService.getChildDeptByOrgCode(ssbmdm);
|
||||
if (responseResult == null || !responseResult.isSuccess()) {
|
||||
log.error("调用部门id查询部门部门下的子部门异常 responseResult = {}", JSON.toJSONString(responseResult));
|
||||
throw new BusinessException("调用部门id查询部门部门下的子部门异常");
|
||||
}
|
||||
return responseResult.getData();
|
||||
}
|
||||
|
||||
// 发送系统消息
|
||||
public Integer sendMsg(SysMessageInfoInsertDto dto) {
|
||||
ResponseResult<Integer> responseResult = mostyBaseFeignService.sendMsg(dto);
|
||||
if (responseResult == null || !responseResult.isSuccess()) {
|
||||
log.error("发送系统消息异常 responseResult = {}", JSON.toJSONString(responseResult));
|
||||
throw new BusinessException("发送系统消息异常");
|
||||
}
|
||||
return responseResult.getData();
|
||||
}
|
||||
|
||||
// 获取部门下的用户列表,不包含子部门
|
||||
public List<SysUserDeptVO> getUserList(String deptid) {
|
||||
ResponseResult<List<SysUserDeptVO>> responseResult = mostyBaseFeignService.getUserList(deptid);
|
||||
if (responseResult == null || !responseResult.isSuccess()) {
|
||||
log.error("获取部门下的用户列表异常 responseResult = {}", JSON.toJSONString(responseResult));
|
||||
throw new BusinessException("获取部门下的用户列表异常");
|
||||
}
|
||||
return responseResult.getData();
|
||||
}
|
||||
|
||||
// 查询所有的用户数据(包含对应的部门信息)
|
||||
public List<SysUserDeptVO> getUserAll(String deptid) {
|
||||
ResponseResult<List<SysUserDeptVO>> responseResult = mostyBaseFeignService.getUserAll(deptid);
|
||||
if (responseResult == null || !responseResult.isSuccess()) {
|
||||
log.error("查询所有的用户数据 异常 responseResult = {}", JSON.toJSONString(responseResult));
|
||||
throw new BusinessException("查询所有的用户数据异常");
|
||||
}
|
||||
return responseResult.getData();
|
||||
}
|
||||
|
||||
// 根据经纬度获取位置信息
|
||||
public JSONObject getAddress(String jd, String wd) {
|
||||
ResponseResult<JSONObject> responseResult = mostyBaseFeignService.getAddress(jd, wd);
|
||||
if (responseResult == null || !responseResult.isSuccess()) {
|
||||
log.error("根据经纬度获取位置信息 异常 responseResult = {}", JSON.toJSONString(responseResult));
|
||||
throw new BusinessException("根据经纬度获取位置信息异常");
|
||||
}
|
||||
return responseResult.getData();
|
||||
}
|
||||
|
||||
// 根据经纬度获取位置信息
|
||||
public JSONObject getLzAddress(String jd, String wd) {
|
||||
ResponseResult<JSONObject> responseResult = mostyBaseFeignService.getLzAddress(jd, wd);
|
||||
if (responseResult == null || !responseResult.isSuccess()) {
|
||||
log.error("根据经纬度获取位置信息 异常 responseResult = {}", JSON.toJSONString(responseResult));
|
||||
throw new BusinessException("根据经纬度获取位置信息异常");
|
||||
}
|
||||
return responseResult.getData();
|
||||
}
|
||||
|
||||
// 获取配置信息
|
||||
public String getValue(String pzj) {
|
||||
ResponseResult<String> responseResult = mostyBaseFeignService.getValue(pzj);
|
||||
if (responseResult == null || !responseResult.isSuccess()) {
|
||||
log.error("获取配置信息 异常 responseResult = {}", JSON.toJSONString(responseResult));
|
||||
throw new BusinessException("获取配置信息异常");
|
||||
}
|
||||
return responseResult.getData();
|
||||
}
|
||||
|
||||
// 获取位置信息
|
||||
public String getLocation(String jd, String wd) {
|
||||
String address = "";
|
||||
ResponseResult<JSONObject> obj = this.mostyBaseFeignService.getLzAddress(jd, wd);
|
||||
if (obj != null && obj.getData() != null) {
|
||||
String city = StringUtils.isNotBlank(obj.getData().getString("city")) ? obj.getData().getString("city") : "";
|
||||
String suburb = StringUtils.isNotBlank(obj.getData().getString("suburb")) ? obj.getData().getString("suburb") : "";
|
||||
String town = StringUtils.isNotBlank(obj.getData().getString("town")) ? obj.getData().getString("town") : "";
|
||||
String village = StringUtils.isNotBlank(obj.getData().getString("village")) ? obj.getData().getString("village") : "";
|
||||
address = city + suburb + town + village;
|
||||
}
|
||||
return address;
|
||||
}
|
||||
|
||||
// 获取权限查询条件
|
||||
public String getSsbm(String ssbmdm, String isChild) {
|
||||
GetSsbmDto dto = new GetSsbmDto(ssbmdm, isChild);
|
||||
ResponseResult<String> responseResult = mostyBaseFeignService.getSsbm(dto);
|
||||
if (responseResult == null || !responseResult.isSuccess()) {
|
||||
log.error("获取权限查询条件异常 responseResult = {}", JSON.toJSONString(responseResult));
|
||||
throw new BusinessException("获取权限查询条件异常");
|
||||
}
|
||||
return responseResult.getData();
|
||||
}
|
||||
}
|
@ -0,0 +1,60 @@
|
||||
package com.mosty.base.manager.remote;
|
||||
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.mosty.base.feign.service.MostyBaseFeignService;
|
||||
import com.mosty.base.feign.service.MostyHczxFeignService;
|
||||
import com.mosty.base.model.dto.base.GetSsbmDto;
|
||||
import com.mosty.base.model.dto.base.SysMessageInfoInsertDto;
|
||||
import com.mosty.base.model.vo.base.DeptInfoVo;
|
||||
import com.mosty.common.base.domain.ResponseResult;
|
||||
import com.mosty.common.base.exception.BusinessException;
|
||||
import com.mosty.common.core.business.entity.vo.SysUserDeptVO;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
@Slf4j
|
||||
@Service
|
||||
@AllArgsConstructor
|
||||
public class TbHczxAdaptRemoteService {
|
||||
|
||||
// 部门信息
|
||||
private final MostyHczxFeignService mostyHczxFeignService;
|
||||
|
||||
// 查询部门的盘查人员的数量
|
||||
public Integer getSjpcr(String ssbmdm, String time) {
|
||||
ResponseResult<Integer> responseResult = mostyHczxFeignService.getSjpcr(ssbmdm, time);
|
||||
if (responseResult == null || !responseResult.isSuccess()) {
|
||||
log.error("查询部门的盘查人员的数量 异常responseResult = {}", JSON.toJSONString(responseResult));
|
||||
throw new BusinessException("查询部门的盘查人员的数量!");
|
||||
}
|
||||
return responseResult.getData();
|
||||
}
|
||||
|
||||
// 查询部门的盘查车辆的数量
|
||||
public Integer getSjpcc(String ssbmdm, String time) {
|
||||
ResponseResult<Integer> responseResult = mostyHczxFeignService.getSjpcc(ssbmdm, time);
|
||||
if (responseResult == null || !responseResult.isSuccess()) {
|
||||
log.error("查询部门的盘查车辆的数量 异常responseResult = {}", JSON.toJSONString(responseResult));
|
||||
throw new BusinessException("查询部门的盘查车辆的数量!");
|
||||
}
|
||||
return responseResult.getData();
|
||||
}
|
||||
// 查询部门的盘查物品的数量
|
||||
public Integer getPcWptj(String ssbmdm, String time) {
|
||||
ResponseResult<Integer> responseResult = mostyHczxFeignService.getPcWptj(ssbmdm, time);
|
||||
if (responseResult == null || !responseResult.isSuccess()) {
|
||||
log.error("查询部门的盘查车辆的数量 异常responseResult = {}", JSON.toJSONString(responseResult));
|
||||
throw new BusinessException("查询部门的盘查车辆的数量!");
|
||||
}
|
||||
return responseResult.getData();
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,46 @@
|
||||
package com.mosty.base.manager.remote;
|
||||
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.mosty.base.feign.service.MostyQwzxFeignService;
|
||||
import com.mosty.base.model.dto.qwzx.TbQwJlDto;
|
||||
import com.mosty.base.model.dto.qwzx.TbQwXfbbQueryByJlDto;
|
||||
import com.mosty.base.model.dto.qwzx.TbQwXfbbVo;
|
||||
import com.mosty.base.model.entity.qwzx.TbQwXfbb;
|
||||
import com.mosty.common.base.domain.ResponseResult;
|
||||
import com.mosty.common.base.exception.BusinessException;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 勤务中心远程调用
|
||||
*/
|
||||
@Slf4j
|
||||
@Service
|
||||
@AllArgsConstructor
|
||||
public class TbQwzxAdaptRemoteService {
|
||||
|
||||
private final MostyQwzxFeignService mostyQwzxFeignService;
|
||||
|
||||
// 查询部门的报备的数量
|
||||
public Integer getBbCount(String ssbmdm, String time) {
|
||||
ResponseResult<Integer> responseResult = mostyQwzxFeignService.getBbCount(ssbmdm, time);
|
||||
if (responseResult == null || !responseResult.isSuccess()) {
|
||||
log.error("查询部门的报备的数量 异常responseResult = {}", JSON.toJSONString(responseResult));
|
||||
throw new BusinessException("查询部门的报备的数量异常!");
|
||||
}
|
||||
return responseResult.getData();
|
||||
}
|
||||
// 查询查询部门时长、里程
|
||||
public Map<String, Integer> getScLc(String ssbmdm, String time) {
|
||||
ResponseResult<Map<String, Integer>> responseResult = mostyQwzxFeignService.getScLc(ssbmdm, time);
|
||||
if (responseResult == null || !responseResult.isSuccess()) {
|
||||
log.error("查询部门时长、里程 异常responseResult = {}", JSON.toJSONString(responseResult));
|
||||
throw new BusinessException("查询部门时长、里程!");
|
||||
}
|
||||
return responseResult.getData();
|
||||
}
|
||||
}
|
@ -0,0 +1,46 @@
|
||||
package com.mosty.base.manager.remote;
|
||||
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.mosty.base.feign.service.MostyYjzlFeignService;
|
||||
import com.mosty.base.model.dto.yjzl.TbYjxxDTO;
|
||||
import com.mosty.base.model.dto.yjzl.TbZlxxInsertDto;
|
||||
import com.mosty.base.model.entity.yjzl.TbYjxx;
|
||||
import com.mosty.base.model.query.yjzl.TbYjxxQuery;
|
||||
import com.mosty.base.model.query.yjzl.TbZlxxQuery;
|
||||
import com.mosty.base.model.vo.yjzl.TbZlxxVo;
|
||||
import com.mosty.common.base.domain.ResponseResult;
|
||||
import com.mosty.common.base.exception.BusinessException;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Slf4j
|
||||
@Service
|
||||
@AllArgsConstructor
|
||||
public class TbYjzlAdaptRrmoteService {
|
||||
|
||||
private final MostyYjzlFeignService mostyYjzlFeignService;
|
||||
|
||||
// 查询犯罪预测数量
|
||||
public Integer getFzyjCount(String ssbmdm, String time, String sfxl) {
|
||||
ResponseResult<Integer> responseResult = mostyYjzlFeignService.getFzyjCount(ssbmdm, time, sfxl);
|
||||
if (responseResult == null || !responseResult.isSuccess()) {
|
||||
log.error("查询犯罪预测数量 异常Result = {}", JSON.toJSONString(responseResult));
|
||||
throw new BusinessException("查询犯罪预测数量 异常!");
|
||||
}
|
||||
return responseResult.getData();
|
||||
}
|
||||
|
||||
// 查询指令的数量
|
||||
public Integer getZlCount(String ssbmdm, String time, String zlzxzt) {
|
||||
ResponseResult<Integer> responseResult = mostyYjzlFeignService.getZlCount(ssbmdm, time, zlzxzt);
|
||||
if (responseResult == null || !responseResult.isSuccess()) {
|
||||
log.error("查询指令的数量 异常Result = {}", JSON.toJSONString(responseResult));
|
||||
throw new BusinessException("查询指令的数量 异常!");
|
||||
}
|
||||
return responseResult.getData();
|
||||
}
|
||||
}
|
@ -0,0 +1,93 @@
|
||||
package com.mosty.base.manager.remote;
|
||||
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.mosty.base.model.dto.yszx.TbYsGajgDto;
|
||||
import com.mosty.base.feign.service.MostyYszxFeignService;
|
||||
import com.mosty.base.model.vo.yszx.TbYsGajgVo;
|
||||
import com.mosty.common.base.domain.ResponseResult;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
/**
|
||||
* @author dw
|
||||
* @since 2022/7/23
|
||||
* 外部调用公安机关要素接口
|
||||
**/
|
||||
@Service
|
||||
@Slf4j
|
||||
public class TbYsZxAdaptRemoteService {
|
||||
|
||||
@Resource
|
||||
private MostyYszxFeignService tbYszxFeignService;
|
||||
|
||||
/**
|
||||
* 添加公安机要素
|
||||
*
|
||||
* @param dto
|
||||
* @return
|
||||
*/
|
||||
public int addGajg(TbYsGajgDto dto) {
|
||||
ResponseResult<Integer> responseResult = tbYszxFeignService.add(dto);
|
||||
if (responseResult == null || !responseResult.isSuccess()) {
|
||||
log.error("调用添加公安机关要素失败 responseResult = {}", JSON.toJSONString(responseResult));
|
||||
return 0;
|
||||
}
|
||||
return responseResult.getData();
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑公安机要素
|
||||
*
|
||||
* @param dto
|
||||
* @return
|
||||
*/
|
||||
public void updateGajg(TbYsGajgDto dto) {
|
||||
ResponseResult<Void> responseResult = tbYszxFeignService.update(dto);
|
||||
if (responseResult == null || !responseResult.isSuccess()) {
|
||||
log.error("调用修改公安机关要素失败 responseResult = {}", JSON.toJSONString(responseResult));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询公安机关要素详情
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public TbYsGajgVo getGajgInfo(String id) {
|
||||
ResponseResult<TbYsGajgVo> responseResult = tbYszxFeignService.getInfo(id);
|
||||
if (responseResult == null || !responseResult.isSuccess()) {
|
||||
log.error("调用查询公安机关要素详情失败 responseResult = {}", JSON.toJSONString(responseResult));
|
||||
return null;
|
||||
}
|
||||
return responseResult.getData();
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除公安机关要素
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public void delEntity(String id) {
|
||||
ResponseResult<Void> responseResult = tbYszxFeignService.delEntity(id);
|
||||
if (responseResult == null || !responseResult.isSuccess()) {
|
||||
log.error("调用删除公安机关要素失败 responseResult = {}", JSON.toJSONString(responseResult));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*根据必巡点id 和来源表名 删除公安机关要素
|
||||
*
|
||||
* @param dto
|
||||
* @return
|
||||
*/
|
||||
public void delEntity(TbYsGajgDto dto) {
|
||||
ResponseResult<Void> responseResult = tbYszxFeignService.delEntity(dto);
|
||||
if (responseResult == null || !responseResult.isSuccess()) {
|
||||
log.error("调用删除公安机关要素失败 responseResult = {}", JSON.toJSONString(responseResult));
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,27 @@
|
||||
package com.mosty.base.manager.service;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.mosty.base.model.dto.jcgl.TbJcglAbfcDto;
|
||||
import com.mosty.base.model.entity.jcgl.TbJcglAbfc;
|
||||
import com.mosty.base.model.query.jcgl.TbJcglAbfcQuery;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface TbJcglAbfcService {
|
||||
|
||||
@ApiOperation("添加安保风采")
|
||||
int addEntity(TbJcglAbfcDto dto);
|
||||
|
||||
@ApiOperation("修改安保风采")
|
||||
int editEntity(TbJcglAbfcDto dto);
|
||||
|
||||
@ApiOperation("批量删除安保风采")
|
||||
void deleteEntity(List<String> ids);
|
||||
|
||||
@ApiOperation("查询安保风采列表")
|
||||
List<TbJcglAbfc> getPageList(TbJcglAbfcQuery dto);
|
||||
|
||||
@ApiOperation("查询安保风采详情")
|
||||
TbJcglAbfc getInfo(String id);
|
||||
}
|
@ -0,0 +1,72 @@
|
||||
package com.mosty.base.manager.service;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.mosty.base.model.dto.jcgl.TbJcglBqDto;
|
||||
import com.mosty.base.model.query.jcgl.TbJcglBqQuery;
|
||||
import com.mosty.base.model.vo.jcgl.TbJcglBqVo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 巡防警力标签表(技能/经验);(tb_jcgl_bq)表服务接口
|
||||
* @author : http://www.chiner.pro
|
||||
* @date : 2022-6-6
|
||||
*/
|
||||
public interface TbJcglBqService{
|
||||
|
||||
/**
|
||||
* 通过ID查询单条数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 实例对象
|
||||
*/
|
||||
TbJcglBqVo queryById(String id);
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
*
|
||||
* @param tbJcglBq 筛选条件
|
||||
* @return
|
||||
*/
|
||||
IPage<TbJcglBqVo> paginQuery(TbJcglBqQuery tbJcglBq);
|
||||
/**
|
||||
* 新增数据
|
||||
*
|
||||
* @param tbJcglBq 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
int insert(TbJcglBqDto tbJcglBq);
|
||||
/**
|
||||
* 更新数据
|
||||
*
|
||||
* @param tbJcglBq 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
int update(TbJcglBqDto tbJcglBq);
|
||||
/**
|
||||
* 通过主键删除数据
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 是否成功
|
||||
*/
|
||||
boolean deleteById(String id);
|
||||
|
||||
public boolean checkMc(String mc);
|
||||
|
||||
Object countBqsl(TbJcglBqVo tbJcglBqVo);
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
boolean deleteByIds(List<String> id);
|
||||
|
||||
/**
|
||||
* 注销标签
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
boolean zcbqByIds(List<String> id);
|
||||
|
||||
}
|
@ -0,0 +1,31 @@
|
||||
package com.mosty.base.manager.service;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.mosty.base.model.entity.jcgl.TbJcglBxd;
|
||||
import com.mosty.base.model.query.jcgl.TbJcglBxdQuery;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
public interface TbJcglBxdService {
|
||||
|
||||
@ApiOperation("新增")
|
||||
int addBxd(TbJcglBxd bxd);
|
||||
|
||||
@ApiOperation("查询必巡点")
|
||||
IPage<TbJcglBxd> queryBxd(TbJcglBxdQuery bxdQuery);
|
||||
|
||||
@ApiOperation("编辑必巡点")
|
||||
int editBxd(TbJcglBxd bxd);
|
||||
|
||||
@ApiOperation("删除必巡点")
|
||||
int deleteBxd(List<String> list);
|
||||
|
||||
@ApiOperation("根据ID查询")
|
||||
TbJcglBxd selectById(String id);
|
||||
|
||||
@ApiOperation("自动计算的必巡点添加")
|
||||
void createdBxd(List<Map<String, Object>> list);
|
||||
}
|
@ -0,0 +1,27 @@
|
||||
package com.mosty.base.manager.service;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.mosty.base.model.dto.jcgl.TbJcglBxxDto;
|
||||
import com.mosty.base.model.query.jcgl.TbJcglBxxQuery;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface TbJcglBxxService {
|
||||
|
||||
@ApiOperation("新增")
|
||||
int addBxx(TbJcglBxxDto bxx);
|
||||
|
||||
@ApiOperation("查询必巡线")
|
||||
IPage<TbJcglBxxDto> queryBxx(TbJcglBxxQuery bxxQuery);
|
||||
|
||||
@ApiOperation("编辑必巡线")
|
||||
int editBxx(TbJcglBxxDto bxx);
|
||||
|
||||
@ApiOperation("删除必巡线")
|
||||
int deleteBxx(List<String> list);
|
||||
|
||||
@ApiOperation("根据ID查询")
|
||||
TbJcglBxxDto selectById(String id);
|
||||
|
||||
}
|
@ -0,0 +1,39 @@
|
||||
package com.mosty.base.manager.service;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.mosty.base.model.dto.jcgl.TbJcglDsfDto;
|
||||
import com.mosty.base.model.dto.jcgl.TbJcglDsfJudgeDto;
|
||||
import com.mosty.base.model.entity.jcgl.TbJcglDsf;
|
||||
import com.mosty.base.model.query.jcgl.TbJcglDsfQuery;
|
||||
import com.mosty.base.model.vo.jcgl.TbJcglDsfVo;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface TbJcglDsfService {
|
||||
|
||||
@ApiOperation("添加第三方数据")
|
||||
int addEntity(TbJcglDsfDto dto);
|
||||
|
||||
@ApiOperation("修改第三方数据")
|
||||
int editEntity(TbJcglDsfDto dto);
|
||||
|
||||
@ApiOperation("批量删除第三方")
|
||||
void deleteEntity(List<String> ids);
|
||||
|
||||
@ApiOperation("查询第三方列表数据")
|
||||
IPage<TbJcglDsf> getPageList(TbJcglDsfQuery dto);
|
||||
|
||||
@ApiOperation("查询第三方详情")
|
||||
TbJcglDsf getInfo(String id);
|
||||
|
||||
@ApiOperation("审核")
|
||||
int judge(TbJcglDsfJudgeDto dto);
|
||||
|
||||
@ApiOperation("检查第三方是否过期")
|
||||
void checkDsf();
|
||||
|
||||
@ApiOperation("根据Code查询第三方详情")
|
||||
TbJcglDsfVo getDsfInfo(String code);
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
package com.mosty.base.manager.service;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.mosty.base.model.entity.jcgl.TbJcglJwz;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface TbJcglJwzService {
|
||||
|
||||
IPage<TbJcglJwz> selectJwzList(TbJcglJwz tbJcglJwz, IPage<TbJcglJwz> page);
|
||||
|
||||
void addJwz(TbJcglJwz tbJcglJwz);
|
||||
|
||||
void updateJwz(TbJcglJwz tbJcglJwz);
|
||||
|
||||
boolean deleteJwz(List<String> id);
|
||||
|
||||
Object selectByid(String id);
|
||||
}
|
@ -0,0 +1,37 @@
|
||||
package com.mosty.base.manager.service;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.mosty.base.model.dto.qwzx.AppSearchQuery;
|
||||
import com.mosty.base.model.entity.jcgl.TbJcglJyqx;
|
||||
import com.mosty.base.model.query.jcgl.TbJcglJyqxQuery;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface TbJcglJyqxService {
|
||||
|
||||
void addJyqx(TbJcglJyqx tbJcglJyqx);
|
||||
|
||||
void xfZnzb(TbJcglJyqx tbJcglJyqx);
|
||||
|
||||
void htZnzb(String id,long sl);
|
||||
|
||||
void bsZnzb(String id,long sl);
|
||||
|
||||
IPage<TbJcglJyqx> selectJyqx(TbJcglJyqx tbJcglJyqx, IPage<TbJcglJyqx> page);
|
||||
|
||||
void updateJyqx(TbJcglJyqx tbJcglJyqx);
|
||||
|
||||
void deleteJyQxzb(List<String> id);
|
||||
|
||||
Object selectJyqxXq(String id);
|
||||
|
||||
IPage<TbJcglJyqx> selectDqjyqx(TbJcglJyqxQuery tbJcglJyqx, IPage<TbJcglJyqx> page);
|
||||
|
||||
@ApiOperation("app查询警用器械信息")
|
||||
IPage<TbJcglJyqx> getJyqxList(AppSearchQuery dto);
|
||||
|
||||
|
||||
@ApiOperation("导入警用器械")
|
||||
String importData(List<TbJcglJyqx> jyqxList,boolean updateSupport);
|
||||
}
|
@ -0,0 +1,40 @@
|
||||
package com.mosty.base.manager.service;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.mosty.base.model.dto.qwzx.AppSearchQuery;
|
||||
import com.mosty.base.model.entity.jcgl.TbJcglJz;
|
||||
import com.mosty.base.model.query.jcgl.TbJcglJzQuery;
|
||||
import com.mosty.base.model.vo.jcgl.TbJcglJzAllVo;
|
||||
import com.mosty.base.model.vo.jcgl.TbJcglJzVo;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author zengbo
|
||||
* @since 2022-06-30
|
||||
*/
|
||||
public interface TbJcglJzService {
|
||||
|
||||
@ApiOperation("分页查询警组")
|
||||
IPage<TbJcglJzAllVo> queryList(TbJcglJzQuery jz);
|
||||
|
||||
@ApiOperation("根据ID查询警组")
|
||||
TbJcglJzAllVo selectById(String id);
|
||||
|
||||
@ApiOperation("添加警组")
|
||||
int saveJz(TbJcglJzAllVo jz);
|
||||
|
||||
@ApiOperation("修改警组")
|
||||
int updateJz(TbJcglJzAllVo jz);
|
||||
|
||||
@ApiOperation("批量删除警组")
|
||||
boolean deleteBatch(List<String> list);
|
||||
|
||||
@ApiOperation("app查询警组信息")
|
||||
Page<TbJcglJzAllVo> selectJzList(AppSearchQuery dto);
|
||||
|
||||
@ApiOperation("同步警组器械")
|
||||
void tbJzQx();
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user