huangsanjia пре 2 година
родитељ
комит
e02994fc5a
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      application/admin/controller/Entrust.php

+ 1 - 1
application/admin/controller/Entrust.php

@@ -331,7 +331,7 @@ class Entrust extends Backend
         $gather_gcms = Db::name('gather_txt_gcms')->where('data_txt_name', ['=',$data_txt],['=',$entrust['sample_no'].'MSR.D'],'or')->order('id desc')->find();
         if (empty($gather_gcms)) {
             $data_txt_gc = $entrust['sample_no'] . '.D';
-            $gather_gc = Db::name('gather_txt_gc')->where('data_txt_name', $data_txt_gc)->order('id desc')->find();
+            $gather_gc = Db::name('gather_txt_gc')->where('data_txt_name', ['=',$data_txt_gc],['=',$entrust['sample_no'].'R.D'],'or')->order('id desc')->find();
             if (empty($gather_gc)) {
                 $this->error('序号为'.$id.'的样品未获取到检测数据,请取消选中');
             }