修改店铺街接口
This commit is contained in:
parent
3e757d21e8
commit
37abe5abd2
@ -226,12 +226,11 @@ class LocalStoreLogic extends Logic
|
||||
->whereNotNull('shopLogo')
|
||||
->count();
|
||||
|
||||
// dump(LocalStore::getLastSql());die;
|
||||
|
||||
// 这里的Join只是为了配合with获取指定的字段
|
||||
$lists = LocalStore::alias('ls')
|
||||
->with(['street_goods' => function ($query) use ($keyword) {
|
||||
$query->where(['state' => 1, 'audit_status' => 1, 'delete_time' => 0])
|
||||
$query->where('title', 'like', "%{$keyword}%")
|
||||
->where(['state' => 1, 'audit_status' => 1, 'delete_time' => 0])
|
||||
->withLimit(10);
|
||||
}])
|
||||
->withAttr('street_goods.url', function($v) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user