From d0c0d43d864da06d090603ddeebc5500eba38b62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=B9=8F?= Date: Fri, 11 Sep 2020 15:39:39 +0800 Subject: [PATCH] =?UTF-8?q?$sql=20=3D=20"select=20top=201=20*=20from=20BIZ?= =?UTF-8?q?=5FPackageInfo=20where=20PAG=5FCode=20=3D=20=3F=20=20";=20//?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E7=9A=84=E4=B9=9F=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/third_party/tpmanage/models/tpBokun_model.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/application/third_party/tpmanage/models/tpBokun_model.php b/application/third_party/tpmanage/models/tpBokun_model.php index 16e8d8fa..24906890 100644 --- a/application/third_party/tpmanage/models/tpBokun_model.php +++ b/application/third_party/tpmanage/models/tpBokun_model.php @@ -351,7 +351,8 @@ class TpBokun_model extends CI_Model */ function checkExitHT($PAG_Code) { - $sql = "select top 1 * from BIZ_PackageInfo where PAG_Code = ? and isnull(DeleteFlag,0)<>1 "; + // $sql = "select top 1 * from BIZ_PackageInfo where PAG_Code = ? and isnull(DeleteFlag,0)<>1 "; + $sql = "select top 1 * from BIZ_PackageInfo where PAG_Code = ? "; //删除的也判断 $query = $this->HT229Write->query($sql, array($PAG_Code)); if ($query->num_rows() > 0) { $result = true;