first commit

This commit is contained in:
fl 2024-12-02 13:25:42 +08:00
commit e49ed2c34d
29 changed files with 27965 additions and 0 deletions

33
.gitignore vendored Normal file
View File

@ -0,0 +1,33 @@
HELP.md
target/
!.mvn/wrapper/maven-wrapper.jar
!**/src/main/**/target/
!**/src/test/**/target/
### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr
### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
build/
!**/src/main/**/build/
!**/src/test/**/build/
### VS Code ###
.vscode/

BIN
.mvn/wrapper/maven-wrapper.jar vendored Normal file

Binary file not shown.

2
.mvn/wrapper/maven-wrapper.properties vendored Normal file
View File

@ -0,0 +1,2 @@
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.3/apache-maven-3.8.3-bin.zip
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar

0
README.md Normal file
View File

0
logs/sys-back.log Normal file
View File

7649
logs/sys-back.log.error Normal file

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,114 @@
2022-01-20 14:43:22,140 [main] ERROR o.s.b.d.LoggingFailureAnalysisReporter -[LoggingFailureAnalysisReporter.java:40]-
***************************
APPLICATION FAILED TO START
***************************
Description:
Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.
Reason: Failed to determine a suitable driver class
Action:
Consider the following:
If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.
If you have database settings to be loaded from a particular profile you may need to activate it (no profiles are currently active).
2022-01-20 14:44:17,836 [main] ERROR o.s.b.d.LoggingFailureAnalysisReporter -[LoggingFailureAnalysisReporter.java:40]-
***************************
APPLICATION FAILED TO START
***************************
Description:
Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.
Reason: Failed to determine a suitable driver class
Action:
Consider the following:
If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.
If you have database settings to be loaded from a particular profile you may need to activate it (no profiles are currently active).
2022-01-20 14:45:20,800 [main] ERROR o.s.b.d.LoggingFailureAnalysisReporter -[LoggingFailureAnalysisReporter.java:40]-
***************************
APPLICATION FAILED TO START
***************************
Description:
Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.
Reason: Failed to determine a suitable driver class
Action:
Consider the following:
If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.
If you have database settings to be loaded from a particular profile you may need to activate it (no profiles are currently active).
2022-01-20 14:45:42,001 [main] ERROR o.s.b.d.LoggingFailureAnalysisReporter -[LoggingFailureAnalysisReporter.java:40]-
***************************
APPLICATION FAILED TO START
***************************
Description:
Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.
Reason: Failed to determine a suitable driver class
Action:
Consider the following:
If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.
If you have database settings to be loaded from a particular profile you may need to activate it (no profiles are currently active).
2022-01-20 14:46:33,484 [main] ERROR o.s.b.d.LoggingFailureAnalysisReporter -[LoggingFailureAnalysisReporter.java:40]-
***************************
APPLICATION FAILED TO START
***************************
Description:
Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.
Reason: Failed to determine a suitable driver class
Action:
Consider the following:
If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.
If you have database settings to be loaded from a particular profile you may need to activate it (no profiles are currently active).
2022-01-20 14:47:41,205 [main] ERROR o.s.b.d.LoggingFailureAnalysisReporter -[LoggingFailureAnalysisReporter.java:40]-
***************************
APPLICATION FAILED TO START
***************************
Description:
Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.
Reason: Failed to determine a suitable driver class
Action:
Consider the following:
If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.
If you have database settings to be loaded from a particular profile you may need to activate it (no profiles are currently active).

13532
logs/sys-back.log.sql Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,26 @@
2022-01-20 14:39:14,563 [main] Starting DemoApplication using Java 1.8.0_202 on LAPTOP-UJAAGA4F with PID 28420 (D:\work\zys\springboot_demo\target\classes started by 11989 in D:\work\zys\springboot_demo)
2022-01-20 14:39:14,566 [main] Running with Spring Boot v2.6.2, Spring v5.3.14
2022-01-20 14:39:14,566 [main] No active profile set, falling back to default profiles: default
2022-01-20 14:39:15,143 [main] Started DemoApplication in 1.088 seconds (JVM running for 1.86)
2022-01-20 14:43:20,135 [main] Starting DemoApplication using Java 1.8.0_202 on LAPTOP-UJAAGA4F with PID 28960 (D:\work\zys\springboot_demo\target\classes started by 11989 in D:\work\zys\springboot_demo)
2022-01-20 14:43:20,138 [main] Running with Spring Boot v2.6.2, Spring v5.3.14
2022-01-20 14:43:20,138 [main] No active profile set, falling back to default profiles: default
2022-01-20 14:44:15,994 [main] Starting DemoApplication using Java 1.8.0_202 on LAPTOP-UJAAGA4F with PID 5832 (D:\work\zys\springboot_demo\target\classes started by 11989 in D:\work\zys\springboot_demo)
2022-01-20 14:44:15,998 [main] Running with Spring Boot v2.6.2, Spring v5.3.14
2022-01-20 14:44:15,999 [main] No active profile set, falling back to default profiles: default
2022-01-20 14:45:19,280 [main] Starting DemoApplication using Java 1.8.0_202 on LAPTOP-UJAAGA4F with PID 29396 (D:\work\zys\springboot_demo\target\classes started by 11989 in D:\work\zys\springboot_demo)
2022-01-20 14:45:19,284 [main] Running with Spring Boot v2.6.2, Spring v5.3.14
2022-01-20 14:45:19,284 [main] No active profile set, falling back to default profiles: default
2022-01-20 14:45:39,994 [main] Starting DemoApplication using Java 1.8.0_202 on LAPTOP-UJAAGA4F with PID 15436 (D:\work\zys\springboot_demo\target\classes started by 11989 in D:\work\zys\springboot_demo)
2022-01-20 14:45:39,997 [main] Running with Spring Boot v2.6.2, Spring v5.3.14
2022-01-20 14:45:39,997 [main] No active profile set, falling back to default profiles: default
2022-01-20 14:46:31,443 [main] Starting DemoApplication using Java 1.8.0_202 on LAPTOP-UJAAGA4F with PID 28840 (D:\work\zys\springboot_demo\target\classes started by 11989 in D:\work\zys\springboot_demo)
2022-01-20 14:46:31,446 [main] Running with Spring Boot v2.6.2, Spring v5.3.14
2022-01-20 14:46:31,446 [main] No active profile set, falling back to default profiles: default
2022-01-20 14:47:39,683 [main] Starting DemoApplication using Java 1.8.0_202 on LAPTOP-UJAAGA4F with PID 12868 (D:\work\zys\springboot_demo\target\classes started by 11989 in D:\work\zys\springboot_demo)
2022-01-20 14:47:39,687 [main] Running with Spring Boot v2.6.2, Spring v5.3.14
2022-01-20 14:47:39,687 [main] No active profile set, falling back to default profiles: default
2022-01-20 14:48:27,356 [main] Starting DemoApplication using Java 1.8.0_202 on LAPTOP-UJAAGA4F with PID 20436 (D:\work\zys\springboot_demo\target\classes started by 11989 in D:\work\zys\springboot_demo)
2022-01-20 14:48:27,359 [main] Running with Spring Boot v2.6.2, Spring v5.3.14
2022-01-20 14:48:27,359 [main] No active profile set, falling back to default profiles: default
2022-01-20 14:48:29,560 [main] Started DemoApplication in 2.811 seconds (JVM running for 3.822)

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,265 @@
2023-12-07 15:28:31,034 [main] Starting AttApplication using Java 1.8.0_202 on zys with PID 36388 (D:\work\yn\YnAttendanceMachine\target\classes started by 11989 in D:\work\yn\YnAttendanceMachine)
2023-12-07 15:28:31,043 [main] Running with Spring Boot v2.7.1, Spring v5.3.21
2023-12-07 15:28:31,043 [main] No active profile set, falling back to 1 default profile: "default"
2023-12-07 15:28:32,914 [main] Started AttApplication in 2.27 seconds (JVM running for 3.509)
2023-12-07 15:28:42,028 [http-nio-8085-exec-3] ==> Preparing: select bam.id, bamp.id_number as idNumber, bw.name, operate, face_base64 as faceImg, face_path as facePath from bm_attendance_machine bam left join bm_attendance_machine_push bamp on bamp.attendance_machine_id = bam.id and is_push = 0 left join bm_worker bw on bw.id_number = bamp.id_number where bam.is_active = 1 and bam.attendance_machine_id = ? and bamp.id_number is not null limit 5
2023-12-07 15:28:42,047 [http-nio-8085-exec-3] ==> Parameters: MKE1234600038(String)
2023-12-07 15:28:42,190 [http-nio-8085-exec-3] <== Total: 0
2023-12-07 15:28:46,548 [http-nio-8085-exec-5] ==> Preparing: select bam.id, bamp.id_number as idNumber, bw.name, operate, face_base64 as faceImg, face_path as facePath from bm_attendance_machine bam left join bm_attendance_machine_push bamp on bamp.attendance_machine_id = bam.id and is_push = 0 left join bm_worker bw on bw.id_number = bamp.id_number where bam.is_active = 1 and bam.attendance_machine_id = ? and bamp.id_number is not null limit 5
2023-12-07 15:28:46,549 [http-nio-8085-exec-5] ==> Parameters: MKE1234600038(String)
2023-12-07 15:28:46,643 [http-nio-8085-exec-5] <== Total: 1
2023-12-07 15:28:46,683 [http-nio-8085-exec-5] ==> Preparing: update bm_attendance_machine_push set is_push = 1, push_content = ? where id_number = ? and attendance_machine_id = ? and operate = ?;
2023-12-07 15:28:46,686 [http-nio-8085-exec-5] ==> Parameters: C:bns:DATA UPDATE USERINFO PIN=341181200110111414 Name=张永识 Pri=0 Passwd=123456 Grp=0 Verify=15
C:bns:DATA UPDATE BIOPHOTO PIN=341181200110111414 Type=9 Format=1 Url=http://112.29.103.165:1616/file/ynRealName/face/45f2fb38b1ab48eeab6526d4104b54fc.jpg
C:bns:DATA UPDATE USERPIC PIN=341181200110111414 Type=9 Format=1 Url=http://112.29.103.165:1616/file/ynRealName/face/45f2fb38b1ab48eeab6526d4104b54fc.jpg
(String), 341181200110111414(String), 5(String), 1(Integer)
2023-12-07 15:28:46,829 [http-nio-8085-exec-5] <== Updates: 1
2023-12-07 15:28:47,414 [http-nio-8085-exec-7] ==> Preparing: select bam.id, bamp.id_number as idNumber, bw.name, operate, face_base64 as faceImg, face_path as facePath from bm_attendance_machine bam left join bm_attendance_machine_push bamp on bamp.attendance_machine_id = bam.id and is_push = 0 left join bm_worker bw on bw.id_number = bamp.id_number where bam.is_active = 1 and bam.attendance_machine_id = ? and bamp.id_number is not null limit 5
2023-12-07 15:28:47,415 [http-nio-8085-exec-7] ==> Parameters: MKE1234600038(String)
2023-12-07 15:28:47,511 [http-nio-8085-exec-7] <== Total: 0
2023-12-07 15:28:48,892 [http-nio-8085-exec-8] ==> Preparing: select bam.id, bamp.id_number as idNumber, bw.name, operate, face_base64 as faceImg, face_path as facePath from bm_attendance_machine bam left join bm_attendance_machine_push bamp on bamp.attendance_machine_id = bam.id and is_push = 0 left join bm_worker bw on bw.id_number = bamp.id_number where bam.is_active = 1 and bam.attendance_machine_id = ? and bamp.id_number is not null limit 5
2023-12-07 15:28:48,893 [http-nio-8085-exec-8] ==> Parameters: MKE1234600038(String)
2023-12-07 15:28:48,991 [http-nio-8085-exec-8] <== Total: 0
2023-12-07 15:28:49,213 [http-nio-8085-exec-4] ==> Preparing: select bam.id, bamp.id_number as idNumber, bw.name, operate, face_base64 as faceImg, face_path as facePath from bm_attendance_machine bam left join bm_attendance_machine_push bamp on bamp.attendance_machine_id = bam.id and is_push = 0 left join bm_worker bw on bw.id_number = bamp.id_number where bam.is_active = 1 and bam.attendance_machine_id = ? and bamp.id_number is not null limit 5
2023-12-07 15:28:49,214 [http-nio-8085-exec-4] ==> Parameters: MKE1234600038(String)
2023-12-07 15:28:49,293 [http-nio-8085-exec-4] <== Total: 0
2023-12-07 15:28:50,532 [http-nio-8085-exec-10] ==> Preparing: select bam.id, bamp.id_number as idNumber, bw.name, operate, face_base64 as faceImg, face_path as facePath from bm_attendance_machine bam left join bm_attendance_machine_push bamp on bamp.attendance_machine_id = bam.id and is_push = 0 left join bm_worker bw on bw.id_number = bamp.id_number where bam.is_active = 1 and bam.attendance_machine_id = ? and bamp.id_number is not null limit 5
2023-12-07 15:28:50,532 [http-nio-8085-exec-10] ==> Parameters: MKE1234600038(String)
2023-12-07 15:28:50,609 [http-nio-8085-exec-10] <== Total: 0
2023-12-07 15:28:50,825 [http-nio-8085-exec-1] ==> Preparing: select bam.id, bamp.id_number as idNumber, bw.name, operate, face_base64 as faceImg, face_path as facePath from bm_attendance_machine bam left join bm_attendance_machine_push bamp on bamp.attendance_machine_id = bam.id and is_push = 0 left join bm_worker bw on bw.id_number = bamp.id_number where bam.is_active = 1 and bam.attendance_machine_id = ? and bamp.id_number is not null limit 5
2023-12-07 15:28:50,825 [http-nio-8085-exec-1] ==> Parameters: MKE1234600038(String)
2023-12-07 15:28:50,891 [http-nio-8085-exec-1] <== Total: 0
2023-12-07 15:28:53,125 [http-nio-8085-exec-2] ==> Preparing: select bam.id, bamp.id_number as idNumber, bw.name, operate, face_base64 as faceImg, face_path as facePath from bm_attendance_machine bam left join bm_attendance_machine_push bamp on bamp.attendance_machine_id = bam.id and is_push = 0 left join bm_worker bw on bw.id_number = bamp.id_number where bam.is_active = 1 and bam.attendance_machine_id = ? and bamp.id_number is not null limit 5
2023-12-07 15:28:53,126 [http-nio-8085-exec-2] ==> Parameters: MKE1234600038(String)
2023-12-07 15:28:53,241 [http-nio-8085-exec-2] <== Total: 0
2023-12-07 15:28:54,587 [http-nio-8085-exec-3] ==> Preparing: select bam.id, bamp.id_number as idNumber, bw.name, operate, face_base64 as faceImg, face_path as facePath from bm_attendance_machine bam left join bm_attendance_machine_push bamp on bamp.attendance_machine_id = bam.id and is_push = 0 left join bm_worker bw on bw.id_number = bamp.id_number where bam.is_active = 1 and bam.attendance_machine_id = ? and bamp.id_number is not null limit 5
2023-12-07 15:28:54,588 [http-nio-8085-exec-3] ==> Parameters: MKE1234600038(String)
2023-12-07 15:28:54,702 [http-nio-8085-exec-3] <== Total: 0
2023-12-07 15:28:56,929 [http-nio-8085-exec-6] ==> Preparing: select bam.id, bamp.id_number as idNumber, bw.name, operate, face_base64 as faceImg, face_path as facePath from bm_attendance_machine bam left join bm_attendance_machine_push bamp on bamp.attendance_machine_id = bam.id and is_push = 0 left join bm_worker bw on bw.id_number = bamp.id_number where bam.is_active = 1 and bam.attendance_machine_id = ? and bamp.id_number is not null limit 5
2023-12-07 15:28:56,929 [http-nio-8085-exec-6] ==> Parameters: MKE1234600038(String)
2023-12-07 15:28:57,007 [http-nio-8085-exec-6] <== Total: 0
2023-12-07 15:28:58,234 [http-nio-8085-exec-5] ==> Preparing: select bam.id, bamp.id_number as idNumber, bw.name, operate, face_base64 as faceImg, face_path as facePath from bm_attendance_machine bam left join bm_attendance_machine_push bamp on bamp.attendance_machine_id = bam.id and is_push = 0 left join bm_worker bw on bw.id_number = bamp.id_number where bam.is_active = 1 and bam.attendance_machine_id = ? and bamp.id_number is not null limit 5
2023-12-07 15:28:58,235 [http-nio-8085-exec-5] ==> Parameters: MKE1234600038(String)
2023-12-07 15:28:58,341 [http-nio-8085-exec-5] <== Total: 0
2023-12-07 15:29:01,592 [http-nio-8085-exec-9] ==> Preparing: select bam.id, bamp.id_number as idNumber, bw.name, operate, face_base64 as faceImg, face_path as facePath from bm_attendance_machine bam left join bm_attendance_machine_push bamp on bamp.attendance_machine_id = bam.id and is_push = 0 left join bm_worker bw on bw.id_number = bamp.id_number where bam.is_active = 1 and bam.attendance_machine_id = ? and bamp.id_number is not null limit 5
2023-12-07 15:29:01,593 [http-nio-8085-exec-9] ==> Parameters: MKE1234600038(String)
2023-12-07 15:29:01,673 [http-nio-8085-exec-9] <== Total: 0
2023-12-07 15:29:05,071 [http-nio-8085-exec-7] ==> Preparing: select bam.id, bamp.id_number as idNumber, bw.name, operate, face_base64 as faceImg, face_path as facePath from bm_attendance_machine bam left join bm_attendance_machine_push bamp on bamp.attendance_machine_id = bam.id and is_push = 0 left join bm_worker bw on bw.id_number = bamp.id_number where bam.is_active = 1 and bam.attendance_machine_id = ? and bamp.id_number is not null limit 5
2023-12-07 15:29:05,073 [http-nio-8085-exec-7] ==> Parameters: MKE1234600038(String)
2023-12-07 15:29:05,161 [http-nio-8085-exec-7] <== Total: 0
2023-12-07 15:29:06,500 [http-nio-8085-exec-4] ==> Preparing: SELECT bw.NAME,bw.id_number AS idNumber,bw.post_id as postId,ein_status as einStatus, bsc.pro_id as proId,bsc.sub_id as subId,btur.team_id as teamId,bwc.id as contractId FROM bm_worker bw LEFT JOIN t_dict t ON t.id = bw.post_id AND t.is_active = 1 left join bm_team_user_relation btur on btur.id_number = bw.id_number and btur.is_active = 1 left join bm_sub_relation bsr on bsr.value = btur.team_id and bsr.is_active = 1 and bsr.type = 3 LEFT JOIN bm_sub_contract bsc ON bsc.id = bsr.sub_contract_id and bsc.is_active = 1 left join bm_worker_contract bwc on bwc.idCard = bw.id_number and bwc.is_active = 1 WHERE bw.IS_ACTIVE = 1 and bw.id_number = ? GROUP BY bw.id_number
2023-12-07 15:29:06,501 [http-nio-8085-exec-4] ==> Parameters: 825(String)
2023-12-07 15:29:06,577 [http-nio-8085-exec-4] <== Total: 0
2023-12-07 15:29:06,578 [http-nio-8085-exec-4] ==> Preparing: insert into fc_face_contrast(IMEI,upload_id,ID_NUMBER,PRO_ID,CURRENT_DAY,ADD_TIME,PHOTO_PATH,attendance_type,lon,lat) values(?,?,?,?,?,?,?,?,?,?)
2023-12-07 15:29:06,580 [http-nio-8085-exec-4] ==> Parameters: MKE1234600038(String), 0(String), 825(String), null, 2023-12-07(String), 2023-12-07 15:29:06(String), ynRealName/attendanceMachine/2023/12/07/1701934146477.jpg(String), 1(String), null, null
2023-12-07 15:29:06,731 [http-nio-8085-exec-4] <== Updates: 1
2023-12-07 15:29:07,515 [http-nio-8085-exec-10] ==> Preparing: select bam.id, bamp.id_number as idNumber, bw.name, operate, face_base64 as faceImg, face_path as facePath from bm_attendance_machine bam left join bm_attendance_machine_push bamp on bamp.attendance_machine_id = bam.id and is_push = 0 left join bm_worker bw on bw.id_number = bamp.id_number where bam.is_active = 1 and bam.attendance_machine_id = ? and bamp.id_number is not null limit 5
2023-12-07 15:29:07,516 [http-nio-8085-exec-10] ==> Parameters: MKE1234600038(String)
2023-12-07 15:29:07,618 [http-nio-8085-exec-10] <== Total: 0
2023-12-07 15:29:09,869 [http-nio-8085-exec-2] ==> Preparing: select bam.id, bamp.id_number as idNumber, bw.name, operate, face_base64 as faceImg, face_path as facePath from bm_attendance_machine bam left join bm_attendance_machine_push bamp on bamp.attendance_machine_id = bam.id and is_push = 0 left join bm_worker bw on bw.id_number = bamp.id_number where bam.is_active = 1 and bam.attendance_machine_id = ? and bamp.id_number is not null limit 5
2023-12-07 15:29:09,870 [http-nio-8085-exec-2] ==> Parameters: MKE1234600038(String)
2023-12-07 15:29:09,972 [http-nio-8085-exec-2] <== Total: 0
2023-12-07 15:29:13,210 [http-nio-8085-exec-3] ==> Preparing: select bam.id, bamp.id_number as idNumber, bw.name, operate, face_base64 as faceImg, face_path as facePath from bm_attendance_machine bam left join bm_attendance_machine_push bamp on bamp.attendance_machine_id = bam.id and is_push = 0 left join bm_worker bw on bw.id_number = bamp.id_number where bam.is_active = 1 and bam.attendance_machine_id = ? and bamp.id_number is not null limit 5
2023-12-07 15:29:13,211 [http-nio-8085-exec-3] ==> Parameters: MKE1234600038(String)
2023-12-07 15:29:13,315 [http-nio-8085-exec-3] <== Total: 0
2023-12-07 15:29:16,555 [http-nio-8085-exec-6] ==> Preparing: select bam.id, bamp.id_number as idNumber, bw.name, operate, face_base64 as faceImg, face_path as facePath from bm_attendance_machine bam left join bm_attendance_machine_push bamp on bamp.attendance_machine_id = bam.id and is_push = 0 left join bm_worker bw on bw.id_number = bamp.id_number where bam.is_active = 1 and bam.attendance_machine_id = ? and bamp.id_number is not null limit 5
2023-12-07 15:29:16,555 [http-nio-8085-exec-6] ==> Parameters: MKE1234600038(String)
2023-12-07 15:29:16,659 [http-nio-8085-exec-6] <== Total: 0
2023-12-07 15:29:20,909 [http-nio-8085-exec-5] ==> Preparing: select bam.id, bamp.id_number as idNumber, bw.name, operate, face_base64 as faceImg, face_path as facePath from bm_attendance_machine bam left join bm_attendance_machine_push bamp on bamp.attendance_machine_id = bam.id and is_push = 0 left join bm_worker bw on bw.id_number = bamp.id_number where bam.is_active = 1 and bam.attendance_machine_id = ? and bamp.id_number is not null limit 5
2023-12-07 15:29:20,910 [http-nio-8085-exec-5] ==> Parameters: MKE1234600038(String)
2023-12-07 15:29:21,016 [http-nio-8085-exec-5] <== Total: 0
2023-12-07 15:29:24,256 [http-nio-8085-exec-9] ==> Preparing: select bam.id, bamp.id_number as idNumber, bw.name, operate, face_base64 as faceImg, face_path as facePath from bm_attendance_machine bam left join bm_attendance_machine_push bamp on bamp.attendance_machine_id = bam.id and is_push = 0 left join bm_worker bw on bw.id_number = bamp.id_number where bam.is_active = 1 and bam.attendance_machine_id = ? and bamp.id_number is not null limit 5
2023-12-07 15:29:24,256 [http-nio-8085-exec-9] ==> Parameters: MKE1234600038(String)
2023-12-07 15:29:24,330 [http-nio-8085-exec-9] <== Total: 0
2023-12-07 15:29:29,579 [http-nio-8085-exec-7] ==> Preparing: select bam.id, bamp.id_number as idNumber, bw.name, operate, face_base64 as faceImg, face_path as facePath from bm_attendance_machine bam left join bm_attendance_machine_push bamp on bamp.attendance_machine_id = bam.id and is_push = 0 left join bm_worker bw on bw.id_number = bamp.id_number where bam.is_active = 1 and bam.attendance_machine_id = ? and bamp.id_number is not null limit 5
2023-12-07 15:29:29,579 [http-nio-8085-exec-7] ==> Parameters: MKE1234600038(String)
2023-12-07 15:29:29,705 [http-nio-8085-exec-7] <== Total: 0
2023-12-07 15:29:33,913 [http-nio-8085-exec-4] ==> Preparing: SELECT bw.NAME,bw.id_number AS idNumber,bw.post_id as postId,ein_status as einStatus, bsc.pro_id as proId,bsc.sub_id as subId,btur.team_id as teamId,bwc.id as contractId FROM bm_worker bw LEFT JOIN t_dict t ON t.id = bw.post_id AND t.is_active = 1 left join bm_team_user_relation btur on btur.id_number = bw.id_number and btur.is_active = 1 left join bm_sub_relation bsr on bsr.value = btur.team_id and bsr.is_active = 1 and bsr.type = 3 LEFT JOIN bm_sub_contract bsc ON bsc.id = bsr.sub_contract_id and bsc.is_active = 1 left join bm_worker_contract bwc on bwc.idCard = bw.id_number and bwc.is_active = 1 WHERE bw.IS_ACTIVE = 1 and bw.id_number = ? GROUP BY bw.id_number
2023-12-07 15:29:33,914 [http-nio-8085-exec-4] ==> Parameters: 341181200110111414(String)
2023-12-07 15:29:34,026 [http-nio-8085-exec-4] <== Total: 0
2023-12-07 15:29:34,027 [http-nio-8085-exec-4] ==> Preparing: insert into fc_face_contrast(IMEI,upload_id,ID_NUMBER,PRO_ID,CURRENT_DAY,ADD_TIME,PHOTO_PATH,attendance_type,lon,lat) values(?,?,?,?,?,?,?,?,?,?)
2023-12-07 15:29:34,029 [http-nio-8085-exec-4] ==> Parameters: MKE1234600038(String), 0(String), 341181200110111414(String), null, 2023-12-07(String), 2023-12-07 15:29:33(String), ynRealName/attendanceMachine/2023/12/07/1701934173908.jpg(String), 1(String), null, null
2023-12-07 15:29:34,150 [http-nio-8085-exec-4] <== Updates: 1
2023-12-07 15:29:36,963 [http-nio-8085-exec-1] ==> Preparing: select bam.id, bamp.id_number as idNumber, bw.name, operate, face_base64 as faceImg, face_path as facePath from bm_attendance_machine bam left join bm_attendance_machine_push bamp on bamp.attendance_machine_id = bam.id and is_push = 0 left join bm_worker bw on bw.id_number = bamp.id_number where bam.is_active = 1 and bam.attendance_machine_id = ? and bamp.id_number is not null limit 5
2023-12-07 15:29:36,964 [http-nio-8085-exec-1] ==> Parameters: MKE1234600038(String)
2023-12-07 15:29:37,082 [http-nio-8085-exec-1] <== Total: 0
2023-12-07 15:29:42,528 [http-nio-8085-exec-3] ==> Preparing: select bam.id, bamp.id_number as idNumber, bw.name, operate, face_base64 as faceImg, face_path as facePath from bm_attendance_machine bam left join bm_attendance_machine_push bamp on bamp.attendance_machine_id = bam.id and is_push = 0 left join bm_worker bw on bw.id_number = bamp.id_number where bam.is_active = 1 and bam.attendance_machine_id = ? and bamp.id_number is not null limit 5
2023-12-07 15:29:42,528 [http-nio-8085-exec-3] ==> Parameters: MKE1234600038(String)
2023-12-07 15:29:42,626 [http-nio-8085-exec-3] <== Total: 0
2023-12-07 15:29:46,870 [http-nio-8085-exec-6] ==> Preparing: select bam.id, bamp.id_number as idNumber, bw.name, operate, face_base64 as faceImg, face_path as facePath from bm_attendance_machine bam left join bm_attendance_machine_push bamp on bamp.attendance_machine_id = bam.id and is_push = 0 left join bm_worker bw on bw.id_number = bamp.id_number where bam.is_active = 1 and bam.attendance_machine_id = ? and bamp.id_number is not null limit 5
2023-12-07 15:29:46,871 [http-nio-8085-exec-6] ==> Parameters: MKE1234600038(String)
2023-12-07 15:29:46,958 [http-nio-8085-exec-6] <== Total: 0
2023-12-07 15:29:52,129 [http-nio-8085-exec-5] ==> Preparing: select bam.id, bamp.id_number as idNumber, bw.name, operate, face_base64 as faceImg, face_path as facePath from bm_attendance_machine bam left join bm_attendance_machine_push bamp on bamp.attendance_machine_id = bam.id and is_push = 0 left join bm_worker bw on bw.id_number = bamp.id_number where bam.is_active = 1 and bam.attendance_machine_id = ? and bamp.id_number is not null limit 5
2023-12-07 15:29:52,129 [http-nio-8085-exec-5] ==> Parameters: MKE1234600038(String)
2023-12-07 15:29:52,190 [http-nio-8085-exec-5] <== Total: 0
2023-12-07 15:29:56,460 [http-nio-8085-exec-9] ==> Preparing: select bam.id, bamp.id_number as idNumber, bw.name, operate, face_base64 as faceImg, face_path as facePath from bm_attendance_machine bam left join bm_attendance_machine_push bamp on bamp.attendance_machine_id = bam.id and is_push = 0 left join bm_worker bw on bw.id_number = bamp.id_number where bam.is_active = 1 and bam.attendance_machine_id = ? and bamp.id_number is not null limit 5
2023-12-07 15:29:56,460 [http-nio-8085-exec-9] ==> Parameters: MKE1234600038(String)
2023-12-07 15:29:56,553 [http-nio-8085-exec-9] <== Total: 0
2023-12-07 15:30:01,896 [http-nio-8085-exec-7] ==> Preparing: select bam.id, bamp.id_number as idNumber, bw.name, operate, face_base64 as faceImg, face_path as facePath from bm_attendance_machine bam left join bm_attendance_machine_push bamp on bamp.attendance_machine_id = bam.id and is_push = 0 left join bm_worker bw on bw.id_number = bamp.id_number where bam.is_active = 1 and bam.attendance_machine_id = ? and bamp.id_number is not null limit 5
2023-12-07 15:30:01,896 [http-nio-8085-exec-7] ==> Parameters: MKE1234600038(String)
2023-12-07 15:30:01,967 [http-nio-8085-exec-7] <== Total: 0
2023-12-07 15:30:07,220 [http-nio-8085-exec-4] ==> Preparing: select bam.id, bamp.id_number as idNumber, bw.name, operate, face_base64 as faceImg, face_path as facePath from bm_attendance_machine bam left join bm_attendance_machine_push bamp on bamp.attendance_machine_id = bam.id and is_push = 0 left join bm_worker bw on bw.id_number = bamp.id_number where bam.is_active = 1 and bam.attendance_machine_id = ? and bamp.id_number is not null limit 5
2023-12-07 15:30:07,221 [http-nio-8085-exec-4] ==> Parameters: MKE1234600038(String)
2023-12-07 15:30:07,285 [http-nio-8085-exec-4] <== Total: 1
2023-12-07 15:30:07,286 [http-nio-8085-exec-4] ==> Preparing: update bm_attendance_machine_push set is_push = 1, push_content = ? where id_number = ? and attendance_machine_id = ? and operate = ?;
2023-12-07 15:30:07,288 [http-nio-8085-exec-4] ==> Parameters: C:bns:DATA UPDATE USERINFO PIN=341181200110111414 Name=张永识 Pri=0 Passwd=123456 Grp=0 Verify=15
C:bns:DATA UPDATE BIOPHOTO PIN=341181200110111414 Type=9 Format=1 Url=http://112.29.103.165:1616/file/9df2133c52ee44f8ab96805f058ebd94.jpg
C:bns:DATA UPDATE USERPIC PIN=341181200110111414 Type=9 Format=1 Url=http://112.29.103.165:1616/file/9df2133c52ee44f8ab96805f058ebd94.jpg
(String), 341181200110111414(String), 5(String), 1(Integer)
2023-12-07 15:30:07,435 [http-nio-8085-exec-4] <== Updates: 1
2023-12-07 15:30:08,749 [http-nio-8085-exec-1] ==> Preparing: select bam.id, bamp.id_number as idNumber, bw.name, operate, face_base64 as faceImg, face_path as facePath from bm_attendance_machine bam left join bm_attendance_machine_push bamp on bamp.attendance_machine_id = bam.id and is_push = 0 left join bm_worker bw on bw.id_number = bamp.id_number where bam.is_active = 1 and bam.attendance_machine_id = ? and bamp.id_number is not null limit 5
2023-12-07 15:30:08,749 [http-nio-8085-exec-1] ==> Parameters: MKE1234600038(String)
2023-12-07 15:30:08,830 [http-nio-8085-exec-1] <== Total: 0
2023-12-07 15:30:09,217 [http-nio-8085-exec-2] ==> Preparing: select bam.id, bamp.id_number as idNumber, bw.name, operate, face_base64 as faceImg, face_path as facePath from bm_attendance_machine bam left join bm_attendance_machine_push bamp on bamp.attendance_machine_id = bam.id and is_push = 0 left join bm_worker bw on bw.id_number = bamp.id_number where bam.is_active = 1 and bam.attendance_machine_id = ? and bamp.id_number is not null limit 5
2023-12-07 15:30:09,217 [http-nio-8085-exec-2] ==> Parameters: MKE1234600038(String)
2023-12-07 15:30:09,317 [http-nio-8085-exec-2] <== Total: 0
2023-12-07 15:30:10,646 [http-nio-8085-exec-3] ==> Preparing: select bam.id, bamp.id_number as idNumber, bw.name, operate, face_base64 as faceImg, face_path as facePath from bm_attendance_machine bam left join bm_attendance_machine_push bamp on bamp.attendance_machine_id = bam.id and is_push = 0 left join bm_worker bw on bw.id_number = bamp.id_number where bam.is_active = 1 and bam.attendance_machine_id = ? and bamp.id_number is not null limit 5
2023-12-07 15:30:10,646 [http-nio-8085-exec-3] ==> Parameters: MKE1234600038(String)
2023-12-07 15:30:10,727 [http-nio-8085-exec-3] <== Total: 0
2023-12-07 15:30:10,941 [http-nio-8085-exec-6] ==> Preparing: select bam.id, bamp.id_number as idNumber, bw.name, operate, face_base64 as faceImg, face_path as facePath from bm_attendance_machine bam left join bm_attendance_machine_push bamp on bamp.attendance_machine_id = bam.id and is_push = 0 left join bm_worker bw on bw.id_number = bamp.id_number where bam.is_active = 1 and bam.attendance_machine_id = ? and bamp.id_number is not null limit 5
2023-12-07 15:30:10,941 [http-nio-8085-exec-6] ==> Parameters: MKE1234600038(String)
2023-12-07 15:30:11,030 [http-nio-8085-exec-6] <== Total: 0
2023-12-07 15:30:12,278 [http-nio-8085-exec-5] ==> Preparing: select bam.id, bamp.id_number as idNumber, bw.name, operate, face_base64 as faceImg, face_path as facePath from bm_attendance_machine bam left join bm_attendance_machine_push bamp on bamp.attendance_machine_id = bam.id and is_push = 0 left join bm_worker bw on bw.id_number = bamp.id_number where bam.is_active = 1 and bam.attendance_machine_id = ? and bamp.id_number is not null limit 5
2023-12-07 15:30:12,278 [http-nio-8085-exec-5] ==> Parameters: MKE1234600038(String)
2023-12-07 15:30:12,369 [http-nio-8085-exec-5] <== Total: 0
2023-12-07 15:30:13,605 [http-nio-8085-exec-9] ==> Preparing: select bam.id, bamp.id_number as idNumber, bw.name, operate, face_base64 as faceImg, face_path as facePath from bm_attendance_machine bam left join bm_attendance_machine_push bamp on bamp.attendance_machine_id = bam.id and is_push = 0 left join bm_worker bw on bw.id_number = bamp.id_number where bam.is_active = 1 and bam.attendance_machine_id = ? and bamp.id_number is not null limit 5
2023-12-07 15:30:13,606 [http-nio-8085-exec-9] ==> Parameters: MKE1234600038(String)
2023-12-07 15:30:13,681 [http-nio-8085-exec-9] <== Total: 0
2023-12-07 15:30:16,039 [http-nio-8085-exec-7] ==> Preparing: select bam.id, bamp.id_number as idNumber, bw.name, operate, face_base64 as faceImg, face_path as facePath from bm_attendance_machine bam left join bm_attendance_machine_push bamp on bamp.attendance_machine_id = bam.id and is_push = 0 left join bm_worker bw on bw.id_number = bamp.id_number where bam.is_active = 1 and bam.attendance_machine_id = ? and bamp.id_number is not null limit 5
2023-12-07 15:30:16,040 [http-nio-8085-exec-7] ==> Parameters: MKE1234600038(String)
2023-12-07 15:30:16,136 [http-nio-8085-exec-7] <== Total: 0
2023-12-07 15:30:17,360 [http-nio-8085-exec-8] ==> Preparing: select bam.id, bamp.id_number as idNumber, bw.name, operate, face_base64 as faceImg, face_path as facePath from bm_attendance_machine bam left join bm_attendance_machine_push bamp on bamp.attendance_machine_id = bam.id and is_push = 0 left join bm_worker bw on bw.id_number = bamp.id_number where bam.is_active = 1 and bam.attendance_machine_id = ? and bamp.id_number is not null limit 5
2023-12-07 15:30:17,361 [http-nio-8085-exec-8] ==> Parameters: MKE1234600038(String)
2023-12-07 15:30:17,430 [http-nio-8085-exec-8] <== Total: 0
2023-12-07 15:30:19,806 [http-nio-8085-exec-4] ==> Preparing: select bam.id, bamp.id_number as idNumber, bw.name, operate, face_base64 as faceImg, face_path as facePath from bm_attendance_machine bam left join bm_attendance_machine_push bamp on bamp.attendance_machine_id = bam.id and is_push = 0 left join bm_worker bw on bw.id_number = bamp.id_number where bam.is_active = 1 and bam.attendance_machine_id = ? and bamp.id_number is not null limit 5
2023-12-07 15:30:19,806 [http-nio-8085-exec-4] ==> Parameters: MKE1234600038(String)
2023-12-07 15:30:19,919 [http-nio-8085-exec-4] <== Total: 0
2023-12-07 15:30:23,148 [http-nio-8085-exec-10] ==> Preparing: select bam.id, bamp.id_number as idNumber, bw.name, operate, face_base64 as faceImg, face_path as facePath from bm_attendance_machine bam left join bm_attendance_machine_push bamp on bamp.attendance_machine_id = bam.id and is_push = 0 left join bm_worker bw on bw.id_number = bamp.id_number where bam.is_active = 1 and bam.attendance_machine_id = ? and bamp.id_number is not null limit 5
2023-12-07 15:30:23,149 [http-nio-8085-exec-10] ==> Parameters: MKE1234600038(String)
2023-12-07 15:30:23,207 [http-nio-8085-exec-10] <== Total: 0
2023-12-07 15:30:25,450 [http-nio-8085-exec-1] ==> Preparing: select bam.id, bamp.id_number as idNumber, bw.name, operate, face_base64 as faceImg, face_path as facePath from bm_attendance_machine bam left join bm_attendance_machine_push bamp on bamp.attendance_machine_id = bam.id and is_push = 0 left join bm_worker bw on bw.id_number = bamp.id_number where bam.is_active = 1 and bam.attendance_machine_id = ? and bamp.id_number is not null limit 5
2023-12-07 15:30:25,452 [http-nio-8085-exec-1] ==> Parameters: MKE1234600038(String)
2023-12-07 15:30:25,544 [http-nio-8085-exec-1] <== Total: 0
2023-12-07 15:30:28,778 [http-nio-8085-exec-2] ==> Preparing: select bam.id, bamp.id_number as idNumber, bw.name, operate, face_base64 as faceImg, face_path as facePath from bm_attendance_machine bam left join bm_attendance_machine_push bamp on bamp.attendance_machine_id = bam.id and is_push = 0 left join bm_worker bw on bw.id_number = bamp.id_number where bam.is_active = 1 and bam.attendance_machine_id = ? and bamp.id_number is not null limit 5
2023-12-07 15:30:28,779 [http-nio-8085-exec-2] ==> Parameters: MKE1234600038(String)
2023-12-07 15:30:28,874 [http-nio-8085-exec-2] <== Total: 0
2023-12-07 15:30:32,109 [http-nio-8085-exec-3] ==> Preparing: select bam.id, bamp.id_number as idNumber, bw.name, operate, face_base64 as faceImg, face_path as facePath from bm_attendance_machine bam left join bm_attendance_machine_push bamp on bamp.attendance_machine_id = bam.id and is_push = 0 left join bm_worker bw on bw.id_number = bamp.id_number where bam.is_active = 1 and bam.attendance_machine_id = ? and bamp.id_number is not null limit 5
2023-12-07 15:30:32,111 [http-nio-8085-exec-3] ==> Parameters: MKE1234600038(String)
2023-12-07 15:30:32,208 [http-nio-8085-exec-3] <== Total: 0
2023-12-07 15:30:35,439 [http-nio-8085-exec-6] ==> Preparing: select bam.id, bamp.id_number as idNumber, bw.name, operate, face_base64 as faceImg, face_path as facePath from bm_attendance_machine bam left join bm_attendance_machine_push bamp on bamp.attendance_machine_id = bam.id and is_push = 0 left join bm_worker bw on bw.id_number = bamp.id_number where bam.is_active = 1 and bam.attendance_machine_id = ? and bamp.id_number is not null limit 5
2023-12-07 15:30:35,440 [http-nio-8085-exec-6] ==> Parameters: MKE1234600038(String)
2023-12-07 15:30:35,526 [http-nio-8085-exec-6] <== Total: 0
2023-12-07 15:30:39,770 [http-nio-8085-exec-5] ==> Preparing: select bam.id, bamp.id_number as idNumber, bw.name, operate, face_base64 as faceImg, face_path as facePath from bm_attendance_machine bam left join bm_attendance_machine_push bamp on bamp.attendance_machine_id = bam.id and is_push = 0 left join bm_worker bw on bw.id_number = bamp.id_number where bam.is_active = 1 and bam.attendance_machine_id = ? and bamp.id_number is not null limit 5
2023-12-07 15:30:39,771 [http-nio-8085-exec-5] ==> Parameters: MKE1234600038(String)
2023-12-07 15:30:39,850 [http-nio-8085-exec-5] <== Total: 0
2023-12-07 15:30:44,091 [http-nio-8085-exec-9] ==> Preparing: select bam.id, bamp.id_number as idNumber, bw.name, operate, face_base64 as faceImg, face_path as facePath from bm_attendance_machine bam left join bm_attendance_machine_push bamp on bamp.attendance_machine_id = bam.id and is_push = 0 left join bm_worker bw on bw.id_number = bamp.id_number where bam.is_active = 1 and bam.attendance_machine_id = ? and bamp.id_number is not null limit 5
2023-12-07 15:30:44,091 [http-nio-8085-exec-9] ==> Parameters: MKE1234600038(String)
2023-12-07 15:30:44,183 [http-nio-8085-exec-9] <== Total: 1
2023-12-07 15:30:44,184 [http-nio-8085-exec-9] ==> Preparing: update bm_attendance_machine_push set is_push = 1, push_content = ? where id_number = ? and attendance_machine_id = ? and operate = ?;
2023-12-07 15:30:44,184 [http-nio-8085-exec-9] ==> Parameters: C:bns:DATA UPDATE USERINFO PIN=341181200110111414 Name=张永识 Pri=0 Passwd=123456 Grp=0 Verify=15
C:bns:DATA UPDATE BIOPHOTO PIN=341181200110111414 Type=9 Format=1 Url=http://112.29.103.165:1616/file/ynRealName/face/9df2133c52ee44f8ab96805f058ebd94.jpg
C:bns:DATA UPDATE USERPIC PIN=341181200110111414 Type=9 Format=1 Url=http://112.29.103.165:1616/file/ynRealName/face/9df2133c52ee44f8ab96805f058ebd94.jpg
(String), 341181200110111414(String), 5(String), 1(Integer)
2023-12-07 15:30:44,347 [http-nio-8085-exec-9] <== Updates: 1
2023-12-07 15:30:44,899 [http-nio-8085-exec-8] ==> Preparing: select bam.id, bamp.id_number as idNumber, bw.name, operate, face_base64 as faceImg, face_path as facePath from bm_attendance_machine bam left join bm_attendance_machine_push bamp on bamp.attendance_machine_id = bam.id and is_push = 0 left join bm_worker bw on bw.id_number = bamp.id_number where bam.is_active = 1 and bam.attendance_machine_id = ? and bamp.id_number is not null limit 5
2023-12-07 15:30:44,900 [http-nio-8085-exec-8] ==> Parameters: MKE1234600038(String)
2023-12-07 15:30:44,992 [http-nio-8085-exec-8] <== Total: 0
2023-12-07 15:30:46,374 [http-nio-8085-exec-4] ==> Preparing: select bam.id, bamp.id_number as idNumber, bw.name, operate, face_base64 as faceImg, face_path as facePath from bm_attendance_machine bam left join bm_attendance_machine_push bamp on bamp.attendance_machine_id = bam.id and is_push = 0 left join bm_worker bw on bw.id_number = bamp.id_number where bam.is_active = 1 and bam.attendance_machine_id = ? and bamp.id_number is not null limit 5
2023-12-07 15:30:46,374 [http-nio-8085-exec-4] ==> Parameters: MKE1234600038(String)
2023-12-07 15:30:46,475 [http-nio-8085-exec-4] <== Total: 0
2023-12-07 15:30:46,706 [http-nio-8085-exec-10] ==> Preparing: select bam.id, bamp.id_number as idNumber, bw.name, operate, face_base64 as faceImg, face_path as facePath from bm_attendance_machine bam left join bm_attendance_machine_push bamp on bamp.attendance_machine_id = bam.id and is_push = 0 left join bm_worker bw on bw.id_number = bamp.id_number where bam.is_active = 1 and bam.attendance_machine_id = ? and bamp.id_number is not null limit 5
2023-12-07 15:30:46,707 [http-nio-8085-exec-10] ==> Parameters: MKE1234600038(String)
2023-12-07 15:30:46,812 [http-nio-8085-exec-10] <== Total: 0
2023-12-07 15:30:48,048 [http-nio-8085-exec-1] ==> Preparing: select bam.id, bamp.id_number as idNumber, bw.name, operate, face_base64 as faceImg, face_path as facePath from bm_attendance_machine bam left join bm_attendance_machine_push bamp on bamp.attendance_machine_id = bam.id and is_push = 0 left join bm_worker bw on bw.id_number = bamp.id_number where bam.is_active = 1 and bam.attendance_machine_id = ? and bamp.id_number is not null limit 5
2023-12-07 15:30:48,049 [http-nio-8085-exec-1] ==> Parameters: MKE1234600038(String)
2023-12-07 15:30:48,141 [http-nio-8085-exec-1] <== Total: 0
2023-12-07 15:30:48,355 [http-nio-8085-exec-2] ==> Preparing: select bam.id, bamp.id_number as idNumber, bw.name, operate, face_base64 as faceImg, face_path as facePath from bm_attendance_machine bam left join bm_attendance_machine_push bamp on bamp.attendance_machine_id = bam.id and is_push = 0 left join bm_worker bw on bw.id_number = bamp.id_number where bam.is_active = 1 and bam.attendance_machine_id = ? and bamp.id_number is not null limit 5
2023-12-07 15:30:48,356 [http-nio-8085-exec-2] ==> Parameters: MKE1234600038(String)
2023-12-07 15:30:48,452 [http-nio-8085-exec-2] <== Total: 0
2023-12-07 15:30:50,692 [http-nio-8085-exec-3] ==> Preparing: select bam.id, bamp.id_number as idNumber, bw.name, operate, face_base64 as faceImg, face_path as facePath from bm_attendance_machine bam left join bm_attendance_machine_push bamp on bamp.attendance_machine_id = bam.id and is_push = 0 left join bm_worker bw on bw.id_number = bamp.id_number where bam.is_active = 1 and bam.attendance_machine_id = ? and bamp.id_number is not null limit 5
2023-12-07 15:30:50,692 [http-nio-8085-exec-3] ==> Parameters: MKE1234600038(String)
2023-12-07 15:30:50,762 [http-nio-8085-exec-3] <== Total: 0
2023-12-07 15:30:52,994 [http-nio-8085-exec-6] ==> Preparing: select bam.id, bamp.id_number as idNumber, bw.name, operate, face_base64 as faceImg, face_path as facePath from bm_attendance_machine bam left join bm_attendance_machine_push bamp on bamp.attendance_machine_id = bam.id and is_push = 0 left join bm_worker bw on bw.id_number = bamp.id_number where bam.is_active = 1 and bam.attendance_machine_id = ? and bamp.id_number is not null limit 5
2023-12-07 15:30:52,994 [http-nio-8085-exec-6] ==> Parameters: MKE1234600038(String)
2023-12-07 15:30:53,070 [http-nio-8085-exec-6] <== Total: 0
2023-12-07 15:30:54,307 [http-nio-8085-exec-5] ==> Preparing: select bam.id, bamp.id_number as idNumber, bw.name, operate, face_base64 as faceImg, face_path as facePath from bm_attendance_machine bam left join bm_attendance_machine_push bamp on bamp.attendance_machine_id = bam.id and is_push = 0 left join bm_worker bw on bw.id_number = bamp.id_number where bam.is_active = 1 and bam.attendance_machine_id = ? and bamp.id_number is not null limit 5
2023-12-07 15:30:54,307 [http-nio-8085-exec-5] ==> Parameters: MKE1234600038(String)
2023-12-07 15:30:54,395 [http-nio-8085-exec-5] <== Total: 0
2023-12-07 15:30:56,669 [http-nio-8085-exec-9] ==> Preparing: select bam.id, bamp.id_number as idNumber, bw.name, operate, face_base64 as faceImg, face_path as facePath from bm_attendance_machine bam left join bm_attendance_machine_push bamp on bamp.attendance_machine_id = bam.id and is_push = 0 left join bm_worker bw on bw.id_number = bamp.id_number where bam.is_active = 1 and bam.attendance_machine_id = ? and bamp.id_number is not null limit 5
2023-12-07 15:30:56,670 [http-nio-8085-exec-9] ==> Parameters: MKE1234600038(String)
2023-12-07 15:30:56,748 [http-nio-8085-exec-9] <== Total: 0
2023-12-07 15:31:00,033 [http-nio-8085-exec-7] ==> Preparing: select bam.id, bamp.id_number as idNumber, bw.name, operate, face_base64 as faceImg, face_path as facePath from bm_attendance_machine bam left join bm_attendance_machine_push bamp on bamp.attendance_machine_id = bam.id and is_push = 0 left join bm_worker bw on bw.id_number = bamp.id_number where bam.is_active = 1 and bam.attendance_machine_id = ? and bamp.id_number is not null limit 5
2023-12-07 15:31:00,034 [http-nio-8085-exec-7] ==> Parameters: MKE1234600038(String)
2023-12-07 15:31:00,127 [http-nio-8085-exec-7] <== Total: 0
2023-12-07 15:31:02,405 [http-nio-8085-exec-8] ==> Preparing: select bam.id, bamp.id_number as idNumber, bw.name, operate, face_base64 as faceImg, face_path as facePath from bm_attendance_machine bam left join bm_attendance_machine_push bamp on bamp.attendance_machine_id = bam.id and is_push = 0 left join bm_worker bw on bw.id_number = bamp.id_number where bam.is_active = 1 and bam.attendance_machine_id = ? and bamp.id_number is not null limit 5
2023-12-07 15:31:02,406 [http-nio-8085-exec-8] ==> Parameters: MKE1234600038(String)
2023-12-07 15:31:02,486 [http-nio-8085-exec-8] <== Total: 0
2023-12-07 15:31:05,762 [http-nio-8085-exec-4] ==> Preparing: select bam.id, bamp.id_number as idNumber, bw.name, operate, face_base64 as faceImg, face_path as facePath from bm_attendance_machine bam left join bm_attendance_machine_push bamp on bamp.attendance_machine_id = bam.id and is_push = 0 left join bm_worker bw on bw.id_number = bamp.id_number where bam.is_active = 1 and bam.attendance_machine_id = ? and bamp.id_number is not null limit 5
2023-12-07 15:31:05,762 [http-nio-8085-exec-4] ==> Parameters: MKE1234600038(String)
2023-12-07 15:31:05,880 [http-nio-8085-exec-4] <== Total: 0
2023-12-07 15:31:09,150 [http-nio-8085-exec-10] ==> Preparing: select bam.id, bamp.id_number as idNumber, bw.name, operate, face_base64 as faceImg, face_path as facePath from bm_attendance_machine bam left join bm_attendance_machine_push bamp on bamp.attendance_machine_id = bam.id and is_push = 0 left join bm_worker bw on bw.id_number = bamp.id_number where bam.is_active = 1 and bam.attendance_machine_id = ? and bamp.id_number is not null limit 5
2023-12-07 15:31:09,151 [http-nio-8085-exec-10] ==> Parameters: MKE1234600038(String)
2023-12-07 15:31:09,260 [http-nio-8085-exec-10] <== Total: 0
2023-12-07 15:31:12,565 [http-nio-8085-exec-1] ==> Preparing: select bam.id, bamp.id_number as idNumber, bw.name, operate, face_base64 as faceImg, face_path as facePath from bm_attendance_machine bam left join bm_attendance_machine_push bamp on bamp.attendance_machine_id = bam.id and is_push = 0 left join bm_worker bw on bw.id_number = bamp.id_number where bam.is_active = 1 and bam.attendance_machine_id = ? and bamp.id_number is not null limit 5
2023-12-07 15:31:12,566 [http-nio-8085-exec-1] ==> Parameters: MKE1234600038(String)
2023-12-07 15:31:12,677 [http-nio-8085-exec-1] <== Total: 0
2023-12-07 15:31:17,002 [http-nio-8085-exec-2] ==> Preparing: select bam.id, bamp.id_number as idNumber, bw.name, operate, face_base64 as faceImg, face_path as facePath from bm_attendance_machine bam left join bm_attendance_machine_push bamp on bamp.attendance_machine_id = bam.id and is_push = 0 left join bm_worker bw on bw.id_number = bamp.id_number where bam.is_active = 1 and bam.attendance_machine_id = ? and bamp.id_number is not null limit 5
2023-12-07 15:31:17,003 [http-nio-8085-exec-2] ==> Parameters: MKE1234600038(String)
2023-12-07 15:31:17,084 [http-nio-8085-exec-2] <== Total: 0
2023-12-07 15:31:20,619 [http-nio-8085-exec-5] ==> Preparing: select bam.id, bamp.id_number as idNumber, bw.name, operate, face_base64 as faceImg, face_path as facePath from bm_attendance_machine bam left join bm_attendance_machine_push bamp on bamp.attendance_machine_id = bam.id and is_push = 0 left join bm_worker bw on bw.id_number = bamp.id_number where bam.is_active = 1 and bam.attendance_machine_id = ? and bamp.id_number is not null limit 5
2023-12-07 15:31:20,620 [http-nio-8085-exec-5] ==> Parameters: MKE1234600038(String)
2023-12-07 15:31:20,730 [http-nio-8085-exec-5] <== Total: 0
2023-12-07 15:31:20,731 [http-nio-8085-exec-6] ==> Preparing: SELECT bw.NAME,bw.id_number AS idNumber,bw.post_id as postId,ein_status as einStatus, bsc.pro_id as proId,bsc.sub_id as subId,btur.team_id as teamId,bwc.id as contractId FROM bm_worker bw LEFT JOIN t_dict t ON t.id = bw.post_id AND t.is_active = 1 left join bm_team_user_relation btur on btur.id_number = bw.id_number and btur.is_active = 1 left join bm_sub_relation bsr on bsr.value = btur.team_id and bsr.is_active = 1 and bsr.type = 3 LEFT JOIN bm_sub_contract bsc ON bsc.id = bsr.sub_contract_id and bsc.is_active = 1 left join bm_worker_contract bwc on bwc.idCard = bw.id_number and bwc.is_active = 1 WHERE bw.IS_ACTIVE = 1 and bw.id_number = ? GROUP BY bw.id_number
2023-12-07 15:31:20,732 [http-nio-8085-exec-6] ==> Parameters: 341181200110111414(String)
2023-12-07 15:31:20,815 [http-nio-8085-exec-6] <== Total: 0
2023-12-07 15:31:20,816 [http-nio-8085-exec-6] ==> Preparing: insert into fc_face_contrast(IMEI,upload_id,ID_NUMBER,PRO_ID,CURRENT_DAY,ADD_TIME,PHOTO_PATH,attendance_type,lon,lat) values(?,?,?,?,?,?,?,?,?,?)
2023-12-07 15:31:20,817 [http-nio-8085-exec-6] ==> Parameters: MKE1234600038(String), 0(String), 341181200110111414(String), null, 2023-12-07(String), 2023-12-07 15:31:20(String), ynRealName/attendanceMachine/2023/12/07/1701934280614.jpg(String), 1(String), null, null
2023-12-07 15:31:20,948 [http-nio-8085-exec-6] <== Updates: 1
2023-12-07 15:31:25,016 [http-nio-8085-exec-9] ==> Preparing: select bam.id, bamp.id_number as idNumber, bw.name, operate, face_base64 as faceImg, face_path as facePath from bm_attendance_machine bam left join bm_attendance_machine_push bamp on bamp.attendance_machine_id = bam.id and is_push = 0 left join bm_worker bw on bw.id_number = bamp.id_number where bam.is_active = 1 and bam.attendance_machine_id = ? and bamp.id_number is not null limit 5
2023-12-07 15:31:25,016 [http-nio-8085-exec-9] ==> Parameters: MKE1234600038(String)
2023-12-07 15:31:25,175 [http-nio-8085-exec-9] <== Total: 0
2023-12-07 15:31:29,433 [http-nio-8085-exec-7] ==> Preparing: select bam.id, bamp.id_number as idNumber, bw.name, operate, face_base64 as faceImg, face_path as facePath from bm_attendance_machine bam left join bm_attendance_machine_push bamp on bamp.attendance_machine_id = bam.id and is_push = 0 left join bm_worker bw on bw.id_number = bamp.id_number where bam.is_active = 1 and bam.attendance_machine_id = ? and bamp.id_number is not null limit 5
2023-12-07 15:31:29,433 [http-nio-8085-exec-7] ==> Parameters: MKE1234600038(String)
2023-12-07 15:31:29,535 [http-nio-8085-exec-7] <== Total: 0
2023-12-07 15:31:36,279 [http-nio-8085-exec-4] ==> Preparing: select bam.id, bamp.id_number as idNumber, bw.name, operate, face_base64 as faceImg, face_path as facePath from bm_attendance_machine bam left join bm_attendance_machine_push bamp on bamp.attendance_machine_id = bam.id and is_push = 0 left join bm_worker bw on bw.id_number = bamp.id_number where bam.is_active = 1 and bam.attendance_machine_id = ? and bamp.id_number is not null limit 5
2023-12-07 15:31:36,280 [http-nio-8085-exec-4] ==> Parameters: MKE1234600038(String)
2023-12-07 15:31:36,360 [http-nio-8085-exec-4] <== Total: 0
2023-12-07 15:31:40,621 [http-nio-8085-exec-10] ==> Preparing: select bam.id, bamp.id_number as idNumber, bw.name, operate, face_base64 as faceImg, face_path as facePath from bm_attendance_machine bam left join bm_attendance_machine_push bamp on bamp.attendance_machine_id = bam.id and is_push = 0 left join bm_worker bw on bw.id_number = bamp.id_number where bam.is_active = 1 and bam.attendance_machine_id = ? and bamp.id_number is not null limit 5
2023-12-07 15:31:40,622 [http-nio-8085-exec-10] ==> Parameters: MKE1234600038(String)
2023-12-07 15:31:40,739 [http-nio-8085-exec-10] <== Total: 0
2023-12-07 15:31:46,028 [http-nio-8085-exec-1] ==> Preparing: select bam.id, bamp.id_number as idNumber, bw.name, operate, face_base64 as faceImg, face_path as facePath from bm_attendance_machine bam left join bm_attendance_machine_push bamp on bamp.attendance_machine_id = bam.id and is_push = 0 left join bm_worker bw on bw.id_number = bamp.id_number where bam.is_active = 1 and bam.attendance_machine_id = ? and bamp.id_number is not null limit 5
2023-12-07 15:31:46,029 [http-nio-8085-exec-1] ==> Parameters: MKE1234600038(String)
2023-12-07 15:31:46,133 [http-nio-8085-exec-1] <== Total: 0
2023-12-07 15:31:50,392 [http-nio-8085-exec-2] ==> Preparing: select bam.id, bamp.id_number as idNumber, bw.name, operate, face_base64 as faceImg, face_path as facePath from bm_attendance_machine bam left join bm_attendance_machine_push bamp on bamp.attendance_machine_id = bam.id and is_push = 0 left join bm_worker bw on bw.id_number = bamp.id_number where bam.is_active = 1 and bam.attendance_machine_id = ? and bamp.id_number is not null limit 5
2023-12-07 15:31:50,393 [http-nio-8085-exec-2] ==> Parameters: MKE1234600038(String)
2023-12-07 15:31:50,472 [http-nio-8085-exec-2] <== Total: 0
2023-12-07 15:31:55,728 [http-nio-8085-exec-3] ==> Preparing: select bam.id, bamp.id_number as idNumber, bw.name, operate, face_base64 as faceImg, face_path as facePath from bm_attendance_machine bam left join bm_attendance_machine_push bamp on bamp.attendance_machine_id = bam.id and is_push = 0 left join bm_worker bw on bw.id_number = bamp.id_number where bam.is_active = 1 and bam.attendance_machine_id = ? and bamp.id_number is not null limit 5
2023-12-07 15:31:55,728 [http-nio-8085-exec-3] ==> Parameters: MKE1234600038(String)
2023-12-07 15:31:55,819 [http-nio-8085-exec-3] <== Total: 0
2023-12-07 15:32:01,055 [http-nio-8085-exec-5] ==> Preparing: select bam.id, bamp.id_number as idNumber, bw.name, operate, face_base64 as faceImg, face_path as facePath from bm_attendance_machine bam left join bm_attendance_machine_push bamp on bamp.attendance_machine_id = bam.id and is_push = 0 left join bm_worker bw on bw.id_number = bamp.id_number where bam.is_active = 1 and bam.attendance_machine_id = ? and bamp.id_number is not null limit 5
2023-12-07 15:32:01,055 [http-nio-8085-exec-5] ==> Parameters: MKE1234600038(String)
2023-12-07 15:32:01,154 [http-nio-8085-exec-5] <== Total: 0
2023-12-07 15:32:05,402 [http-nio-8085-exec-6] ==> Preparing: select bam.id, bamp.id_number as idNumber, bw.name, operate, face_base64 as faceImg, face_path as facePath from bm_attendance_machine bam left join bm_attendance_machine_push bamp on bamp.attendance_machine_id = bam.id and is_push = 0 left join bm_worker bw on bw.id_number = bamp.id_number where bam.is_active = 1 and bam.attendance_machine_id = ? and bamp.id_number is not null limit 5
2023-12-07 15:32:05,402 [http-nio-8085-exec-6] ==> Parameters: MKE1234600038(String)
2023-12-07 15:32:05,485 [http-nio-8085-exec-6] <== Total: 0
2023-12-07 15:32:10,747 [http-nio-8085-exec-9] ==> Preparing: select bam.id, bamp.id_number as idNumber, bw.name, operate, face_base64 as faceImg, face_path as facePath from bm_attendance_machine bam left join bm_attendance_machine_push bamp on bamp.attendance_machine_id = bam.id and is_push = 0 left join bm_worker bw on bw.id_number = bamp.id_number where bam.is_active = 1 and bam.attendance_machine_id = ? and bamp.id_number is not null limit 5
2023-12-07 15:32:10,747 [http-nio-8085-exec-9] ==> Parameters: MKE1234600038(String)
2023-12-07 15:32:10,822 [http-nio-8085-exec-9] <== Total: 0
2023-12-07 15:32:15,970 [http-nio-8085-exec-7] ==> Preparing: select bam.id, bamp.id_number as idNumber, bw.name, operate, face_base64 as faceImg, face_path as facePath from bm_attendance_machine bam left join bm_attendance_machine_push bamp on bamp.attendance_machine_id = bam.id and is_push = 0 left join bm_worker bw on bw.id_number = bamp.id_number where bam.is_active = 1 and bam.attendance_machine_id = ? and bamp.id_number is not null limit 5
2023-12-07 15:32:15,971 [http-nio-8085-exec-7] ==> Parameters: MKE1234600038(String)
2023-12-07 15:32:16,082 [http-nio-8085-exec-7] <== Total: 0
2023-12-07 15:32:20,323 [http-nio-8085-exec-4] ==> Preparing: select bam.id, bamp.id_number as idNumber, bw.name, operate, face_base64 as faceImg, face_path as facePath from bm_attendance_machine bam left join bm_attendance_machine_push bamp on bamp.attendance_machine_id = bam.id and is_push = 0 left join bm_worker bw on bw.id_number = bamp.id_number where bam.is_active = 1 and bam.attendance_machine_id = ? and bamp.id_number is not null limit 5
2023-12-07 15:32:20,324 [http-nio-8085-exec-4] ==> Parameters: MKE1234600038(String)
2023-12-07 15:32:20,425 [http-nio-8085-exec-4] <== Total: 0
2023-12-07 15:32:25,667 [http-nio-8085-exec-10] ==> Preparing: select bam.id, bamp.id_number as idNumber, bw.name, operate, face_base64 as faceImg, face_path as facePath from bm_attendance_machine bam left join bm_attendance_machine_push bamp on bamp.attendance_machine_id = bam.id and is_push = 0 left join bm_worker bw on bw.id_number = bamp.id_number where bam.is_active = 1 and bam.attendance_machine_id = ? and bamp.id_number is not null limit 5
2023-12-07 15:32:25,667 [http-nio-8085-exec-10] ==> Parameters: MKE1234600038(String)
2023-12-07 15:32:25,745 [http-nio-8085-exec-10] <== Total: 0

316
mvnw vendored Normal file
View File

@ -0,0 +1,316 @@
#!/bin/sh
# ----------------------------------------------------------------------------
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
# ----------------------------------------------------------------------------
# ----------------------------------------------------------------------------
# Maven Start Up Batch script
#
# Required ENV vars:
# ------------------
# JAVA_HOME - location of a JDK home dir
#
# Optional ENV vars
# -----------------
# M2_HOME - location of maven2's installed home dir
# MAVEN_OPTS - parameters passed to the Java VM when running Maven
# e.g. to debug Maven itself, use
# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
# MAVEN_SKIP_RC - flag to disable loading of mavenrc files
# ----------------------------------------------------------------------------
if [ -z "$MAVEN_SKIP_RC" ] ; then
if [ -f /usr/local/etc/mavenrc ] ; then
. /usr/local/etc/mavenrc
fi
if [ -f /etc/mavenrc ] ; then
. /etc/mavenrc
fi
if [ -f "$HOME/.mavenrc" ] ; then
. "$HOME/.mavenrc"
fi
fi
# OS specific support. $var _must_ be set to either true or false.
cygwin=false;
darwin=false;
mingw=false
case "`uname`" in
CYGWIN*) cygwin=true ;;
MINGW*) mingw=true;;
Darwin*) darwin=true
# Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home
# See https://developer.apple.com/library/mac/qa/qa1170/_index.html
if [ -z "$JAVA_HOME" ]; then
if [ -x "/usr/libexec/java_home" ]; then
export JAVA_HOME="`/usr/libexec/java_home`"
else
export JAVA_HOME="/Library/Java/Home"
fi
fi
;;
esac
if [ -z "$JAVA_HOME" ] ; then
if [ -r /etc/gentoo-release ] ; then
JAVA_HOME=`java-config --jre-home`
fi
fi
if [ -z "$M2_HOME" ] ; then
## resolve links - $0 may be a link to maven's home
PRG="$0"
# need this for relative symlinks
while [ -h "$PRG" ] ; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
PRG="$link"
else
PRG="`dirname "$PRG"`/$link"
fi
done
saveddir=`pwd`
M2_HOME=`dirname "$PRG"`/..
# make it fully qualified
M2_HOME=`cd "$M2_HOME" && pwd`
cd "$saveddir"
# echo Using m2 at $M2_HOME
fi
# For Cygwin, ensure paths are in UNIX format before anything is touched
if $cygwin ; then
[ -n "$M2_HOME" ] &&
M2_HOME=`cygpath --unix "$M2_HOME"`
[ -n "$JAVA_HOME" ] &&
JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
[ -n "$CLASSPATH" ] &&
CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
fi
# For Mingw, ensure paths are in UNIX format before anything is touched
if $mingw ; then
[ -n "$M2_HOME" ] &&
M2_HOME="`(cd "$M2_HOME"; pwd)`"
[ -n "$JAVA_HOME" ] &&
JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`"
fi
if [ -z "$JAVA_HOME" ]; then
javaExecutable="`which javac`"
if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then
# readlink(1) is not available as standard on Solaris 10.
readLink=`which readlink`
if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then
if $darwin ; then
javaHome="`dirname \"$javaExecutable\"`"
javaExecutable="`cd \"$javaHome\" && pwd -P`/javac"
else
javaExecutable="`readlink -f \"$javaExecutable\"`"
fi
javaHome="`dirname \"$javaExecutable\"`"
javaHome=`expr "$javaHome" : '\(.*\)/bin'`
JAVA_HOME="$javaHome"
export JAVA_HOME
fi
fi
fi
if [ -z "$JAVACMD" ] ; then
if [ -n "$JAVA_HOME" ] ; then
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
# IBM's JDK on AIX uses strange locations for the executables
JAVACMD="$JAVA_HOME/jre/sh/java"
else
JAVACMD="$JAVA_HOME/bin/java"
fi
else
JAVACMD="`\\unset -f command; \\command -v java`"
fi
fi
if [ ! -x "$JAVACMD" ] ; then
echo "Error: JAVA_HOME is not defined correctly." >&2
echo " We cannot execute $JAVACMD" >&2
exit 1
fi
if [ -z "$JAVA_HOME" ] ; then
echo "Warning: JAVA_HOME environment variable is not set."
fi
CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher
# traverses directory structure from process work directory to filesystem root
# first directory with .mvn subdirectory is considered project base directory
find_maven_basedir() {
if [ -z "$1" ]
then
echo "Path not specified to find_maven_basedir"
return 1
fi
basedir="$1"
wdir="$1"
while [ "$wdir" != '/' ] ; do
if [ -d "$wdir"/.mvn ] ; then
basedir=$wdir
break
fi
# workaround for JBEAP-8937 (on Solaris 10/Sparc)
if [ -d "${wdir}" ]; then
wdir=`cd "$wdir/.."; pwd`
fi
# end of workaround
done
echo "${basedir}"
}
# concatenates all lines of a file
concat_lines() {
if [ -f "$1" ]; then
echo "$(tr -s '\n' ' ' < "$1")"
fi
}
BASE_DIR=`find_maven_basedir "$(pwd)"`
if [ -z "$BASE_DIR" ]; then
exit 1;
fi
##########################################################################################
# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
# This allows using the maven wrapper in projects that prohibit checking in binary data.
##########################################################################################
if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then
if [ "$MVNW_VERBOSE" = true ]; then
echo "Found .mvn/wrapper/maven-wrapper.jar"
fi
else
if [ "$MVNW_VERBOSE" = true ]; then
echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..."
fi
if [ -n "$MVNW_REPOURL" ]; then
jarUrl="$MVNW_REPOURL/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar"
else
jarUrl="https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar"
fi
while IFS="=" read key value; do
case "$key" in (wrapperUrl) jarUrl="$value"; break ;;
esac
done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties"
if [ "$MVNW_VERBOSE" = true ]; then
echo "Downloading from: $jarUrl"
fi
wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar"
if $cygwin; then
wrapperJarPath=`cygpath --path --windows "$wrapperJarPath"`
fi
if command -v wget > /dev/null; then
if [ "$MVNW_VERBOSE" = true ]; then
echo "Found wget ... using wget"
fi
if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then
wget "$jarUrl" -O "$wrapperJarPath" || rm -f "$wrapperJarPath"
else
wget --http-user=$MVNW_USERNAME --http-password=$MVNW_PASSWORD "$jarUrl" -O "$wrapperJarPath" || rm -f "$wrapperJarPath"
fi
elif command -v curl > /dev/null; then
if [ "$MVNW_VERBOSE" = true ]; then
echo "Found curl ... using curl"
fi
if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then
curl -o "$wrapperJarPath" "$jarUrl" -f
else
curl --user $MVNW_USERNAME:$MVNW_PASSWORD -o "$wrapperJarPath" "$jarUrl" -f
fi
else
if [ "$MVNW_VERBOSE" = true ]; then
echo "Falling back to using Java to download"
fi
javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java"
# For Cygwin, switch paths to Windows format before running javac
if $cygwin; then
javaClass=`cygpath --path --windows "$javaClass"`
fi
if [ -e "$javaClass" ]; then
if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
if [ "$MVNW_VERBOSE" = true ]; then
echo " - Compiling MavenWrapperDownloader.java ..."
fi
# Compiling the Java class
("$JAVA_HOME/bin/javac" "$javaClass")
fi
if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
# Running the downloader
if [ "$MVNW_VERBOSE" = true ]; then
echo " - Running MavenWrapperDownloader.java ..."
fi
("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR")
fi
fi
fi
fi
##########################################################################################
# End of extension
##########################################################################################
export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"}
if [ "$MVNW_VERBOSE" = true ]; then
echo $MAVEN_PROJECTBASEDIR
fi
MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS"
# For Cygwin, switch paths to Windows format before running java
if $cygwin; then
[ -n "$M2_HOME" ] &&
M2_HOME=`cygpath --path --windows "$M2_HOME"`
[ -n "$JAVA_HOME" ] &&
JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
[ -n "$CLASSPATH" ] &&
CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
[ -n "$MAVEN_PROJECTBASEDIR" ] &&
MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"`
fi
# Provide a "standardized" way to retrieve the CLI args that will
# work with both Windows and non-Windows executions.
MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@"
export MAVEN_CMD_LINE_ARGS
WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
exec "$JAVACMD" \
$MAVEN_OPTS \
$MAVEN_DEBUG_OPTS \
-classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \
"-Dmaven.home=${M2_HOME}" \
"-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \
${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@"

188
mvnw.cmd vendored Normal file
View File

@ -0,0 +1,188 @@
@REM ----------------------------------------------------------------------------
@REM Licensed to the Apache Software Foundation (ASF) under one
@REM or more contributor license agreements. See the NOTICE file
@REM distributed with this work for additional information
@REM regarding copyright ownership. The ASF licenses this file
@REM to you under the Apache License, Version 2.0 (the
@REM "License"); you may not use this file except in compliance
@REM with the License. You may obtain a copy of the License at
@REM
@REM https://www.apache.org/licenses/LICENSE-2.0
@REM
@REM Unless required by applicable law or agreed to in writing,
@REM software distributed under the License is distributed on an
@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@REM KIND, either express or implied. See the License for the
@REM specific language governing permissions and limitations
@REM under the License.
@REM ----------------------------------------------------------------------------
@REM ----------------------------------------------------------------------------
@REM Maven Start Up Batch script
@REM
@REM Required ENV vars:
@REM JAVA_HOME - location of a JDK home dir
@REM
@REM Optional ENV vars
@REM M2_HOME - location of maven2's installed home dir
@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands
@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a keystroke before ending
@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven
@REM e.g. to debug Maven itself, use
@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files
@REM ----------------------------------------------------------------------------
@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on'
@echo off
@REM set title of command window
title %0
@REM enable echoing by setting MAVEN_BATCH_ECHO to 'on'
@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO%
@REM set %HOME% to equivalent of $HOME
if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%")
@REM Execute a user defined script before this one
if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre
@REM check for pre script, once with legacy .bat ending and once with .cmd ending
if exist "%USERPROFILE%\mavenrc_pre.bat" call "%USERPROFILE%\mavenrc_pre.bat" %*
if exist "%USERPROFILE%\mavenrc_pre.cmd" call "%USERPROFILE%\mavenrc_pre.cmd" %*
:skipRcPre
@setlocal
set ERROR_CODE=0
@REM To isolate internal variables from possible post scripts, we use another setlocal
@setlocal
@REM ==== START VALIDATION ====
if not "%JAVA_HOME%" == "" goto OkJHome
echo.
echo Error: JAVA_HOME not found in your environment. >&2
echo Please set the JAVA_HOME variable in your environment to match the >&2
echo location of your Java installation. >&2
echo.
goto error
:OkJHome
if exist "%JAVA_HOME%\bin\java.exe" goto init
echo.
echo Error: JAVA_HOME is set to an invalid directory. >&2
echo JAVA_HOME = "%JAVA_HOME%" >&2
echo Please set the JAVA_HOME variable in your environment to match the >&2
echo location of your Java installation. >&2
echo.
goto error
@REM ==== END VALIDATION ====
:init
@REM Find the project base dir, i.e. the directory that contains the folder ".mvn".
@REM Fallback to current working directory if not found.
set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR%
IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir
set EXEC_DIR=%CD%
set WDIR=%EXEC_DIR%
:findBaseDir
IF EXIST "%WDIR%"\.mvn goto baseDirFound
cd ..
IF "%WDIR%"=="%CD%" goto baseDirNotFound
set WDIR=%CD%
goto findBaseDir
:baseDirFound
set MAVEN_PROJECTBASEDIR=%WDIR%
cd "%EXEC_DIR%"
goto endDetectBaseDir
:baseDirNotFound
set MAVEN_PROJECTBASEDIR=%EXEC_DIR%
cd "%EXEC_DIR%"
:endDetectBaseDir
IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig
@setlocal EnableExtensions EnableDelayedExpansion
for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a
@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS%
:endReadAdditionalConfig
SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe"
set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar"
set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar"
FOR /F "usebackq tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO (
IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B
)
@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
@REM This allows using the maven wrapper in projects that prohibit checking in binary data.
if exist %WRAPPER_JAR% (
if "%MVNW_VERBOSE%" == "true" (
echo Found %WRAPPER_JAR%
)
) else (
if not "%MVNW_REPOURL%" == "" (
SET DOWNLOAD_URL="%MVNW_REPOURL%/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar"
)
if "%MVNW_VERBOSE%" == "true" (
echo Couldn't find %WRAPPER_JAR%, downloading it ...
echo Downloading from: %DOWNLOAD_URL%
)
powershell -Command "&{"^
"$webclient = new-object System.Net.WebClient;"^
"if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^
"$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^
"}"^
"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"^
"}"
if "%MVNW_VERBOSE%" == "true" (
echo Finished downloading %WRAPPER_JAR%
)
)
@REM End of extension
@REM Provide a "standardized" way to retrieve the CLI args that will
@REM work with both Windows and non-Windows executions.
set MAVEN_CMD_LINE_ARGS=%*
%MAVEN_JAVA_EXE% ^
%JVM_CONFIG_MAVEN_PROPS% ^
%MAVEN_OPTS% ^
%MAVEN_DEBUG_OPTS% ^
-classpath %WRAPPER_JAR% ^
"-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" ^
%WRAPPER_LAUNCHER% %MAVEN_CONFIG% %*
if ERRORLEVEL 1 goto error
goto end
:error
set ERROR_CODE=1
:end
@endlocal & set ERROR_CODE=%ERROR_CODE%
if not "%MAVEN_SKIP_RC%"=="" goto skipRcPost
@REM check for post script, once with legacy .bat ending and once with .cmd ending
if exist "%USERPROFILE%\mavenrc_post.bat" call "%USERPROFILE%\mavenrc_post.bat"
if exist "%USERPROFILE%\mavenrc_post.cmd" call "%USERPROFILE%\mavenrc_post.cmd"
:skipRcPost
@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on'
if "%MAVEN_BATCH_PAUSE%"=="on" pause
if "%MAVEN_TERMINATE_CMD%"=="on" exit %ERROR_CODE%
cmd /C exit /B %ERROR_CODE%

124
pom.xml Normal file
View File

@ -0,0 +1,124 @@
<?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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.7.1</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.bonus</groupId>
<artifactId>YnAttendanceMachine</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>YnAttendanceMachine</name>
<description>Demo project for Spring Boot</description>
<properties>
<java.version>1.8</java.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>2.1.3</version>
</dependency>
<!-- redis jar -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
</dependency>
<!-- mysql -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<scope>runtime</scope>
</dependency>
<!-- mysql连接池druid -->
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid-spring-boot-starter</artifactId>
<version>1.1.9</version>
</dependency>
<!-- mybatis -->
<dependency>
<groupId>tk.mybatis</groupId>
<artifactId>mapper</artifactId>
<version>4.1.5</version>
</dependency>
<!--bean辅助-->
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.16.18</version>
<scope>provided</scope>
</dependency>
<!--jackson core-->
<dependency>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-core-asl</artifactId>
<version>1.9.13</version>
</dependency>
<!--jackson mapper-->
<dependency>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-mapper-asl</artifactId>
<version>1.9.13</version>
</dependency>
<!--日志-->
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjweaver</artifactId>
<version>1.9.6</version>
</dependency>
<!--日志-->
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger2</artifactId>
<version>2.8.0</version>
</dependency>
<!--mqtt-->
<dependency>
<groupId>org.eclipse.paho</groupId>
<artifactId>org.eclipse.paho.client.mqttv3</artifactId>
<version>1.2.0</version>
</dependency>
<!--gson-->
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.8.2</version>
</dependency>
<!--Hutool Java工具包-->
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-all</artifactId>
<version>5.4.0</version>
</dependency>
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<version>2.6</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.12.0</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>

View File

@ -0,0 +1,16 @@
package com.bonus.attendance;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
@SpringBootApplication(exclude= {DataSourceAutoConfiguration.class})
@MapperScan("com.bonus.attendance.*.dao")
public class AttApplication {
public static void main(String[] args) {
SpringApplication.run(AttApplication.class, args);
}
}

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,50 @@
package com.bonus.attendance.att.dao;
import com.bonus.attendance.att.entity.BasePersonBean;
import com.bonus.attendance.att.entity.FaceAttendanceBean;
import com.bonus.attendance.att.entity.PersonComprehensiveBean;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* 考勤机-数据访问层
* @author zys
*/
@Repository("attendanceMachineDao")
public interface AttendanceMachineDao {
/**
* 查询需要下发的人员
* @param sn
* @return
*/
List<PersonComprehensiveBean> selectAttendanceMachinePushList(String sn);
/**
* 修改推送状态
* @param list
*/
void updatePushStatus(List<PersonComprehensiveBean> list);
/**
* 添加考勤
* @param faceAttendanceBean
*/
void insertAttendance(FaceAttendanceBean faceAttendanceBean);
/**
* 查询人员信息
* @param idNumber
* @param date
* @return
*/
List<BasePersonBean> selectWorkPerson(@Param("idNumber") String idNumber,
@Param("date") String date);
/**
* 修改出入场信息
* @param personBean
*/
void uploadPersonEinStatus(BasePersonBean personBean);
}

View File

@ -0,0 +1,191 @@
package com.bonus.attendance.att.entity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.List;
/**
* 人员库
* @author zys
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class BasePersonBean {
/**
* 姓名
*/
private String name;
/**
* 身份证
*/
private String idNumber;
/**
* 性别
*/
private String sex;
/**
* 民族
*/
private String ethnic;
/**
* 出生日期
*/
private String birthday;
/**
* 家庭地址
*/
private String address;
/**
* 办证机关
*/
private String issueauthority;
/**
* 有效开始日期
*/
private String signDate;
/**
* 有效结束日期
*/
private String expiryDate;
/**
* 联系方式
*/
private String phone;
/**
* 文化程度
*/
private String cultrue;
/**
* 政治面貌
*/
private String politicalOutlook;
/**
* 家庭电话
*/
private String addressPhone;
/**
* 工种编号
*/
private String postId;
/**
* 工种名称
*/
private String postName;
/**
* 人员类型
*/
private String personType;
/**
* 工人技能
*/
private String workerSkill;
/**
* 重要人员
*/
private String importantPerson;
/**
* 紧急联系人
*/
private String urgentPerson;
/**
* 紧急联系人电话
*/
private String urgentPersonPhone;
/**
* 银行名称
*/
private String bankName;
/**
* 银行卡号
*/
private String bankCard;
/**
* 年龄
*/
private String age;
private String frontPhoto;
private String backPhoto;
private String faceFeature;
private byte[] faceFeatureByte;
/**
* 人脸照片
*/
private String facePhoto;
/**
* 签名照片
*/
private String aotoPhoto;
/**
* 关键字
*/
private String keyword;
private String proId;
private String proName;
private String subId;
private String subName;
private String teamId;
private String teamName;
private String einTime;
private int einStatus;
private int isTrain;
private int isContract;
private String isToWork;
private String isOffWork;
private String contractId;
private String lightStatus;
private String isFurloughPerson;
private String isEinStatus;
public BasePersonBean(String idNumber) {
this.idNumber = idNumber;
}
}

View File

@ -0,0 +1,317 @@
package com.bonus.attendance.att.entity;
import org.apache.commons.lang3.time.DateFormatUtils;
import java.lang.management.ManagementFactory;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.time.*;
import java.time.format.DateTimeFormatter;
import java.util.Calendar;
import java.util.Date;
import java.util.Locale;
/**
* 时间工具类
*
* @author zys
*/
public class DateUtils extends org.apache.commons.lang3.time.DateUtils
{
public static String YYYY = "yyyy";
public static String YYYY_MM = "yyyy-MM";
public static String YYYY_MM_DD = "yyyy-MM-dd";
public static String YYYYMMDDHHMMSS = "yyyyMMddHHmmss";
public static String YYYY_MM_DD_HH_MM_SS = "yyyy-MM-dd HH:mm:ss";
private static String[] parsePatterns = {
"yyyy-MM-dd", "yyyy-MM-dd HH:mm:ss", "yyyy-MM-dd HH:mm", "yyyy-MM",
"yyyy/MM/dd", "yyyy/MM/dd HH:mm:ss", "yyyy/MM/dd HH:mm", "yyyy/MM",
"yyyy.MM.dd", "yyyy.MM.dd HH:mm:ss", "yyyy.MM.dd HH:mm", "yyyy.MM"};
/**
* 获取当前Date型日期
*
* @return Date() 当前日期
*/
public static Date getNowDate()
{
return new Date();
}
/**
* 获取当前日期, 默认格式为yyyy-MM-dd
*
* @return String
*/
public static String getDate()
{
return dateTimeNow(YYYY_MM_DD);
}
public static final String getTime()
{
return dateTimeNow(YYYY_MM_DD_HH_MM_SS);
}
public static final String dateTimeNow()
{
return dateTimeNow(YYYYMMDDHHMMSS);
}
public static final String dateTimeNow(final String format)
{
return parseDateToStr(format, new Date());
}
public static final String dateTime(final Date date)
{
return parseDateToStr(YYYY_MM_DD, date);
}
public static final String parseDateToStr(final String format, final Date date)
{
return new SimpleDateFormat(format).format(date);
}
public static final Date dateTime(final String format, final String ts)
{
try
{
return new SimpleDateFormat(format).parse(ts);
}
catch (ParseException e)
{
throw new RuntimeException(e);
}
}
/**
* 日期路径 即年// 如2018/08/08
*/
public static final String datePath()
{
Date now = new Date();
return DateFormatUtils.format(now, "yyyy/MM/dd");
}
/**
* 日期路径 即年// 如20180808
*/
public static final String dateTime()
{
Date now = new Date();
return DateFormatUtils.format(now, "yyyyMMdd");
}
/**
* 日期型字符串转化为日期 格式
*/
public static Date parseDate(Object str)
{
if (str == null)
{
return null;
}
try
{
return parseDate(str.toString(), parsePatterns);
}
catch (ParseException e)
{
return null;
}
}
/**
* 获取服务器启动时间
*/
public static Date getServerStartDate()
{
long time = ManagementFactory.getRuntimeMXBean().getStartTime();
return new Date(time);
}
/**
* 计算两个时间差
*/
public static String getDatePoor(Date endDate, Date nowDate)
{
long nd = 1000 * 24 * 60 * 60;
long nh = 1000 * 60 * 60;
long nm = 1000 * 60;
// long ns = 1000;
// 获得两个时间的毫秒时间差异
long diff = endDate.getTime() - nowDate.getTime();
// 计算差多少天
long day = diff / nd;
// 计算差多少小时
long hour = diff % nd / nh;
// 计算差多少分钟
long min = diff % nd % nh / nm;
// 计算差多少秒//输出结果
// long sec = diff % nd % nh % nm / ns;
return day + "" + hour + "小时" + min + "分钟";
}
/**
* 增加 LocalDateTime ==> Date
*/
public static Date toDate(LocalDateTime temporalAccessor)
{
ZonedDateTime zdt = temporalAccessor.atZone(ZoneId.systemDefault());
return Date.from(zdt.toInstant());
}
/**
* 增加 LocalDate ==> Date
*/
public static Date toDate(LocalDate temporalAccessor)
{
LocalDateTime localDateTime = LocalDateTime.of(temporalAccessor, LocalTime.of(0, 0, 0));
ZonedDateTime zdt = localDateTime.atZone(ZoneId.systemDefault());
return Date.from(zdt.toInstant());
}
/**
* 获取当前时间的年份
*
* @return
*/
public static String getNowYear() {
return format(new Date(), "yyyy");
}
/**
* 获取当前月份
* @return
*/
public static String getNowMonths() {
return format(new Date(),"MM");
}
public static String getNowDay() {
return format(new Date(),"dd");
}
public static String getNowHour() {
return format(new Date(),"HH");
}
/**
* 格式化 时间
*
* @param format
* @return
*/
public static String format(Date d, String format) {
SimpleDateFormat df = new SimpleDateFormat(format);
return df.format(d);
}
/**
* 根据当前的月份来获取对应的季度
* @param months
* @return
*/
public static String getQuarter(String months){
int month = Integer.parseInt(months);
String quarter="";
if (month >= 1 && month <= 3) {
quarter = "1";
} else if (month >= 4 && month <= 6) {
quarter = "2";
} else if (month >= 7 && month <= 9) {
quarter = "3";
} else if (month >= 10 && month <= 12) {
quarter = "4";
}
return quarter;
}
/**
* 获取本日所在周的周一周日
* @return
*/
public static String getMondayAndSunday(){
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
Calendar c=Calendar.getInstance(Locale.CHINA);
c.setFirstDayOfWeek(Calendar.MONDAY);
//当前时间貌似多余其实是为了所有可能的系统一致
c.setTimeInMillis(System.currentTimeMillis());
System.err.println("当前时间:"+format.format(c.getTime()));
c.set(Calendar.DAY_OF_WEEK, Calendar.MONDAY);
System.err.println("周一时间:"+format.format(c.getTime()));
String monday = format.format(c.getTime()) + " 00:00:00";
c.set(Calendar.DAY_OF_WEEK, Calendar.SUNDAY);
System.err.println("周日时间:"+format.format(c.getTime()));
String sunday = format.format(c.getTime()) + " 23:59:59";
return monday + "," + sunday;
}
/**
* 获取本日所在月的第一天最后一天
* @return
*/
public static String getFirstMonthAndLastMonth(){
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
String firstday, lastday;
// 获取前月的第一天
Calendar cale = Calendar.getInstance();
cale.add(Calendar.MONTH, 0);
cale.set(Calendar.DAY_OF_MONTH, 1);
firstday = format.format(cale.getTime()) + " 00:00:00";
// 获取前月的最后一天
cale = Calendar.getInstance();
cale.add(Calendar.MONTH, 1);
cale.set(Calendar.DAY_OF_MONTH, 0);
lastday = format.format(cale.getTime()) + " 23:59:59";
return firstday + "," + lastday ;
}
public static boolean dateCompare(String time, String nowTime){
DateTimeFormatter dtf = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
LocalDateTime localTime=LocalDateTime.parse(time,dtf);
LocalDateTime localNowTime=LocalDateTime.parse(nowTime,dtf);
return localNowTime.isAfter(localTime);
}
//截取字符串之前的值
public static String subStringfront(String str,String param){
return str.substring(0, str.indexOf(param));
}
//截取字符串之后的值
public static String subStringAfter(String str, String param){
return str.substring(str.indexOf(param));
}
public static int getDifferTime(String startTime,String endTime){
int time = 0;
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm");
try {
Date date1 = simpleDateFormat.parse(startTime);
Date date2 = simpleDateFormat.parse(endTime);
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
long currentTime =System.currentTimeMillis();
//从对象中拿到时间
long d1 = df.parse(df.format(date1)).getTime();
long d2 = df.parse(df.format(date2)).getTime();
time = (int) ((d2-d1)/1000/60);
} catch (ParseException e) {
e.printStackTrace();
}
return time;
}
}

View File

@ -0,0 +1,24 @@
package com.bonus.attendance.att.entity;
import lombok.Data;
/**
* 考勤
* @author zys
*/
@Data
public class FaceAttendanceBean {
private String name;
private String idNumber;
private String proId;
private String imei;
private String userId;
private String currentDay;
private String addTime;
private String photoPath;
private String uploadType;
private String lon;
private String lat;
private String isRedAtt;
}

View File

@ -0,0 +1,42 @@
package com.bonus.attendance.att.entity;
import lombok.Data;
/**
* 考勤机
* @author zys
*/
@Data
public class PersonComprehensiveBean {
/**
* 身份证
*/
private String id;
/**
* 姓名
*/
private String name;
/**
* 身份证
*/
private String idNumber;
private String attendanceMachineId;
private Integer operate;
/**
* 人脸数据
*/
private String faceImg;
/**
* 人脸照片
*/
private String facePath;
private String content;
}

View File

@ -0,0 +1,16 @@
package com.bonus.attendance;
import com.bonus.attendance.att.entity.DateUtils;
public class test {
public static void main(String[] args) {
String str = "PIN=20231103154138-00003.jpg\n" +
"SN=CIZT220760038\n" +
"size=47056\n" +
"CMD=uploadphoto";
String idNumber = DateUtils.subStringAfter(DateUtils.subStringfront(str, ".jpg"), "-").replace("-", "");
String SN = DateUtils.subStringAfter(DateUtils.subStringfront(str, "size"), "SN=").replace("SN=", "");
System.out.println(SN);
}
}

View File

@ -0,0 +1,33 @@
server.port=8085
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.url=jdbc:mysql://192.168.1.4:3306/ynRealName?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false
spring.datasource.username=root
spring.datasource.password=Ynsmz@186mysql!
#spring.datasource.url=jdbc:mysql://192.168.0.14:1103/ynrealname?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false
#spring.datasource.username=root
#spring.datasource.password=dszadmin@ynreal14!
spring.datasource.initialSize=5
spring.datasource.minIdle=5
spring.datasource.maxActive=60
spring.datasource.maxWait=60000
spring.datasource.timeBetweenEvictionRunsMillis=60000
spring.datasource.minEvictableIdleTimeMillis=300000
spring.datasource.validationQuery=SELECT 1
spring.datasource.testWhileIdle=true
spring.datasource.testOnBorrow=true
spring.datasource.testOnReturn=false
spring.datasource.poolPreparedStatements=true
spring.datasource.maxPoolPreparedStatementPerConnectionSize=20
spring.datasource.filters=stat,wall,log4j
spring.datasource.connectionProperties=druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
server.session.timeout=10
server.connection.timeout =180000
server.tomcat.uri-encoding=UTF-8
logging.config=classpath:logback-boot.xml
log.level.root=info
log.level.my=debug
log.file=logs/sys-back.log
log.maxsize=30MB
#mapper??
mybatis.mapper-locations=classpath:mappers/*/*Mapper.xml
mybatis.type-aliases-package=com.bonus.attendance.*.entity

View File

@ -0,0 +1,52 @@
////////////////////////////////////////////////////////////////////
// _ooOoo_ //
// o8888888o //
// 88" . "88 //
// (| ^_^ |) //
// O\ = /O //
// ____/`---'\____ //
// .' \\| |// `. //
// / \\||| : |||// \ //
// / _||||| -:- |||||- \ //
// | | \\\ - /// | | //
// | \_| ''\---/'' | | //
// \ .-\__ `-` ___/-. / //
// ___`. .' /--.--\ `. . ___ //
// ."" '< `.___\_<|>_/___.' >'"". //
// | | : `- \`.;`\ _ /`;.`/ - ` : | | //
// \ \ `-. \_ __\ /__ _/ .-` / / //
// ========`-.____`-.___\_____/___.-`____.-'======== //
// `=---=' //
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ //
// 佛祖保佑 永不宕机 永无BUG //
////////////////////////////////////////////////////////////////////
佛曰:
写字楼里写字间,写字间里程序员;
程序人员写程序,又拿程序换酒钱。
酒醒只在网上坐,酒醉还来网下眠;
酒醉酒醒日复日,网上网下年复年。
但愿老死电脑间,不愿鞠躬老板前;
奔驰宝马贵者趣,公交自行程序员。
别人笑我忒疯癫,我笑自己命太贱;
不见满街漂亮妹,哪个归得程序员?
来,送你一个靓妹!
.::::.
.::::::::.
:::::::::::
..:::::::::::'
'::::::::::::'
.::::::::::
'::::::::::::::..
..::::::::::::.
``::::::::::::::::
::::``:::::::::' .:::.
::::' ':::::' .::::::::.
.::::' :::: .:::::::'::::.
.:::' ::::: .:::::::::' ':::::.
.::' :::::.:::::::::' ':::::.
.::' ::::::::::::::' ``::::.
...::: ::::::::::::' ``::.
```` ':. ':::::::::' ::::..
'.:::::' ':'````..

View File

View File

@ -0,0 +1,86 @@
<?xml version='1.0' encoding='UTF-8'?>
<configuration>
<springProperty name="logFile" source="log.file" />
<springProperty name="rootlevel" source="log.level.root" />
<springProperty name="mylevel" source="log.level.my" />
<springProperty name="maxFileSize" source="log.maxsize" />
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d [%thread] %-5level %logger{50} -[%file:%line]- %msg%n
</pattern>
<charset>UTF-8</charset>
</encoder>
</appender>
<appender name="adminLog"
class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${logFile}</file>
<encoder>
<pattern>%d [%thread] %-5level -[%file:%line]- %msg%n
</pattern>
<charset>UTF-8</charset>
</encoder>
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
<fileNamePattern>${logFile}.%d{yyyy-MM-dd}.%i</fileNamePattern>
<maxFileSize>${maxFileSize}</maxFileSize>
<!-- 每产生一个日志文件该日志文件的保存期限为15天 -->
<maxHistory>3</maxHistory>
</rollingPolicy>
</appender>
<appender name="errorLog"
class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${logFile}.error</file>
<encoder>
<pattern>%d [%thread] %-5level %logger{36} -[%file:%line]- %msg%n
</pattern>
<charset>UTF-8</charset>
</encoder>
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
<fileNamePattern>${logFile}.error.%d{yyyy-MM-dd}.%i</fileNamePattern>
<maxFileSize>${maxFileSize}</maxFileSize>
<!-- 每产生一个日志文件该日志文件的保存期限为15天 -->
<maxHistory>3</maxHistory>
</rollingPolicy>
<filter class="ch.qos.logback.classic.filter.LevelFilter">
<level>error</level>
<onMatch>ACCEPT</onMatch>
<onMismatch>DENY</onMismatch>
</filter>
</appender>
<appender name="sqlLog"
class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${logFile}.sql</file>
<encoder>
<pattern>%d [%thread] %msg%n
</pattern>
<charset>UTF-8</charset>
</encoder>
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
<fileNamePattern>${logFile}.sql.%d{yyyy-MM-dd}.%i</fileNamePattern>
<maxFileSize>${maxFileSize}</maxFileSize>
<!-- 每产生一个日志文件该日志文件的保存期限为15天 -->
<maxHistory>3</maxHistory>
</rollingPolicy>
</appender>
<logger name="adminLogger" level="${mylevel}" additivity="true">
<appender-ref ref="adminLog" />
</logger>
<logger name="com.bonus" level="DEBUG" additivity="true">
<appender-ref ref="sqlLog" />
</logger>
<logger name="org.springframework.scheduling.quartz" level="error" additivity="true">
<appender-ref ref="adminLog" />
</logger>
<root level="${rootlevel}">
<appender-ref ref="STDOUT" />
<appender-ref ref="errorLog" />
</root>
</configuration>

View File

@ -0,0 +1,62 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.bonus.attendance.att.dao.AttendanceMachineDao">
<select id="selectAttendanceMachinePushList"
resultType="com.bonus.attendance.att.entity.PersonComprehensiveBean">
select bam.id, bamp.id_number as idNumber, bw.name, operate,
face_base64 as faceImg, face_path as facePath
from bm_attendance_machine bam
left join bm_attendance_machine_push bamp on bamp.attendance_machine_id = bam.id and is_push = 0
left join bm_worker bw on bw.id_number = bamp.id_number
where bam.is_active = 1 and bam.attendance_machine_id = #{sn} and bamp.id_number is not null
limit 5
</select>
<update id="updatePushStatus">
<foreach collection="list" item="param" index="index">
update bm_attendance_machine_push set is_push = 1, push_content = #{param.content}
where id_number = #{param.idNumber} and attendance_machine_id = #{param.id}
and operate = #{param.operate};
</foreach>
</update>
<insert id="insertAttendance">
insert into fc_face_contrast(IMEI,upload_id,ID_NUMBER,PRO_ID,CURRENT_DAY,ADD_TIME,PHOTO_PATH,attendance_type,lon,lat,is_red_att)
values(#{imei},#{userId},#{idNumber},#{proId},#{currentDay},#{addTime},#{photoPath},#{uploadType},#{lon},#{lat},#{isRedAtt})
</insert>
<insert id="uploadPersonEinStatus">
replace into bm_worker_ein_history(id_number,ein_time,project_id,sub_id,team_id,post_id,contract_id)
values(#{idNumber},#{einTime},#{proId},#{subId},#{teamId},#{postId},#{contractId});
update bm_worker set ein_status = 1 where id_number = #{idNumber}
</insert>
<select id="selectWorkPerson" resultType="com.bonus.attendance.att.entity.BasePersonBean">
SELECT bw.NAME,bw.id_number AS idNumber,bw.post_id as postId,ein_status as einStatus,
IFNULL(bsc.pro_id, bweh.project_id) as proId,bsc.sub_id as subId,btur.team_id as teamId,
bwc.id as contractId, bw.light_status as lightStatus,
IFNULL(toWork.add_time, 0) as isToWork,
bw.is_furlough_person as isFurloughPerson,
IFNULL(bweh.id_number, '-1') as isEinStatus
FROM bm_worker bw
left join bm_worker_ein_history bweh on bweh.id_number = bw.id_number and bweh.is_active = 1
LEFT JOIN t_dict t ON t.id = bw.post_id AND t.is_active = 1
left join bm_team_user_relation btur on btur.id_number = bw.id_number and btur.is_active = 1
left join bm_sub_relation bsr on bsr.value = btur.team_id and bsr.is_active = 1 and bsr.type = 3
LEFT JOIN bm_sub_contract bsc ON bsc.id = bsr.sub_contract_id and bsc.is_active = 1
left join bm_worker_contract bwc on bwc.idCard = bw.id_number and bwc.is_active = 1
left join
(select * from(
select id_number,add_time from fc_face_contrast where
CURRENT_DAY = #{date} and attendance_type = 1
ORDER BY ADD_TIME ASC limit 1000000000000
) a GROUP BY a.id_number
) toWork on toWork.ID_NUMBER = bw.id_number
WHERE bw.IS_ACTIVE = 1
and bw.id_number = #{idNumber}
GROUP BY bw.id_number
</select>
</mapper>