瀏覽代碼

[智价云] 地区默认字段更新

tangyuanwang 1 天之前
父節點
當前提交
e1e2982414
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      app/Http/Controllers/Manager/Personnel/Employee.php

+ 4 - 0
app/Http/Controllers/Manager/Personnel/Employee.php

@@ -228,6 +228,8 @@ class Employee extends Controller
         $all_data = request()->all();
         //查询是否存在
         $map = ['name' => $all_data['name']];
+        $city_ids =  request('city_ids','');
+        $all_data['city_ids'] = $city_ids;
         $data = $EmployeeModel->where($map)->first();
         if ($data)     return json_send(['code' => 'error', 'msg' => '员工姓名记录已存在']);
         $map = ['mobile' => $all_data['mobile']];
@@ -255,6 +257,8 @@ class Employee extends Controller
         $id         = request('id', 0);
         // 接收数据
         $all_data = request()->all();
+        $city_ids =  request('city_ids','');
+        $all_data['city_ids'] = $city_ids;
         $all_data['password'] = request('password', '');
         //查询是否存在
         $map = ['name' => $all_data['name']];