|
|
|
@ -1047,6 +1047,12 @@ class CompanyStatementPoolController extends ThinkController
|
|
|
|
|
public function delPayInfo($id) {
|
|
|
|
|
|
|
|
|
|
$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]);
|
|
|
|
|
|
|
|
|
|