切换导航条
此项目
正在载入...
登录
李涵
/
integral
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
lihan
6 years ago
提交
5763f5cc39bf5fc490d69fd9076b0c3f412db59a
1 个父辈
72460717
1 个管道 的构建
通过
耗费 2 秒
赠送积分和角色管理
变更
1
构建
1
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
6 行增加
和
7 行删除
app/user/controller/AdminIndexController.php
app/user/controller/AdminIndexController.php
查看文件 @
5763f5c
...
...
@@ -109,8 +109,8 @@ class AdminIndexController extends AdminBaseController
$son_arr
=
Db
::
name
(
'user'
)
->
where
([
'parent_id'
=>
$item
[
'id'
]])
->
field
(
'id'
)
->
select
()
->
toArray
();
if
(
!
empty
(
$son_arr
))
{
$son_str
=
''
;
foreach
(
$son_arr
as
$k
=>
$v
)
{
if
(
$k
==
count
(
$son_arr
)
-
1
)
{
foreach
(
$son_arr
as
$key
=>
$v
)
{
if
(
$key
==
count
(
$son_arr
)
-
1
)
{
$son_str
.=
$v
[
'id'
];
}
else
{
$son_str
.=
$v
[
'id'
]
.
','
;
...
...
@@ -121,11 +121,10 @@ class AdminIndexController extends AdminBaseController
'pay_type'
=>
[
'eq'
,
3
],
'step'
=>
[
'neq'
,
1
]
];
//$data = Db::name('zj_order')->where($map)->field('sum(whole) as whole,sum(whole_num) as whole_num')->select();
// $whole = $data[0]['whole'];
// $whole_num = $data[0]['whole_num'];
// $total = $whole - $whole_num;
$total
=
'???'
;
$data
=
Db
::
name
(
'zj_order'
)
->
where
(
$map
)
->
field
(
'sum(whole) as whole,sum(whole_num) as whole_num'
)
->
select
();
$whole
=
$data
[
0
][
'whole'
];
$whole_num
=
$data
[
0
][
'whole_num'
];
$total
=
$whole
-
$whole_num
;
}
else
{
$total
=
0
;
}
...
...
请
注册
或
登录
后发表评论