|
|
@ -537,16 +537,16 @@ class CompanyStatementSetController extends Controller {
|
|
|
|
$pc =[];
|
|
|
|
$pc =[];
|
|
|
|
$Promote = M("Promote","tab_");
|
|
|
|
$Promote = M("Promote","tab_");
|
|
|
|
foreach ($tmpp as $v) {
|
|
|
|
foreach ($tmpp as $v) {
|
|
|
|
//获取会长的支付宝账号
|
|
|
|
// //获取会长的支付宝账号
|
|
|
|
$p_map = [
|
|
|
|
// $p_map = [
|
|
|
|
"company_id"=>$v['id'],
|
|
|
|
// "company_id"=>$v['id'],
|
|
|
|
"withdraw_done"=>1
|
|
|
|
// "withdraw_done"=>1
|
|
|
|
];
|
|
|
|
// ];
|
|
|
|
$pres = $Promote->field("alipay_account,alipay_real_name")->where($p_map)->find();
|
|
|
|
// $pres = $Promote->field("alipay_account,alipay_real_name")->where($p_map)->find();
|
|
|
|
if(!empty($pres) && !empty($pres['alipay_account']) && !empty($pres['alipay_real_name'])){
|
|
|
|
// if(!empty($pres) && !empty($pres['alipay_account']) && !empty($pres['alipay_real_name'])){
|
|
|
|
$v['ali_user'] = $pres['alipay_real_name'];
|
|
|
|
// $v['ali_user'] = $pres['alipay_real_name'];
|
|
|
|
$v['ali_account'] = $pres['alipay_account'];
|
|
|
|
// $v['ali_account'] = $pres['alipay_account'];
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
if($v['has_ratio']){
|
|
|
|
if($v['has_ratio']){
|
|
|
|
$v['turnover_ratio'] = json_decode($v['turnover_ratio'],true);
|
|
|
|
$v['turnover_ratio'] = json_decode($v['turnover_ratio'],true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|