chuweiqiang 1 年之前
父節點
當前提交
ce1008caf9
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. 2 2
      .idea/workspace.xml
  2. 1 1
      application/api/controller/Expedite.php

+ 2 - 2
.idea/workspace.xml

@@ -3,7 +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/Demand.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/api/controller/Demand.php" 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" />
@@ -472,7 +472,7 @@
       <workItem from="1699922141145" duration="14834000" />
       <workItem from="1699955684123" duration="243000" />
       <workItem from="1700008106547" duration="23152000" />
-      <workItem from="1700094705258" duration="6212000" />
+      <workItem from="1700094705258" duration="6622000" />
     </task>
     <servers />
   </component>

+ 1 - 1
application/api/controller/Expedite.php

@@ -1148,7 +1148,7 @@ class Expedite extends Base
         $press_num = $press_reply_num + $press_comment_num;
 
 
-        $demand_num = DemandComment::where([['t.is_deleted','=',0],['i.user_id','=',$this->user_id],['t.is_read','=',0]])
+        $demand_num = DemandComment::where([['t.is_deleted','=',0],['i.user_id','=',$this->user_id],['t.is_read','=',0],['t.user_id','<>',$this->user_id],['t.pid','=',0]])
             ->leftJoin('PlatformDemand i','t.first_id = i.id')
             ->alias('t')->count();
         $all_comment = DemandComment::where(['user_id'=>$this->user_id,'is_deleted'=>0])->column('id');