订单、纠纷

This commit is contained in:
cano
2024-03-11 02:21:52 +08:00
parent 6d242ae973
commit 1161f06aeb
15 changed files with 855 additions and 53 deletions

View File

@ -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);
}
}