|
@@ -343,7 +343,6 @@
|
|
|
) tab1
|
|
) tab1
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
-
|
|
|
|
|
<select id="findWaitWaybillOrderByDriver" resultType="com.sckw.transport.model.vo.WaybillOrderDriverVo"
|
|
<select id="findWaitWaybillOrderByDriver" resultType="com.sckw.transport.model.vo.WaybillOrderDriverVo"
|
|
|
parameterType="java.util.Map">
|
|
parameterType="java.util.Map">
|
|
|
SELECT *
|
|
SELECT *
|
|
@@ -424,8 +423,9 @@
|
|
|
and lo.del_flag = 0
|
|
and lo.del_flag = 0
|
|
|
and loc.status = 0
|
|
and loc.status = 0
|
|
|
and loc.w_order_id is null
|
|
and loc.w_order_id is null
|
|
|
- and loc.driver_id = #{driverId, jdbcType=BIGINT}) tab
|
|
|
|
|
- order by createTime desc
|
|
|
|
|
|
|
+ and loc.driver_id = #{driverId, jdbcType=BIGINT}
|
|
|
|
|
+ ) tab
|
|
|
|
|
+ order by startTime
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
<select id="findOtherWaybillOrderByDriver" resultType="com.sckw.transport.model.vo.WaybillOrderDriverVo"
|
|
<select id="findOtherWaybillOrderByDriver" resultType="com.sckw.transport.model.vo.WaybillOrderDriverVo"
|
|
@@ -466,6 +466,13 @@
|
|
|
<if test="endTime != null and endTime != ''">
|
|
<if test="endTime != null and endTime != ''">
|
|
|
and DATE(wo.create_time) <![CDATA[ <= ]]> #{endTime,jdbcType=TIMESTAMP}
|
|
and DATE(wo.create_time) <![CDATA[ <= ]]> #{endTime,jdbcType=TIMESTAMP}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+
|
|
|
|
|
+ <if test="busStatus != null and busStatus == 2">
|
|
|
|
|
+ ORDER BY wo.start_time
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="busStatus != null and busStatus == 4">
|
|
|
|
|
+ ORDER BY wo.create_time desc
|
|
|
|
|
+ </if>
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
<select id="selectWaybillOrderCarListNotPage" resultType="com.sckw.transport.model.dto.OrderCarDTO">
|
|
<select id="selectWaybillOrderCarListNotPage" resultType="com.sckw.transport.model.dto.OrderCarDTO">
|