提交其他文件
This commit is contained in:
15
app/common/model/teastore/TeaStoreCollect.php
Normal file
15
app/common/model/teastore/TeaStoreCollect.php
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace app\common\model\teastore;
|
||||
|
||||
use app\common\model\BaseModel;
|
||||
|
||||
class TeaStoreCollect extends BaseModel
|
||||
{
|
||||
public function teaStore()
|
||||
{
|
||||
return $this->hasMany('tea_store', 'id', 'tea_store_id')
|
||||
->where('status', 1)
|
||||
->where('del', 0);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user