结算流 修改bug 增加子账户
This commit is contained in:
1 parent
9947592aca
commit
91c1deddc1
1 file changed
+1
-1
@@ -590,7 +590,7 @@ namespace KJD_Web.BLL.WXXD
|
|||||||
if (oem_id.IsNullOrEmpty())
|
if (oem_id.IsNullOrEmpty())
|
||||||
return 0;
|
return 0;
|
||||||
// 1. 找到该oem下所有账户
|
// 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);
|
var userDt = mySql.ExecuteDataTable(sql);
|
||||||
if (!string.IsNullOrEmpty(mySql.Message) || userDt == null || userDt.Rows.Count == 0)
|
if (!string.IsNullOrEmpty(mySql.Message) || userDt == null || userDt.Rows.Count == 0)
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in new issue
Block a user