| | |
| | | </foreach> |
| | | </delete> |
| | | |
| | | <select id="selectAssignedItineraryList" resultType="com.ruoyi.tms.domain.vo.DriverDispatchVo"> |
| | | |
| | | SELECT tdo.dispatch_no, tdo.customer_name, tdo.license_plate,tdo.transport_line,tdo.status,tdo.latest_departure, |
| | | tdd.status as tddStatus,tdd.driver_id,tdd.dispatch_id,tdo.ok_time |
| | | FROM tms_dispatch_order AS tdo |
| | | LEFT JOIN tms_driver_dispatch AS tdd |
| | | ON tdo.id = tdd.dispatch_id |
| | | where 1 = 1 |
| | | <if test="inStatusList != null and inStatusList.size > 0"> |
| | | and tdd.status in |
| | | <foreach item="item" collection="inStatusList" open="(" separator="," close=")"> |
| | | #{item} |
| | | </foreach> |
| | | |
| | | </if> |
| | | <if test="inTdoStatusList != null and inTdoStatusList.size > 0"> |
| | | and tdo.status in |
| | | <foreach item="item" collection="inTdoStatusList" open="(" separator="," close=")"> |
| | | #{item} |
| | | </foreach> |
| | | |
| | | </if> |
| | | |
| | | |
| | | and tdd.driver_id = #{driverId}; |
| | | </select> |
| | | <select id="selectAssignedItineraryDetail" resultType="com.ruoyi.tms.domain.vo.DriverDispatchVo"> |
| | | SELECT tdo.dispatch_no, tdo.customer_name, tdo.license_plate,tdo.transport_line,tdo.status,tdo.latest_departure, |
| | | tdd.status as tddStatus,tdd.driver_id,tdd.dispatch_id,tdo.ok_time,tdo.shelf_code |
| | | FROM tms_dispatch_order AS tdo |
| | | LEFT JOIN tms_driver_dispatch AS tdd |
| | | ON tdo.id = tdd.dispatch_id |
| | | where tdo.id = #{dispatchId} and tdd.driver_id = #{driverId}; |
| | | |
| | | </select> |
| | | |
| | | </mapper> |