|
@@ -290,7 +290,7 @@ namespace MySystem
|
|
foreach(DataRow drsub in dtsub.Rows)
|
|
foreach(DataRow drsub in dtsub.Rows)
|
|
{
|
|
{
|
|
int SubCount = 0;
|
|
int SubCount = 0;
|
|
- DataTable subuser = CustomerSqlConn.dtable("select count(1) from LeaderCompTmp where ParentNav like '%," + drsub["UserId"].ToString() + ",%'", MysqlConn.SqlConnStr);
|
|
|
|
|
|
+ DataTable subuser = CustomerSqlConn.dtable("select count(1) from LeaderCompTmp where Id=" + drsub["UserId"].ToString() + " or ParentNav like '%," + drsub["UserId"].ToString() + ",%'", MysqlConn.SqlConnStr);
|
|
if(subuser.Rows.Count > 0)
|
|
if(subuser.Rows.Count > 0)
|
|
{
|
|
{
|
|
SubCount = int.Parse(function.CheckInt(subuser.Rows[0][0].ToString()));
|
|
SubCount = int.Parse(function.CheckInt(subuser.Rows[0][0].ToString()));
|