Browse Source

优化接口

huangsanjia 1 year ago
parent
commit
39cad92143
1 changed files with 1 additions and 1 deletions
  1. 1 1
      application/api/controller/WorkOrderVerification.php

+ 1 - 1
application/api/controller/WorkOrderVerification.php

@@ -683,7 +683,7 @@ class WorkOrderVerification extends Api
                     ->whereOr('Gy0_gxmc', '核检')
                     ->whereOr('Gy0_gxmc', '成品防护');
             })
-            ->field('Gy0_yjno,Gy0_gxh')
+            ->field('Gy0_yjno,Gy0_gxh,rtrim(Gy0_gxmc) as Gy0_gxmc')
             ->select();
         foreach ($gyInfo as $key=>$value){
             $gyInfo[$key]['Gy0_yjno'] = $value['Gy0_yjno'] > 10 ? $value['Gy0_yjno'] : '0'.$value['Gy0_yjno'];