Browse Source

报表优化

wufeng 2 years ago
parent
commit
3e5eefdf80
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/command/Report.php

+ 1 - 1
app/command/Report.php

@@ -599,7 +599,7 @@ class Report extends Command
 		          ->leftJoin("invoice_good m","m.invNo=a.invNo and m.invtype=0 and m.is_del=0")
 //		          ->leftJoin('assoc d', 'd.viceCode=a.invNo and d.type=1')
 		          ->leftJoin('qrd_info e', 'e.sequenceNo=m.orderCode')
-		          ->leftJoin('cgd_info f', 'e.cgdNo=e.cgdNo')
+		          ->leftJoin('cgd_info f', 'f.sequenceNo=e.cgdNo')
 		          ->leftJoin('invoice_return g', 'g.invNo=a.invNo and g.status=2')
 		          ->where($where)
 		          ->order(['a.id' => 'desc'])