This commit is contained in:
mkm 2023-08-12 17:46:01 +08:00
parent 850202d48b
commit 12f91ef36c
2 changed files with 3 additions and 0 deletions

View File

@ -63,6 +63,7 @@ class CompanyController extends BaseAdminController
$params['other_contacts'] = json_encode($params['other_contacts']);
$params['qualification'] = json_encode($params['qualification']);
$params['area_manager']=$this->adminId;
$params['responsible_area']=implode(',',$params['responsible_area']);
$result = CompanyLogic::add($params);
if (true === $result) {
return $this->success('添加成功', [], 1, 1);
@ -82,6 +83,7 @@ class CompanyController extends BaseAdminController
$params = (new CompanyValidate())->post()->goCheck('edit');
$params['other_contacts'] = json_encode($params['other_contacts']);
$params['qualification'] = json_encode($params['qualification']);
$params['responsible_area']=implode(',',$params['responsible_area']);
$result = CompanyLogic::edit($params);
if (true === $result) {
return $this->success('编辑成功', [], 1, 1);

View File

@ -71,6 +71,7 @@ class CompanyLogic extends BaseLogic
'other_contacts' => $params['other_contacts'],
'area_manager' => $params['area_manager'] ?? 0,
'qualification' => $params['qualification'],
'responsible_area' => $params['responsible_area'],
'admin_id' => 0,
'level_one' => $level_one,
];