|
@@ -118,6 +118,9 @@
|
|
|
<if test="param!=null and param.unExecuted == 1">
|
|
<if test="param!=null and param.unExecuted == 1">
|
|
|
and two.order_status = 0
|
|
and two.order_status = 0
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="param!=null and param.unExecutedUnread == 1">
|
|
|
|
|
+ and two.order_status = 0 and two.read_flag = 0
|
|
|
|
|
+ </if>
|
|
|
<if test="param!=null and param.unAllocated == 1">
|
|
<if test="param!=null and param.unAllocated == 1">
|
|
|
and two.id is null
|
|
and two.id is null
|
|
|
</if>
|
|
</if>
|
|
@@ -231,6 +234,23 @@
|
|
|
group by truck.truck_id ) tbl
|
|
group by truck.truck_id ) tbl
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
|
|
+ <!-- 查询未执行派单非全员已读车辆 -->
|
|
|
|
|
+ <select id="getUnExecutedOrderUnreadCount" parameterType="com.aoyang.tms.controller.param.WorkManagePageParam" resultType="java.lang.Integer">
|
|
|
|
|
+ SELECT count(1)
|
|
|
|
|
+ FROM ( select truck.truck_id from truck left join tms_work_order wo on truck.truck_id = wo.truck_id and wo.order_status = 0
|
|
|
|
|
+ WHERE truck.org_id = #{param.orgId} and wo.id is not null and wo.read_flag = 0
|
|
|
|
|
+ <if test="param!=null and param.deptId!=null">
|
|
|
|
|
+ and truck.dept_id = #{param.deptId}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="param!=null and param.carNumber!=null and param.carNumber!='' ">
|
|
|
|
|
+ and truck.car_number = #{param.carNumber}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="param!=null and param.shipperId!=null">
|
|
|
|
|
+ and wo.shipper_id = #{param.shipperId}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ group by truck.truck_id ) tbl
|
|
|
|
|
+ </select>
|
|
|
|
|
+
|
|
|
<!-- 查询未派单车辆 -->
|
|
<!-- 查询未派单车辆 -->
|
|
|
<select id="getUnAllocatedTruckCount" parameterType="com.aoyang.tms.controller.param.WorkManagePageParam" resultType="java.lang.Integer">
|
|
<select id="getUnAllocatedTruckCount" parameterType="com.aoyang.tms.controller.param.WorkManagePageParam" resultType="java.lang.Integer">
|
|
|
SELECT count(1)
|
|
SELECT count(1)
|