fix【【轨迹中台】kpi预警新增预警因素销售产品限制不能输入中文】

https://www.tapd.cn/60863849/bugtrace/bugs/view/1160863849001049573
This commit is contained in:
xiaolipro 2024-09-24 11:52:01 +08:00
parent 25fc75138a
commit 5a9f9fa667

View File

@ -134,6 +134,11 @@ public class ForewarningHelper
throw new BusinessException(message: "产品代码只接收字符串");
}
if (!StringHelper.IsValidEnglishString(value.ToString()))
{
throw new BusinessException(message: "产品代码只能的英文字符");
}
rules[row].ProductCode = strValue;
break;
default: