Commit 56bbe720 by zxw

限制警号不能超过9位

parent 5dde6382
......@@ -593,6 +593,10 @@ namespace JunmpPoliceStation.Controllers
{
return JsonManager.SimpleCustResponse($"PoliceCode is require");
}
else if (entity.policeCode.Length > 9)
{
return JsonManager.SimpleCustResponse($"PoliceCode長度不能超過9位");
}
else if (string.IsNullOrEmpty(entity.orgizationCode ?? ""))
{
return JsonManager.SimpleCustResponse($"OrgizationCode is require");
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论