数据调整修改

master
zhengyongxing 5 years ago
parent 5dbd0eb8fa
commit 38f478d63d

@ -494,8 +494,8 @@ class PromoteCompanyController extends ThinkController
$num_deposit = 0; $num_deposit = 0;
if ($promoteData) { if ($promoteData) {
$sql_spend = "UPDATE `tab_spend` SET `old_change_promote_id`=`promote_id`,`old_change_promote_account`=`promote_account`,`promote_id`=0,`promote_account`='{$changeData['admin_type']}' WHERE promote_id in({$promoteData})"; $sql_spend = "UPDATE `tab_spend` SET `old_change_promote_id`=`promote_id`,`old_change_promote_account`=`promote_account`,`promote_id`=0,`promote_account`='' WHERE promote_id in({$promoteData})";
$sql_deposit = "UPDATE `tab_deposit` SET `old_change_promote_id`=`promote_id`,`old_change_promote_account`=`promote_account`,`promote_id`=0,`promote_account`='{$changeData['admin_type']}' WHERE promote_id in({$promoteData})"; $sql_deposit = "UPDATE `tab_deposit` SET `old_change_promote_id`=`promote_id`,`old_change_promote_account`=`promote_account`,`promote_id`=0,`promote_account`='' WHERE promote_id in({$promoteData})";
$model = new \Think\Model(); $model = new \Think\Model();
$num_pend = $model->execute($sql_spend,true); $num_pend = $model->execute($sql_spend,true);

Loading…
Cancel
Save