12月功能提交

master
zhengyongxing 4 years ago
parent 50b5e2cf0e
commit 747224dae9

@ -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){

@ -619,6 +619,12 @@
}).get();
text = text.join(",");
if (!text) {
layer.msg("<font style='color: white'>管理后台汇总单未审核,请重新审核后再进行打款</font>");
return;
}
layer.open({
type: 2,
title: "打款详情",

Loading…
Cancel
Save