12345678910111213141516171819202122232425262728 |
- <?php
- declare (strict_types = 1);
- namespace app\txx\model;
- use app\admin\model\GoodBasic;
- use app\admin\model\Platform;
- use think\model;
- /**
- * @mixin \think\Model
- */
- class PlatformYouzan extends Model
- {
- public function good(){
- return $this->belongsTo(GoodBasic::class,"spuCode","spuCode")
- ->bind(["good_name","cat_id","is_exclusive","brand_id","good_img","good_unit","unit_name","brand_name","cat_name",'cat_search']);
- }
- public function platform(){
- return $this->belongsTo(Platform::class,"platform_id","id")->bind(["platform_name"]);
- }
- public function yzGood(){
- return $this->belongsTo(YzGood::class,"skuCode","item_no")->bind(["origin_price"=>"origin","deatil_url","yz_status"=>"status"]);
- }
- }
|