浏览代码

解决因数据权限导致SQL异常

sunhz 3 年之前
父节点
当前提交
a74ffb2d41
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      ruoyi-warehouse/src/main/resources/mapper/finance/TFeeMapper.xml

+ 2 - 2
ruoyi-warehouse/src/main/resources/mapper/finance/TFeeMapper.xml

@@ -235,8 +235,8 @@
             <if test="waterBillNo != null ">and ware.water_bill_no = #{waterBillNo}</if>
             <if test="fSystemType != null and fSystemType != ''">and ware.f_system_type = #{fSystemType}</if>
         </where>
-        ORDER BY ware.f_id desc
         ${params.dataScope}
+        ORDER BY ware.f_id desc
     </select>
 
     <select id="selectTFeeList1" parameterType="TFee" resultType="Map">
@@ -324,8 +324,8 @@
             <if test="fSystemType != null and fSystemType != ''">and f.f_system_type = #{fSystemType}</if>
             <if test="createBy != null and createBy != ''">and f.create_by = #{createBy}</if>
         </where>
-        ORDER BY f.f_id desc
         ${params.dataScope}
+        ORDER BY f.f_id desc
     </select>
     <!--凯和查询财务信息-->
     <select id="selectFinancialTFeeList" parameterType="TFee" resultType="com.ruoyi.finance.shipping.FinancialTFee">