正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
@@ -117,11 +117,11 @@ class AdminIndexController extends AdminBaseController | @@ -117,11 +117,11 @@ class AdminIndexController extends AdminBaseController | ||
117 | } | 117 | } |
118 | } | 118 | } |
119 | $map = [ | 119 | $map = [ |
120 | - 'uid' => ['eq', $son_str], | 120 | + 'uid' => ['in', $son_str], |
121 | 'pay_type' => ['eq', 3], | 121 | 'pay_type' => ['eq', 3], |
122 | 'step' => ['neq', 1] | 122 | 'step' => ['neq', 1] |
123 | ]; | 123 | ]; |
124 | - $data = Db::name('zj_order')->where($map)->field('sum(whole) as whole,sum(whole_num) as whole_num')->select(); | 124 | + $data = Db::name('zj_order')->where($map)->field('*')->select(); |
125 | $whole = $data[0]['whole']; | 125 | $whole = $data[0]['whole']; |
126 | $whole_num = $data[0]['whole_num']; | 126 | $whole_num = $data[0]['whole_num']; |
127 | $total = $whole - $whole_num; | 127 | $total = $whole - $whole_num; |
-
请 注册 或 登录 后发表评论