Commit 96cb54dd by 杨林龙

开发试驾数据

1 parent 57736918
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<result column="shopName" jdbcType="VARCHAR" property="shopName"/> <result column="shopName" jdbcType="VARCHAR" property="shopName"/>
<result column="vehicleTypeName" jdbcType="VARCHAR" property="vehicleTypeName"/> <result column="vehicleTypeName" jdbcType="VARCHAR" property="vehicleTypeName"/>
<result column="sn" jdbcType="VARCHAR" property="sn"/> <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="statDate" jdbcType="VARCHAR" property="statDate"/>
<result column="cnt" jdbcType="INTEGER" property="cnt"/> <result column="cnt" jdbcType="INTEGER" property="cnt"/>
<result column="dayCount" jdbcType="INTEGER" property="dayCount"/> <result column="dayCount" jdbcType="INTEGER" property="dayCount"/>
...@@ -16,12 +16,10 @@ ...@@ -16,12 +16,10 @@
<resultMap id="PageBaseMap" <resultMap id="PageBaseMap"
type="cn.com.glsx.admin.modules.model.export.TrialDriveReportExport"> 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="shopCode" jdbcType="VARCHAR" property="shopCode"/>
<result column="shopName" jdbcType="VARCHAR" property="shopName"/> <result column="shopName" jdbcType="VARCHAR" property="shopName"/>
<result column="sn" jdbcType="VARCHAR" property="sn"/> <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"/> <result column="vehicleTypeName" jdbcType="VARCHAR" property="vehicleTypeName"/>
</resultMap> </resultMap>
...@@ -64,10 +62,10 @@ ...@@ -64,10 +62,10 @@
<select id="getEffectiveTestDriveData" <select id="getEffectiveTestDriveData"
parameterType="cn.com.glsx.admin.modules.model.param.TrialDriveReportSearch" parameterType="cn.com.glsx.admin.modules.model.param.TrialDriveReportSearch"
resultMap="BaseResultMap"> 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 statDate, tall.cnt, day(tall.statDate) dayCount , sum(cnt) cnttotal FROM
(select tu.account shopCode, tu.username shopName, tv.model_name vehicleTypeName, (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 then 1 else 0
end) cnt end) cnt
from t_electric_fence_drive tefdd from t_electric_fence_drive tefdd
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!