Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zhengyuan-danger-chemistry-manage
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
耿迪迪
zhengyuan-danger-chemistry-manage
Commits
c9bd53cd
Commit
c9bd53cd
authored
Jan 12, 2023
by
耿迪迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
二道门在场人员修改 gengdidi
parent
8d1a0a13
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
30 deletions
+29
-30
TEntranceGuardPersonInfoMapper.xml
...esources/mapper/system/TEntranceGuardPersonInfoMapper.xml
+29
-30
No files found.
danger-manage-system/src/main/resources/mapper/system/TEntranceGuardPersonInfoMapper.xml
View file @
c9bd53cd
...
...
@@ -111,43 +111,42 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select
id=
"statisticsStayInPersons"
resultType=
"java.lang.String"
>
SELECT
COUNT(
*
)
COUNT(
import.person_num
)
FROM
(
(
(
SELECT
*
*
FROM
(
SELECT
action_time AS importTime,
person_num
FROM
t_entrance_guard_person_info
SELECT
action_time AS importTime,
person_num
FROM
t_entrance_guard_person_info
WHERE
action_type = '0'
ORDER BY action_time DESC
)a
GROUP BY a.person_num
)import,
action_type = '0'
ORDER BY action_time DESC LIMIT 10000
)a
GROUP BY a.person_num
)import
LEFT JOIN
(
SELECT
*
FROM
(
SELECT
*
SELECT
action_time AS exportTime,
person_num
FROM
(
SELECT
action_time AS exportTime,
person_num
FROM
t_entrance_guard_person_info
WHERE
action_type = '1'
ORDER BY action_time DESC
)b
GROUP BY b.person_num
)export
)
WHERE import.person_num = export.person_num AND (export.exportTime - import.importTime) > 0
t_entrance_guard_person_info
WHERE
action_type = '1'
ORDER BY action_time DESC LIMIT 10000
)b
GROUP BY b.person_num
)export ON import.person_num = export.person_num
WHERE (unix_timestamp(import.importTime) - IFNULL(unix_timestamp(export.exportTime),0)) > 0
</select>
<select
id=
"lastImportAndExportData"
resultMap=
"TEntranceGuardPersonInfoResult"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment