Commit 648a11d5 by zhousiqiang

no message

parent 621f7beb
...@@ -459,12 +459,17 @@ namespace API.Services.ProductManageServices ...@@ -459,12 +459,17 @@ namespace API.Services.ProductManageServices
if (!isBatch || (isBatch && string.IsNullOrWhiteSpace(sql.SQL))) if (!isBatch || (isBatch && string.IsNullOrWhiteSpace(sql.SQL)))
{ {
var objState = yt_product_state.FirstOrDefault(" where st_sid = @0", objModel.s_id); var objState = yt_product_state.FirstOrDefault(" where st_sid = @0", objModel.s_id);
//已上传环球SKU则不能再修改 //已上传环球SKU则不能再修改
if (objState.st_isupapi == 1 && objModel.s_sku != item.s_sku) if (objState != null)
{ {
item.s_product = objModel.s_product; if (objState.st_isupapi == 1 && objModel.s_sku != item.s_sku)
item.s_sku = objModel.s_sku; {
item.s_product = objModel.s_product;
item.s_sku = objModel.s_sku;
}
} }
//百伦分类名称改变时重新获取分类路径 //百伦分类名称改变时重新获取分类路径
if(item.s_category_bailun_id > 0) if(item.s_category_bailun_id > 0)
{ {
...@@ -637,11 +642,14 @@ namespace API.Services.ProductManageServices ...@@ -637,11 +642,14 @@ namespace API.Services.ProductManageServices
if (!isBatch || (isBatch && string.IsNullOrWhiteSpace(sql.SQL))) if (!isBatch || (isBatch && string.IsNullOrWhiteSpace(sql.SQL)))
{ {
var objState = yt_product_state.FirstOrDefault(" where st_sid = @0", objBase.s_id); var objState = yt_product_state.FirstOrDefault(" where st_sid = @0", objBase.s_id);
//已上传环球SKU则不能再修改 if (objState != null)
if (objState.st_isupapi == 1 && objModel.ex_sku != item.ex_sku)
{ {
item.ex_sku = objModel.ex_sku; //已上传环球SKU则不能再修改
} if (objState.st_isupapi == 1 && objModel.ex_sku != item.ex_sku)
{
item.ex_sku = objModel.ex_sku;
}
}
} }
if (isSame) if (isSame)
{ {
...@@ -828,11 +836,14 @@ namespace API.Services.ProductManageServices ...@@ -828,11 +836,14 @@ namespace API.Services.ProductManageServices
if (!isBatch || (isBatch && string.IsNullOrWhiteSpace(sql.SQL))) if (!isBatch || (isBatch && string.IsNullOrWhiteSpace(sql.SQL)))
{ {
var objState = yt_product_state.FirstOrDefault(" where st_sid = @0", objBase.s_id); var objState = yt_product_state.FirstOrDefault(" where st_sid = @0", objBase.s_id);
//已上传环球SKU则不能再修改 if (objState != null)
if (objState.st_isupapi == 1 && objModel.sp_sku != item.sp_sku)
{ {
item.sp_sku = objModel.sp_sku; //已上传环球SKU则不能再修改
} if (objState.st_isupapi == 1 && objModel.sp_sku != item.sp_sku)
{
item.sp_sku = objModel.sp_sku;
}
}
} }
var dicModel = ConvertToDictionary(objModel); var dicModel = ConvertToDictionary(objModel);
strSql = GetPropertyValue(item, dicModel, out paralist, out _logList); strSql = GetPropertyValue(item, dicModel, out paralist, out _logList);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment