|
|
@@ -178,10 +178,10 @@
|
|
|
and wo.status = 8
|
|
|
</if>
|
|
|
<if test="loadCountStatus != null and loadCountStatus != ''">
|
|
|
- and wo.status in (5, 6, 7, 8, 12)
|
|
|
+ and wo.status in (5, 6, 7, 8, 12, 13)
|
|
|
</if>
|
|
|
<if test="unloadCountStatus != null and unloadCountStatus != ''">
|
|
|
- and wo.status in (7, 8, 12)
|
|
|
+ and wo.status in (7, 8, 12, 13)
|
|
|
</if>
|
|
|
<if test="upperlOrderId != null and upperlOrderId != ''">
|
|
|
and FIND_IN_SET(#{upperlOrderId, jdbcType=BIGINT}, pids)
|
|
|
@@ -271,7 +271,7 @@
|
|
|
LEFT JOIN kwt_logistics_order lo on lo.id = wo.l_order_id
|
|
|
where wo.del_flag = 0
|
|
|
and lo.del_flag = 0
|
|
|
- and wo.status in (7, 8, 9, 10, 11, 12)
|
|
|
+ and wo.status in (7, 8, 9, 10, 11, 12, 13)
|
|
|
and wo.driver_id = #{driverId, jdbcType=BIGINT}) tabE on tabE.indexNum = tabA.indexNum
|
|
|
</select>
|
|
|
|
|
|
@@ -284,7 +284,7 @@
|
|
|
LEFT JOIN kwt_logistics_order lo on lo.id = wo.l_order_id
|
|
|
where wo.del_flag = 0 and lo.del_flag = 0
|
|
|
<if test="busStatus != null and busStatus == 4">
|
|
|
- and wo.status in (7, 8, 9, 10, 11, 12)
|
|
|
+ and wo.status in (7, 8, 9, 10, 11, 12, 13)
|
|
|
</if>
|
|
|
<if test="driverId != null and driverId != ''">
|
|
|
and wo.driver_id = #{driverId, jdbcType=BIGINT}
|
|
|
@@ -292,6 +292,12 @@
|
|
|
<if test="month != null and month != ''">
|
|
|
and LEFT(wo.create_time, 7) = #{month, jdbcType=TIMESTAMP}
|
|
|
</if>
|
|
|
+ <if test="month != null and month != ''">
|
|
|
+ and DATE(wo.create_time) <![CDATA[ >= ]]> #{startTime,jdbcType=TIMESTAMP}
|
|
|
+ </if>
|
|
|
+ <if test="month != null and month != ''">
|
|
|
+ and DATE(wo.create_time) <![CDATA[ <= ]]> #{endTime,jdbcType=TIMESTAMP}
|
|
|
+ </if>
|
|
|
</select>
|
|
|
|
|
|
<select id="findWaitWaybillOrderByDriver" resultType="com.sckw.transport.model.vo.WaybillOrderDriverVo"
|
|
|
@@ -403,11 +409,17 @@
|
|
|
and wo.status in (3, 4, 5, 6)
|
|
|
</if>
|
|
|
<if test="busStatus != null and busStatus == 4">
|
|
|
- and wo.status in (7, 8, 9, 10, 11, 12)
|
|
|
+ and wo.status in (7, 8, 9, 10, 11, 12, 13)
|
|
|
</if>
|
|
|
<if test="month != null and month != ''">
|
|
|
and LEFT(wo.create_time, 7) = #{month, jdbcType=TIMESTAMP}
|
|
|
</if>
|
|
|
+ <if test="month != null and month != ''">
|
|
|
+ and DATE(wo.create_time) <![CDATA[ >= ]]> #{startTime,jdbcType=TIMESTAMP}
|
|
|
+ </if>
|
|
|
+ <if test="month != null and month != ''">
|
|
|
+ and DATE(wo.create_time) <![CDATA[ <= ]]> #{endTime,jdbcType=TIMESTAMP}
|
|
|
+ </if>
|
|
|
</select>
|
|
|
<select id="selectWaybillOrderCarListNotPage" resultType="com.sckw.transport.model.dto.OrderCarDTO">
|
|
|
SELECT a.id as wOrderId,
|