Explorar o código

优化样品编号查询

huangsanjia %!s(int64=2) %!d(string=hai) anos
pai
achega
e02994fc5a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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.'的样品未获取到检测数据,请取消选中');
             }