diff --git a/application/admin/controllers/DownController.php b/application/admin/controllers/DownController.php index 2acb2735..fbd3756e 100644 --- a/application/admin/controllers/DownController.php +++ b/application/admin/controllers/DownController.php @@ -403,9 +403,11 @@ class Admin_DownController extends Zend_Controller_Action elseif($delete) { - $sql="delete from onlineapp where id=?"; - try { - $this->db->query($sql,array($id)); + try { + $sql="delete from onlineapp where id=?"; + $this->db->query($sql,array($delete)); + $sql="delete from dataorder where onlineappid=?"; + $this->db->query($sql,array($delete)); $this->messenger->addMessage('该记录已删除'); } catch (Exception $e) { $this->messenger->addMessage($e->getMessage());