Parcourir la source

领导奖励达标市场要算直推本身

lcl il y a 1 mois
Parent
commit
6803945f05
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      AppStart/Helper/LeaderCompPrizeHelper.cs

+ 1 - 1
AppStart/Helper/LeaderCompPrizeHelper.cs

@@ -290,7 +290,7 @@ namespace MySystem
                 foreach(DataRow drsub in dtsub.Rows)
                 {
                     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)
                     {
                         SubCount = int.Parse(function.CheckInt(subuser.Rows[0][0].ToString()));