Skip to content

Commit

Permalink
Update TeamController.class.php
Browse files Browse the repository at this point in the history
  • Loading branch information
star7th authored Feb 16, 2021
1 parent d3a9864 commit a23c675
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/Application/Api/Controller/TeamController.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function getList(){
$value['memberCount'] = D("TeamMember")->where(" team_id = '$value[id]' ")->count();

//获取该团队涉及项目数
$value['itemCount'] = D("TeamItem")->where(" team_id = '$value[id]' ")->count();
$value['itemCount'] = D("TeamItem")->where(" team_id = '$value[id]' and item.is_del = 0 ")->join("left join item on item.item_id = team_item.item_id")->count();

$value['addtime'] = date("Y-m-d H:i:s" , $value['addtime']);
}
Expand Down Expand Up @@ -120,4 +120,4 @@ public function attorn(){



}
}

0 comments on commit a23c675

Please sign in to comment.