微信筛选店铺 店铺分组 运费加价
This commit is contained in:
1 parent
b4fa5cacb1
commit
afaabea1fa
33 files changed
+1338
-536
No files matched your search
@@ -893,7 +893,8 @@ namespace KJD_Web.BLL
|
||||
|
||||
string where = "";
|
||||
if (!isAdmin)
|
||||
where += " and (s.user_name='" + user_name + "' or s.sub_user_name like '%" + user_name + "%')";
|
||||
//where += " and (s.user_name='" + user_name + "' or s.sub_user_name like '%" + user_name + "%')";
|
||||
where += " and s.user_name='" + user_name + "'";
|
||||
if (!string.IsNullOrEmpty(operate_sub_sa_name))
|
||||
{
|
||||
where += " and s.operate_sub_sa_name = '" + operate_sub_sa_name + "'";
|
||||
@@ -907,7 +908,7 @@ namespace KJD_Web.BLL
|
||||
if (!string.IsNullOrWhiteSpace(status))
|
||||
where += " and s.status = '" + status + "'";
|
||||
if (!string.IsNullOrWhiteSpace(search_shop_id))
|
||||
where += " and s.shop_id like '%" + search_shop_id + "%'";
|
||||
where += " and s.shop_id like '" + search_shop_id + "%'";
|
||||
if (!string.IsNullOrWhiteSpace(search_shop_account))
|
||||
where += " and s.shop_account like @search_shop_account";
|
||||
if (!string.IsNullOrWhiteSpace(search_notes))
|
||||
@@ -927,25 +928,25 @@ namespace KJD_Web.BLL
|
||||
if (!string.IsNullOrWhiteSpace(search_user_notes))
|
||||
where += " and s.user_notes like '" + search_user_notes + "%'";
|
||||
if (!string.IsNullOrWhiteSpace(search_spu))
|
||||
where += " and p.spu_id like '%" + search_spu + "%'";
|
||||
where += " and p.spu_id like '" + search_spu + "%'";
|
||||
if (!string.IsNullOrWhiteSpace(search_skc))
|
||||
where += " and p.skc_id like '%" + search_skc + "%'";
|
||||
where += " and p.skc_id like '" + search_skc + "%'";
|
||||
if (!string.IsNullOrWhiteSpace(search_cat))
|
||||
where += " and p.cat_name like '%" + search_cat + "%'";
|
||||
where += " and p.cat_name like '" + search_cat + "%'";
|
||||
if (!string.IsNullOrWhiteSpace(search_ext_code))
|
||||
where += " and p.ext_code like '%" + search_ext_code + "%'";
|
||||
where += " and p.ext_code like '" + search_ext_code + "%'";
|
||||
if (!string.IsNullOrWhiteSpace(search_prod_name))
|
||||
where += " and p.product_name like @search_prod_name";
|
||||
if (!string.IsNullOrEmpty(search_sub_sa_name))
|
||||
{
|
||||
where += " and (s.operate_sub_sa_name like '%" + search_sub_sa_name + "%'";
|
||||
where += " or u.nick_name like '%" + operate_sub_sa_name + "%')";
|
||||
where += " and (s.operate_sub_sa_name like '" + search_sub_sa_name + "%'";
|
||||
where += " or u.nick_name like '" + operate_sub_sa_name + "%')";
|
||||
}
|
||||
|
||||
sql += where;
|
||||
|
||||
List<MySqlParameter> paramLst = new List<MySqlParameter>();
|
||||
paramLst.Add(new MySqlParameter() { DbType = DbType.String, ParameterName = "@search_shop_account", Value = "%" + search_shop_account + "%", });
|
||||
paramLst.Add(new MySqlParameter() { DbType = DbType.String, ParameterName = "@search_shop_account", Value = "" + search_shop_account + "%", });
|
||||
paramLst.Add(new MySqlParameter() { DbType = DbType.String, ParameterName = "@search_prod_name", Value = "%" + search_prod_name + "%", });
|
||||
|
||||
var count = mySql.ExecuteRowCount(sql, paramLst.ToArray());
|
||||
|
||||
Reference in new issue
Block a user