Selaa lähdekoodia

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

lcl 1 kuukausi sitten
vanhempi
commit
6803945f05
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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()));