作者 lyh

gx

... ... @@ -33,7 +33,7 @@ class WebSettingReceivingLogic extends BaseLogic
* @time :2023/5/8 16:26
*/
public function setting_receiving_save(){
try {
// try {
$this->model->del(['project_id'=>$this->user['project_id']]);
foreach ($this->param['data'] as $k => $v){
$v['project_id'] = $this->user['project_id'];
... ... @@ -42,9 +42,9 @@ class WebSettingReceivingLogic extends BaseLogic
$this->param['data'][$k] = $v;
}
$this->model->insert($this->param['data']);
}catch (\Exception $e){
$this->fail('error');
}
// }catch (\Exception $e){
// $this->fail('error');
// }
return $this->success();
}
}
... ...
... ... @@ -21,6 +21,13 @@ class DeptLogic extends BaseLogic
$this->model = new ProjectDept();
}
/**
* @remark :保存组织架构
* @name :save
* @author :lyh
* @method :post
* @time :2023/8/9 9:25
*/
public function save($param){
if(!empty($param['pid'])){
if(!empty($param['id']) && $param['pid'] == $param['id']){
... ...