|
|
|
@ -56,6 +56,12 @@ class CompanyStatementOfflineController extends ThinkController
|
|
|
|
|
$map['c.company_name'] =["LIKE","%{$_REQUEST['company_name']}%"];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(isset($_REQUEST['statement_pool_num'])){
|
|
|
|
|
$map['p.statement_num'] =["LIKE","%{$_REQUEST['statement_pool_num']}%"];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//条件end
|
|
|
|
|
$data = M("company_statement_info","tab_")
|
|
|
|
|
->alias("c")
|
|
|
|
@ -78,7 +84,7 @@ class CompanyStatementOfflineController extends ThinkController
|
|
|
|
|
|
|
|
|
|
$v["pay_info"] = json_decode($v['pay_info'], true);
|
|
|
|
|
if(isset($v['pay_info']['payment_user'])){
|
|
|
|
|
$v["payment"]= "{$v['pay_status_str']}({$v['verify_log']['payment_user']})<br>{$v['verify_log']['payment_time']}";
|
|
|
|
|
$v["payment"]= "{$v['pay_status_str']}({$v['pay_info']['payment_user']})<br>{$v['pay_info']['payment_time']}";
|
|
|
|
|
}else{
|
|
|
|
|
$v["payment"] = $v["pay_status_str"];
|
|
|
|
|
}
|
|
|
|
@ -143,6 +149,56 @@ class CompanyStatementOfflineController extends ThinkController
|
|
|
|
|
"info"=>"打款确认成功"
|
|
|
|
|
));
|
|
|
|
|
}
|
|
|
|
|
public function viewStatement()
|
|
|
|
|
{
|
|
|
|
|
if(!isset($_REQUEST['id'])){
|
|
|
|
|
$this->error('参数错误');
|
|
|
|
|
}
|
|
|
|
|
$id = $_REQUEST['id'];
|
|
|
|
|
$is_export= false;
|
|
|
|
|
if (isset($_REQUEST['export']) && $_REQUEST['export']==1){
|
|
|
|
|
$is_export = true;
|
|
|
|
|
}
|
|
|
|
|
//获取基本信息
|
|
|
|
|
$dbres = M("company_statement_info","tab_")->where("id='{$id}'")->select();
|
|
|
|
|
$title = $dbres[0]['company_name'];
|
|
|
|
|
$this->assign("title",$title);
|
|
|
|
|
|
|
|
|
|
if($dbres[0]['company_type'] == 3){
|
|
|
|
|
//上游
|
|
|
|
|
A("CompanyStatementPool")->viewCpPool($dbres,$is_export);
|
|
|
|
|
}elseif($dbres[0]['company_type'] == 1){
|
|
|
|
|
//下游公司
|
|
|
|
|
A("CompanyStatementPool")->viewPcPool($dbres,$is_export);
|
|
|
|
|
}else{
|
|
|
|
|
A("CompanyStatementPool")->viewPuPool($dbres,$is_export);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function export(){
|
|
|
|
|
if(!isset($_REQUEST['ids'])) $this->error("参数错误");
|
|
|
|
|
$ids = $_REQUEST['ids'];
|
|
|
|
|
$dbres = M("company_statement_info","tab_")->where("id in ({$ids})")->select();
|
|
|
|
|
|
|
|
|
|
$is_export= false;
|
|
|
|
|
if (isset($_REQUEST['export']) && $_REQUEST['export']==1){
|
|
|
|
|
$is_export = true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if($dbres[0]['company_type'] == 3){
|
|
|
|
|
//上游
|
|
|
|
|
$this->assign("title","上游公司线下打款");
|
|
|
|
|
A("CompanyStatementPool")->viewCpPool($dbres,$is_export);
|
|
|
|
|
}elseif($dbres[0]['company_type'] == 1){
|
|
|
|
|
//下游公司
|
|
|
|
|
$this->assign("title","下游公司线下打款");
|
|
|
|
|
A("CompanyStatementPool")->viewPcPool($dbres,$is_export);
|
|
|
|
|
}else{
|
|
|
|
|
$this->assign("title","下游个人线下打款");
|
|
|
|
|
A("CompanyStatementPool")->viewPuPool($dbres,$is_export);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected function setOneVerifyStatus($change_status,$op_pre,$id)
|
|
|
|
|
{
|
|
|
|
|
$dbres = M("company_statement_pool","tab_")->field("id,verify_status,verify_log")->where("id = {$id}")->find();
|
|
|
|
|