|
|
@ -372,7 +372,16 @@ class CompanyStatementController extends ThinkController
|
|
|
|
public function delStatement(){
|
|
|
|
public function delStatement(){
|
|
|
|
if(!isset($_REQUEST['ids'])) $this->error("参数错误");
|
|
|
|
if(!isset($_REQUEST['ids'])) $this->error("参数错误");
|
|
|
|
$ids = $_REQUEST['ids'];
|
|
|
|
$ids = $_REQUEST['ids'];
|
|
|
|
$dbres = $this->DBModel->where("id in ({$ids}) and verify_status = 0")->delete();
|
|
|
|
// $dbres = $this->DBModel->where("id in ({$ids}) and verify_status = 0")->delete();
|
|
|
|
|
|
|
|
$dbres = $this->DBModel->where("id in ({$ids})")->select();
|
|
|
|
|
|
|
|
foreach ($dbres as $key=>$value) {
|
|
|
|
|
|
|
|
if($value['withdraw_type'] !=3) {
|
|
|
|
|
|
|
|
$this->DBModel->where("id = {$value['id']} and verify_status = 0")->delete();
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
$this->DBModel->where("id = {$value['id']}")->delete();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
addOperationLog(['op_type'=>2,'key'=>$ids,"op_name"=>"删除结算单",'url'=>U('lists')]);
|
|
|
|
addOperationLog(['op_type'=>2,'key'=>$ids,"op_name"=>"删除结算单",'url'=>U('lists')]);
|
|
|
|
$this->ajaxReturn(array(
|
|
|
|
$this->ajaxReturn(array(
|
|
|
|
'status' => 1,
|
|
|
|
'status' => 1,
|
|
|
|