作者 lyh

gx

@@ -65,6 +65,7 @@ class ProcessRecordsLogic extends BaseLogic @@ -65,6 +65,7 @@ class ProcessRecordsLogic extends BaseLogic
65 public function recordSave(){ 65 public function recordSave(){
66 $info = $this->model->read(['project_id'=>$this->param['project_id']]); 66 $info = $this->model->read(['project_id'=>$this->param['project_id']]);
67 $this->param['operator_id'] = $this->manager['id']; 67 $this->param['operator_id'] = $this->manager['id'];
  68 + $this->param['date'] = $this->param['record'][0]['date'] ?? null;
68 $this->param['record'] = json_encode($this->param['record']); 69 $this->param['record'] = json_encode($this->param['record']);
69 if($info === false){ 70 if($info === false){
70 $res = $this->model->add($this->param); 71 $res = $this->model->add($this->param);