belongsTo('app\\common\\model\\supplier\\Supplier', 'shop_supplier_id', 'shop_supplier_id'); } /** * 详情 */ public static function detail($shop_supplier_id, $with = []) { return (new static())->with($with)->where('shop_supplier_id', '=', $shop_supplier_id)->findOrEmpty(); } /** * 详情 */ public static function detailByCondition($where, $with = []) { return (new static())->with($with)->where($where)->find(); } }