sku文字特效尝试
This commit is contained in:
1 parent
b62deb2e99
commit
cd0e96918b
28 files changed
+1587
-550
No files matched your search
@@ -148,7 +148,7 @@ namespace KJD_Web.BLL.BXX
|
||||
string sku_edit_json = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "sku_edit_json"))?.Replace("'", "\\'");
|
||||
string sku_secret_json = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "sku_secret_json"))?.Replace("'", "\\'");
|
||||
string wx_img_map_json = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "wx_img_map_json"))?.Replace("'", "\\'");
|
||||
string standby3 = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "standby3"))?.Replace("'", "\\'");
|
||||
string problem_prod_data = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "problem_prod_data"))?.Replace("'", "\\'");
|
||||
|
||||
if (string.IsNullOrEmpty(user_name))
|
||||
{
|
||||
@@ -224,8 +224,8 @@ namespace KJD_Web.BLL.BXX
|
||||
sql += " p.sku_secret_json=@sku_secret_json,";
|
||||
if (wx_img_map_json != null)
|
||||
sql += " p.wx_img_map_json=@wx_img_map_json,";
|
||||
if (!standby3.IsNullOrEmpty())
|
||||
sql += " p.standby3=" + standby3 + ",";
|
||||
if (!problem_prod_data.IsNullOrEmpty())
|
||||
sql += " p.problem_prod_data=" + problem_prod_data + ",";
|
||||
sql += " p.mdy_time='" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "',";
|
||||
sql = sql.TrimEnd(',');
|
||||
sql += " where spu_id='" + spu_id + "';";
|
||||
@@ -369,7 +369,7 @@ namespace KJD_Web.BLL.BXX
|
||||
var has_send_to_out_server = RegexUtils.GetStringQuery(ref inputData, "has_send_to_out_server")?.Replace("'", "\\'");
|
||||
var real_coid = RegexUtils.GetStringQuery(ref inputData, "real_coid")?.Replace("'", "\\'");
|
||||
var has_wx_format = RegexUtils.GetStringQuery(ref inputData, "has_wx_format")?.Replace("'", "\\'");
|
||||
var standby3 = RegexUtils.GetStringQuery(ref inputData, "standby3")?.Replace("'", "\\'");
|
||||
var problem_prod_data = RegexUtils.GetStringQuery(ref inputData, "problem_prod_data")?.Replace("'", "\\'");
|
||||
var start_time = RegexUtils.GetStringQuery(ref inputData, "start_time")?.Replace("'", "\\'");
|
||||
var end_time = RegexUtils.GetStringQuery(ref inputData, "end_time")?.Replace("'", "\\'");
|
||||
|
||||
@@ -473,12 +473,12 @@ namespace KJD_Web.BLL.BXX
|
||||
{
|
||||
where += " and has_wx_format='" + has_wx_format + "'";
|
||||
}
|
||||
if (!string.IsNullOrEmpty(standby3))
|
||||
if (!string.IsNullOrEmpty(problem_prod_data))
|
||||
{
|
||||
if (standby3.ToLower().Contains("is null"))
|
||||
where += " and p.standby3 " + standby3;
|
||||
if (problem_prod_data.ToLower().Contains("is null"))
|
||||
where += " and p.problem_prod_data " + problem_prod_data;
|
||||
else
|
||||
where += " and p.standby3='" + standby3 + "'";
|
||||
where += " and p.problem_prod_data='" + problem_prod_data + "'";
|
||||
}
|
||||
if (start_time != null && end_time != null)
|
||||
{
|
||||
@@ -599,7 +599,7 @@ namespace KJD_Web.BLL.BXX
|
||||
prod.sku_img_replace_base64 = row["img_base64"].ToString();
|
||||
//prod.sku_img_replace_url = row["img_url"].ToString();
|
||||
prod.wx_img_map_json = row["wx_img_map_json"].ToString();
|
||||
standby3 = row["standby3"].IsNullOrEmpty() ? null : row["standby3"].ParseToString();
|
||||
problem_prod_data = row["problem_prod_data"].IsNullOrEmpty() ? null : row["problem_prod_data"].ParseToString();
|
||||
|
||||
if (!prod.sku_secret_json.IsNullOrEmpty() && prod.secret_spu_id.IsNullOrEmpty())
|
||||
{
|
||||
@@ -1696,14 +1696,17 @@ namespace KJD_Web.BLL.BXX
|
||||
string user_name = RegexUtils.GetStringQuery(ref inputData, "user_name");
|
||||
string img_md5 = RegexUtils.GetStringQuery(ref inputData, "img_md5");
|
||||
string img_base64 = RegexUtils.GetStringQuery(ref inputData, "img_base64");
|
||||
string product_db_id = RegexUtils.GetStringQuery(ref inputData, "product_db_id");
|
||||
//string product_db_id = RegexUtils.GetStringQuery(ref inputData, "product_db_id");
|
||||
string img_url = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "img_url"));
|
||||
string img_type = RegexUtils.GetStringQuery(ref inputData, "img_type")?.Replace("'", "\\'");
|
||||
string img_group = RegexUtils.GetStringQuery(ref inputData, "img_group")?.Replace("'", "\\'");
|
||||
|
||||
if (string.IsNullOrEmpty(user_name))
|
||||
{
|
||||
return "{\"code\":500,\"msg\":\"没有用户名\"}";
|
||||
}
|
||||
|
||||
int sku_img_replace_id = 0;
|
||||
//int sku_img_replace_id = 0;
|
||||
string conn = System.Configuration.ConfigurationManager.ConnectionStrings["ConnKJD"].ConnectionString;
|
||||
MysqlUtils mySql = new MysqlUtils(conn);
|
||||
string sql = "";
|
||||
@@ -1713,19 +1716,20 @@ namespace KJD_Web.BLL.BXX
|
||||
var rst = mySql.ExecuteFirstInt(sql).ParseToLong();
|
||||
if (rst <= 0)
|
||||
{
|
||||
sql = "insert into bxx.sku_img_replace (img_md5,img_base64) " +
|
||||
"values ('" + img_md5 + "','" + img_base64 + "');";
|
||||
sql = "insert into bxx.sku_img_replace (img_md5,img_base64,img_url,img_type,img_group) " +
|
||||
"values ('" + img_md5 + "','" + img_base64 + "','" + img_url + "','" + img_type + "','" + img_group + "');";
|
||||
rst = mySql.ExecuteInsertId(sql);
|
||||
}
|
||||
if (rst > 0)
|
||||
{
|
||||
sku_img_replace_id = (int)rst;
|
||||
sql = "update bxx.product set sku_img_replace_id= "+ sku_img_replace_id + " where id=" + product_db_id + ";";
|
||||
//sku_img_replace_id = (int)rst;
|
||||
//sql = "update bxx.product set sku_img_replace_id= "+ sku_img_replace_id + " where id=" + product_db_id + ";";
|
||||
|
||||
bRst = mySql.ExecuteNonQuery(sql);
|
||||
//bRst = mySql.ExecuteNonQuery(sql);
|
||||
bRst = true;
|
||||
}
|
||||
mySql.Close();
|
||||
if (bRst)
|
||||
if (rst > 0 && bRst)
|
||||
{
|
||||
return "{\"code\":200,\"msg\":\"success\",\"sku_img_replace_id\":" + rst + "}";
|
||||
}
|
||||
@@ -1783,6 +1787,8 @@ namespace KJD_Web.BLL.BXX
|
||||
string img_md5 = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "img_md5"));
|
||||
string img_base64 = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "img_base64"));
|
||||
string img_url = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "img_url"));
|
||||
string img_type = RegexUtils.GetStringQuery(ref inputData, "img_type")?.Replace("'", "\\'");
|
||||
string img_group = RegexUtils.GetStringQuery(ref inputData, "img_group")?.Replace("'", "\\'");
|
||||
|
||||
if (string.IsNullOrEmpty(user_name))
|
||||
{
|
||||
@@ -1798,6 +1804,10 @@ namespace KJD_Web.BLL.BXX
|
||||
sql += " img_base64='" + img_base64 + "',";
|
||||
if (img_url != null)
|
||||
sql += " img_url='" + img_url + "',";
|
||||
if (img_type != null)
|
||||
sql += " img_type='" + img_type + "',";
|
||||
if (img_group != null)
|
||||
sql += " img_group='" + img_group + "',";
|
||||
sql = sql.TrimEnd(',');
|
||||
sql += " where id=" + id + ";";
|
||||
|
||||
|
||||
@@ -838,5 +838,269 @@ namespace KJD_Web.BLL.BXX
|
||||
}
|
||||
return "{\"code\":19999,\"msg\":\"输入为空\"}";
|
||||
}
|
||||
|
||||
|
||||
public string GetWeiDianShop(string inputData, bool isAdmin = false)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(inputData))
|
||||
{
|
||||
var user_name = RegexUtils.GetStringQuery(ref inputData, "user_name");
|
||||
var password = RegexUtils.GetStringQuery(ref inputData, "password");
|
||||
var search_id = RegexUtils.GetStringQuery(ref inputData, "search_id");
|
||||
var search_user_name = RegexUtils.GetStringQuery(ref inputData, "search_user_name");
|
||||
var search_login_name = RegexUtils.GetStringQuery(ref inputData, "search_login_name");
|
||||
var search_notes = RegexUtils.GetStringQuery(ref inputData, "search_notes");
|
||||
var search_name = RegexUtils.GetStringQuery(ref inputData, "search_name");
|
||||
var operate_sub_sa_name = RegexUtils.GetStringQuery(ref inputData, "operate_sub_sa_name")?.Replace("'", "\\'");
|
||||
var shop_ids = RegexUtils.GetStringQuery(ref inputData, "shop_ids")?.Replace("'", "");
|
||||
if (!string.IsNullOrWhiteSpace(shop_ids))
|
||||
{
|
||||
List<string> shopIdLst = shop_ids.Split(',').ToList();
|
||||
shop_ids = "'" + string.Join("','", shopIdLst) + "'";
|
||||
}
|
||||
var shop_names = RegexUtils.GetStringQuery(ref inputData, "shop_names");
|
||||
if (!string.IsNullOrWhiteSpace(shop_names))
|
||||
{
|
||||
List<string> shopNameLst = shop_names.Split(',').ToList();
|
||||
shop_names = "'" + string.Join("','", shopNameLst) + "'";
|
||||
}
|
||||
var shop_notes = RegexUtils.GetStringQuery(ref inputData, "shop_notes");
|
||||
if (!string.IsNullOrWhiteSpace(shop_notes))
|
||||
{
|
||||
List<string> shopNotesLst = shop_notes.Split(',').ToList();
|
||||
shop_notes = "'" + string.Join("','", shopNotesLst) + "'";
|
||||
}
|
||||
|
||||
var page = RegexUtils.GetStringQuery(ref inputData, "page").ParseToInt();
|
||||
var page_size = RegexUtils.GetStringQuery(ref inputData, "page_size").ParseToInt();
|
||||
|
||||
if (page_size == 0)
|
||||
page_size = 50;
|
||||
int r2 = 0;
|
||||
int.TryParse(RegexUtils.GetStringQuery(ref inputData, "r2"), out r2);
|
||||
|
||||
string conn = System.Configuration.ConfigurationManager.ConnectionStrings["ConnKJD"].ConnectionString;
|
||||
MysqlUtils mySql = new MysqlUtils(conn);
|
||||
|
||||
string sql = "SELECT COUNT(s.id) FROM weidian.shop s WHERE 1=1";
|
||||
|
||||
//where子句
|
||||
string where = "";
|
||||
if (isAdmin)
|
||||
where += " and (s.cookie='' or s.shop_id!='')";
|
||||
if (!isAdmin)
|
||||
where += " and (s.user_name='" + user_name + "' or s.sub_user_name like '%" + user_name + "%')";
|
||||
if (!string.IsNullOrWhiteSpace(operate_sub_sa_name))
|
||||
where += " and s.operate_sub_sa_name='" + operate_sub_sa_name + "'";
|
||||
if (!string.IsNullOrWhiteSpace(search_user_name))
|
||||
where += " and s.user_name like '%" + search_user_name + "%'";
|
||||
if (!string.IsNullOrWhiteSpace(search_login_name))
|
||||
where += " and s.login_name like '%" + search_login_name + "%'";
|
||||
if (!string.IsNullOrWhiteSpace(search_notes))
|
||||
where += " and s.notes like '%" + search_notes + "%'";
|
||||
if (!string.IsNullOrWhiteSpace(search_id))
|
||||
where += " and s.shop_id like '%" + search_id + "%'";
|
||||
if (!string.IsNullOrWhiteSpace(search_name))
|
||||
where += " and s.shop_account like '%" + search_name + "%'";
|
||||
if (!string.IsNullOrWhiteSpace(shop_ids))
|
||||
where += " and s.shop_id in (" + shop_ids + ")";
|
||||
if (!string.IsNullOrWhiteSpace(shop_names))
|
||||
where += " and s.shop_account in (" + shop_names + ")";
|
||||
if (!string.IsNullOrWhiteSpace(shop_notes))
|
||||
where += " and s.notes in (" + shop_notes + ")";
|
||||
sql += where;
|
||||
|
||||
var count = mySql.ExecuteRowCount(sql);
|
||||
|
||||
DataTable dt;
|
||||
if (count == 0)
|
||||
{
|
||||
dt = new DataTable();
|
||||
}
|
||||
else
|
||||
{
|
||||
sql = "SELECT s.id,s.login_name,s.login_pass,s.cookie,s.cookie2,s.anti_contents,s.pddid,s.mall_id,s.shop_id,s.shop_account,s.sub_user_name," +
|
||||
"s.user_name,s.company_name,s.notes,s.login_status,s.login_status2,c.add_product_remaining,c.add_product_month," +
|
||||
"s.add_time,s.mdy_time,s.add_sub_sa_time,s.operate_sub_sa_name";
|
||||
sql += " FROM weidian.shop s LEFT JOIN weidian.shop_add_prod_count c ON s.shop_id=c.shop_id WHERE 1=1";
|
||||
|
||||
sql += where; // where 子句
|
||||
|
||||
sql += " ORDER BY s.id DESC";
|
||||
sql += " LIMIT " + Math.Max(page - 1, 0) * page_size + "," + page_size;
|
||||
dt = mySql.ExecuteDataTable(sql);
|
||||
}
|
||||
|
||||
mySql.Close();
|
||||
if (dt != null)
|
||||
{
|
||||
List<ShopParam> shopList = new List<ShopParam>();
|
||||
foreach (DataRow row in dt.Rows)
|
||||
{
|
||||
ShopParam shop = new ShopParam
|
||||
{
|
||||
id = Convert.ToInt32(row["id"]),
|
||||
login_name = row["login_name"].ToString(),
|
||||
login_pass = row["login_pass"].ToString(),
|
||||
cookie = row["cookie"].ToString(),
|
||||
cookie2 = row["cookie2"].ToString(),
|
||||
anti_contents = row["anti_contents"].ToString(),
|
||||
shop_id = row["shop_id"].ToString(),
|
||||
shop_account = row["shop_account"].ToString(),
|
||||
sub_user_name = row["sub_user_name"].ToString(),
|
||||
user_name = row["user_name"].ToString(),
|
||||
company_name = row["company_name"].ToString(),
|
||||
notes = row["notes"].ToString(),
|
||||
login_status = row["login_status"].ToString(),
|
||||
login_status2 = row["login_status2"].ToString(),
|
||||
add_product_remaining = row["add_product_remaining"].ParseToInt(),
|
||||
add_product_month = row["add_product_month"].ParseToInt(),
|
||||
operate_sub_sa_name = row["operate_sub_sa_name"].ParseToString(),
|
||||
pddid = row["pddid"].ParseToString(),
|
||||
mall_id = row["mall_id"].ParseToString(),
|
||||
};
|
||||
shopList.Add(shop);
|
||||
}
|
||||
|
||||
var data = JsonUtils.SerializeObjectToString(shopList);
|
||||
return "{\"code\":200,\"msg\":\"success\",\"data\":" + data + ",\"count\":" + count + "}";
|
||||
}
|
||||
}
|
||||
return "{\"code\":19999,\"msg\":\"未知错误\"}";
|
||||
}
|
||||
|
||||
public string AddWeiDianShop(string inputData, bool isAdmin = false)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(inputData))
|
||||
{
|
||||
string user_name = RegexUtils.GetStringQuery(ref inputData, "user_name");
|
||||
if (isAdmin)
|
||||
user_name = RegexUtils.GetStringQuery(ref inputData, "shop_user_name");
|
||||
string login_name = RegexUtils.GetStringQuery(ref inputData, "login_name");
|
||||
string login_pass = RegexUtils.GetStringQuery(ref inputData, "login_pass");
|
||||
string sub_user_name = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "sub_user_name"));
|
||||
string cookie = RegexUtils.GetStringQuery(ref inputData, "cookie");
|
||||
string cookie2 = RegexUtils.GetStringQuery(ref inputData, "cookie2");
|
||||
string anti_contents = RegexUtils.GetStringQuery(ref inputData, "anti_contents");
|
||||
string shop_id = RegexUtils.GetStringQuery(ref inputData, "shop_id");
|
||||
string mall_id = RegexUtils.GetStringQuery(ref inputData, "mall_id");
|
||||
string shop_account = RegexUtils.GetStringQuery(ref inputData, "shop_account");
|
||||
string group_name = RegexUtils.GetStringQuery(ref inputData, "group_name");
|
||||
string notes = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "notes"));
|
||||
int r2 = 0;
|
||||
int.TryParse(RegexUtils.GetStringQuery(ref inputData, "r2"), out r2);
|
||||
|
||||
if (string.IsNullOrEmpty(user_name))
|
||||
{
|
||||
return "{\"code\":500,\"msg\":\"没有用户名\"}";
|
||||
}
|
||||
if (string.IsNullOrEmpty(login_name))
|
||||
{
|
||||
return "{\"code\":501,\"msg\":\"没有店铺登录名\"}";
|
||||
}
|
||||
|
||||
string conn = System.Configuration.ConfigurationManager.ConnectionStrings["ConnKJD"].ConnectionString;
|
||||
MysqlUtils mySql = new MysqlUtils(conn);
|
||||
string sql = "";
|
||||
if (string.IsNullOrEmpty(shop_id))
|
||||
sql = "select exists (select 1 from weidian.shop where login_name='" + login_name + "' and user_name='" + user_name + "')";
|
||||
else
|
||||
sql = "select exists (select 1 from weidian.shop where login_name='" + login_name + "' and user_name='" + user_name +
|
||||
"' and shop_id='" + shop_id + "')";
|
||||
var exist = mySql.ExecuteFirstInt(sql);
|
||||
if (exist > 0)
|
||||
{
|
||||
mySql.Close();
|
||||
return "{\"code\":500,\"msg\":\"店铺" + login_name + " " + shop_account + "已存在\"}";
|
||||
}
|
||||
|
||||
sql = "insert into weidian.shop (login_name,login_pass,cookie,cookie2,anti_contents,shop_account,shop_id," +
|
||||
"mall_id,sub_user_name,user_name,group_name,notes,add_time,mdy_time) " +
|
||||
"values ('" + login_name + "','" + login_pass + "','" + cookie + "','" + cookie2 + "','" + anti_contents + "','" + shop_account + "','" + shop_id +
|
||||
"','" + mall_id + "','" + sub_user_name + "','" + user_name + "','" + group_name + "','" + notes + "','" +
|
||||
DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "','" +
|
||||
DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "');";
|
||||
var rst = mySql.ExecuteNonQuery(sql);
|
||||
mySql.Close();
|
||||
if (rst)
|
||||
{
|
||||
return "{\"code\":200,\"msg\":\"success\"}";
|
||||
}
|
||||
}
|
||||
return "{\"code\":19999,\"msg\":\"未知错误\"}";
|
||||
}
|
||||
|
||||
public string MdyWeiDianShop(string inputData, bool isAdmin = false)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(inputData))
|
||||
{
|
||||
string user_name = RegexUtils.GetStringQuery(ref inputData, "user_name");
|
||||
if (isAdmin)
|
||||
user_name = RegexUtils.GetStringQuery(ref inputData, "shop_user_name");
|
||||
string login_name = RegexUtils.GetStringQuery(ref inputData, "login_name");
|
||||
string login_pass = RegexUtils.GetStringQuery(ref inputData, "login_pass");
|
||||
string sub_user_name = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "sub_user_name"));
|
||||
string cookie = RegexUtils.GetStringQuery(ref inputData, "cookie");
|
||||
string cookie2 = RegexUtils.GetStringQuery(ref inputData, "cookie2");
|
||||
string anti_contents = RegexUtils.GetStringQuery(ref inputData, "anti_contents");
|
||||
string new_shop_id = RegexUtils.GetStringQuery(ref inputData, "new_shop_id");
|
||||
string old_shop_id = RegexUtils.GetStringQuery(ref inputData, "shop_id");
|
||||
string mall_id = RegexUtils.GetStringQuery(ref inputData, "mall_id");
|
||||
string shop_account = RegexUtils.GetStringQuery(ref inputData, "shop_account");
|
||||
string group_name = RegexUtils.GetStringQuery(ref inputData, "group_name");
|
||||
string notes = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "notes"));
|
||||
string login_status = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "login_status"));
|
||||
|
||||
int r2 = 0;
|
||||
int.TryParse(RegexUtils.GetStringQuery(ref inputData, "r2"), out r2);
|
||||
|
||||
if (string.IsNullOrEmpty(user_name))
|
||||
{
|
||||
return "{\"code\":500,\"msg\":\"没有用户名\"}";
|
||||
}
|
||||
if (string.IsNullOrEmpty(login_name))
|
||||
{
|
||||
return "{\"code\":501,\"msg\":\"没有店铺登录名\"}";
|
||||
}
|
||||
|
||||
string conn = System.Configuration.ConfigurationManager.ConnectionStrings["ConnKJD"].ConnectionString;
|
||||
MysqlUtils mySql = new MysqlUtils(conn);
|
||||
string sql = "update weidian.shop set";
|
||||
if (login_pass != null)
|
||||
sql += " login_pass='" + login_pass + "',";
|
||||
if (cookie != null)
|
||||
sql += " cookie='" + cookie + "',";
|
||||
if (cookie2 != null)
|
||||
sql += " cookie2='" + cookie2 + "',";
|
||||
if (anti_contents != null)
|
||||
sql += " anti_contents='" + anti_contents + "',";
|
||||
if (new_shop_id != null)
|
||||
sql += " shop_id='" + new_shop_id + "',";
|
||||
if (mall_id != null)
|
||||
sql += " mall_id='" + mall_id + "',";
|
||||
if (shop_account != null)
|
||||
sql += " shop_account='" + shop_account + "',";
|
||||
if (sub_user_name != null)
|
||||
sql += " sub_user_name='" + sub_user_name + "',";
|
||||
if (group_name != null)
|
||||
sql += " group_name='" + group_name + "',";
|
||||
if (notes != null)
|
||||
sql += " notes='" + notes + "',";
|
||||
if (login_status != null)
|
||||
sql += " login_status='" + login_status + "',";
|
||||
sql = sql.TrimEnd(',');
|
||||
sql += " where login_name='" + login_name + "' and (user_name='" + user_name + "' or sub_user_name like '%" + user_name + "%')";
|
||||
if (!string.IsNullOrEmpty(old_shop_id))
|
||||
sql += " and shop_id='" + old_shop_id + "'";
|
||||
|
||||
var rst = mySql.ExecuteNonQuery(sql);
|
||||
mySql.Close();
|
||||
if (rst)
|
||||
{
|
||||
return "{\"code\":200,\"msg\":\"success\"}";
|
||||
}
|
||||
}
|
||||
return "{\"code\":19999,\"msg\":\"未知错误\"}";
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user