'int', 'platform_id' =>'int', 'language_id' =>'int', 'site_id' =>'int', 'old_code' =>'string', 'new_code' =>'string', 'create_time' =>'int', 'update_time' =>'int', ]; /** * * @param $data * @return array|Model|void|null * @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DbException * @throws \think\db\exception\ModelNotFoundException */ public function getLatest($data) { return $this->order($this->pk,'desc')->where($data)->find(); } }