|
@@ -4,7 +4,7 @@
|
|
|
|
|
|
|
|
<select id="statistics" resultType="com.sckw.fleet.model.vo.KwfTableTopCount" parameterType="java.util.Map" >
|
|
<select id="statistics" resultType="com.sckw.fleet.model.vo.KwfTableTopCount" parameterType="java.util.Map" >
|
|
|
SELECT
|
|
SELECT
|
|
|
- tr.`status` value, count(0) total
|
|
|
|
|
|
|
+ tr.`auth_status` value, count(0) total
|
|
|
from kwf_truck tr
|
|
from kwf_truck tr
|
|
|
left join kwf_truck_ent tre on tre.truck_id = tr.id
|
|
left join kwf_truck_ent tre on tre.truck_id = tr.id
|
|
|
left join kwf_truck_license trl on trl.truck_id = tr.id and trl.del_flag = 0
|
|
left join kwf_truck_license trl on trl.truck_id = tr.id and trl.del_flag = 0
|
|
@@ -47,7 +47,7 @@
|
|
|
tr.truck_no like concat('%',#{keywords},'%')
|
|
tr.truck_no like concat('%',#{keywords},'%')
|
|
|
)
|
|
)
|
|
|
</if>
|
|
</if>
|
|
|
- GROUP BY tr.`status`
|
|
|
|
|
|
|
+ GROUP BY tr.`auth_status`
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
<select id="findPage" resultType="com.sckw.fleet.model.vo.KwfTruckVo" parameterType="java.util.Map" >
|
|
<select id="findPage" resultType="com.sckw.fleet.model.vo.KwfTruckVo" parameterType="java.util.Map" >
|
|
@@ -55,7 +55,7 @@
|
|
|
tr.id, tr.ent_id entId, tr.truck_no truckNo, tr.type, tr.energy_type energyType, tr.use_type useType,
|
|
tr.id, tr.ent_id entId, tr.truck_no truckNo, tr.type, tr.energy_type energyType, tr.use_type useType,
|
|
|
tr.spec, tr.actual_weight actualWeight, tr.gross_weight grossWeight, tr.tare_weight tareWeight,
|
|
tr.spec, tr.actual_weight actualWeight, tr.gross_weight grossWeight, tr.tare_weight tareWeight,
|
|
|
tr.color, tr.eev, tr.trailer_no trailerNo, tr.total_complete totalComplete, tr.total_take totalTake,
|
|
tr.color, tr.eev, tr.trailer_no trailerNo, tr.total_complete totalComplete, tr.total_take totalTake,
|
|
|
- tr.total_weight totalWeight, tr.business_status businessStatus, tr.remark, tr.status,
|
|
|
|
|
|
|
+ tr.total_weight totalWeight, tr.business_status businessStatus, tr.remark, tr.status, tr.auth_status authStatus,
|
|
|
tr.create_by createBy, tr.create_time createTime, tr.update_by updateBy, tr.update_time updateTime,
|
|
tr.create_by createBy, tr.create_time createTime, tr.update_by updateBy, tr.update_time updateTime,
|
|
|
trl.owner, trl.vin, trl.reg_time regTime, trl.grant_time grantTime, trl.grant_unit grantUnit,
|
|
trl.owner, trl.vin, trl.reg_time regTime, trl.grant_time grantTime, trl.grant_unit grantUnit,
|
|
|
trl.driving_no drivingNo, tranl.road_tran_no roadTranNo, tranl.firm_name tranFirmName,
|
|
trl.driving_no drivingNo, tranl.road_tran_no roadTranNo, tranl.firm_name tranFirmName,
|
|
@@ -91,6 +91,9 @@
|
|
|
<if test="status != null and status != ''">
|
|
<if test="status != null and status != ''">
|
|
|
and tr.status = #{status, jdbcType=VARCHAR}
|
|
and tr.status = #{status, jdbcType=VARCHAR}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="authStatus != null and status != ''">
|
|
|
|
|
+ and tr.auth_status = #{authStatus, jdbcType=VARCHAR}
|
|
|
|
|
+ </if>
|
|
|
<if test="startTime != null and startTime != '' " >
|
|
<if test="startTime != null and startTime != '' " >
|
|
|
and DATE( tr.create_time) <![CDATA[ >= ]]> #{startTime,jdbcType=TIMESTAMP}
|
|
and DATE( tr.create_time) <![CDATA[ >= ]]> #{startTime,jdbcType=TIMESTAMP}
|
|
|
</if>
|
|
</if>
|
|
@@ -118,7 +121,7 @@
|
|
|
tr.id, tre.ent_id entId, truck_no truckNo, type, energy_type energyType, use_type useType,
|
|
tr.id, tre.ent_id entId, truck_no truckNo, type, energy_type energyType, use_type useType,
|
|
|
spec, actual_weight actualWeight, gross_weight grossWeight, tare_weight tareWeight,
|
|
spec, actual_weight actualWeight, gross_weight grossWeight, tare_weight tareWeight,
|
|
|
color, eev, trailer_no trailerNo, total_complete totalComplete, total_take totalTake,
|
|
color, eev, trailer_no trailerNo, total_complete totalComplete, total_take totalTake,
|
|
|
- total_weight totalWeight, business_status businessStatus, tr.remark, tr.status,
|
|
|
|
|
|
|
+ total_weight totalWeight, business_status businessStatus, tr.remark, tr.status, tr.auth_status authStatus,
|
|
|
tr.create_by createBy, tr.create_time createTime, tr.update_by updateBy, tr.update_time updateTime
|
|
tr.create_by createBy, tr.create_time createTime, tr.update_by updateBy, tr.update_time updateTime
|
|
|
from kwf_truck tr
|
|
from kwf_truck tr
|
|
|
left join kwf_truck_ent tre on tre.truck_id = tr.id
|
|
left join kwf_truck_ent tre on tre.truck_id = tr.id
|
|
@@ -144,6 +147,9 @@
|
|
|
<if test="status != null and status != ''">
|
|
<if test="status != null and status != ''">
|
|
|
and tr.status = #{status, jdbcType=VARCHAR}
|
|
and tr.status = #{status, jdbcType=VARCHAR}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="authStatus != null and status != ''">
|
|
|
|
|
+ and tr.auth_status = #{authStatus, jdbcType=VARCHAR}
|
|
|
|
|
+ </if>
|
|
|
<if test="startTime != null and startTime != '' " >
|
|
<if test="startTime != null and startTime != '' " >
|
|
|
and DATE( tr.create_time) <![CDATA[ >= ]]> #{startTime,jdbcType=TIMESTAMP}
|
|
and DATE( tr.create_time) <![CDATA[ >= ]]> #{startTime,jdbcType=TIMESTAMP}
|
|
|
</if>
|
|
</if>
|
|
@@ -171,7 +177,7 @@
|
|
|
id, ent_id entId, truck_no truckNo, type, energy_type energyType, use_type useType,
|
|
id, ent_id entId, truck_no truckNo, type, energy_type energyType, use_type useType,
|
|
|
spec, actual_weight actualWeight, gross_weight grossWeight, tare_weight tareWeight,
|
|
spec, actual_weight actualWeight, gross_weight grossWeight, tare_weight tareWeight,
|
|
|
color, eev, trailer_no trailerNo, total_complete totalComplete, total_take totalTake,
|
|
color, eev, trailer_no trailerNo, total_complete totalComplete, total_take totalTake,
|
|
|
- total_weight totalWeight, business_status businessStatus, remark, status
|
|
|
|
|
|
|
+ total_weight totalWeight, business_status businessStatus, remark, status, auth_status authStatus
|
|
|
from kwf_truck tr
|
|
from kwf_truck tr
|
|
|
where del_flag = 0
|
|
where del_flag = 0
|
|
|
<if test="entId != null and entId != ''">
|
|
<if test="entId != null and entId != ''">
|
|
@@ -192,6 +198,9 @@
|
|
|
<if test="status != null and status != ''">
|
|
<if test="status != null and status != ''">
|
|
|
and status = #{status, jdbcType=VARCHAR}
|
|
and status = #{status, jdbcType=VARCHAR}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="authStatus != null and status != ''">
|
|
|
|
|
+ and auth_status = #{authStatus, jdbcType=VARCHAR}
|
|
|
|
|
+ </if>
|
|
|
ORDER BY create_time desc
|
|
ORDER BY create_time desc
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|