正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
@@ -84,8 +84,8 @@ class Dashboard extends Backend | @@ -84,8 +84,8 @@ class Dashboard extends Backend | ||
84 | $BaoXiuZhandian = Db::name('baoxiudan')->where('zhandian_id', $v['id'])->where($map)->select(); | 84 | $BaoXiuZhandian = Db::name('baoxiudan')->where('zhandian_id', $v['id'])->where($map)->select(); |
85 | $BaoxiuWancheng = Db::name('baoxiudan')->where('zhandian_id', $v['id'])->where($map)->where('type', 2)->select(); | 85 | $BaoxiuWancheng = Db::name('baoxiudan')->where('zhandian_id', $v['id'])->where($map)->where('type', 2)->select(); |
86 | $BaoxiuWeiWancheng = Db::name('baoxiudan')->where('zhandian_id', $v['id'])->where($map)->where('type', 1)->select(); | 86 | $BaoxiuWeiWancheng = Db::name('baoxiudan')->where('zhandian_id', $v['id'])->where($map)->where('type', 1)->select(); |
87 | - $Round = round(count($BaoxiuWancheng) / count($BaoxiuArr) * 100, 2); | ||
88 | - $WRound = round(count($BaoxiuWeiWancheng) / count($BaoxiuArr) * 100, 2); | 87 | + $Round = round(count($BaoxiuWancheng) / count($BaoXiuZhandian) * 100, 2); |
88 | + $WRound = round(count($BaoxiuWeiWancheng) / count($BaoXiuZhandian) * 100, 2); | ||
89 | if (empty($BaoXiuZhandian)) { | 89 | if (empty($BaoXiuZhandian)) { |
90 | $data[$k]['baoxiu_num'] = 0; | 90 | $data[$k]['baoxiu_num'] = 0; |
91 | $data[$k]['BaoXiuStr'] = ''; | 91 | $data[$k]['BaoXiuStr'] = ''; |
-
请 注册 或 登录 后发表评论