Преглед на файлове

解决凯和收付费检索不到负数

sunhz преди 3 години
родител
ревизия
d5c361e1cd
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 3 3
      ruoyi-warehouse/src/main/resources/mapper/finance/TFeeMapper.xml

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

@@ -2265,13 +2265,13 @@
             <if test="map.tWareHouseFees.fFromDate != null ">and t.f_bsdate &gt;= #{map.tWareHouseFees.fFromDate}</if>
             <if test="map.tWareHouseFees.fToDate != null ">and t.f_bsdate &lt;= #{map.tWareHouseFees.fToDate}</if>
             <if test='map.tWareHouseFees.fBilltype != null and map.tWareHouseFees.fBilltype != "" and map.tWareHouseFees.fBilltype == "KHDZ" '>
-                and ifnull(w.f_amount, 0) - ifnull(w.f_accamount, 0) > 0
+                and abs(ifnull(w.f_amount, 0) - ifnull(w.f_accamount, 0)) > 0
             </if>
             <if test='map.tWareHouseFees.fBilltype != null and map.tWareHouseFees.fBilltype != "" and map.tWareHouseFees.fBilltype == "KHSF" '>
-                and ifnull(w.f_amount, 0) - ifnull(w.f_stlamount, 0) > 0
+                and abs(ifnull(w.f_amount, 0) - ifnull(w.f_stlamount, 0)) > 0
             </if>
             <if test='map.tWareHouseFees.fBilltype != null and map.tWareHouseFees.fBilltype != "" and map.tWareHouseFees.fBilltype == "KHFF" '>
-                and ifnull(w.f_amount, 0) - ifnull(w.f_stlamount, 0) > 0
+                and abs(ifnull(w.f_amount, 0) - ifnull(w.f_stlamount, 0)) > 0
             </if>
 
             GROUP BY w.f_id