Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-trialdrive-admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 96cb54dd
authored
May 20, 2021
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
开发试驾数据
1 parent
57736918
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
src/main/resources/mapper/TrialDriveReportMapper.xml
src/main/resources/mapper/TrialDriveReportMapper.xml
View file @
96cb54d
...
...
@@ -7,7 +7,7 @@
<result
column=
"shopName"
jdbcType=
"VARCHAR"
property=
"shopName"
/>
<result
column=
"vehicleTypeName"
jdbcType=
"VARCHAR"
property=
"vehicleTypeName"
/>
<result
column=
"sn"
jdbcType=
"VARCHAR"
property=
"sn"
/>
<result
column=
"
standno
"
jdbcType=
"VARCHAR"
property=
"standno"
/>
<result
column=
"
vin
"
jdbcType=
"VARCHAR"
property=
"standno"
/>
<result
column=
"statDate"
jdbcType=
"VARCHAR"
property=
"statDate"
/>
<result
column=
"cnt"
jdbcType=
"INTEGER"
property=
"cnt"
/>
<result
column=
"dayCount"
jdbcType=
"INTEGER"
property=
"dayCount"
/>
...
...
@@ -16,12 +16,10 @@
<resultMap
id=
"PageBaseMap"
type=
"cn.com.glsx.admin.modules.model.export.TrialDriveReportExport"
>
<result
column=
"fenceId"
jdbcType=
"INTEGER"
property=
"fenceId"
/>
<result
column=
"electricFenceName"
jdbcType=
"VARCHAR"
property=
"electricFenceName"
/>
<result
column=
"shopCode"
jdbcType=
"VARCHAR"
property=
"shopCode"
/>
<result
column=
"shopName"
jdbcType=
"VARCHAR"
property=
"shopName"
/>
<result
column=
"sn"
jdbcType=
"VARCHAR"
property=
"sn"
/>
<result
column=
"
standno
"
jdbcType=
"VARCHAR"
property=
"standno"
/>
<result
column=
"
vin
"
jdbcType=
"VARCHAR"
property=
"standno"
/>
<result
column=
"vehicleTypeName"
jdbcType=
"VARCHAR"
property=
"vehicleTypeName"
/>
</resultMap>
...
...
@@ -64,10 +62,10 @@
<select
id=
"getEffectiveTestDriveData"
parameterType=
"cn.com.glsx.admin.modules.model.param.TrialDriveReportSearch"
resultMap=
"BaseResultMap"
>
SELECT tall.shopCode, tall.shopName, tall.vehicleTypeName, tall.sn, tall.
standno
, left(tall.statDate,7)
SELECT tall.shopCode, tall.shopName, tall.vehicleTypeName, tall.sn, tall.
vin
, left(tall.statDate,7)
statDate, tall.cnt, day(tall.statDate) dayCount , sum(cnt) cnttotal FROM
(select tu.account shopCode, tu.username shopName, tv.model_name vehicleTypeName,
tefdd.sn, tv.
standno
, DATE_FORMAT(tefdd.journey_time,'%Y-%m-%d') statDate, sum(case when tefdd.percent >= 80
tefdd.sn, tv.
vin
, DATE_FORMAT(tefdd.journey_time,'%Y-%m-%d') statDate, sum(case when tefdd.percent >= 80
then 1 else 0
end) cnt
from t_electric_fence_drive tefdd
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment