维护用户销售统计——筛选

This commit is contained in:
wanyongkang
2020-11-25 16:49:53 +08:00
parent dc43ba3c4e
commit cb766e0cb5

View File

@@ -5,7 +5,7 @@
* @Author: kangkang
* @Date: 2020-10-13 19:52:37
* @LastEditors: Please set LastEditors
* @LastEditTime: 2020-11-25 16:41:06
* @LastEditTime: 2020-11-25 16:49:22
*/
namespace app\manager\controller;
@@ -192,7 +192,7 @@ class UserFollow extends Controller
//消费统计比对
foreach ($new_month_cost as $info) {
$list[$info['UserId']]['MonthAmount'] = $info['money'];
$list[$info['UserId']]['AddAmount'] = $info['money'] - $list[$info['UserId']]['PrevMonthAmount'];
$list[$info['UserId']]['AddAmount'] = round($info['money'] - $list[$info['UserId']]['PrevMonthAmount'],2);
if ($list[$info['UserId']]['PrevMonthAmount'] != 0) {
$list[$info['UserId']]['persent'] = round(($info['money'] - $list[$info['UserId']]['PrevMonthAmount']) / $list[$info['UserId']]['PrevMonthAmount'] * 100, 2) . '%';
} else {