正在显示
1 个修改的文件
包含
2 行增加
和
1 行删除
@@ -428,8 +428,9 @@ class Business extends Base | @@ -428,8 +428,9 @@ class Business extends Base | ||
428 | //当前店铺下的佣金发放记录 | 428 | //当前店铺下的佣金发放记录 |
429 | $rows = Db::name('verification_brokerage_record a') | 429 | $rows = Db::name('verification_brokerage_record a') |
430 | ->join("user b","a.send_user_id = b.id","left") | 430 | ->join("user b","a.send_user_id = b.id","left") |
431 | + ->join("staff c","c.user_id = b.id","left") | ||
431 | ->where(['a.verification_store_id'=>$store_id]) | 432 | ->where(['a.verification_store_id'=>$store_id]) |
432 | - ->field("a.commission,a.send_createtime,a.send_result,a.send_reason,b.nickname,b.mobile") | 433 | + ->field("a.commission,a.send_createtime,a.send_result,a.send_reason,b.nickname,c.phone as mobile") |
433 | ->paginate(20)->each(function($item){ | 434 | ->paginate(20)->each(function($item){ |
434 | $item['send_createtime'] = !empty($item['send_createtime'])?date("Y-m-d H:i",$item['send_createtime']):''; | 435 | $item['send_createtime'] = !empty($item['send_createtime'])?date("Y-m-d H:i",$item['send_createtime']):''; |
435 | $item['send_result'] = $item['send_result'] == 1?'成功':'失败'; | 436 | $item['send_result'] = $item['send_result'] == 1?'成功':'失败'; |
-
请 注册 或 登录 后发表评论