You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
ymww_backend/application/admin/model/shopro/goods/StockLog.php

33 lines
629 B

<?php
namespace app\admin\model\shopro\goods;
use app\admin\model\shopro\Common;
use app\admin\model\Admin;
class StockLog extends Common
{
protected $name = 'shopro_goods_stock_log';
protected $append = [
];
public function goods()
{
return $this->belongsTo(Goods::class, 'goods_id', 'id')->field('id,title,image,is_sku');
}
public function skuPrice()
{
return $this->belongsTo(SkuPrice::class, 'goods_sku_price_id', 'id');
}
public function oper()
{
return $this->belongsTo(Admin::class, 'admin_id', 'id');
}
}