|
|
|
@ -132,12 +132,12 @@ class CompanyStatementController extends ThinkController
|
|
|
|
|
->order("FIELD(verify_status,0,1,-1,2,3,-2,-3),id desc")->page($page,$row)->select();
|
|
|
|
|
foreach($data as $k => &$v) {
|
|
|
|
|
|
|
|
|
|
$v['statement_begin_time'] = date('Y-m-d',$v['statement_begin_time']);
|
|
|
|
|
$v['statement_end_time'] = date('Y-m-d',$v['statement_end_time']);
|
|
|
|
|
$v['statement_begin_time'] = date('Y.m.d',$v['statement_begin_time']);
|
|
|
|
|
$v['statement_end_time'] = date('Y.m.d',$v['statement_end_time']);
|
|
|
|
|
|
|
|
|
|
$v['company_belong'] = $this->CompanyBelong[$v['company_belong']];
|
|
|
|
|
$v['op_time'] = date('Y-m-d H:i:s',$v['op_time']);
|
|
|
|
|
$v["valid"] = "{$v['statement_begin_time']} ~ {$v['statement_end_time']}";
|
|
|
|
|
$v['op_time'] = date('Y.m.d H:i:s',$v['op_time']);
|
|
|
|
|
$v["valid"] = "{$v['statement_begin_time']}-{$v['statement_end_time']}";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$v['withdraw_type_1'] = ($v['withdraw_type'] == 1 ? "月结" :"周结");
|
|
|
|
@ -282,7 +282,7 @@ class CompanyStatementController extends ThinkController
|
|
|
|
|
$y = M("CompanyStatement", "tab_")->where("id='{$params['id']}'")->find();
|
|
|
|
|
if($y['first_party_info'] != $params['first_party_info'] || $y['second_party_info'] != $params['second_party_info'] || $y['statement_info'] != $params['statement_info']){
|
|
|
|
|
$params['verify_status'] = 0;
|
|
|
|
|
$params['verify_log'] = json_encode(["create_user"=>$this->admininfo["username"],"create_time"=>date("Y-m-d H:i:s")]);
|
|
|
|
|
$params['verify_log'] = json_encode(["create_user"=>$this->admininfo["username"],"create_time"=>date("Y.m.d H:i:s")]);
|
|
|
|
|
$params['op_time'] = time();
|
|
|
|
|
M("CompanyStatement","tab_")->save($params);
|
|
|
|
|
}
|
|
|
|
@ -342,7 +342,7 @@ class CompanyStatementController extends ThinkController
|
|
|
|
|
if($v['confirm_status'] != 0) continue;
|
|
|
|
|
$v['confirm_log'] = json_decode($v['confirm_log'],true);
|
|
|
|
|
$v['confirm_log']['launch_user']=$this->admininfo["username"];
|
|
|
|
|
$v['confirm_log']['launch_time']=date("Y-m-d H:i:s");
|
|
|
|
|
$v['confirm_log']['launch_time']=date("Y.m.d H:i:s");
|
|
|
|
|
$v['confirm_log'] = json_encode($v['confirm_log']);
|
|
|
|
|
$v['confirm_status']=1;
|
|
|
|
|
// $v['op_time'] = time();
|
|
|
|
@ -364,7 +364,7 @@ class CompanyStatementController extends ThinkController
|
|
|
|
|
if($v['verify_status'] != $old_status) continue;
|
|
|
|
|
$v['verify_log'] = json_decode($v['verify_log'],true);
|
|
|
|
|
$v['verify_log'][$op_pre.'_user']=$this->admininfo["username"];
|
|
|
|
|
$v['verify_log'][$op_pre.'_time']=date("Y-m-d H:i:s");
|
|
|
|
|
$v['verify_log'][$op_pre.'_time']=date("Y.m.d H:i:s");
|
|
|
|
|
$v['verify_log'] = json_encode($v['verify_log']);
|
|
|
|
|
$v['verify_status']=$change_status;
|
|
|
|
|
$v['op_time'] = time();
|
|
|
|
@ -484,7 +484,7 @@ class CompanyStatementController extends ThinkController
|
|
|
|
|
"fine"=>0,
|
|
|
|
|
"reward"=>0,
|
|
|
|
|
"verify_status"=>0,
|
|
|
|
|
"verify_log"=>json_encode(["create_user"=>$this->admininfo["username"],"create_time"=>date("Y-m-d H:i:s")]),
|
|
|
|
|
"verify_log"=>json_encode(["create_user"=>$this->admininfo["username"],"create_time"=>date("Y.m.d H:i:s")]),
|
|
|
|
|
"op_time"=>time(),
|
|
|
|
|
"company_list"=>[]
|
|
|
|
|
];
|
|
|
|
@ -534,7 +534,7 @@ class CompanyStatementController extends ThinkController
|
|
|
|
|
|
|
|
|
|
if($v['statement_money'] == 0){
|
|
|
|
|
$v['verify_status'] = 5;
|
|
|
|
|
$v['verify_log'] = json_encode(["create_user"=>$this->admininfo["username"],"create_time"=>date("Y-m-d H:i:s"),"verify_user"=>"system","verify_time"=>date("Y-m-d H:i:s"),"payment_user"=>"system","payment_time"=>date("Y-m-d H:i:s")]);
|
|
|
|
|
$v['verify_log'] = json_encode(["create_user"=>$this->admininfo["username"],"create_time"=>date("Y.m.d H:i:s"),"verify_user"=>"system","verify_time"=>date("Y.m.d H:i:s"),"payment_user"=>"system","payment_time"=>date("Y.m.d H:i:s")]);
|
|
|
|
|
}
|
|
|
|
|
//判断周月结
|
|
|
|
|
if(($v["statement_end_time"]-$v['statement_begin_time']) > 7*24*3600){
|
|
|
|
@ -568,7 +568,7 @@ class CompanyStatementController extends ThinkController
|
|
|
|
|
if($v['verify_status'] != $old_status) continue;
|
|
|
|
|
$v['verify_log'] = json_decode($v['verify_log'],true);
|
|
|
|
|
$v['verify_log'][$op_pre.'_user']=$this->admininfo["username"];
|
|
|
|
|
$v['verify_log'][$op_pre.'_time']=date("Y-m-d H:i:s");
|
|
|
|
|
$v['verify_log'][$op_pre.'_time']=date("Y.m.d H:i:s");
|
|
|
|
|
$v['verify_log'][$op_pre.'_num']=$num;
|
|
|
|
|
$v['verify_log'] = json_encode($v['verify_log']);
|
|
|
|
|
$v['verify_status']=$change_status;
|
|
|
|
|