setter
parent
554a64d216
commit
29d693dfae
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue