【优化】取消sku货品货号必须包含【SN】的限制。

【调整】调整Sku切割方式,将小写逗号【.】,替换为【&&】;同时更新表【CoreCmsGoods】内数据,请大家执行sql脚本更新存储的sku数据。
This commit is contained in:
大灰灰
2022-11-04 02:56:53 +08:00
parent ac3de3e5ad
commit 6e35ffb357
15 changed files with 45 additions and 32 deletions

View File

@@ -74,12 +74,13 @@ namespace CoreCms.Net.Repository
//检查数据
foreach (var item in entity.products)
{
if (!item.sn.Contains("sn") && !item.sn.Contains("SN"))
{
jm.msg = "请键入货品货号货号为SN英文开头";
return jm;
}
else if (item.stock < 0)
//if (!item.sn.Contains("sn") && !item.sn.Contains("SN"))
//{
// jm.msg = "请键入货品货号货号为SN英文开头";
// return jm;
//}
//else
if (item.stock < 0)
{
jm.msg = "库存不能为0";
return jm;
@@ -327,12 +328,13 @@ namespace CoreCms.Net.Repository
//检查数据
foreach (var item in entity.products)
{
if (!item.sn.Contains("sn") && !item.sn.Contains("SN"))
{
jm.msg = "请键入货品货号货号为SN英文开头";
return jm;
}
else if (item.stock < 0)
//if (!item.sn.Contains("sn") && !item.sn.Contains("SN"))
//{
// jm.msg = "请键入货品货号货号为SN英文开头";
// return jm;
//}
//else
if (item.stock < 0)
{
jm.msg = "库存不能为0";
return jm;