| | |
| | | `date` as `date`, |
| | | duration as duration, |
| | | assessment as assessment |
| | | from t_driver_online where driverId = #{driverId} and DATE_FORMAT(`date`, '%Y-%m-%d') = #{day} and assessment = #{assessment} |
| | | from t_driver_online where driverId = #{driverId} and DATE_FORMAT(`date`, '%Y-%m-%d') = #{day} and type = #{type} and assessment = #{assessment} |
| | | </select> |
| | | |
| | | |
| | |
| | | and `date` between #{start} and #{end} |
| | | </if> |
| | | </select> |
| | | |
| | | |
| | | <select id="queryList" resultType="DriverOnline"> |
| | | select |
| | | id as id, |
| | | driverId as driverId, |
| | | `date` as `date`, |
| | | duration as duration, |
| | | assessment as assessment |
| | | from t_driver_online where DATE_FORMAT(`date`, '%Y-%m-%d') = #{day} and type = #{type} and duration >= #{duration} |
| | | </select> |
| | | </mapper> |