master
wangxinglong 2022-03-16 10:33:44 +08:00
parent 3f767a3596
commit 4e814a860b
1 changed files with 4 additions and 1 deletions

View File

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