@@ -177,6 +177,9 @@
<if test="request.endTime!=null">
AND <![CDATA[ mp.plan_date <= #{request.endTime}]]>
</if>
+ <if test="request.userId!=null">
+ order by IF(mp.worker_id = ${request.userId}, 0, 1)
+ </if>
</select>
<!--app端 保养任务统计 (0:待保养、-1:超期) -->