Explorar o código

[CODE]: 财务检索

maxianghua %!s(int64=4) %!d(string=hai) anos
pai
achega
181c9d7aaf

+ 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>