瀏覽代碼

仓库业务->修改app查询顺序

caifc 3 年之前
父節點
當前提交
151cee9e27

+ 1 - 0
ruoyi-warehouse/src/main/resources/mapper/approvalFlow/AuditItemsMapper.xml

@@ -403,6 +403,7 @@
                 and a.send_time BETWEEN #{audit.sendList[0]} AND #{audit.sendList[1]}
             </if>
         </where>
+            order by a.id desc
     </select>
 
 </mapper>

+ 1 - 0
ruoyi-warehouse/src/main/resources/mapper/warehouse/TWarehouseCheckItemsMapper.xml

@@ -70,6 +70,7 @@
             <if test="fUpdateTime != null ">and a.f_update_time = #{fUpdateTime}</if>
             <if test="fDelFlag != null ">and a.f_del_flag = #{fDelFlag}</if>
         </where>
+            order by f_id desc
     </select>
 
     <select id="selectTWarehouseCheckItemsById" parameterType="Long" resultMap="TWarehouseCheckItemsResult">

+ 2 - 2
ruoyi-warehouse/src/main/resources/mapper/warehouseBusiness/TWarehousebillsMapper.xml

@@ -2419,8 +2419,8 @@
         <if test='timeInterval != null and timeInterval[1] != null and timeInterval[1]!= ""'>
             and w.f_bsdate &lt;= #{timeInterval[1]}
         </if>
-        ${params.dataScope}
-        order by w.f_bsdate desc
+            ${params.dataScope}
+            order by w.f_id desc
     </select>
 
     <select id="selectWarehouseItemListById" resultType="java.util.Map">