32 lines
749 B
PHP
32 lines
749 B
PHP
<?php
|
|
|
|
namespace app\traits\account;
|
|
|
|
use app\model\BusinessFlow;
|
|
|
|
trait BusinessFlowTrait
|
|
{
|
|
/**
|
|
* 获取关注的商家列表
|
|
* @param $accountCode
|
|
* @param $page
|
|
* @param $size
|
|
* @return
|
|
*/
|
|
public function getBusinessFlowList($accountCode, $page, $size)
|
|
{
|
|
return BusinessFlow::alias("a")
|
|
->join("business b","a.business_code = b.code")
|
|
->where("a.user_code",$accountCode)
|
|
->field(["b.code",
|
|
"b.business_name",
|
|
"b.business_subtitle",
|
|
"b.lat",
|
|
"b.lng",
|
|
"b.characteristic",
|
|
"b.background",
|
|
])
|
|
->page($page,$size)
|
|
->select();
|
|
}
|
|
} |