更新
This commit is contained in:
parent
850202d48b
commit
12f91ef36c
@ -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);
|
||||
|
@ -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,
|
||||
];
|
||||
|
Loading…
x
Reference in New Issue
Block a user