Browse Source

财务统计财务调用修改

anderx 2 years ago
parent
commit
cb4ed0a131
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/java/com/goafanti/common/mapper/TOrderInvoiceMapper.xml

+ 1 - 1
src/main/java/com/goafanti/common/mapper/TOrderInvoiceMapper.xml

@@ -633,7 +633,7 @@ where a.status=2 and a.order_no=  #{orderNo,jdbcType=VARCHAR}
               a.order_no = b.order_no
                    left join department c on
               b.order_dep = c.id
-            where a.status in (1, 2) and a.approval in (0,2)
+            where a.status in (1, 2) and a.approval in (0,2) and a.type=0 and b.delete_sign in (0,2)
               and c.finance_id = #{aid})x
       group by x.aid,x.dates
     </select>