1Jit相关功能 50% 2 其他部分优化修改
This commit is contained in:
1 parent
4d5ea741d7
commit
e77914bafc
49 files changed
+2576
-419
No files matched your search
@@ -197,31 +197,32 @@ namespace KJD_Web.BLL
|
||||
else
|
||||
{
|
||||
if (isDetail)
|
||||
sql = "select * from kjd.product p where p.is_del=0";
|
||||
sql = "SELECT * from kjd.product p where p.is_del=0";
|
||||
else if (string.IsNullOrEmpty(get_select_count))
|
||||
sql = "select p.id,p.spu_id,p.skc_id,p.cat_id,p.cat_name,p.ext_code,p.product_name,p.main_img,p.notes,p.group," +
|
||||
"p.add_time,p.mdy_time,p.select_total_count,p.fission_words,p.head_words,p.end_words," +
|
||||
"p.product_get_type from kjd.product p where p.is_del=0";
|
||||
else
|
||||
sql = "SELECT p.id,p.spu_id,p.skc_id,p.cat_id,p.cat_name,p.ext_code,p.product_name,p.main_img,p.notes,p.group," +
|
||||
"p.add_time,p.mdy_time,p.select_total_count,p.fission_words,p.head_words,p.end_words,p.product_get_type" +
|
||||
",COUNT(s.id) AS select_count " +
|
||||
"FROM kjd.product p LEFT JOIN kjd.product_select s ON p.id=s.out_product_id AND s.shop_id='" + select_shop_id + "' " +
|
||||
"WHERE p.is_del=0";
|
||||
"p.add_time,p.mdy_time,p.select_total_count,p.fission_words,p.head_words,p.end_words,p.cost_price,p.product_get_type" +
|
||||
" FROM kjd.product p" +
|
||||
" WHERE p.is_del=0";
|
||||
else // 统计单店认领次数
|
||||
sql = "SELECT p.id,p.spu_id,p.skc_id,p.cat_id,p.cat_name,p.ext_code,p.product_name,p.main_img,p.notes,p.group," +
|
||||
"p.add_time,p.mdy_time,p.select_total_count,p.fission_words,p.head_words,p.end_words,p.cost_price,p.product_get_type" +
|
||||
",COUNT(s.id) AS select_count" +
|
||||
" FROM kjd.product p LEFT JOIN kjd.product_select s ON p.id=s.out_product_id AND s.shop_id='" + select_shop_id + "'" +
|
||||
" WHERE p.is_del=0";
|
||||
|
||||
if (!isDetail && product_get_type != "all") // 详情必须从列表页面进入,不用限制
|
||||
sql += " and p.product_get_type=" + product_get_type;
|
||||
sql += " AND p.product_get_type=" + product_get_type;
|
||||
|
||||
//where子句
|
||||
sql += where;
|
||||
|
||||
if (!isDetail && !string.IsNullOrEmpty(get_select_count))
|
||||
sql += " group by p.id";
|
||||
sql += " GROUP BY p.id";
|
||||
if (sort_field == "select_total_count")
|
||||
sql += " order by p.select_total_count desc, p.id desc";
|
||||
sql += " ORDER BY p.select_total_count desc, p.id desc";
|
||||
else
|
||||
sql += " order by p.id desc";
|
||||
sql += " limit " + Math.Max(page - 1, 0) * page_size + "," + page_size;
|
||||
sql += " ORDER BY p.id desc";
|
||||
sql += " LIMIT " + Math.Max(page - 1, 0) * page_size + "," + page_size;
|
||||
dt = mySql.ExecuteDataTable(sql);
|
||||
}
|
||||
|
||||
@@ -250,9 +251,10 @@ namespace KJD_Web.BLL
|
||||
notes = row["notes"].ToString(),
|
||||
group = row["group"].ToString(),
|
||||
select_total_count = row["select_total_count"].ParseToInt(),
|
||||
end_words = row["end_words"].ParseToString(),
|
||||
fission_words = row["fission_words"].ParseToString(),
|
||||
head_words = row["head_words"].ParseToString(),
|
||||
end_words = row["end_words"].ParseToString(),
|
||||
cost_price = row["cost_price"].ParseToString(),
|
||||
product_get_type = row["product_get_type"].ParseToInt(), //0母店采集 1前端直采
|
||||
};
|
||||
if (isDetail)
|
||||
@@ -369,6 +371,7 @@ namespace KJD_Web.BLL
|
||||
string fission_words = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "fission_words"))?.Replace("'", "\\'");
|
||||
string head_words = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "head_words"))?.Replace("'", "\\'");
|
||||
string end_words = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "end_words"))?.Replace("'", "\\'");
|
||||
string cost_price = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "cost_price"))?.Replace("'", "\\'");
|
||||
string product_json = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "product_json"))?.Replace("'", "\\'");
|
||||
string size_json = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "size_json"))?.Replace("'", "\\'");
|
||||
string original_json = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "original_json"))?.Replace("'", "\\'");
|
||||
@@ -395,6 +398,8 @@ namespace KJD_Web.BLL
|
||||
sql += " head_words='" + head_words + "',";
|
||||
if (end_words != null)
|
||||
sql += " end_words='" + end_words + "',";
|
||||
if (cost_price != null)
|
||||
sql += " cost_price='" + cost_price + "',";
|
||||
if (product_json != null)
|
||||
sql += " product_json='" + product_json + "',";
|
||||
if (size_json != null)
|
||||
@@ -1096,14 +1101,22 @@ namespace KJD_Web.BLL
|
||||
string sql = "select count(id) from kjd.sku_img s where 1=1";
|
||||
|
||||
string where = "";
|
||||
//if (!string.IsNullOrWhiteSpace(search_db_id))
|
||||
// where += " and s.id like '%" + search_db_id + "%'";
|
||||
//if (!string.IsNullOrWhiteSpace(search_product_id))
|
||||
// where += " and s.product_id like '%" + search_product_id + "%'";
|
||||
//if (!string.IsNullOrWhiteSpace(search_spec_id))
|
||||
// where += " and s.spec_id like '%" + search_spec_id + "%'";
|
||||
//if (!string.IsNullOrWhiteSpace(search_original_img_url))
|
||||
// where += " and s.original_img_url like '%" + search_original_img_url + "%'";
|
||||
if (!string.IsNullOrWhiteSpace(search_db_id))
|
||||
where += " and s.id like '%" + search_db_id + "%'";
|
||||
where += " and s.id = '" + search_db_id + "'";
|
||||
if (!string.IsNullOrWhiteSpace(search_product_id))
|
||||
where += " and s.product_id like '%" + search_product_id + "%'";
|
||||
where += " and s.product_id = '" + search_product_id + "'";
|
||||
if (!string.IsNullOrWhiteSpace(search_spec_id))
|
||||
where += " and s.spec_id like '%" + search_spec_id + "%'";
|
||||
where += " and s.spec_id = '" + search_spec_id + "'";
|
||||
if (!string.IsNullOrWhiteSpace(search_original_img_url))
|
||||
where += " and s.original_img_url like '%" + search_original_img_url + "%'";
|
||||
where += " and s.original_img_url = '" + search_original_img_url + "'";
|
||||
if (!string.IsNullOrEmpty(search_db_ids))
|
||||
where += " and s.id in (" + search_db_ids + ")";
|
||||
sql += where;
|
||||
|
||||
@@ -8,6 +8,7 @@ using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Web;
|
||||
using System.Web.Security;
|
||||
|
||||
@@ -94,7 +95,10 @@ namespace KJD_Web.BLL
|
||||
}
|
||||
else
|
||||
{
|
||||
sql = "SELECT s.*,c.add_product_remaining add_remaining,c.add_product_month add_month FROM kjd.shop s LEFT JOIN kjd.shop_add_prod_count c ON s.shop_id=c.shop_id WHERE 1=1";
|
||||
sql = "SELECT s.*,c.add_product_remaining add_remaining,c.add_product_month add_month,cc.jit_expire_time FROM kjd.shop s" +
|
||||
" LEFT JOIN kjd.shop_add_prod_count c ON s.shop_id=c.shop_id" +
|
||||
" LEFT JOIN (SELECT shop_id, MAX(expire_time) as jit_expire_time FROM kjd.card_code GROUP BY shop_id) cc ON s.shop_id=cc.shop_id" +
|
||||
" WHERE 1=1";
|
||||
|
||||
sql += where; // where 子句
|
||||
|
||||
@@ -131,6 +135,7 @@ namespace KJD_Web.BLL
|
||||
ad_login_status = row["ad_login_status"].ParseToString(),
|
||||
ad_seller_unique_id = row["ad_seller_unique_id"].ParseToString(),
|
||||
ad_url = row["ad_url"].ParseToString(),
|
||||
jit_expire_time = row["jit_expire_time"].IsNullOrEmpty() ? new DateTime?() : Convert.ToDateTime(row["jit_expire_time"]),
|
||||
};
|
||||
shopList.Add(shop);
|
||||
}
|
||||
@@ -807,5 +812,220 @@ namespace KJD_Web.BLL
|
||||
}
|
||||
return "{\"code\":19999,\"msg\":\"输入为空\"}";
|
||||
}
|
||||
|
||||
public string GetShopCardCodeList(string inputData)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(inputData))
|
||||
{
|
||||
var user_name = RegexUtils.GetStringQuery(ref inputData, "user_name");
|
||||
var password = RegexUtils.GetStringQuery(ref inputData, "password");
|
||||
var search_card_code_id = RegexUtils.GetStringQuery(ref inputData, "search_card_code_id");
|
||||
var search_shop_id = RegexUtils.GetStringQuery(ref inputData, "search_shop_id");
|
||||
var search_shop_name = RegexUtils.GetStringQuery(ref inputData, "search_shop_name");
|
||||
var search_notes = RegexUtils.GetStringQuery(ref inputData, "search_notes");
|
||||
var card_code_ids = RegexUtils.GetStringQuery(ref inputData, "card_code_ids")?.Replace("'", "");
|
||||
var sort_field = RegexUtils.GetStringQuery(ref inputData, "sort_field")?.Replace("'", "");
|
||||
if (!string.IsNullOrWhiteSpace(card_code_ids))
|
||||
{
|
||||
List<string> shopIdLst = card_code_ids.Split(',').ToList();
|
||||
card_code_ids = "'" + string.Join("','", shopIdLst) + "'";
|
||||
}
|
||||
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 list_notes = RegexUtils.GetStringQuery(ref inputData, "list_notes");
|
||||
if (!string.IsNullOrWhiteSpace(list_notes))
|
||||
{
|
||||
List<string> notesLst = list_notes.Split(',').ToList();
|
||||
list_notes = "'" + string.Join("','", notesLst) + "'";
|
||||
}
|
||||
|
||||
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 kjd.card_code s WHERE 1=1";
|
||||
|
||||
//where子句
|
||||
string where = "";
|
||||
if (!string.IsNullOrWhiteSpace(search_card_code_id))
|
||||
where += " and s.card_code_id like '%" + search_card_code_id + "%'";
|
||||
if (!string.IsNullOrWhiteSpace(search_shop_id))
|
||||
where += " and s.shop_id like '%" + search_shop_id + "%'";
|
||||
if (!string.IsNullOrWhiteSpace(search_shop_name))
|
||||
where += " and s.shop_account like '%" + search_shop_name + "%'";
|
||||
if (!string.IsNullOrWhiteSpace(search_notes))
|
||||
where += " and s.notes like '%" + search_notes + "%'";
|
||||
if (!string.IsNullOrWhiteSpace(card_code_ids))
|
||||
where += " and s.card_code_id in (" + card_code_ids + ")";
|
||||
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(list_notes))
|
||||
where += " and s.notes in (" + list_notes + ")";
|
||||
sql += where;
|
||||
|
||||
var count = mySql.ExecuteRowCount(sql);
|
||||
|
||||
DataTable dt;
|
||||
if (count == 0)
|
||||
{
|
||||
dt = new DataTable();
|
||||
}
|
||||
else
|
||||
{
|
||||
sql = "SELECT s.* FROM kjd.card_code s WHERE 1=1";
|
||||
|
||||
sql += where; // where 子句
|
||||
|
||||
// 排序
|
||||
if (sort_field == "expire_time")
|
||||
sql += " ORDER BY s.expire_time DESC";
|
||||
else
|
||||
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<JitCardCodeParam> cardCodeList = new List<JitCardCodeParam>();
|
||||
foreach (DataRow row in dt.Rows)
|
||||
{
|
||||
JitCardCodeParam cardCode = new JitCardCodeParam
|
||||
{
|
||||
id = Convert.ToInt32(row["id"]),
|
||||
shop_id = row["shop_id"].ToString(),
|
||||
shop_account = row["shop_account"].ToString(),
|
||||
add_time = (DateTime)row["add_time"],
|
||||
active_time = row["active_time"].IsNullOrEmpty() ? new DateTime?() : Convert.ToDateTime(row["active_time"]),
|
||||
expire_time = row["expire_time"].IsNullOrEmpty() ? new DateTime?() : Convert.ToDateTime(row["expire_time"]),
|
||||
card_code_id = row["card_code_id"].ToString(),
|
||||
notes = row["notes"].ToString(),
|
||||
};
|
||||
cardCodeList.Add(cardCode);
|
||||
}
|
||||
var data = JsonUtils.SerializerObjectToString(cardCodeList);
|
||||
|
||||
|
||||
return "{\"code\":200,\"msg\":\"success\",\"data\":" + data + ",\"count\":" + count + "}";
|
||||
}
|
||||
}
|
||||
return "{\"code\":19999,\"msg\":\"未知错误\"}";
|
||||
}
|
||||
|
||||
public string CreateShopCardCode(string inputData)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(inputData))
|
||||
{
|
||||
var time = RegexUtils.GetStringQuery(ref inputData, "time").ParseToInt();
|
||||
string time1 = RegexUtils.GetStringQuery(ref inputData, "code");
|
||||
if (time1 != EncrypUtil.Encryption(time))
|
||||
return "{\"code\":50000,\"msg\":\"校验失败\"}";
|
||||
|
||||
var user_name = RegexUtils.GetStringQuery(ref inputData, "user_name")?.Replace("'", "\\'");
|
||||
if (string.IsNullOrEmpty(user_name))
|
||||
{
|
||||
return "{\"code\":50001,\"msg\":\"没有用户名\"}";
|
||||
}
|
||||
|
||||
var create_count = RegexUtils.GetStringQuery(ref inputData, "create_count")?.Replace("'", "\\'");
|
||||
|
||||
if (string.IsNullOrEmpty(create_count))
|
||||
{
|
||||
return "{\"code\":50002,\"msg\":\"未选择生成数量\"}";
|
||||
}
|
||||
|
||||
string conn = System.Configuration.ConfigurationManager.ConnectionStrings["ConnKJD"].ConnectionString;
|
||||
MysqlUtils mySql = new MysqlUtils(conn);
|
||||
string sql = "insert into kjd.card_code (card_code_id) values ";
|
||||
Random random = new Random(Guid.NewGuid().GetHashCode());
|
||||
for (int i = 0; i < create_count.ParseToInt(); i++)
|
||||
{
|
||||
sql += "('" + GenerateCardCode(random, 16) + "'),";
|
||||
}
|
||||
sql = sql.TrimEnd(',') + ";";
|
||||
var rst = mySql.ExecuteNonQuery(sql);
|
||||
mySql.Close();
|
||||
if (rst)
|
||||
{
|
||||
return "{\"code\":200,\"msg\":\"success\"}";
|
||||
}
|
||||
else
|
||||
{
|
||||
return "{\"code\":500,\"msg\":\"" + mySql.Message + "\"}";
|
||||
}
|
||||
}
|
||||
return "{\"code\":19999,\"msg\":\"输入为空\"}";
|
||||
}
|
||||
|
||||
public string DelShopCardCode(string inputData)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(inputData))
|
||||
{
|
||||
var time = RegexUtils.GetStringQuery(ref inputData, "time").ParseToInt();
|
||||
string time1 = RegexUtils.GetStringQuery(ref inputData, "code");
|
||||
if (time1 != EncrypUtil.Encryption(time))
|
||||
return "{\"code\":50000,\"msg\":\"校验失败\"}";
|
||||
|
||||
var user_name = RegexUtils.GetStringQuery(ref inputData, "user_name")?.Replace("'", "\\'");
|
||||
if (string.IsNullOrEmpty(user_name))
|
||||
{
|
||||
return "{\"code\":50001,\"msg\":\"没有用户名\"}";
|
||||
}
|
||||
|
||||
var del_ids = RegexUtils.GetStringQuery(ref inputData, "del_ids")?.Replace("'", "\\'");
|
||||
|
||||
if (string.IsNullOrEmpty(del_ids))
|
||||
{
|
||||
return "{\"code\":50002,\"msg\":\"未选择删除数据\"}";
|
||||
}
|
||||
|
||||
string conn = System.Configuration.ConfigurationManager.ConnectionStrings["ConnKJD"].ConnectionString;
|
||||
MysqlUtils mySql = new MysqlUtils(conn);
|
||||
string sql = "delete from kjd.card_code where id in (" + del_ids + ");";
|
||||
var rst = mySql.ExecuteNonQuery(sql);
|
||||
mySql.Close();
|
||||
if (rst)
|
||||
{
|
||||
return "{\"code\":200,\"msg\":\"success\"}";
|
||||
}
|
||||
else
|
||||
{
|
||||
return "{\"code\":500,\"msg\":\"" + mySql.Message + "\"}";
|
||||
}
|
||||
}
|
||||
return "{\"code\":19999,\"msg\":\"输入为空\"}";
|
||||
}
|
||||
|
||||
private static readonly char[] chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".ToCharArray(); // 增加特殊字符
|
||||
|
||||
public static string GenerateCardCode(Random random, int length)
|
||||
{
|
||||
StringBuilder result = new StringBuilder(length);
|
||||
for (int i = 0; i < length; i++)
|
||||
{
|
||||
result.Append(chars[random.Next(chars.Length)]);
|
||||
}
|
||||
return result.ToString();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -112,6 +112,7 @@
|
||||
<Compile Include="Model\DBProductResultParam.cs" />
|
||||
<Compile Include="Model\ProductPurchasePriceResultParam.cs" />
|
||||
<Compile Include="Model\ProductSelectResultParam.cs" />
|
||||
<Compile Include="Model\ShopModel\JitCardCodeParam.cs" />
|
||||
<Compile Include="Model\ShopModel\ShopParam.cs" />
|
||||
<Compile Include="Model\ShopModel\sku_img_replace.cs" />
|
||||
<Compile Include="Model\SkuImgResult.cs" />
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<UseIISExpress>true</UseIISExpress>
|
||||
@@ -8,7 +8,7 @@
|
||||
<IISExpressWindowsAuthentication />
|
||||
<IISExpressUseClassicPipelineMode />
|
||||
<UseGlobalApplicationHostFile />
|
||||
<LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig>
|
||||
<LastActiveSolutionConfig>Release|Any CPU</LastActiveSolutionConfig>
|
||||
<ProjectView>ShowAllFiles</ProjectView>
|
||||
</PropertyGroup>
|
||||
<ProjectExtensions>
|
||||
|
||||
@@ -18,7 +18,14 @@ namespace KJD_Web.Model
|
||||
public string cat_id { get; set; }
|
||||
public string main_cat_name { get; set; }
|
||||
public string cat_name { get; set; }
|
||||
/// <summary>
|
||||
/// 母店价格
|
||||
/// </summary>
|
||||
public string price_text { get; set; }
|
||||
/// <summary>
|
||||
/// 成本价格
|
||||
/// </summary>
|
||||
public string cost_price { get; set; }
|
||||
public string change_cat_id { get; set; }
|
||||
public string change_cat_name { get; set; }
|
||||
public string ext_code { get; set; }
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
|
||||
namespace KJD_Web.Model.ShopModel
|
||||
{
|
||||
public class JitCardCodeParam
|
||||
{
|
||||
public int id { get; set; }
|
||||
public string card_code_id { get; set; }
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
public DateTime add_time { get; set; }
|
||||
/// <summary>
|
||||
/// 激活时间
|
||||
/// </summary>
|
||||
public DateTime? active_time { get; set; }
|
||||
/// <summary>
|
||||
/// 过期时间
|
||||
/// </summary>
|
||||
public DateTime? expire_time { get; set; }
|
||||
public string shop_id { get; set; }
|
||||
public string shop_account { get; set; }
|
||||
public string notes { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -52,5 +52,6 @@ namespace KJD_Web.Model.ShopModel
|
||||
/// temu推广直通车登录状态
|
||||
/// </summary>
|
||||
public string ad_login_status { get; set; }
|
||||
public DateTime? jit_expire_time { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -216,5 +216,43 @@ namespace KJD_Web
|
||||
Context.Response.Write(result);
|
||||
Context.Response.End();
|
||||
}
|
||||
|
||||
|
||||
|
||||
[WebMethod]
|
||||
public void get_shop_card_code_list()
|
||||
{
|
||||
string jsontext = GetRequestJsonString();
|
||||
|
||||
var result = jsontext;
|
||||
result = new ShopManage().GetShopCardCodeList(jsontext);
|
||||
|
||||
Context.Response.Write(result);
|
||||
Context.Response.End();
|
||||
}
|
||||
|
||||
[WebMethod]
|
||||
public void create_shop_card_code()
|
||||
{
|
||||
string jsontext = GetRequestJsonString();
|
||||
|
||||
var result = jsontext;
|
||||
result = new ShopManage().CreateShopCardCode(jsontext);
|
||||
|
||||
Context.Response.Write(result);
|
||||
Context.Response.End();
|
||||
}
|
||||
|
||||
[WebMethod]
|
||||
public void del_shop_card_code()
|
||||
{
|
||||
string jsontext = GetRequestJsonString();
|
||||
|
||||
var result = jsontext;
|
||||
result = new ShopManage().DelShopCardCode(jsontext);
|
||||
|
||||
Context.Response.Write(result);
|
||||
Context.Response.End();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user