优化售后单命名规则 产品入库时删除原商品详情内容节约空间
This commit is contained in:
1 parent
257262517b
commit
381332b7c8
19 files changed
+636
-49
No files matched your search
@@ -958,6 +958,25 @@ namespace KJD_Web.BLL.BXX
|
||||
mySql.Close();
|
||||
}
|
||||
}
|
||||
if (prod.product_json.Contains("\"source_json\"") && !prod.product_json.Contains("\"source_json\":null"))
|
||||
{
|
||||
mySql = new MysqlUtils(conn);
|
||||
try
|
||||
{
|
||||
JObject jObj = JsonUtils.JObjectParse(prod.product_json);
|
||||
jObj["source_json"] = null;
|
||||
var newProdJson = JsonUtils.SerializeObject(jObj);
|
||||
sql = "update bxx.product set product_json=@product_json where spu_id='" + prod.spu_id + "'";
|
||||
paramLst = new List<MySqlParameter>();
|
||||
paramLst.Add(new MySqlParameter() { DbType = DbType.String, ParameterName = "product_json", Value = newProdJson, });
|
||||
mySql.ExecuteNonQuery(sql, paramLst.ToArray());
|
||||
prod.product_json = newProdJson;
|
||||
}
|
||||
catch
|
||||
{
|
||||
}
|
||||
mySql.Close();
|
||||
}
|
||||
}
|
||||
if (!string.IsNullOrEmpty(get_select_count))
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user