diff --git a/application/common/Model/Task.php b/application/common/Model/Task.php index 10a3144..d8f1b34 100755 --- a/application/common/Model/Task.php +++ b/application/common/Model/Task.php @@ -304,6 +304,8 @@ class Task extends CommonModel 'name' => trim($taskTitle), 'exchange_list' => $data['exchangeList'], 'copied_list' => $data['copied_list'], + 'department' => $data['department_code'], + 'department_liaison' => $data['liasion_code'], ]; $result = self::create($data); // self::update(['sort' => $result['id']], ['id' => $result['id']]); diff --git a/application/project/controller/Task.php b/application/project/controller/Task.php index 08e5932..66fed00 100755 --- a/application/project/controller/Task.php +++ b/application/project/controller/Task.php @@ -155,7 +155,7 @@ class Task extends BasicApi */ public function save(Request $request) { - $data = $request::only('name,stage_code,project_code,assign_to,pcode,exchangeList,description,end_time,pri,executor,copied_list'); + $data = $request::only('name,stage_code,project_code,assign_to,pcode,exchangeList,description,end_time,pri,executor,copied_list,department_code,liasion_code'); if (!isset($data['assign_to'])) { $data['assign_to'] = ''; }