chuweiqiang 1 year ago
parent
commit
e10ce5e509
2 changed files with 6 additions and 7 deletions
  1. 2 5
      .idea/workspace.xml
  2. 4 2
      application/api/controller/Expedite.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/api/controller/Mall.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/api/controller/Mall.php" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/runtime/log/single.log" beforeDir="false" afterPath="$PROJECT_DIR$/runtime/log/single.log" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/runtime/log/single_error.log" beforeDir="false" afterPath="$PROJECT_DIR$/runtime/log/single_error.log" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/runtime/log/single_sql.log" beforeDir="false" afterPath="$PROJECT_DIR$/runtime/log/single_sql.log" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/application/api/controller/Expedite.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/api/controller/Expedite.php" afterDir="false" />
     </list>
     <option name="SHOW_DIALOG" value="false" />
     <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -482,7 +479,7 @@
       <workItem from="1700440204810" duration="14773000" />
       <workItem from="1700526499424" duration="11662000" />
       <workItem from="1700613253175" duration="10732000" />
-      <workItem from="1700699350870" duration="5835000" />
+      <workItem from="1700699350870" duration="7050000" />
     </task>
     <servers />
   </component>

+ 4 - 2
application/api/controller/Expedite.php

@@ -1219,8 +1219,10 @@ class Expedite extends Base
 //            ->where('refund_state','in','0,1,2')
 //            ->count();
         $finish_num = 0;
-        $refund_num = GoodsOrder::where(['user_id'=>$this->user_id,'is_deleted'=>0,'pay_state'=>1,'cancel_state'=>0])
-            ->where('refund_state','in','1')
+        $refund_num = GoodsOrder::where(['user_id'=>$this->user_id,'is_deleted'=>0,'pay_state'=>1,'cancel_state'=>0])->alias('o')
+            ->leftJoin('StoreOrderRefund r','r.order_id = o.id')
+            ->where('o.refund_state','in','1,2,3')
+            ->where('r.status','in','0,1,2,4')
             ->count();
         $mark_num = $trolley_num + $no_pay_num +  $no_express_num + $express_num + $finish_num + $finish_num + $refund_num;
         //招聘