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