unknown 4 месяцев назад
Родитель
Сommit
77aaf691dd

+ 1 - 0
application/api/controller/GluingReport.php

@@ -0,0 +1 @@
+<?php

+ 4 - 4
application/api/controller/PrintingPlate.php

@@ -29,7 +29,6 @@ class PrintingPlate extends Api
             'MN印版' => $this->buildTree('05'),
             '翌星印版' => $this->buildTree('Y05')
         ];
-
         $this->success('成功', $data);
     }
     //私有方法,构建数据
@@ -63,10 +62,10 @@ class PrintingPlate extends Api
                 case 2: // 二级节点 (0501/Y0501)
                     $parentCode = substr($code, 0, strlen($prefix));
                     $parentKey = "{$parentCode} {$map[$parentCode]}";
-                    $number = db('产品_印版库')->where('存货编码','like',$code.'%')->count();
-                    if ($number > 0) {{
+//                    $number = db('产品_印版库')->where('存货编码','like',$code.'%')->count();
+//                    if ($number > 0) {{
                         $tree[$parentKey][$key] = [];
-                    }}
+//                    }}
 
                     break;
 
@@ -83,6 +82,7 @@ class PrintingPlate extends Api
                     break;
             }
         }
+
         return $tree;
     }