Browse Source

优化流程单

huangsanjia 1 year ago
parent
commit
e01aff9516
1 changed files with 1 additions and 1 deletions
  1. 1 1
      application/api/controller/ProcessDocument.php

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

@@ -41,7 +41,7 @@ class ProcessDocument extends Api
         //胶印车间计量单位为”张“,凹印车间计量单位一般为”吨“
         $info = db('工单_基本资料')->alias('a')
             ->join('工单_bom资料 b ',' a.Gd_gdbh=b.BOM_工单编号','left')
-            ->field('a.成品代号,a.产品版本号,b.BOM_计划用量,b.BOM_物料名称')
+            ->field('DISTINCT(b.BOM_物料名称),a.成品代号,a.产品版本号,b.BOM_计划用量')
             ->where($map)
             ->where('b.BOM_产出单位',['eq','张'],['eq','吨'],'or')
             ->select();