wupengfei 1 年之前
父节点
当前提交
10db36ea54
共有 2 个文件被更改,包括 4 次插入5 次删除
  1. 2 5
      .idea/workspace.xml
  2. 2 0
      application/operate/controller/SupplierGoods.php

+ 2 - 5
.idea/workspace.xml

@@ -3,10 +3,7 @@
   <component name="ChangeListManager">
     <list default="true" id="1a36929e-c054-4875-a943-593a74e55fa4" name="Default Changelist" comment="">
       <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/application/nutrition/controller/ArticleReport.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/nutrition/controller/ArticleReport.php" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/application/nutrition/controller/VideoReport.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/nutrition/controller/VideoReport.php" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/application/nutrition/view/article_report/index.html" beforeDir="false" afterPath="$PROJECT_DIR$/application/nutrition/view/article_report/index.html" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/application/nutrition/view/video_report/index.html" beforeDir="false" afterPath="$PROJECT_DIR$/application/nutrition/view/video_report/index.html" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/application/operate/controller/SupplierGoods.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/operate/controller/SupplierGoods.php" afterDir="false" />
     </list>
     <option name="SHOW_DIALOG" value="false" />
     <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -381,7 +378,7 @@
       <workItem from="1689813742376" duration="13449000" />
       <workItem from="1689900489647" duration="18483000" />
       <workItem from="1690159826319" duration="22343000" />
-      <workItem from="1690246325106" duration="16721000" />
+      <workItem from="1690246325106" duration="16916000" />
     </task>
     <servers />
   </component>

+ 2 - 0
application/operate/controller/SupplierGoods.php

@@ -34,6 +34,7 @@ class SupplierGoods extends Controller
     {
         $this->title = '供货商商品列表';
         $supplier_id = input('get.supplier_id');
+        $name = input('get.name');
         $company_id = input('get.company_id');
         $third_classify = input('get.third_classify');
         $this->supplier_id = $supplier_id;
@@ -44,6 +45,7 @@ class SupplierGoods extends Controller
         if($supplier_id)$where[] = ['a.supplier_id','=',$supplier_id];
         if($company_id)$where[] = ['a.company_id','=',$company_id];
         if($third_classify)$where[] = ['a.third_classify','=',$third_classify];
+        if($name)$where[] = ['a.name','like','%'.$name.'%'];
         $query = $this->_query($this->table)->where($where)->like('a.name')->alias('a')->field('a.*,b.title supplier_name ,c.title company_name');
         $query->leftJoin('Supplier b','b.id = a.supplier_id')->leftJoin('Company c','c.id = a.company_id');
         $query->order(' a.sort desc , a.id desc')->page();