master
wangxinglong 2022-04-21 17:18:54 +08:00
parent aa1ebaf31b
commit a17a72d6fe
2 changed files with 2 additions and 2 deletions

View File

@ -250,7 +250,7 @@ class Business extends Base
return $validateModel;
}
}
Db::startTrans();
try {
$business->save($item);

View File

@ -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)