diff --git a/app/controller/manager/Business.php b/app/controller/manager/Business.php index f5d5747..2a38345 100644 --- a/app/controller/manager/Business.php +++ b/app/controller/manager/Business.php @@ -365,7 +365,10 @@ class Business extends Base } Db::startTrans(); try { - $business->save(["agency_code" => $anent_code]); + $business->save([ + "agency_code" => $anent_code, + "is_assign" => empty($businessCode) ? BusinessModel::COMMON_OFF : BusinessModel::COMMON_ON + ]); Db::commit(); return $this->json(); } catch (RepositoryException $e) {