wupengfei 1 năm trước cách đây
mục cha
commit
3364e94bba
2 tập tin đã thay đổi với 2 bổ sung3 xóa
  1. 1 2
      .idea/workspace.xml
  2. 1 1
      application/nutrition/controller/BanModel.php

+ 1 - 2
.idea/workspace.xml

@@ -2,7 +2,6 @@
 <project version="4">
   <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/BanModel.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/nutrition/controller/BanModel.php" afterDir="false" />
     </list>
     <option name="SHOW_DIALOG" value="false" />
@@ -317,7 +316,7 @@
       <workItem from="1684197725777" duration="3847000" />
       <workItem from="1684284044645" duration="22639000" />
       <workItem from="1684370285483" duration="21209000" />
-      <workItem from="1684457633587" duration="5992000" />
+      <workItem from="1684457633587" duration="6012000" />
     </task>
     <servers />
   </component>

+ 1 - 1
application/nutrition/controller/BanModel.php

@@ -30,7 +30,7 @@ class BanModel extends Controller
     {
         $this->title = '列表';
         $query = $this->_query($this->table);
-        $query->like('name');
+        $query->like('name')->where('is_deleted',0);
         $query->order('id desc')->page();
     }