一对一关联
public function getGoodName(){ return $this->belongsTo('appapimodelgoodsGood','goods_good_id','id', [], 'LEFT')->setEagerlyType(0);}以少查多
public function getGoodName(){ return $this->belongsTo('appapimodelgoodsGood','goods_good_id','id');}