Browse Source

小程序 --单子按照状态进行排序

zouzhuo 3 years ago
parent
commit
d568420c2d

+ 1 - 1
ruoyi-fleet/src/main/resources/mapper/orderPlan/ftmsorderbillscarsMapper.xml

@@ -781,7 +781,7 @@
             <if test="unLoadAddr != null  and unLoadAddr != ''">and t.un_load_addr like concat('%', #{unLoadAddr},'%')</if>
             <if test="unLoadAddr != null  and unLoadAddr != ''">and t.un_load_addr like concat('%', #{unLoadAddr},'%')</if>
             <if test="mdLoadAddr != null  and mdLoadAddr != ''">and t.md_load_addr like concat('%', #{mdLoadAddr},'%')</if>
             <if test="mdLoadAddr != null  and mdLoadAddr != ''">and t.md_load_addr like concat('%', #{mdLoadAddr},'%')</if>
         </where>
         </where>
-        ORDER BY c.id desc
+        ORDER BY c.order_status asc, c.id desc
     </select>
     </select>
 
 
     <select id="getButtonValue" parameterType="ftmsorderbills" resultType="Map">
     <select id="getButtonValue" parameterType="ftmsorderbills" resultType="Map">