|
|
|
@@ -100,8 +100,12 @@ |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="queryForSceneRepotyHistoryCar" resultType="com.iformall.domain.vo.MarkingSceneDataVo" parameterType="hashmap"> |
|
|
|
select DATE_FORMAT(create_date,'%Y-%m-%d') xTime, count(c.id) triggerCount |
|
|
|
from wx_car_cmd_log c where tenant_id = #{tenantId} and cmd_type=#{cmdType} |
|
|
|
select DATE_FORMAT(ccl.create_date,'%Y-%m-%d') xTime, count(ccl.id) triggerCount |
|
|
|
from wx_c_user_car cuc, wx_car_cmd_log ccl |
|
|
|
where cuc.tenant_id = #{tenantId} |
|
|
|
and ccl.tenant_id = #{tenantId} |
|
|
|
and ccl.plateNumber = cuc.car_number |
|
|
|
and cmd_type=#{cmdType} |
|
|
|
<if test=" null != startTime and null != endTime"> |
|
|
|
and create_date BETWEEN #{startTime} and #{endTime} |
|
|
|
</if> |
|
|
|
|