// +---------------------------------------------------------------------- namespace app\common\dao\system; use app\common\dao\BaseDao; use app\common\model\system\Huitong; /** * Class StoreOrderDao * @package app\common\dao\store\order * @author xaboy * @day 2020/6/8 */ class HuitongDao extends BaseDao { /** * @return string * @author xaboy * @day 2020/6/8 */ protected function getModel(): string { return Huitong::class; } public function getLastHuitong(){ return Huitong::order('id desc')->find(); } }