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 != null)
{
if (objState.st_isupapi == 1 && objModel.s_sku != item.s_sku) if (objState.st_isupapi == 1 && objModel.s_sku != item.s_sku)
{ {
item.s_product = objModel.s_product; item.s_product = objModel.s_product;
item.s_sku = objModel.s_sku; item.s_sku = objModel.s_sku;
} }
}
//百伦分类名称改变时重新获取分类路径 //百伦分类名称改变时重新获取分类路径
if(item.s_category_bailun_id > 0) if(item.s_category_bailun_id > 0)
{ {
...@@ -637,12 +642,15 @@ namespace API.Services.ProductManageServices ...@@ -637,12 +642,15 @@ 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);
if (objState != null)
{
//已上传环球SKU则不能再修改 //已上传环球SKU则不能再修改
if (objState.st_isupapi == 1 && objModel.ex_sku != item.ex_sku) if (objState.st_isupapi == 1 && objModel.ex_sku != item.ex_sku)
{ {
item.ex_sku = objModel.ex_sku; item.ex_sku = objModel.ex_sku;
} }
} }
}
if (isSame) if (isSame)
{ {
//修改采购仓库,如果可为发货仓同时修改该区域下的发货仓,没有则新增 //修改采购仓库,如果可为发货仓同时修改该区域下的发货仓,没有则新增
...@@ -828,12 +836,15 @@ namespace API.Services.ProductManageServices ...@@ -828,12 +836,15 @@ 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);
if (objState != null)
{
//已上传环球SKU则不能再修改 //已上传环球SKU则不能再修改
if (objState.st_isupapi == 1 && objModel.sp_sku != item.sp_sku) if (objState.st_isupapi == 1 && objModel.sp_sku != item.sp_sku)
{ {
item.sp_sku = objModel.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