|
|
|
@ -1033,6 +1033,8 @@ class CompanyStatementPoolController extends ThinkController
|
|
|
|
|
|
|
|
|
|
$v['verify_log'] = json_encode($v['verify_log']);
|
|
|
|
|
$v['verify_status']=6;
|
|
|
|
|
|
|
|
|
|
$this->delPayInfo($v['id']);
|
|
|
|
|
$this->DBModel->save($v);
|
|
|
|
|
addOperationLog(['op_type'=>1,'key'=>$v['id'],"op_name"=>"审批撤回",'url'=>U('lists')]);
|
|
|
|
|
}
|
|
|
|
@ -1042,6 +1044,21 @@ class CompanyStatementPoolController extends ThinkController
|
|
|
|
|
));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function delPayInfo($id) {
|
|
|
|
|
|
|
|
|
|
$company_statement_info = M("company_statement_info","tab_")->field("id")->where("pool_id={$id}")->select();
|
|
|
|
|
|
|
|
|
|
M("company_statement_info","tab_")->where("pool_id={$id}")->save(['verify_status'=>0,'pay_verify_status'=>0,'verify_time'=>'','verify_member_id'=>0]);
|
|
|
|
|
|
|
|
|
|
foreach ($company_statement_info as $key => $value) {
|
|
|
|
|
$is_hav = M("pay_statement_info","tab_")->where(['statement_info_id'=>$value['id']])->find();
|
|
|
|
|
if ($is_hav) {
|
|
|
|
|
M("pay_statement_info","tab_")->where(['statement_info_id'=>$value['id']])->delete();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//线下打款
|
|
|
|
|
public function setUlPayment()
|
|
|
|
|
{
|
|
|
|
@ -1807,7 +1824,7 @@ class CompanyStatementPoolController extends ThinkController
|
|
|
|
|
public function splitForPayStatementInfo() {
|
|
|
|
|
$ids = $_REQUEST['ids'];
|
|
|
|
|
|
|
|
|
|
$limit_amount = 10000;
|
|
|
|
|
$limit_amount = 50000;
|
|
|
|
|
|
|
|
|
|
$dbres = $this->DBModel->field("id")->where("id in ({$ids})")->select();
|
|
|
|
|
foreach($dbres as $key=>$value){
|
|
|
|
|