فهرست منبع

up 状态判断

liugc 1 سال پیش
والد
کامیت
baf89cc1a9
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      app/adminapi/logic/notice/NoticeLogic.php

+ 2 - 2
app/adminapi/logic/notice/NoticeLogic.php

@@ -255,8 +255,8 @@ class NoticeLogic extends BaseLogic
             //$params['business_code']
             //$params['business_code']
             switch ($params['business_code']){
             switch ($params['business_code']){
                 case 'service_work':
                 case 'service_work':
-                    // 用户下单待派单
-                    $serviceWorkCount = ServiceWork::where('work_status', 0)->where('work_pay_status','>', 0)->count('id');
+                    // 用户下单待派单 service_status
+                    $serviceWorkCount = ServiceWork::where('work_status', 0)->where('service_status','<', 3)->where('work_pay_status','>', 0)->count('id');
                     if($serviceWorkCount){
                     if($serviceWorkCount){
                         $noticeInfo['confirm_code'] = 101;
                         $noticeInfo['confirm_code'] = 101;
                         $noticeInfo['count'] = $serviceWorkCount;
                         $noticeInfo['count'] = $serviceWorkCount;