setter
parent
3f767a3596
commit
4e814a860b
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue