This commit is contained in:
chfei committed 2026-08-25 09:24:46 +08:00
1 parent c7bcae3565
commit 246f574f86
1 file changed
+8 -4
+8 -4
View File
@@ -406,7 +406,7 @@ namespace KJD_Web.BLL.BXX
return "{\"code\":500,\"msg\":\"" + mySql.Message + "\"}"; return "{\"code\":500,\"msg\":\"" + mySql.Message + "\"}";
} }
var ids = ""; var ids = "";
foreach(DataRow row in dt.Rows) foreach (DataRow row in dt.Rows)
{ {
ids += row["spu_id"].ParseToString() + "','"; ids += row["spu_id"].ParseToString() + "','";
} }
@@ -602,7 +602,7 @@ namespace KJD_Web.BLL.BXX
if (version < (System.Configuration.ConfigurationManager.ConnectionStrings["LimitVersion"]?.ConnectionString).ParseToInt()) if (version < (System.Configuration.ConfigurationManager.ConnectionStrings["LimitVersion"]?.ConnectionString).ParseToInt())
return "{\"code\":1,\"msg\":\"当前版本过于陈旧,请立即升级新版\"}"; return "{\"code\":1,\"msg\":\"当前版本过于陈旧,请立即升级新版\"}";
var user_name = RegexUtils.GetStringQuery(ref inputData, "user_name")?.Replace("'","\\'"); var user_name = RegexUtils.GetStringQuery(ref inputData, "user_name")?.Replace("'", "\\'");
var password = RegexUtils.GetStringQuery(ref inputData, "password")?.Replace("'", "\\'"); var password = RegexUtils.GetStringQuery(ref inputData, "password")?.Replace("'", "\\'");
var search_spu = RegexUtils.GetStringQuery(ref inputData, "search_spu")?.Replace("'", "\\'"); var search_spu = RegexUtils.GetStringQuery(ref inputData, "search_spu")?.Replace("'", "\\'");
var search_skc = RegexUtils.GetStringQuery(ref inputData, "search_skc")?.Replace("'", "\\'"); var search_skc = RegexUtils.GetStringQuery(ref inputData, "search_skc")?.Replace("'", "\\'");
@@ -650,7 +650,7 @@ namespace KJD_Web.BLL.BXX
var fission_words = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "fission_words"))?.Replace("'", "\\'"); var fission_words = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "fission_words"))?.Replace("'", "\\'");
int page = RegexUtils.GetStringQuery(ref inputData, "page").ParseToInt(); int page = RegexUtils.GetStringQuery(ref inputData, "page").ParseToInt();
int page_size= RegexUtils.GetStringQuery(ref inputData, "page_size").ParseToInt(50); int page_size = RegexUtils.GetStringQuery(ref inputData, "page_size").ParseToInt(50);
string conn = System.Configuration.ConfigurationManager.ConnectionStrings["ConnKJD"].ConnectionString; string conn = System.Configuration.ConfigurationManager.ConnectionStrings["ConnKJD"].ConnectionString;
MysqlUtils mySql = new MysqlUtils(conn); MysqlUtils mySql = new MysqlUtils(conn);
@@ -2138,9 +2138,13 @@ namespace KJD_Web.BLL.BXX
{ {
where += " AND send_to_out_server IN (0,1,127) and distribution_set IN (0,1,2,127)"; where += " AND send_to_out_server IN (0,1,127) and distribution_set IN (0,1,2,127)";
} }
//if (!add_days_less.IsNullOrZero())
//{
// where += " and add_time > '" + DateTime.Now.AddDays(-add_days_less.ParseToInt()).ToString("yyyy-MM-dd") + "'";
//}
if (!add_days_less.IsNullOrZero()) if (!add_days_less.IsNullOrZero())
{ {
where += " and add_time > '" + DateTime.Now.AddDays(-add_days_less.ParseToInt()).ToString("yyyy-MM-dd") + "'"; where += " and mdy_time > '" + DateTime.Now.AddDays(-add_days_less.ParseToInt()).ToString("yyyy-MM-dd") + "'";
} }
if (!has_wx_format.IsNullOrEmpty()) if (!has_wx_format.IsNullOrEmpty())
{ {