优化下游个人结算时间

master
chenzhi 4 years ago
parent 92ccc96dcd
commit 853c938edb

@ -868,9 +868,14 @@ class CompanyStatementSetController extends Controller {
} }
//获取pc公司 //获取pc公司
$pc_id = implode(",",array_flip(array_flip(array_keys($pcList)))); $pc_id = implode(",",array_flip(array_flip(array_keys($pcList))));
$pu_map = [
"id"=>["IN",$pc_id],
"_string"=>"(validity_start_time > 0 AND validity_end_time = 0 ) OR validity_end_time >= {$endtime}",
"company_type"=>2
];
$tmpp = M("PromoteCompany","tab_") $tmpp = M("PromoteCompany","tab_")
->field("id,uid,company_name partner,settlement_contact link_man,contact_phone link_phone,bank_name opening_bank,bank_address payee_name,bank_card bank_account,fax_ratio,taxation_rate,company_belong,company_type,ali_user,ali_account,has_server_fee,server_fee,has_ratio,turnover_ratio") ->field("id,uid,company_name partner,settlement_contact link_man,contact_phone link_phone,bank_name opening_bank,bank_address payee_name,bank_card bank_account,fax_ratio,taxation_rate,company_belong,company_type,ali_user,ali_account,has_server_fee,server_fee,has_ratio,turnover_ratio")
->where(["id"=>['in',$pc_id],"company_type"=>2]) ->where($pu_map)
->select(); ->select();
if(count($tmpp)<1){return;} if(count($tmpp)<1){return;}

Loading…
Cancel
Save