...
|
...
|
@@ -261,4 +261,34 @@ class InspectionController extends RestBaseController |
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* @title 日检记录
|
|
|
* @description 接口说明
|
|
|
* @author 开发者
|
|
|
* @url /api/home/inspection/insRecord
|
|
|
* @method GET
|
|
|
*
|
|
|
* @header name:token require:1 default: desc:header
|
|
|
*
|
|
|
* @param name:date_time type:int require:1 default: other desc:时间
|
|
|
* @param name:project_id type:int require:1 default: other desc:项目id
|
|
|
*
|
|
|
* @return id:报表id
|
|
|
*/
|
|
|
public function insRecord(){
|
|
|
if($this->request->isGet()){
|
|
|
$data = $this->request->get();
|
|
|
$rule = config('site.ins_record');
|
|
|
$validate = new Validate($rule['rule'],$rule['msg']);
|
|
|
if (!$validate->check($data)) {
|
|
|
$this->error($validate->getError());
|
|
|
}
|
|
|
$common = new CommonController();
|
|
|
$res = $common->getInsRecord('inspect',$data);
|
|
|
$this->success('成功',$res);
|
|
|
}else{
|
|
|
$this->error('请求方式错误');
|
|
|
}
|
|
|
}
|
|
|
|
|
|
} |
...
|
...
|
|