whitefang 1 рік тому
батько
коміт
eab4d789b0

+ 0 - 18
app/adminapi/controller/works/ServiceWorkController.php

@@ -43,24 +43,6 @@ class ServiceWorkController extends BaseAdminController
         return $this->dataLists(new ServiceWorkLists());
     }
 
-
-    /**
-     * @notes 添加
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/10 15:06
-     */
-    public function add()
-    {
-        $params = (new ServiceWorkValidate())->post()->goCheck('add');
-        $result = ServiceWorkLogic::add($params);
-        if (true === $result) {
-            return $this->success('添加成功', [], 1, 1);
-        }
-        return $this->fail(ServiceWorkLogic::getError());
-    }
-
-
     /**
      * @notes 编辑
      * @return \think\response\Json

+ 4 - 2
app/adminapi/lists/works/ServiceWorkLists.php

@@ -40,7 +40,7 @@ class ServiceWorkLists extends BaseAdminDataLists implements ListsSearchInterfac
     public function setSearch(): array
     {
         return [
-            '=' => ['id','work_sn', 'real_name', 'mobile', 'address', 'title', 'category_type', 'base_service_fee', 'service_fee', 'work_status','work_pay_status', 'service_status',  'finished_images', 'master_worker_id', 'work_amount','work_type','appoint_approval','refund_approval'],
+            '=' => ['id','work_sn', 'real_name', 'mobile', 'address', 'title', 'category_type', 'base_service_fee', 'service_fee', 'work_status', 'service_status',  'finished_images', 'master_worker_id', 'work_amount','work_type','appoint_approval','refund_approval'],
 
         ];
     }
@@ -88,7 +88,9 @@ class ServiceWorkLists extends BaseAdminDataLists implements ListsSearchInterfac
             $ids[] = $goodsCategoryId;
             $where[] = ['goods_category_id','in' ,$ids];
         }
-        //$where[] = ['work_pay_status','>',0];
+        if(!isset($this->params['work_pay_status'])){
+            $where['work_pay_status'] = ['>',0];
+        }
         return $where;
     }
     /**