model = new \app\common\model\DailyRecord(); } public function queryDailyRecordlist(){ $page =input('page',1); $size =input('size',10); $dailyId =input('dailyId/d',0); $type =input('type/d',0); $ret=$this->model->dailyRecordlist($page,$size,$this->orgId,$dailyId,$this->userId,$type); HelpHander::success($ret); } public function add(){ $jsonArray = [ 'dailyId'=>input('dailyId',0), 'images'=>input('images'), 'content'=>input('content'), 'userId'=>$this->userId, 'orgId'=>$this->orgId, 'checkJson'=>input('checkJson'), 'taskId'=>input('taskId'), ]; $ret=$this->model->addSave($jsonArray); if($ret){ HelpHander::success('添加成功'); }else{ HelpHander::error($this->model->getError()); } } public function queryDailyDetails(){ $dailyRecordId =input('dailyRecordId/d',0); $ret=$this->model->dailyRecordDetails($dailyRecordId,$this->userId); if($ret){ HelpHander::success($ret); }else{ HelpHander::error('暂无数据'); } } }