标题裂变功能优化 上传裂变商品时筛选重复上货逻辑优化
This commit is contained in:
1 parent
4ae8e4f1b2
commit
1b87ae3a28
23 files changed
+1232
-892
No files matched your search
@@ -595,6 +595,8 @@ namespace KJD_Web.BLL.BXX
|
||||
var add_user_name = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "add_user_name"))?.Replace("'", "\\'");
|
||||
var min_view_uv = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "min_view_uv"))?.ParseToNullableInt();
|
||||
var is_not_count = RegexUtils.GetStringQuery(ref inputData, "is_not_count").ParseToBool(); // 不计数
|
||||
var no_fission_words = RegexUtils.GetStringQuery(ref inputData, "no_fission_words").ParseToBool(); // 未裂变标题
|
||||
var fission_words = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "fission_words"))?.Replace("'", "\\'");
|
||||
|
||||
int page = RegexUtils.GetStringQuery(ref inputData, "page").ParseToInt();
|
||||
int page_size= RegexUtils.GetStringQuery(ref inputData, "page_size").ParseToInt(50);
|
||||
@@ -764,7 +766,20 @@ namespace KJD_Web.BLL.BXX
|
||||
add_user_name = "'" + string.Join("','", add_user_name.Split(new string[] { ",", ",", " " }, StringSplitOptions.RemoveEmptyEntries)) + "'";
|
||||
where += " and p.add_user_name in (" + add_user_name + ")";
|
||||
}
|
||||
if (no_fission_words)
|
||||
{
|
||||
where += " and (fission_words='' or fission_words IS NULL)";
|
||||
}
|
||||
if (!string.IsNullOrEmpty(fission_words))
|
||||
{
|
||||
where += " and fission_words LIKE '" + fission_words + "%'";
|
||||
}
|
||||
sql += where;
|
||||
|
||||
if (sql.Contains("15288888888"))
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
var count = 0;
|
||||
if (isDetail || is_not_count)
|
||||
@@ -811,6 +826,12 @@ namespace KJD_Web.BLL.BXX
|
||||
//where子句
|
||||
sql += where;
|
||||
|
||||
if (sql.Contains("15288888888"))
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
if (!isDetail && !string.IsNullOrEmpty(get_select_count))
|
||||
sql += " group by p.id";
|
||||
if (sort_field == "select_total_count")
|
||||
@@ -1554,6 +1575,8 @@ namespace KJD_Web.BLL.BXX
|
||||
var ban_wx = RegexUtils.GetStringQuery(ref inputData, "ban_wx")?.Replace("'", "\\'");
|
||||
var ban_pdd = RegexUtils.GetStringQuery(ref inputData, "ban_pdd")?.Replace("'", "\\'");
|
||||
var add_user_name = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "add_user_name"))?.Replace("'", "\\'");
|
||||
var no_fission_words = RegexUtils.GetStringQuery(ref inputData, "no_fission_words").ParseToBool(); // 未裂变标题
|
||||
var fission_words = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "fission_words"))?.Replace("'", "\\'");
|
||||
|
||||
int page = RegexUtils.GetStringQuery(ref inputData, "page").ParseToInt();
|
||||
int page_size = RegexUtils.GetStringQuery(ref inputData, "page_size").ParseToInt(50);
|
||||
@@ -1650,6 +1673,14 @@ namespace KJD_Web.BLL.BXX
|
||||
add_user_name = "'" + string.Join("','", add_user_name.Split(new string[] { ",", ",", " " }, StringSplitOptions.RemoveEmptyEntries)) + "'";
|
||||
where += " and p.add_user_name in (" + add_user_name + ")";
|
||||
}
|
||||
if (no_fission_words)
|
||||
{
|
||||
where += " and (fission_words='' or fission_words IS NULL)";
|
||||
}
|
||||
if (!string.IsNullOrEmpty(fission_words))
|
||||
{
|
||||
where += " and fission_words LIKE '" + fission_words + "%'";
|
||||
}
|
||||
sql += where;
|
||||
|
||||
int count = prod_count;
|
||||
@@ -1691,7 +1722,7 @@ namespace KJD_Web.BLL.BXX
|
||||
|
||||
var db_ids = string.Join(",", dt.Rows.Cast<DataRow>().Select(r => r["id"].ParseToInt()).OrderBy(x => RandomUtils.GetId(10000000)).Take(page_size));
|
||||
sql = "SELECT p.id,p.from_shop_id,p.spu_id,p.skc_id,p.main_cat_id,p.main_cat_name,p.cat_id,p.cat_name,p.price_text,p.ext_code," +
|
||||
" p.product_name,p.main_img,p.group,p.notes,p.add_time,p.mdy_time,p.product_get_type," +
|
||||
" p.product_name,p.main_img,p.group,p.notes,p.add_time,p.mdy_time,p.product_get_type,fission_words," +
|
||||
" p.wx_safe_status,p.special_prod_type,p.wx_cat_1,p.wx_cat_2,p.wx_cat_3,p.send_to_out_server," +
|
||||
" p.wx_cat_leaf,p.is_relation" +
|
||||
" from bxx.product p where p.is_del=0";
|
||||
@@ -1742,6 +1773,7 @@ namespace KJD_Web.BLL.BXX
|
||||
special_prod_type = row["special_prod_type"].ParseToString(),
|
||||
send_to_out_server = row["send_to_out_server"].ParseToInt(),
|
||||
is_relation = row["is_relation"].ParseToInt(),
|
||||
fission_words = row["fission_words"].ParseToString(),
|
||||
};
|
||||
productLst.Add(prod);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user