...
|
...
|
@@ -225,6 +225,8 @@ class PayController extends HomeBaseController |
|
|
$money += $val['commission']*$val['number'];
|
|
|
$money_in = $val['commission']*$val['number'];
|
|
|
$money_income_teacher['create_time'] = time();
|
|
|
$money_income_teacher['create_time_detail'] = msectime();
|
|
|
$money_income_teacher['indent_goods_id'] = $val['id'];
|
|
|
$money_income_teacher['money'] = $money_in;
|
|
|
$money_income_teacher['type'] = 2;
|
|
|
$money_income_teacher['book_name'] = $val['book_name'];
|
...
|
...
|
@@ -253,6 +255,7 @@ class PayController extends HomeBaseController |
|
|
Db::name('my_user') -> where('uid',$order['salesman_uid']) -> setInc('balance',$balance_salesman);
|
|
|
//添加业务员的收入记录
|
|
|
$money_income_salesman_indent['create_time'] = time();
|
|
|
$money_income_salesman_indent['create_time_detail'] = msectime();
|
|
|
$money_income_salesman_indent['uid'] = $order['salesman_uid'];
|
|
|
$money_income_salesman_indent['money'] = $balance_salesman;
|
|
|
$money_income_salesman_indent['type'] = 2;
|
...
|
...
|
|