From 91c1deddc15bc956ed0ae923b42c2520e972ee34 Mon Sep 17 00:00:00 2001 From: chfei Date: Wed, 2 Sep 2026 11:55:24 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=93=E7=AE=97=E6=B5=81=20=E4=BF=AE?= =?UTF-8?q?=E6=94=B9bug=20=E5=A2=9E=E5=8A=A0=E5=AD=90=E8=B4=A6=E6=88=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- KJD_WebService/BLL/WXXD/WXOemManage.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/KJD_WebService/BLL/WXXD/WXOemManage.cs b/KJD_WebService/BLL/WXXD/WXOemManage.cs index afa5287..b2e8eca 100644 --- a/KJD_WebService/BLL/WXXD/WXOemManage.cs +++ b/KJD_WebService/BLL/WXXD/WXOemManage.cs @@ -590,7 +590,7 @@ namespace KJD_Web.BLL.WXXD if (oem_id.IsNullOrEmpty()) return 0; // 1. 找到该oem下所有账户 - string sql = "SELECT user_name FROM `wxxd`.`user` WHERE oem_id='" + MysqlUtils.ReplaceSqlSpecial(oem_id) + "'"; + string sql = "SELECT b.user_name FROM `wxxd`.`user` AS A LEFT JOIN `wxxd`.`user` AS B ON A.user_name = B.parent_user_name WHERE A.oem_id='" + MysqlUtils.ReplaceSqlSpecial(oem_id) + "'"; var userDt = mySql.ExecuteDataTable(sql); if (!string.IsNullOrEmpty(mySql.Message) || userDt == null || userDt.Rows.Count == 0) return 0;