优化是否结算

master
chenzhi 4 years ago
parent bb10181cc5
commit 1de381bccd

@ -205,7 +205,7 @@ class SubSpendController extends ThinkController
} }
protected function editOrderIscheck($ids,$oldval,$newval){ protected function editOrderIscheck($ids,$oldval,$newval){
$dbres = D(self::model_name)->where("id in ({$ids}) and is_check = '{$oldval}'")->select(); $dbres = M("spend","tab_",SUBSITE_DB)->where("id in ({$ids}) and is_check = '{$oldval}'")->select();
if(empty($dbres)) return false; if(empty($dbres)) return false;
$changeIds = implode(",",array_column($dbres,"id")); $changeIds = implode(",",array_column($dbres,"id"));

Loading…
Cancel
Save