Browse Source

[CODE]: 报表分析应收应付 添加 未完成金额

maxianghua 4 years ago
parent
commit
2fb7638bb9
1 changed files with 6 additions and 0 deletions
  1. 6 0
      ruoyi-warehouse/src/main/resources/mapper/finance/TFeeMapper.xml

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

@@ -435,6 +435,11 @@
 
     <select id="warehouseBillsFeesList1" resultType="java.util.Map">
         SELECT
+        a.*,
+        ifnull( a.fAmount, 0 ) - ifnull( a.fStlamount, 0 ) AS nnfinished
+        FROM
+        (
+        SELECT
             w.f_id AS fSrcid,
             t.f_id AS fSrcpid,
             t.f_corpid AS fCorpid,
@@ -522,6 +527,7 @@
             w.f_dc,
             w.f_corpid
         </where>
+        ) a
     </select>
 
     <select id="selectTWarehousebillsItemsList"