1订单价格统计数据接口修改 2拦截退回状态
This commit is contained in:
1 parent
1df94a1d28
commit
7b749cf95d
5 files changed
+22
-10
No files matched your search
@@ -168,6 +168,7 @@ namespace KJD_Web.BLL.WXXD
|
||||
tel_number = row["tel_number"].ParseToNullableString(),
|
||||
tel_number_ext_info = row["tel_number_ext_info"].ParseToNullableString(),
|
||||
transfer_warehouse_status = row["transfer_warehouse_status"].ParseToNullableInt(),
|
||||
postage_price = row["postage_price"].ParseToNullableInt(),
|
||||
unionid = row["unionid"].ParseToNullableString(),
|
||||
update_time = row["update_time"].ParseToInt(),
|
||||
user_name = row["user_name"].ParseToNullableString(),
|
||||
|
||||
@@ -39,8 +39,14 @@ namespace KJD_Web.BLL.WXXD
|
||||
if (!WXShopManage.GetTimeSign(sign))
|
||||
return "{\"code\":500,\"msg\":\"校验失败\"}";
|
||||
|
||||
var out_product_ids = RegexUtils.GetStringQuery(ref inputData, "out_product_ids")?.Replace("'", "\\'");
|
||||
out_product_ids = string.Join("','", out_product_ids.Split(new string[] { "," }, StringSplitOptions.RemoveEmptyEntries));
|
||||
var latest_cnt = RegexUtils.GetStringQuery(ref inputData, "latest_cnt")?.ParseToInt(3);
|
||||
if (latest_cnt < 1)
|
||||
latest_cnt = 1;
|
||||
if (latest_cnt > 10)
|
||||
latest_cnt = 10;
|
||||
|
||||
var out_product_ids = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "out_product_ids"))?.Replace("'", "\\'");
|
||||
out_product_ids = string.Join("','", out_product_ids.Split(new string[] { "," }, StringSplitOptions.RemoveEmptyEntries));
|
||||
|
||||
string conn = System.Configuration.ConfigurationManager.ConnectionStrings["ConnKJD"].ConnectionString;
|
||||
MysqlUtils mySql = new MysqlUtils(conn);
|
||||
@@ -55,9 +61,9 @@ FROM (
|
||||
WHERE oi.out_product_id IN ('" + out_product_ids + @"') AND oi.refund_status = 1 AND o.status > 20 AND o.gift_order_status = 0
|
||||
) r
|
||||
WHERE r.rn <= 3;
|
||||
";
|
||||
WHERE r.rn<=" + latest_cnt + ";";
|
||||
|
||||
DataTable dt = mySql.ExecuteDataTable(sql);
|
||||
DataTable dt = mySql.ExecuteDataTable(sql);
|
||||
mySql.Close();
|
||||
|
||||
if (dt != null)
|
||||
|
||||
Reference in new issue
Block a user