public function fill($get, $post) { $sample_id = $post['sample_id']; $flow_id = $post['flow_id']; $comment = $post['comment']; SampleTechnic::deleteWhere(0, 'flow_id=? AND sample_id=?', $flow_id, $sample_id); $t = new SampleTechnic(); $t->sample_id = $sample_id; $t->flow_id = $flow_id; $t->technic_desc = $comment; $t->save(); return $this->getCommonResult(true); }