This commit is contained in:
unknown 2023-10-14 17:59:44 +08:00
parent 2b7229069a
commit 32fcb1700d
1 changed files with 1 additions and 1 deletions

View File

@ -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('请求成功',[]);
}