| | |
| | | a.oldState as oldState, |
| | | a.telX as telX, |
| | | a.bindId as bindId, |
| | | a.remark as remark |
| | | a.remark as remark, |
| | | b.lineShiftId as lineShiftId |
| | | from t_order_cross_city a |
| | | left join t_line_shift_driver b on (a.lineShiftDriverId = b.id) |
| | | where a.isDelete = 1 |
| | |
| | | and DATE_FORMAT(a.travelTime, '%Y-%m-%d') = #{day} |
| | | </if> |
| | | </select> |
| | | <select id="queryCountOrder" resultType="java.lang.Integer"> |
| | | select |
| | | count(1) |
| | | from t_order_cross_city a |
| | | left join t_line_shift_driver b on (a.lineShiftDriverId = b.id) |
| | | where a.isDelete = 1 |
| | | <if test="null != driverId"> |
| | | and a.driverId = #{driverId} |
| | | </if> |
| | | <if test="null != lineShiftId"> |
| | | and b.lineShiftId = #{lineShiftId} |
| | | </if> |
| | | <if test="null != state"> |
| | | and a.state = #{state} |
| | | </if> |
| | | <if test="null != day and '' != day"> |
| | | and DATE_FORMAT(a.travelTime, '%Y-%m-%d') = #{day} |
| | | </if> |
| | | </select> |
| | | </mapper> |