Browse Source

拆单脚本优化

wufeng 2 years ago
parent
commit
81559a0beb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/command/SplitSale.php

+ 1 - 1
app/command/SplitSale.php

@@ -93,7 +93,7 @@ class SplitSale extends Command
 
                     //订单回款通道各公司税点
                     $pay_rates = Db::name('pay_log')
-                        ->where(['is_del' => 0, 'pay_id' => $sale['pay_id']])
+                        ->where(['is_del' => 0, 'pay_id' => $sale['pay_id'], 'orderCode' => $sale['orderCode']])
                         ->field(true)
                         ->order(['weight' => 'desc'])
                         ->cursor();