浏览代码

[CODE]: 财务检索

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

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

@@ -351,6 +351,7 @@
             </if>
             and  t.f_review_date IS NOT NULL
             and  ifnull(w.f_amount, 0) - ifnull(w.f_stlamount, 0) > 0
+            GROUP BY  w.f_id
         </where>
     </select>
 
@@ -504,9 +505,9 @@
                     #{id}
                 </foreach>
             </if>
-
             and  t.f_review_date IS NOT NULL
             and  ifnull(w.f_amount, 0) - ifnull(w.f_accamount, 0) > 0
+            GROUP BY  w.f_id
         </where>
     </select>