setter
parent
aa1ebaf31b
commit
a17a72d6fe
|
@ -250,7 +250,7 @@ class Business extends Base
|
|||
return $validateModel;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Db::startTrans();
|
||||
try {
|
||||
$business->save($item);
|
||||
|
|
|
@ -24,7 +24,7 @@ class BusinessCircle extends Base
|
|||
*/
|
||||
public static function getList()
|
||||
{
|
||||
return self::field('id,name,sort')->order('id', 'desc')->select();
|
||||
return self::field('id,name,sort')->order(["sort"=>"desc",'id'=>'desc'])->select();
|
||||
}
|
||||
|
||||
public static function onAfterInsert($obj)
|
||||
|
|
Loading…
Reference in New Issue