Bladeren bron

后台项目安防一体化系统初始化

wangchao 4 jaren geleden
bovenliggende
commit
f4c0dc51b9
15 gewijzigde bestanden met toevoegingen van 928 en 36 verwijderingen
  1. 37 36
      location-rescue-service/pom.xml
  2. 60 0
      security-protection-service/pom.xml
  3. 179 0
      security-protection-service/security-protection-service.iml
  4. 22 0
      security-protection-service/src/main/java/com/ai/bss/security/protection/SecurityProtectionApp.java
  5. 47 0
      security-protection-service/src/main/java/com/ai/bss/security/protection/controller/AreaInOutRecordController.java
  6. 46 0
      security-protection-service/src/main/java/com/ai/bss/security/protection/controller/abnormalAttendanceController.java
  7. 46 0
      security-protection-service/src/main/java/com/ai/bss/security/protection/controller/attendanceConfigurationController.java
  8. 46 0
      security-protection-service/src/main/java/com/ai/bss/security/protection/controller/attendanceReportController.java
  9. 46 0
      security-protection-service/src/main/java/com/ai/bss/security/protection/controller/attendanceRulesController.java
  10. 46 0
      security-protection-service/src/main/java/com/ai/bss/security/protection/controller/vacationAttendanceManageController.java
  11. 230 0
      security-protection-service/src/main/java/com/ai/bss/security/protection/enums/UserEnums.java
  12. 50 0
      security-protection-service/src/main/java/com/ai/bss/security/protection/model/Rescuer.java
  13. 22 0
      security-protection-service/src/main/java/com/ai/bss/security/protection/service/impl/AreaInRecordServiceImpl.java
  14. 25 0
      security-protection-service/src/main/java/com/ai/bss/security/protection/service/interfaces/AreaInRecordService.java
  15. 26 0
      security-protection-service/src/main/resources/application.properties

+ 37 - 36
location-rescue-service/pom.xml

@ -3,51 +3,41 @@
3 3
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4 4
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5 5
    <modelVersion>4.0.0</modelVersion>
6
7 6
    <parent>
8 7
        <artifactId>components</artifactId>
9 8
        <groupId>com.ai.bss</groupId>
10 9
        <version>2.1-SNAPSHOT</version>
11 10
    </parent>
12 11
12
13 13
    <groupId>com.ai.bss</groupId>
14 14
    <artifactId>location-rescue-service</artifactId>
15 15
    <version>1.0-SNAPSHOT</version>
16 16
17 17
    <dependencies>
18 18
        <dependency>
19
            <groupId>org.springframework</groupId>
20
            <artifactId>spring-context</artifactId>
21
        </dependency>
22
23
        <dependency>
24
            <groupId>org.springframework</groupId>
25
            <artifactId>spring-web</artifactId>
26
        </dependency>
27
        <dependency>
28 19
            <groupId>com.github.pagehelper</groupId>
29 20
            <artifactId>pagehelper</artifactId>
30 21
            <version>5.0.3</version>
31
            <scope>compile</scope>
32
        </dependency>
33
<!--        <dependency>
34
            <groupId>com.ai.ipu</groupId>
35
            <artifactId>ipu-data</artifactId>
36
            <version>3.1-SNAPSHOT</version>
37
            <scope>compile</scope>
38
        </dependency>
39
        <dependency>
40
            <groupId>com.ai.ipu</groupId>
41
            <artifactId>ipu-basic</artifactId>
42
            <version>3.1-SNAPSHOT</version>
43
            <scope>compile</scope>
44 22
        </dependency>
45
        <dependency>
46
            <groupId>com.ai.wade</groupId>
47
            <artifactId>wade-common</artifactId>
48
            <version>1.0</version>
49
            <scope>compile</scope>
50
        </dependency>-->
23
        <!--        <dependency>
24
                    <groupId>com.ai.ipu</groupId>
25
                    <artifactId>ipu-data</artifactId>
26
                    <version>3.1-SNAPSHOT</version>
27
                    <scope>compile</scope>
28
                </dependency>
29
                <dependency>
30
                    <groupId>com.ai.ipu</groupId>
31
                    <artifactId>ipu-basic</artifactId>
32
                    <version>3.1-SNAPSHOT</version>
33
                    <scope>compile</scope>
34
                </dependency>
35
                <dependency>
36
                    <groupId>com.ai.wade</groupId>
37
                    <artifactId>wade-common</artifactId>
38
                    <version>1.0</version>
39
                    <scope>compile</scope>
40
                </dependency>-->
51 41
        <dependency>
52 42
            <groupId>org.apache.httpcomponents</groupId>
53 43
            <artifactId>httpcore</artifactId>
@ -65,7 +55,7 @@
65 55
            <artifactId>ipu-common</artifactId>
66 56
            <version>3.1-SNAPSHOT</version>
67 57
            <scope>compile</scope>
68
        </dependency> 
58
        </dependency>
69 59
        <dependency>
70 60
            <groupId>org.apache.poi</groupId>
71 61
            <artifactId>poi-ooxml</artifactId>
@ -78,12 +68,12 @@
78 68
            <artifactId>system-user-service</artifactId>
79 69
            <version>2.1-SNAPSHOT</version>
80 70
            <exclusions>
81
            	<exclusion>
82
            		<groupId>org.springframework.boot</groupId>
83
            		<artifactId>
84
            			spring-boot-starter-security
85
            		</artifactId>
86
            	</exclusion>
71
                <exclusion>
72
                    <groupId>org.springframework.boot</groupId>
73
                    <artifactId>
74
                        spring-boot-starter-security
75
                    </artifactId>
76
                </exclusion>
87 77
            </exclusions>
88 78
        </dependency>
89 79
    </dependencies>
@ -99,4 +89,15 @@
99 89
        </repository>
100 90
    </repositories>
101 91
92
    <pluginRepositories>
93
        <pluginRepository>
94
            <id>mgpd</id>
95
            <name>mgpd</name>
96
            <url>http://maven.cst.asiainfo.com/repository/mgpd-group/</url>
97
            <snapshots>
98
                <enabled>true</enabled>
99
            </snapshots>
100
        </pluginRepository>
101
    </pluginRepositories>
102
102 103
</project>

+ 60 - 0
security-protection-service/pom.xml

@ -8,5 +8,65 @@
8 8
    <artifactId>security-protection-service</artifactId>
9 9
    <version>1.0-SNAPSHOT</version>
10 10
11
    <parent>
12
        <artifactId>components</artifactId>
13
        <groupId>com.ai.bss</groupId>
14
        <version>2.1-SNAPSHOT</version>
15
    </parent>
16
    <dependencies>
17
        <dependency>
18
            <groupId>com.github.pagehelper</groupId>
19
            <artifactId>pagehelper</artifactId>
20
            <version>5.0.3</version>
21
        </dependency>
11 22
23
        <dependency>
24
            <groupId>org.apache.httpcomponents</groupId>
25
            <artifactId>httpcore</artifactId>
26
        </dependency>
27
        <dependency>
28
            <groupId>org.apache.httpcomponents</groupId>
29
            <artifactId>httpclient</artifactId>
30
        </dependency>
31
        <dependency>
32
            <groupId>org.apache.httpcomponents</groupId>
33
            <artifactId>httpmime</artifactId>
34
        </dependency>
35
36
        <dependency>
37
            <groupId>com.ai.bss</groupId>
38
            <artifactId>system-user-service</artifactId>
39
            <version>2.1-SNAPSHOT</version>
40
            <exclusions>
41
                <exclusion>
42
                    <groupId>org.springframework.boot</groupId>
43
                    <artifactId>
44
                        spring-boot-starter-security
45
                    </artifactId>
46
                </exclusion>
47
            </exclusions>
48
        </dependency>
49
    </dependencies>
50
51
    <repositories>
52
        <repository>
53
            <id>mgpd</id>
54
            <name>mgpd</name>
55
            <url>http://maven.cst.asiainfo.com/repository/mgpd-group/</url>
56
            <snapshots>
57
                <enabled>true</enabled>
58
            </snapshots>
59
        </repository>
60
    </repositories>
61
62
    <pluginRepositories>
63
        <pluginRepository>
64
            <id>mgpd</id>
65
            <name>mgpd</name>
66
            <url>http://maven.cst.asiainfo.com/repository/mgpd-group/</url>
67
            <snapshots>
68
                <enabled>true</enabled>
69
            </snapshots>
70
        </pluginRepository>
71
    </pluginRepositories>
12 72
</project>

+ 179 - 0
security-protection-service/security-protection-service.iml

@ -0,0 +1,179 @@
1
<?xml version="1.0" encoding="UTF-8"?>
2
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
3
  <component name="FacetManager">
4
    <facet type="jpa" name="JPA">
5
      <configuration>
6
        <setting name="validation-enabled" value="true" />
7
        <setting name="provider-name" value="Hibernate" />
8
        <datasource-mapping />
9
        <naming-strategy-map />
10
      </configuration>
11
    </facet>
12
    <facet type="Spring" name="Spring">
13
      <configuration />
14
    </facet>
15
    <facet type="web" name="Web">
16
      <configuration>
17
        <webroots />
18
      </configuration>
19
    </facet>
20
  </component>
21
  <component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8">
22
    <output url="file://$MODULE_DIR$/target/classes" />
23
    <output-test url="file://$MODULE_DIR$/target/test-classes" />
24
    <content url="file://$MODULE_DIR$">
25
      <sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
26
      <sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
27
      <excludeFolder url="file://$MODULE_DIR$/target" />
28
    </content>
29
    <orderEntry type="inheritedJdk" />
30
    <orderEntry type="sourceFolder" forTests="false" />
31
    <orderEntry type="library" name="Maven: com.github.pagehelper:pagehelper:5.0.3" level="project" />
32
    <orderEntry type="library" name="Maven: com.github.jsqlparser:jsqlparser:1.0" level="project" />
33
    <orderEntry type="library" name="Maven: org.apache.httpcomponents:httpcore:4.4.11" level="project" />
34
    <orderEntry type="library" name="Maven: org.apache.httpcomponents:httpclient:4.5.8" level="project" />
35
    <orderEntry type="library" name="Maven: commons-codec:commons-codec:1.11" level="project" />
36
    <orderEntry type="library" name="Maven: org.apache.httpcomponents:httpmime:4.5.8" level="project" />
37
    <orderEntry type="library" name="Maven: com.ai.bss:system-user-service:2.1-SNAPSHOT" level="project" />
38
    <orderEntry type="library" name="Maven: com.ai.bss:system-user-model:2.1-SNAPSHOT" level="project" />
39
    <orderEntry type="library" name="Maven: com.ai.bss:components-common:2.1-SNAPSHOT" level="project" />
40
    <orderEntry type="library" name="Maven: com.ai.abc:api-common:2.1-SNAPSHOT" level="project" />
41
    <orderEntry type="library" name="Maven: com.ai.abc:exception:2.1-SNAPSHOT" level="project" />
42
    <orderEntry type="library" name="Maven: com.ai.abc:utils:2.1-SNAPSHOT" level="project" />
43
    <orderEntry type="library" name="Maven: commons-lang:commons-lang:2.6" level="project" />
44
    <orderEntry type="library" name="Maven: org.json:json:20180130" level="project" />
45
    <orderEntry type="library" name="Maven: javax.servlet:javax.servlet-api:4.0.1" level="project" />
46
    <orderEntry type="library" name="Maven: com.alibaba:fastjson:1.2.69" level="project" />
47
    <orderEntry type="library" name="Maven: org.apache.commons:commons-lang3:3.8.1" level="project" />
48
    <orderEntry type="library" name="Maven: org.apache.commons:commons-collections4:4.4" level="project" />
49
    <orderEntry type="library" name="Maven: cn.hutool:hutool-all:5.3.2" level="project" />
50
    <orderEntry type="library" name="Maven: io.springfox:springfox-swagger2:2.9.2" level="project" />
51
    <orderEntry type="library" name="Maven: io.swagger:swagger-annotations:1.5.20" level="project" />
52
    <orderEntry type="library" name="Maven: io.swagger:swagger-models:1.5.20" level="project" />
53
    <orderEntry type="library" name="Maven: io.springfox:springfox-spi:2.9.2" level="project" />
54
    <orderEntry type="library" name="Maven: io.springfox:springfox-core:2.9.2" level="project" />
55
    <orderEntry type="library" name="Maven: io.springfox:springfox-schema:2.9.2" level="project" />
56
    <orderEntry type="library" name="Maven: io.springfox:springfox-swagger-common:2.9.2" level="project" />
57
    <orderEntry type="library" name="Maven: io.springfox:springfox-spring-web:2.9.2" level="project" />
58
    <orderEntry type="library" name="Maven: com.google.guava:guava:27.1-jre" level="project" />
59
    <orderEntry type="library" name="Maven: com.google.guava:failureaccess:1.0.1" level="project" />
60
    <orderEntry type="library" name="Maven: com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava" level="project" />
61
    <orderEntry type="library" name="Maven: com.google.code.findbugs:jsr305:3.0.2" level="project" />
62
    <orderEntry type="library" name="Maven: org.checkerframework:checker-qual:2.5.2" level="project" />
63
    <orderEntry type="library" name="Maven: com.google.errorprone:error_prone_annotations:2.2.0" level="project" />
64
    <orderEntry type="library" name="Maven: com.google.j2objc:j2objc-annotations:1.1" level="project" />
65
    <orderEntry type="library" name="Maven: org.codehaus.mojo:animal-sniffer-annotations:1.17" level="project" />
66
    <orderEntry type="library" name="Maven: com.fasterxml:classmate:1.4.0" level="project" />
67
    <orderEntry type="library" name="Maven: org.springframework.plugin:spring-plugin-core:1.2.0.RELEASE" level="project" />
68
    <orderEntry type="library" name="Maven: org.springframework.plugin:spring-plugin-metadata:1.2.0.RELEASE" level="project" />
69
    <orderEntry type="library" name="Maven: org.mapstruct:mapstruct:1.2.0.Final" level="project" />
70
    <orderEntry type="library" name="Maven: com.ai.bss:person-model:2.1-SNAPSHOT" level="project" />
71
    <orderEntry type="library" name="Maven: com.ai.abc:persistence-api:2.1-SNAPSHOT" level="project" />
72
    <orderEntry type="library" name="Maven: com.ai.abc:core:2.1-SNAPSHOT" level="project" />
73
    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-data-jpa:2.1.5.RELEASE" level="project" />
74
    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-aop:2.1.5.RELEASE" level="project" />
75
    <orderEntry type="library" name="Maven: org.aspectj:aspectjweaver:1.9.4" level="project" />
76
    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-jdbc:2.1.5.RELEASE" level="project" />
77
    <orderEntry type="library" name="Maven: com.zaxxer:HikariCP:3.2.0" level="project" />
78
    <orderEntry type="library" name="Maven: javax.transaction:javax.transaction-api:1.3" level="project" />
79
    <orderEntry type="library" name="Maven: org.springframework:spring-aspects:5.1.7.RELEASE" level="project" />
80
    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-data-redis:2.1.5.RELEASE" level="project" />
81
    <orderEntry type="library" name="Maven: org.springframework.data:spring-data-redis:2.1.8.RELEASE" level="project" />
82
    <orderEntry type="library" name="Maven: org.springframework.data:spring-data-keyvalue:2.1.8.RELEASE" level="project" />
83
    <orderEntry type="library" name="Maven: org.springframework:spring-oxm:5.1.7.RELEASE" level="project" />
84
    <orderEntry type="library" name="Maven: io.lettuce:lettuce-core:5.1.6.RELEASE" level="project" />
85
    <orderEntry type="library" name="Maven: io.netty:netty-common:4.1.36.Final" level="project" />
86
    <orderEntry type="library" name="Maven: io.netty:netty-handler:4.1.36.Final" level="project" />
87
    <orderEntry type="library" name="Maven: io.netty:netty-buffer:4.1.36.Final" level="project" />
88
    <orderEntry type="library" name="Maven: io.netty:netty-codec:4.1.36.Final" level="project" />
89
    <orderEntry type="library" name="Maven: io.netty:netty-transport:4.1.36.Final" level="project" />
90
    <orderEntry type="library" name="Maven: io.netty:netty-resolver:4.1.36.Final" level="project" />
91
    <orderEntry type="library" name="Maven: io.projectreactor:reactor-core:3.2.9.RELEASE" level="project" />
92
    <orderEntry type="library" name="Maven: org.reactivestreams:reactive-streams:1.0.2" level="project" />
93
    <orderEntry type="library" name="Maven: redis.clients:jedis:2.9.3" level="project" />
94
    <orderEntry type="library" name="Maven: org.apache.commons:commons-pool2:2.6.2" level="project" />
95
    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-autoconfigure:2.1.5.RELEASE" level="project" />
96
    <orderEntry type="library" name="Maven: org.hibernate.javax.persistence:hibernate-jpa-2.1-api:1.0.2.Final" level="project" />
97
    <orderEntry type="library" name="Maven: org.springframework.data:spring-data-jpa:2.1.8.RELEASE" level="project" />
98
    <orderEntry type="library" name="Maven: org.springframework.data:spring-data-commons:2.1.8.RELEASE" level="project" />
99
    <orderEntry type="library" name="Maven: org.springframework:spring-orm:5.1.7.RELEASE" level="project" />
100
    <orderEntry type="library" name="Maven: org.springframework:spring-jdbc:5.1.7.RELEASE" level="project" />
101
    <orderEntry type="library" name="Maven: org.springframework:spring-context:5.1.7.RELEASE" level="project" />
102
    <orderEntry type="library" name="Maven: org.springframework:spring-aop:5.1.7.RELEASE" level="project" />
103
    <orderEntry type="library" name="Maven: org.springframework:spring-tx:5.1.7.RELEASE" level="project" />
104
    <orderEntry type="library" name="Maven: org.springframework:spring-beans:5.1.7.RELEASE" level="project" />
105
    <orderEntry type="library" name="Maven: org.aspectj:aspectjrt:1.9.4" level="project" />
106
    <orderEntry type="library" name="Maven: org.hibernate:hibernate-core:5.3.10.Final" level="project" />
107
    <orderEntry type="library" name="Maven: org.jboss.logging:jboss-logging:3.3.2.Final" level="project" />
108
    <orderEntry type="library" name="Maven: javax.persistence:javax.persistence-api:2.2" level="project" />
109
    <orderEntry type="library" name="Maven: org.javassist:javassist:3.23.2-GA" level="project" />
110
    <orderEntry type="library" name="Maven: antlr:antlr:2.7.7" level="project" />
111
    <orderEntry type="library" name="Maven: org.jboss.spec.javax.transaction:jboss-transaction-api_1.2_spec:1.1.1.Final" level="project" />
112
    <orderEntry type="library" name="Maven: org.jboss:jandex:2.0.5.Final" level="project" />
113
    <orderEntry type="library" name="Maven: javax.activation:javax.activation-api:1.2.0" level="project" />
114
    <orderEntry type="library" name="Maven: org.dom4j:dom4j:2.1.1" level="project" />
115
    <orderEntry type="library" name="Maven: org.hibernate.common:hibernate-commons-annotations:5.0.4.Final" level="project" />
116
    <orderEntry type="library" name="Maven: org.hibernate:hibernate-envers:5.3.10.Final" level="project" />
117
    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-cache:2.1.5.RELEASE" level="project" />
118
    <orderEntry type="library" name="Maven: org.springframework:spring-context-support:5.1.7.RELEASE" level="project" />
119
    <orderEntry type="library" name="Maven: net.sf.ehcache:ehcache-core:2.6.9" level="project" />
120
    <orderEntry type="library" name="Maven: com.ai.bss:system-user-service-api:2.1-SNAPSHOT" level="project" />
121
    <orderEntry type="library" name="Maven: com.ai.bss:person-service:2.1-SNAPSHOT" level="project" />
122
    <orderEntry type="library" name="Maven: com.ai.bss:person-service-api:2.1-SNAPSHOT" level="project" />
123
    <orderEntry type="library" name="Maven: com.ai.abc:persistence-mysql8:2.1-SNAPSHOT" level="project" />
124
    <orderEntry type="library" scope="RUNTIME" name="Maven: mysql:mysql-connector-java:8.0.16" level="project" />
125
    <orderEntry type="library" scope="RUNTIME" name="Maven: com.google.protobuf:protobuf-java:3.6.1" level="project" />
126
    <orderEntry type="library" name="Maven: com.alibaba:druid-spring-boot-starter:1.1.17" level="project" />
127
    <orderEntry type="library" name="Maven: com.alibaba:druid:1.1.17" level="project" />
128
    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-web:2.1.5.RELEASE" level="project" />
129
    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-json:2.1.5.RELEASE" level="project" />
130
    <orderEntry type="library" name="Maven: com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.9.8" level="project" />
131
    <orderEntry type="library" name="Maven: com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.9.8" level="project" />
132
    <orderEntry type="library" name="Maven: com.fasterxml.jackson.module:jackson-module-parameter-names:2.9.8" level="project" />
133
    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-tomcat:2.1.5.RELEASE" level="project" />
134
    <orderEntry type="library" name="Maven: org.apache.tomcat.embed:tomcat-embed-core:9.0.19" level="project" />
135
    <orderEntry type="library" name="Maven: org.apache.tomcat.embed:tomcat-embed-el:9.0.19" level="project" />
136
    <orderEntry type="library" name="Maven: org.apache.tomcat.embed:tomcat-embed-websocket:9.0.19" level="project" />
137
    <orderEntry type="library" name="Maven: org.hibernate.validator:hibernate-validator:6.0.16.Final" level="project" />
138
    <orderEntry type="library" name="Maven: javax.validation:validation-api:2.0.1.Final" level="project" />
139
    <orderEntry type="library" name="Maven: org.springframework:spring-web:5.1.7.RELEASE" level="project" />
140
    <orderEntry type="library" name="Maven: org.springframework:spring-webmvc:5.1.7.RELEASE" level="project" />
141
    <orderEntry type="library" name="Maven: org.springframework:spring-expression:5.1.7.RELEASE" level="project" />
142
    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter:2.1.5.RELEASE" level="project" />
143
    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot:2.1.5.RELEASE" level="project" />
144
    <orderEntry type="library" name="Maven: javax.annotation:javax.annotation-api:1.3.2" level="project" />
145
    <orderEntry type="library" scope="RUNTIME" name="Maven: org.yaml:snakeyaml:1.23" level="project" />
146
    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-test:2.1.5.RELEASE" level="project" />
147
    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-test-autoconfigure:2.1.5.RELEASE" level="project" />
148
    <orderEntry type="library" name="Maven: com.jayway.jsonpath:json-path:2.4.0" level="project" />
149
    <orderEntry type="library" name="Maven: net.minidev:json-smart:2.3" level="project" />
150
    <orderEntry type="library" name="Maven: net.minidev:accessors-smart:1.2" level="project" />
151
    <orderEntry type="library" name="Maven: org.ow2.asm:asm:5.0.4" level="project" />
152
    <orderEntry type="library" name="Maven: junit:junit:4.12" level="project" />
153
    <orderEntry type="library" name="Maven: org.assertj:assertj-core:3.11.1" level="project" />
154
    <orderEntry type="library" name="Maven: org.mockito:mockito-core:2.23.4" level="project" />
155
    <orderEntry type="library" name="Maven: net.bytebuddy:byte-buddy:1.9.12" level="project" />
156
    <orderEntry type="library" name="Maven: net.bytebuddy:byte-buddy-agent:1.9.12" level="project" />
157
    <orderEntry type="library" name="Maven: org.objenesis:objenesis:2.6" level="project" />
158
    <orderEntry type="library" name="Maven: org.hamcrest:hamcrest-core:1.3" level="project" />
159
    <orderEntry type="library" name="Maven: org.hamcrest:hamcrest-library:1.3" level="project" />
160
    <orderEntry type="library" name="Maven: org.skyscreamer:jsonassert:1.5.0" level="project" />
161
    <orderEntry type="library" name="Maven: com.vaadin.external.google:android-json:0.0.20131108.vaadin1" level="project" />
162
    <orderEntry type="library" name="Maven: org.springframework:spring-core:5.1.7.RELEASE" level="project" />
163
    <orderEntry type="library" name="Maven: org.springframework:spring-jcl:5.1.7.RELEASE" level="project" />
164
    <orderEntry type="library" name="Maven: org.springframework:spring-test:5.1.7.RELEASE" level="project" />
165
    <orderEntry type="library" name="Maven: org.xmlunit:xmlunit-core:2.6.2" level="project" />
166
    <orderEntry type="library" name="Maven: javax.xml.bind:jaxb-api:2.3.1" level="project" />
167
    <orderEntry type="library" name="Maven: org.projectlombok:lombok:1.18.8" level="project" />
168
    <orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-databind:2.9.8" level="project" />
169
    <orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-annotations:2.9.0" level="project" />
170
    <orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-core:2.9.8" level="project" />
171
    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-logging:2.1.5.RELEASE" level="project" />
172
    <orderEntry type="library" name="Maven: ch.qos.logback:logback-classic:1.2.3" level="project" />
173
    <orderEntry type="library" name="Maven: ch.qos.logback:logback-core:1.2.3" level="project" />
174
    <orderEntry type="library" name="Maven: org.slf4j:slf4j-api:1.7.26" level="project" />
175
    <orderEntry type="library" name="Maven: org.apache.logging.log4j:log4j-to-slf4j:2.11.2" level="project" />
176
    <orderEntry type="library" name="Maven: org.apache.logging.log4j:log4j-api:2.11.2" level="project" />
177
    <orderEntry type="library" name="Maven: org.slf4j:jul-to-slf4j:1.7.26" level="project" />
178
  </component>
179
</module>

+ 22 - 0
security-protection-service/src/main/java/com/ai/bss/security/protection/SecurityProtectionApp.java

@ -0,0 +1,22 @@
1
package com.ai.bss.security.protection;
2
3
import org.springframework.boot.SpringApplication;
4
import org.springframework.boot.autoconfigure.SpringBootApplication;
5
import org.springframework.boot.autoconfigure.domain.EntityScan;
6
import org.springframework.context.annotation.ComponentScan;
7
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
8
import org.springframework.scheduling.annotation.EnableAsync;
9
10
/**
11
 * @author zhangfeng
12
 */
13
@EnableJpaRepositories(basePackages = "com.ai.bss")
14
@EntityScan(basePackages = {"com.ai.bss","com.ai.abc"})
15
@ComponentScan(basePackages = {"com.ai.bss","com.ai.abc"})
16
@EnableAsync
17
@SpringBootApplication
18
public class SecurityProtectionApp {
19
    public static void main(String[] args) throws Exception {
20
        SpringApplication.run(SecurityProtectionApp.class, args);
21
    }
22
}

+ 47 - 0
security-protection-service/src/main/java/com/ai/bss/security/protection/controller/AreaInOutRecordController.java

@ -0,0 +1,47 @@
1
package com.ai.bss.security.protection.controller;
2
3
import com.ai.bss.security.protection.service.interfaces.AreaInRecordService;
4
import com.github.pagehelper.PageInfo;
5
import org.slf4j.Logger;
6
import org.slf4j.LoggerFactory;
7
import org.springframework.beans.factory.annotation.Autowired;
8
import org.springframework.stereotype.Controller;
9
import org.springframework.web.bind.annotation.RequestMapping;
10
import org.springframework.web.bind.annotation.ResponseBody;
11
12
import java.util.Date;
13
import java.util.Map;
14
15
/**
16
 * 考勤管理
17
 */
18
@Controller
19
@RequestMapping("/areaInOutRecordManage")
20
public class AreaInOutRecordController {
21
	Logger logger = LoggerFactory.getLogger(AreaInOutRecordController.class);
22
23
	@Autowired
24
	AreaInRecordService areaInRecordService;
25
26
	/**
27
	 * 分页查询考勤统计分析
28
	 */
29
	
30
	@ResponseBody
31
	@RequestMapping("/queryPageAttendanceCount")
32
	public PageInfo queryPageAttendanceCount(Map params) throws Exception {
33
		// 当前页数
34
		int pageNum = (int)params.get("pageNum") < 1 ? 1 : (int)params.get("pageNum");
35
		// 每页条数
36
		int pageSize = (int)params.get("pageSize") < 1 ? 1: (int)params.get("pageSize");
37
		if(params.get("currentDate")==null|| params.get("currentDate").equals("")){
38
			params.put("currentDate",new Date());
39
		}
40
		PageInfo pageInfo = areaInRecordService.queryPageAttendanceCount(params, pageNum, pageSize);
41
42
43
		return pageInfo;
44
45
	}
46
47
}

+ 46 - 0
security-protection-service/src/main/java/com/ai/bss/security/protection/controller/abnormalAttendanceController.java

@ -0,0 +1,46 @@
1
package com.ai.bss.security.protection.controller;
2
3
import com.ai.bss.security.protection.service.interfaces.AreaInRecordService;
4
import com.github.pagehelper.PageInfo;
5
import org.slf4j.Logger;
6
import org.slf4j.LoggerFactory;
7
import org.springframework.beans.factory.annotation.Autowired;
8
import org.springframework.stereotype.Controller;
9
import org.springframework.web.bind.annotation.RequestMapping;
10
import org.springframework.web.bind.annotation.ResponseBody;
11
12
import java.util.Date;
13
import java.util.Map;
14
15
/**
16
 * 异常考勤
17
 */
18
@Controller
19
@RequestMapping("/abnormalAttendance")
20
public class abnormalAttendanceController {
21
	Logger logger = LoggerFactory.getLogger(abnormalAttendanceController.class);
22
23
	@Autowired
24
	AreaInRecordService areaInRecordService;
25
26
	/**
27
	 * 分页查询考勤统计分析
28
	 */
29
30
	@ResponseBody
31
	@RequestMapping("/queryPageAttendanceCount")
32
	public PageInfo queryPageAttendanceCount(Map params) throws Exception {
33
		// 当前页数
34
		int pageNum = (int)params.get("pageNum") < 1 ? 1 : (int)params.get("pageNum");
35
		// 每页条数
36
		int pageSize = (int)params.get("pageSize") < 1 ? 1: (int)params.get("pageSize");
37
		if(params.get("currentDate")==null|| params.get("currentDate").equals("")){
38
			params.put("currentDate",new Date());
39
		}
40
		PageInfo pageInfo = areaInRecordService.queryPageAttendanceCount(params, pageNum, pageSize);
41
42
43
		return pageInfo;
44
45
	}
46
}

+ 46 - 0
security-protection-service/src/main/java/com/ai/bss/security/protection/controller/attendanceConfigurationController.java

@ -0,0 +1,46 @@
1
package com.ai.bss.security.protection.controller;
2
3
import com.ai.bss.security.protection.service.interfaces.AreaInRecordService;
4
import com.github.pagehelper.PageInfo;
5
import org.slf4j.Logger;
6
import org.slf4j.LoggerFactory;
7
import org.springframework.beans.factory.annotation.Autowired;
8
import org.springframework.stereotype.Controller;
9
import org.springframework.web.bind.annotation.RequestMapping;
10
import org.springframework.web.bind.annotation.ResponseBody;
11
12
import java.util.Date;
13
import java.util.Map;
14
15
/**
16
 * 异常考勤
17
 */
18
@Controller
19
@RequestMapping("/attendanceConfiguration")
20
public class attendanceConfigurationController {
21
	Logger logger = LoggerFactory.getLogger(attendanceConfigurationController.class);
22
23
	@Autowired
24
	AreaInRecordService areaInRecordService;
25
26
	/**
27
	 * 分页查询考勤统计分析
28
	 */
29
30
	@ResponseBody
31
	@RequestMapping("/queryPageAttendanceCount")
32
	public PageInfo queryPageAttendanceCount(Map params) throws Exception {
33
		// 当前页数
34
		int pageNum = (int)params.get("pageNum") < 1 ? 1 : (int)params.get("pageNum");
35
		// 每页条数
36
		int pageSize = (int)params.get("pageSize") < 1 ? 1: (int)params.get("pageSize");
37
		if(params.get("currentDate")==null|| params.get("currentDate").equals("")){
38
			params.put("currentDate",new Date());
39
		}
40
		PageInfo pageInfo = areaInRecordService.queryPageAttendanceCount(params, pageNum, pageSize);
41
42
43
		return pageInfo;
44
45
	}
46
}

+ 46 - 0
security-protection-service/src/main/java/com/ai/bss/security/protection/controller/attendanceReportController.java

@ -0,0 +1,46 @@
1
package com.ai.bss.security.protection.controller;
2
3
import com.ai.bss.security.protection.service.interfaces.AreaInRecordService;
4
import com.github.pagehelper.PageInfo;
5
import org.slf4j.Logger;
6
import org.slf4j.LoggerFactory;
7
import org.springframework.beans.factory.annotation.Autowired;
8
import org.springframework.stereotype.Controller;
9
import org.springframework.web.bind.annotation.RequestMapping;
10
import org.springframework.web.bind.annotation.ResponseBody;
11
12
import java.util.Date;
13
import java.util.Map;
14
15
/**
16
 * 考勤报表
17
 */
18
@Controller
19
@RequestMapping("/attendanceReport")
20
public class attendanceReportController {
21
	Logger logger = LoggerFactory.getLogger(attendanceReportController.class);
22
23
	@Autowired
24
	AreaInRecordService areaInRecordService;
25
26
	/**
27
	 * 分页查询考勤统计分析
28
	 */
29
30
	@ResponseBody
31
	@RequestMapping("/queryPageAttendanceCount")
32
	public PageInfo queryPageAttendanceCount(Map params) throws Exception {
33
		// 当前页数
34
		int pageNum = (int)params.get("pageNum") < 1 ? 1 : (int)params.get("pageNum");
35
		// 每页条数
36
		int pageSize = (int)params.get("pageSize") < 1 ? 1: (int)params.get("pageSize");
37
		if(params.get("currentDate")==null|| params.get("currentDate").equals("")){
38
			params.put("currentDate",new Date());
39
		}
40
		PageInfo pageInfo = areaInRecordService.queryPageAttendanceCount(params, pageNum, pageSize);
41
42
43
		return pageInfo;
44
45
	}
46
}

+ 46 - 0
security-protection-service/src/main/java/com/ai/bss/security/protection/controller/attendanceRulesController.java

@ -0,0 +1,46 @@
1
package com.ai.bss.security.protection.controller;
2
3
import com.ai.bss.security.protection.service.interfaces.AreaInRecordService;
4
import com.github.pagehelper.PageInfo;
5
import org.slf4j.Logger;
6
import org.slf4j.LoggerFactory;
7
import org.springframework.beans.factory.annotation.Autowired;
8
import org.springframework.stereotype.Controller;
9
import org.springframework.web.bind.annotation.RequestMapping;
10
import org.springframework.web.bind.annotation.ResponseBody;
11
12
import java.util.Date;
13
import java.util.Map;
14
15
/**
16
 * 异常考勤
17
 */
18
@Controller
19
@RequestMapping("/attendanceRules")
20
public class attendanceRulesController {
21
	Logger logger = LoggerFactory.getLogger(attendanceRulesController.class);
22
23
	@Autowired
24
	AreaInRecordService areaInRecordService;
25
26
	/**
27
	 * 分页查询考勤统计分析
28
	 */
29
30
	@ResponseBody
31
	@RequestMapping("/queryPageAttendanceCount")
32
	public PageInfo queryPageAttendanceCount(Map params) throws Exception {
33
		// 当前页数
34
		int pageNum = (int)params.get("pageNum") < 1 ? 1 : (int)params.get("pageNum");
35
		// 每页条数
36
		int pageSize = (int)params.get("pageSize") < 1 ? 1: (int)params.get("pageSize");
37
		if(params.get("currentDate")==null|| params.get("currentDate").equals("")){
38
			params.put("currentDate",new Date());
39
		}
40
		PageInfo pageInfo = areaInRecordService.queryPageAttendanceCount(params, pageNum, pageSize);
41
42
43
		return pageInfo;
44
45
	}
46
}

+ 46 - 0
security-protection-service/src/main/java/com/ai/bss/security/protection/controller/vacationAttendanceManageController.java

@ -0,0 +1,46 @@
1
package com.ai.bss.security.protection.controller;
2
3
import com.ai.bss.security.protection.service.interfaces.AreaInRecordService;
4
import com.github.pagehelper.PageInfo;
5
import org.slf4j.Logger;
6
import org.slf4j.LoggerFactory;
7
import org.springframework.beans.factory.annotation.Autowired;
8
import org.springframework.stereotype.Controller;
9
import org.springframework.web.bind.annotation.RequestMapping;
10
import org.springframework.web.bind.annotation.ResponseBody;
11
12
import java.util.Date;
13
import java.util.Map;
14
15
/**
16
 * 假勤管理
17
 */
18
@Controller
19
@RequestMapping("/vacationAttendanceManage")
20
public class vacationAttendanceManageController {
21
	Logger logger = LoggerFactory.getLogger(vacationAttendanceManageController.class);
22
23
	@Autowired
24
	AreaInRecordService areaInRecordService;
25
26
	/**
27
	 * 分页查询考勤统计分析
28
	 */
29
30
	@ResponseBody
31
	@RequestMapping("/queryPageAttendanceCount")
32
	public PageInfo queryPageAttendanceCount(Map params) throws Exception {
33
		// 当前页数
34
		int pageNum = (int)params.get("pageNum") < 1 ? 1 : (int)params.get("pageNum");
35
		// 每页条数
36
		int pageSize = (int)params.get("pageSize") < 1 ? 1: (int)params.get("pageSize");
37
		if(params.get("currentDate")==null|| params.get("currentDate").equals("")){
38
			params.put("currentDate",new Date());
39
		}
40
		PageInfo pageInfo = areaInRecordService.queryPageAttendanceCount(params, pageNum, pageSize);
41
42
43
		return pageInfo;
44
45
	}
46
}

+ 230 - 0
security-protection-service/src/main/java/com/ai/bss/security/protection/enums/UserEnums.java

@ -0,0 +1,230 @@
1
package com.ai.bss.security.protection.enums;
2
3
import java.util.ArrayList;
4
import java.util.HashMap;
5
import java.util.List;
6
import java.util.Map;
7
8
public enum UserEnums {
9
	// 工人
10
	oneUser(1, "张三", "1111", 1, 1, "zhangsan", "经理"), 
11
	twoUser(2, "李四", "2222", 1, 1, "lisi", "员工"),
12
	threeUser(3, "王五", "3333", 1, 1, "wangwu", "员工"), 
13
	fourUser(4, "赵六", "4444", 1, 1, "zhaoliu", "员工"),
14
	fiveUser(5, "田七", "5555", 1, 1, "tianqi", "员工"), 
15
	sixUser(6, "周八", "6666", 1, 1, "zhouba", "员工"),
16
	sevenUser(7, "吴九", "7777", 1, 1, "wujiu", "员工"), 
17
	eightUser(8, "郑十", "8888", 1, 1, "zhengshi", "员工"),
18
	nineUser(0, "刘一", "9999", 1, 1, "liuyi", "员工"),
19
	// 救援者
20
	oneRescuer(1, "童一", "1001", 2, 1, "tongyi", "员工"), 
21
	twoRescuer(2, "童二", "1002", 2, 1, "tonger", "员工"),
22
	threeRescuer(3, "童三", "1003", 2, 1, "tongsan", "员工"),
23
	fourRescuer(4, "童四", "1004", 2, 1, "tongsi", "员工"),
24
	fiveRescuer(5, "童五", "1005", 2, 1, "tongwu", "员工"), 
25
	sixRescuer(6, "童六", "1006", 2, 1, "tongliu", "员工");
26
27
	public int id; // id
28
	public String userName;// 姓名
29
	public String employeeNo;// 员工编号
30
	public int department;// 部门
31
	public int employeeType;// 人员类型(1:内部员工; 2:外部人员)
32
	public String employeeCode;// 人员业务编码(员工:统一用户中心存储的员工唯一编码;外来人员:存储PARTY_ID)
33
	public String duty;// 职务
34
35
	UserEnums() {
36
37
	}
38
39
	private UserEnums(int id, String userName, String employeeNo, int department, int employeeType, String employeeCode,
40
			String duty) {
41
		this.id = id;
42
		this.userName = userName;
43
		this.employeeNo = employeeNo;
44
		this.department = department;
45
		this.employeeType = employeeType;
46
		this.employeeCode = employeeCode;
47
		this.duty = duty;
48
	}
49
50
	public int getId() {
51
		return id;
52
	}
53
54
	public String getUserName() {
55
		return userName;
56
	}
57
58
	public String getEmployeeNo() {
59
		return employeeNo;
60
	}
61
62
	public int getDepartment() {
63
		return department;
64
	}
65
66
	public int getEmployeeType() {
67
		return employeeType;
68
	}
69
70
	public String getEmployeeCode() {
71
		return employeeCode;
72
	}
73
74
	public String getDuty() {
75
		return duty;
76
	}
77
78
	/**
79
	 * 根据id返回枚举值
80
	 * @param id
81
	 * @return
82
	 */
83
	public static UserEnums getEumById(int id) {
84
		for (UserEnums userEnum : UserEnums.values()) {
85
			if (userEnum.getId() == id) {
86
				return userEnum;
87
			}
88
		}
89
		return null;
90
	}
91
92
	/**
93
	 * 根据员工编号返回枚举值
94
	 * @param id
95
	 * @return
96
	 */
97
	public static UserEnums getEumByCode(String employeeCode) {
98
		for (UserEnums userEnum : UserEnums.values()) {
99
			if (employeeCode.equals(userEnum.getEmployeeCode())) {
100
				return userEnum;
101
			}
102
		}
103
		return null;
104
	}
105
106
	/**
107
			* 根据序号获取枚举数组中的值,序号必须从0开始
108
			* @param id
109
			* @return
110
			* @throws IllegalAccessException
111
			* @throws IllegalArgumentException
112
			* @throws InvocationTargetException
113
			* @throws InstantiationException
114
			*/
115
	/*
116
	public static <T> List<T> getEumByKey(int id)
117
		throws IllegalAccessException, IllegalArgumentException, InvocationTargetException, InstantiationException {
118
	List<String> enumList = getEumValueList();
119
	List<T> enumList1 = new ArrayList<T>();
120
	for (UserEnums testEnums : UserEnums.values()) {
121
		if (testEnums.getId() == id) {
122
			Class<?> clazz = testEnums.getClass();
123
			// 获取所有常量
124
			Object object = clazz.getEnumConstants()[id];
125
			Field[] filedFields = clazz.getFields();
126
			for (Field field : filedFields) {
127
				field.setAccessible(true);
128
				Object sssObject = field.get(object);
129
				if (enumList.contains(field.getName())) {
130
					continue;
131
				} else {
132
					if (sssObject != null)
133
						enumList1.add((T) sssObject);
134
				}
135
			}
136
			return enumList1;
137
		}
138
	}
139
	return null;
140
	}
141
	
142
	*//**
143
		* 获取枚举值常量列表
144
		* @param
145
		* @return
146
		*/
147
	/*
148
	public static List<String> getEumValueList() {
149
	List<String> list = new ArrayList<String>();
150
	for (Object object : UserEnums.values()) {
151
		list.add(object.toString());
152
	}
153
	return list;
154
	}
155
	
156
	*//**
157
		* 传入方法名称  values是值 ,field是 字段mingcheng
158
		* @param <T>
159
		* @param enumType
160
		* @param value
161
		* @param field
162
		* @return
163
		* @throws Exception
164
		*//*
165
			public static <T extends Enum<T>> T getEnumOnValue(Class<T> enumType, String value, String field) throws Exception {
166
			
167
			for (Object obj : enumType.getEnumConstants()) {
168
				Method m = obj.getClass().getDeclaredMethod("values", null);
169
				Object[] results = (Object[]) m.invoke(obj, null);
170
				for (Object result : results) {
171
					Field codeField = result.getClass().getDeclaredField(field);
172
					ReflectionUtils.makeAccessible(codeField);
173
					String fileValue = String.valueOf(ReflectionUtils.getField(codeField, result));
174
					if (fileValue.equals(value)) {
175
						return (T) result;
176
					}
177
			
178
				}
179
			}
180
			return null;
181
			}*/
182
183
	/**
184
	 * 获取所有的用户放到list里
185
	 *
186
	 * @return
187
	 * @throws Exception
188
	 */
189
190
	public static List<Map<String, Object>> getAllUserList() {
191
		ArrayList<Map<String, Object>> list = new ArrayList<Map<String, Object>>();
192
		for (UserEnums userEnum : UserEnums.values()) {
193
			Map<String, Object> userMap = new HashMap<String, Object>();
194
			userMap.put("id", userEnum.getId());
195
			userMap.put("userName", userEnum.getUserName());
196
			userMap.put("employeeNo", userEnum.getEmployeeNo());
197
			userMap.put("department", userEnum.getDepartment());
198
			userMap.put("employeeType", userEnum.getEmployeeType());
199
			userMap.put("employeeCode", userEnum.getEmployeeCode());
200
			userMap.put("duty", userEnum.getDuty());
201
			list.add(userMap);
202
		}
203
		return list;
204
	}
205
206
	/**
207
	 * 按部门获取所有的用户放到list里
208
	 *
209
	 * @return
210
	 * @throws Exception
211
	 */
212
	public static List<Map<String, Object>> getUserListByDepy(int department) {
213
		ArrayList<Map<String, Object>> list = new ArrayList<Map<String, Object>>();
214
		for (UserEnums userEnum : UserEnums.values()) {
215
			if (department == userEnum.getDepartment()) {
216
				Map<String, Object> userMap = new HashMap<String, Object>();
217
				userMap.put("id", userEnum.getId());
218
				userMap.put("userName", userEnum.getUserName());
219
				userMap.put("employeeNo", userEnum.getEmployeeNo());
220
				userMap.put("department", userEnum.getDepartment());
221
				userMap.put("employeeType", userEnum.getEmployeeType());
222
				userMap.put("employeeCode", userEnum.getEmployeeCode());
223
				userMap.put("duty", userEnum.getDuty());
224
				list.add(userMap);
225
			}
226
		}
227
		return list;
228
	}
229
230
}

+ 50 - 0
security-protection-service/src/main/java/com/ai/bss/security/protection/model/Rescuer.java

@ -0,0 +1,50 @@
1
package com.ai.bss.security.protection.model;
2
3
import lombok.Data;
4
import org.springframework.format.annotation.DateTimeFormat;
5
6
import java.io.Serializable;
7
import java.util.Date;
8
9
/*救援人员*/
10
11
@Data
12
public class Rescuer implements Serializable {
13
14
    private  long rescuersId; //救援人员标识
15
16
    private  long departmentId; //救援人归属部门标识
17
18
    private  String partyType; //参与人类型
19
20
    private  String partyCode; //参与人业务编码
21
22
    private  String partyName; //参与人名称
23
24
    private  String remarks; //备注
25
26
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
27
    private Date validDate; //生效日期
28
29
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
30
    private  Date expireDate; //失效日期
31
32
    private  String dataStatus; //数据状态
33
34
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
35
    private  Date createDate; //创建日期
36
37
    private  String createOpId; //创建操作员编码
38
39
    private  String createOrgId; //创建组织编码
40
41
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
42
    private  Date doneDate; //操作日期
43
44
    private  String opId; //操作员编码
45
46
    private  String orgId; //操作组织编码
47
48
    private  String regionId; //数据归属地区
49
50
}

+ 22 - 0
security-protection-service/src/main/java/com/ai/bss/security/protection/service/impl/AreaInRecordServiceImpl.java

@ -0,0 +1,22 @@
1
package com.ai.bss.security.protection.service.impl;
2
3
4
import com.ai.bss.security.protection.enums.UserEnums;
5
import com.ai.bss.security.protection.service.interfaces.AreaInRecordService;
6
import com.github.pagehelper.PageInfo;
7
import org.springframework.beans.factory.annotation.Autowired;
8
import org.springframework.stereotype.Service;
9
10
import java.text.SimpleDateFormat;
11
import java.util.Date;
12
import java.util.List;
13
import java.util.Map;
14
15
@Service
16
public class AreaInRecordServiceImpl implements AreaInRecordService {
17
18
	@Override
19
	public PageInfo queryPageAttendanceCount(Map params, int pageNum, int pageSize) throws Exception {
20
		return null;
21
	}
22
}

+ 25 - 0
security-protection-service/src/main/java/com/ai/bss/security/protection/service/interfaces/AreaInRecordService.java

@ -0,0 +1,25 @@
1
package com.ai.bss.security.protection.service.interfaces;
2
3
import com.github.pagehelper.PageInfo;
4
import java.util.Map;
5
6
/**
7
 * 考勤管理
8
 * @author konghl@asiainfo.com
9
 * 2020-10-22
10
 */
11
public interface AreaInRecordService {
12
13
	/**
14
	 * 分页查询考勤统计分析
15
	 * 
16
	 * @param params
17
	 * @param pageNum 当前页数
18
	 * @param pageSize 每页条数
19
	 * @return
20
	 * @throws Exception
21
	 */
22
	PageInfo queryPageAttendanceCount(Map params, int pageNum, int pageSize) throws Exception;
23
24
25
}

+ 26 - 0
security-protection-service/src/main/resources/application.properties

@ -0,0 +1,26 @@
1
spring.application.name=WorkTaskSpec
2
server.port=8086
3
4
# DATASOURCE (DataSourceAutoConfiguration & DataSourceProperties)
5
#spring.datasource.url=jdbc:mysql://localhost:3306/cmp
6
spring.datasource.url=jdbc:mysql://10.11.20.120:3306/common_frm?serverTimezone=Asia/Shanghai&characterEncoding=utf-8&verifyServerCertificate=false&useSSL=false&requireSSL=false
7
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
8
spring.datasource.username=comon_frm
9
spring.datasource.password=1qaz@WSX
10
11
# JPA (JpaBaseConfiguration, HibernateJpaAutoConfiguration)
12
#spring.jpa.database=default
13
spring.jpa.database-platform=org.hibernate.dialect.MySQL5Dialect
14
spring.jpa.hibernate.ddl-auto=none
15
spring.jpa.show-sql=true
16
spring.jpa.properties.hibernate.format_sql=true
17
spring.jpa.properties.hibernate.generate_statistics=false
18
spring.main.allow-bean-definition-overriding=true
19
20
# CACHE
21
#spring.cache.type=ehcache
22
#spring.cache.ehcache.config=ehcache.xml
23
24
# LOGGING
25
logging.level.com.ai=info
26
logging.level.org.springframework.data=info