订单、纠纷
This commit is contained in:
@ -44,5 +44,15 @@ class PostHistoryModel extends ApiBaseModel
|
||||
return $this->addItem($aItem);
|
||||
}
|
||||
|
||||
//获取最新的历史记录(=当前)
|
||||
function findLastPostId($post_id,$col = ['*']): \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Builder|null
|
||||
{
|
||||
return $this->newQuery()
|
||||
->where('oid',$post_id)
|
||||
->where('method','!=',self::METHOD_DEL)
|
||||
->orderBy('created_at','desc')
|
||||
->first($col);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user