|
@@ -48,7 +48,7 @@ class MakeSeal extends Command
|
|
|
public function getProductLog($item,$lastId){
|
|
|
$pastLog= ProductOnlog::withJoin(['Product'],'left')
|
|
|
->where([['fz_date','=',$item['fz_date']],['company_code','=',$item['company_code']]])
|
|
|
- ->field('type,order_item_id,product_id,skuCode,goodName,spec,unit,unit_price,num')->cursor();
|
|
|
+ ->field('type,order_item_id,product_id,skuCode,goodName,spec,unit,product_onlog.unit_price,num')->cursor();
|
|
|
$list=[];
|
|
|
$balance = ProductSeal::where([['fz_id','=',$lastId],['balance_num','>',0]])->column('balance_num','product_id');
|
|
|
foreach ($pastLog as $item){
|