修复bug,优化店铺筛选选项
This commit is contained in:
1 parent
aa45b35145
commit
ad325eaec5
15 files changed
+596
-347
No files matched your search
@@ -3444,7 +3444,7 @@ namespace KJD_Web.BLL.BXX
|
||||
sql = "select count(*) FROM (SELECT DISTINCT coids.*,a.after_sale_json,p.from_shop_name,b.ban_wx,b.ban_pdd" +
|
||||
" FROM (SELECT skc_id as coid FROM bxx.product WHERE product_get_type='厂商直采' UNION SELECT real_coid as coid FROM bxx.product WHERE product_get_type='厂商直采') as coids" +
|
||||
" LEFT JOIN wxxd.after_sale as a ON coids.coid=a.coid AND a.is_del = 0" +
|
||||
" LEFT JOIN bxx.product p ON coids.coid=p.skc_id" +
|
||||
" LEFT JOIN bxx.product p ON coids.coid=p.skc_id AND p.product_get_type='厂商直采'" +
|
||||
" LEFT JOIN bxx.jst_supplier_ban_platform b ON coids.coid=b.coid" +
|
||||
" WHERE 1=1 AND coids.coid != ''";
|
||||
string where = "";
|
||||
@@ -3467,7 +3467,7 @@ namespace KJD_Web.BLL.BXX
|
||||
sql = " SELECT DISTINCT coids.*,a.after_sale_json,p.from_shop_name,b.ban_wx,b.ban_pdd" +
|
||||
" FROM (SELECT skc_id as coid FROM bxx.product WHERE product_get_type='厂商直采' UNION SELECT real_coid as coid FROM bxx.product WHERE product_get_type='厂商直采') as coids" +
|
||||
" LEFT JOIN wxxd.after_sale as a ON coids.coid=a.coid AND a.is_del = 0" +
|
||||
" LEFT JOIN bxx.product p ON coids.coid=p.skc_id" +
|
||||
" LEFT JOIN bxx.product p ON coids.coid=p.skc_id AND p.product_get_type='厂商直采'" +
|
||||
" LEFT JOIN bxx.jst_supplier_ban_platform b ON coids.coid=b.coid" +
|
||||
" WHERE 1=1 AND coids.coid != ''";
|
||||
sql += where;
|
||||
|
||||
@@ -361,7 +361,7 @@ namespace KJD_Web.BLL.WXXD
|
||||
// 获取事先绑定的订单运单
|
||||
sql = " UPDATE wxxd.express_optimize SET order_id='" + order_id + "',status=1" +
|
||||
" WHERE user_name='" + user_name + "' AND status=0 AND bind_order_id='" + order_id + "'" +
|
||||
" LIMIT 1";
|
||||
" ORDER BY RAND() LIMIT 1";
|
||||
var cnt = mySql.ExecuteAffectedRows(sql);
|
||||
if (!mySql.Message.IsNullOrEmpty())
|
||||
{
|
||||
@@ -378,7 +378,7 @@ namespace KJD_Web.BLL.WXXD
|
||||
sql = " UPDATE wxxd.express_optimize SET order_id='" + order_id + "',status=1" +
|
||||
" WHERE user_name='" + user_name + "' AND status=0 AND (order_id IS NULL OR order_id='') AND (bind_order_id IS NULL OR bind_order_id='')" +
|
||||
" AND waybill_pickup_time between '" + start_time + "' and '" + end_time + "'" +
|
||||
" LIMIT 1";
|
||||
" ORDER BY RAND() LIMIT 1";
|
||||
cnt = mySql.ExecuteAffectedRows(sql);
|
||||
if (!mySql.Message.IsNullOrEmpty())
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user