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
32afc535
Commit
32afc535
authored
Jan 17, 2023
by
耿迪迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
二道门车辆进出类型修改 gengdidi
parent
5b10239d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
13 deletions
+22
-13
OutParkRecordsMapper.xml
.../main/resources/mapper/sqlserver/OutParkRecordsMapper.xml
+19
-10
index.vue
danger-manage-web/src/views/entrance/index.vue
+3
-3
No files found.
danger-manage-system/src/main/resources/mapper/sqlserver/OutParkRecordsMapper.xml
View file @
32afc535
...
...
@@ -12,11 +12,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<resultMap
id=
"statisticsImportVehicleResult"
type=
"HashMap"
>
<result
property=
"plateNumber"
column=
"plateNumber"
jdbcType=
"VARCHAR"
/>
<result
property=
"inParkTime"
column=
"InParkTime"
jdbcType=
"DATE"
/>
<result
property=
"cName"
column=
"cName"
jdbcType=
"VARCHAR"
/>
<result
property=
"inParkControlImageName"
column=
"InParkControlImageName"
jdbcType=
"VARCHAR"
/>
</resultMap>
<resultMap
id=
"statisticsExportVehicleResult"
type=
"HashMap"
>
<result
property=
"plateNumber"
column=
"plateNumber"
jdbcType=
"VARCHAR"
/>
<result
property=
"outParkTime"
column=
"OutParkTime"
jdbcType=
"DATE"
/>
<result
property=
"cName"
column=
"cName"
jdbcType=
"VARCHAR"
/>
<result
property=
"inParkControlImageName"
column=
"InParkControlImageName"
jdbcType=
"VARCHAR"
/>
</resultMap>
<select
id=
"statisticsVehicleByActionType"
resultMap=
"statisticsVehicleByActionTypeResult"
>
...
...
@@ -39,8 +43,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select
id=
"statisticsStayInVehicles"
resultMap=
"statisticsImportVehicleResult"
>
SELECT
plateNumber,
InParkTime
stay.plateNumber,
stay.InParkTime,
type.cName
FROM(
SELECT
plateNumber,
...
...
@@ -50,27 +55,31 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
Sys_Park_OutParkRecords
GROUP BY plateNumber
)stay
LEFT JOIN Sys_Park_OutParkRecords records ON stay.InParkTime = records.InParkTime AND stay.plateNumber = records.plateNumber
LEFT JOIN V_Park_PlateType type ON records.plateType = type.id
WHERE ISNULL(DATEDIFF(S, '1970-01-01 00:00:00', stay.InParkTime),0) - ISNULL(DATEDIFF(S, '1970-01-01 00:00:00', stay.OutParkTime),0) >0
</select>
<select
id=
"lastImportData"
resultMap=
"statisticsImportVehicleResult"
>
SELECT
TOP 1 plateNumber,InParkTi
me
TOP 1 records.plateNumber,records.InParkTime,type.cName,records.InParkControlImageNa
me
FROM
Sys_Park_OutParkRecords
Sys_Park_OutParkRecords records
LEFT JOIN V_Park_PlateType type ON records.plateType = type.id
WHERE
InParkTime IS NOT NULL
ORDER BY InParkTime DESC
records.
InParkTime IS NOT NULL
ORDER BY
records.
InParkTime DESC
</select>
<select
id=
"lastExportData"
resultMap=
"statisticsExportVehicleResult"
>
SELECT
TOP 1
plateNumber,OutParkTi
me
TOP 1
records.plateNumber,records.OutParkTime,type.cName,records.InParkControlImageNa
me
FROM
Sys_Park_OutParkRecords
Sys_Park_OutParkRecords records
LEFT JOIN V_Park_PlateType type ON records.plateType = type.id
WHERE
OutParkTime IS NOT NULL
ORDER BY OutParkTime DESC
records.
OutParkTime IS NOT NULL
ORDER BY
records.
OutParkTime DESC
</select>
</mapper>
\ No newline at end of file
danger-manage-web/src/views/entrance/index.vue
View file @
32afc535
...
...
@@ -112,7 +112,7 @@
<div
class=
"ent-div"
></div>
<div
class=
"ent-b-in"
>
<img
src=
"../../assets/img/car.png"
alt=
""
>
<div>
车辆类型:
<span></span>
</div>
<div>
车辆类型:
<span></span>
{{
lastImportCarData
?
lastImportCarData
.
cName
:
"-"
}}
</div>
<div>
车辆号牌:
<span>
{{
lastImportCarData
?
lastImportCarData
.
plateNumber
:
"-"
}}
</span>
</div>
<div>
入场时间:
<span>
{{
lastImportCarData
?
changeDateFormat
(
lastImportCarData
.
inParkTime
):
"-"
}}
</span>
</div>
</div>
...
...
@@ -125,7 +125,7 @@
<div
class=
"ent-div"
></div>
<div
class=
"ent-b-in"
>
<img
src=
"../../assets/img/car.png"
alt=
""
>
<div>
车辆类型:
<span></span>
</div>
<div>
车辆类型:
<span></span>
{{
lastExportCarData
?
lastExportCarData
.
cName
:
"-"
}}
</div>
<div>
车辆号牌:
<span>
{{
lastExportCarData
?
lastExportCarData
.
plateNumber
:
"-"
}}
</span>
</div>
<div>
入场时间:
<span>
{{
lastExportCarData
?
changeDateFormat
(
lastExportCarData
.
outParkTime
):
"-"
}}
</span>
</div>
</div>
...
...
@@ -145,7 +145,7 @@
width=
"170"
>
</el-table-column>
<el-table-column
prop=
"
n
ame"
prop=
"
cN
ame"
label=
"类型"
>
</el-table-column>
<el-table-column
...
...
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