瀏覽代碼

财务统计财务调用修改

anderx 2 年之前
父節點
當前提交
cb4ed0a131
共有 1 個文件被更改,包括 1 次插入1 次删除
  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>