master
wangxinglong 2022-04-21 11:42:15 +08:00
parent 554a64d216
commit 29d693dfae
1 changed files with 3 additions and 2 deletions

View File

@ -23,7 +23,8 @@ class Area extends Base
$q->where("status",self::COMMON_ON);
})
->field("id,code,pcode,name,status")
->order("id asc")->select();
->order(["sort"=>"desc","id"=>"desc"])
->select();
}
/**
*
@ -40,7 +41,7 @@ class Area extends Base
$q->where("status",self::COMMON_ON);
})
->field("id,code,pcode,name,status")
->order("id asc")
->order(["sort"=>"desc","id"=>"desc"])
->select()
->toArray();
}