diff --git a/app/controller/manager/Business.php b/app/controller/manager/Business.php index 77376c9..0eccdfa 100644 --- a/app/controller/manager/Business.php +++ b/app/controller/manager/Business.php @@ -250,7 +250,7 @@ class Business extends Base return $validateModel; } } - + Db::startTrans(); try { $business->save($item); diff --git a/app/model/BusinessCircle.php b/app/model/BusinessCircle.php index 51aab8d..31c70ef 100644 --- a/app/model/BusinessCircle.php +++ b/app/model/BusinessCircle.php @@ -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)