소스 검색

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

maxianghua 4 년 전
부모
커밋
2fb7638bb9
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  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"