正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -569,7 +569,7 @@ class RankDataLogic extends BaseLogic | @@ -569,7 +569,7 @@ class RankDataLogic extends BaseLogic | ||
| 569 | if(in_array($project_id, array_keys($multiple_api_no_project_ids))){ | 569 | if(in_array($project_id, array_keys($multiple_api_no_project_ids))){ |
| 570 | $api_nos = array_keys($multiple_api_no_project_ids[$project_id]); | 570 | $api_nos = array_keys($multiple_api_no_project_ids[$project_id]); |
| 571 | //今天其他api_no是否都达标了 | 571 | //今天其他api_no是否都达标了 |
| 572 | - $count = RankData::where('project_id', $project_id)->whereIn('api_no', $api_nos)->where('api_no', '<>', $api_no)->where('date', date('Y-m-d')) | 572 | + $count = RankData::where('project_id', $project_id)->whereIn('api_no', $api_nos)->where('api_no', '<>', $api_no)->where('updated_date', date('Y-m-d')) |
| 573 | ->where('is_compliance', 1)->count(); | 573 | ->where('is_compliance', 1)->count(); |
| 574 | if($count == count($api_nos) - 1){ | 574 | if($count == count($api_nos) - 1){ |
| 575 | Project::where('id', $project_id)->update(['is_remain_today' => 1, 'finish_remain_day' => $compliance_day + 1]); | 575 | Project::where('id', $project_id)->update(['is_remain_today' => 1, 'finish_remain_day' => $compliance_day + 1]); |
-
请 注册 或 登录 后发表评论