fixed
This commit is contained in:
parent
2b7229069a
commit
32fcb1700d
|
@ -113,7 +113,7 @@ class SuYuanController extends BaseAdminController
|
|||
if(empty($params['id']) || empty($params['flag'])){
|
||||
return $this->fail('参数错误');
|
||||
}
|
||||
$data = Db::name('environmental_data')->where('id',$params['id'])->where('flag',$params['flag'])->order('id desc')->findOrEmpty();
|
||||
$data = Db::name('environmental_data')->where('production_base_id',$params['id'])->where('flag',$params['flag'])->order('id desc')->findOrEmpty();
|
||||
if(empty($data)){
|
||||
return $this->success('请求成功',[]);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue