切换导航条
此项目
正在载入...
登录
anyv
/
xkeasy
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
差异文件
浏览文件
作者
刘朕
5 years ago
提交
dab2a57877bb7b2c69c86b0f428e6c4c655af6c2
2 个父辈
627044cf
d81062cb
1 个管道 的构建
通过
耗费 17 秒
合并分支 'liuzhen' 到 'master'
后台财务统计新增业务员总余额 查看合并请求
!146
变更
2
构建
1
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
16 行增加
和
0 行删除
app/admin/controller/StatisticalController.php
public/themes/admin_simpleboot3/admin/statistical/financial_list.html
app/admin/controller/StatisticalController.php
查看文件 @
dab2a57
...
...
@@ -41,6 +41,18 @@ class StatisticalController extends AdminBaseController{
$salesman_money
+=
$val
[
'money'
];
}
$this
->
assign
(
'salesman_money'
,
$salesman_money
);
// 业务员总余额
$users_where
=
[
'a.create_time'
=>
[
'>='
,
0
],
'a.status'
=>
[
'in'
,[
2
,
3
]]
];
$total_balance
=
Db
::
name
(
'my_user'
)
->
alias
(
'a'
)
->
field
(
'a.*,b.user_nickname'
)
->
join
(
'user b'
,
'a.uid = b.id'
,
'LEFT'
)
->
where
(
$users_where
)
->
order
([
'a.balance'
=>
'DESC'
,
'a.create_time'
=>
'DESC'
])
->
sum
(
'a.balance'
);
$this
->
assign
(
'total_balance'
,
$total_balance
);
//显示平台抽成收益
$income
=
Db
::
name
(
'income_money'
)
->
where
(
$where3
)
->
select
();
$income_money
=
0
;
...
...
public/themes/admin_simpleboot3/admin/statistical/financial_list.html
查看文件 @
dab2a57
...
...
@@ -33,6 +33,10 @@
<td>
{$salesman_money}
</td>
</tr>
<tr>
<td>
业务员总余额
</td>
<td>
{$total_balance}
</td>
</tr>
<tr>
<td>
平台抽成收益
</td>
<td>
{$income_money}
</td>
</tr>
...
...
请
注册
或
登录
后发表评论