From bbb7cb23f65a5c7e179464ea7fe31cd60b36dcd2 Mon Sep 17 00:00:00 2001 From: yulingwei <2436953959@qq.com> Date: Thu, 11 Jun 2020 16:23:56 +0800 Subject: [PATCH] upt --- Application/Admin/Controller/PromoteCompanyController.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Application/Admin/Controller/PromoteCompanyController.class.php b/Application/Admin/Controller/PromoteCompanyController.class.php index 007454ea5..4ec99e052 100644 --- a/Application/Admin/Controller/PromoteCompanyController.class.php +++ b/Application/Admin/Controller/PromoteCompanyController.class.php @@ -604,7 +604,7 @@ WHERE old_change_promote_id in ({$promoteData})"; } else { if ($id) { if ($delete) { - $useingService = M('promote_company')->where(['service_agreement_show'=>$id])->find(); + $useingService = M('promote_company', 'tab_')->where(['service_agreement_show'=>$id])->find(); if (!empty($useingService)) return $this->error('有正在使用该服务协议的公司,无法删除'); $result = M('service_agreement', 'tab_')->where(['id'=>$id])->delete(); return $result ? $this->success('删除完成') : $this->error('删除失败');