| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 | 
							- <?php
 
- namespace app\api\controller\v1;
 
- use app\api\controller\Base;
 
- use app\hander\HelpHander;
 
- use think\App;
 
- use think\Db;
 
- use think\exception\Handle;
 
- class DailyRecord extends Base
 
- {
 
-     public function __construct(App $app = null) {
 
-         parent::__construct($app);
 
-         $this->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('暂无数据');
 
-         }
 
-     }
 
- }
 
 
  |