setter
parent
3f767a3596
commit
4e814a860b
|
@ -365,7 +365,10 @@ class Business extends Base
|
||||||
}
|
}
|
||||||
Db::startTrans();
|
Db::startTrans();
|
||||||
try {
|
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();
|
Db::commit();
|
||||||
return $this->json();
|
return $this->json();
|
||||||
} catch (RepositoryException $e) {
|
} catch (RepositoryException $e) {
|
||||||
|
|
Loading…
Reference in New Issue