12月功能提交

master
zhengyongxing 4 years ago
parent 747224dae9
commit 52ff4a2bc6

@ -1047,6 +1047,12 @@ class CompanyStatementPoolController extends ThinkController
public function delPayInfo($id) { public function delPayInfo($id) {
$company_statement_info = M("company_statement_info","tab_")->field("id")->where("pool_id={$id}")->select(); $company_statement_info = M("company_statement_info","tab_")->field("id")->where("pool_id={$id}")->select();
//有一笔单子已打款将不可撤回
foreach ($company_statement_info as $key => $value) {
if($value['pay_status'] == 1) {
return;
}
}
M("company_statement_info","tab_")->where("pool_id={$id}")->save(['verify_status'=>0,'pay_verify_status'=>0,'verify_time'=>'','verify_member_id'=>0]); M("company_statement_info","tab_")->where("pool_id={$id}")->save(['verify_status'=>0,'pay_verify_status'=>0,'verify_time'=>'','verify_member_id'=>0]);

Loading…
Cancel
Save