Commit a7550574 by jiawei.su

someupdate

parent c1175f5e
...@@ -320,7 +320,15 @@ namespace Siger.ApiACC.Controllers ...@@ -320,7 +320,15 @@ namespace Siger.ApiACC.Controllers
{ {
throw new BadRequestException(AccEnum.TaskProcessing); throw new BadRequestException(AccEnum.TaskProcessing);
} }
var location = _automationLocation.Get(f => f.locationid == loading.locationid);
if (location==null)
{
throw new BadRequestException(AccEnum.LocationNoExits);
}
if (string.IsNullOrEmpty(location.sn))
{
throw new BadRequestException(AccEnum.LocationSnExits);
}
var plandts = _planDetails.Get(f => f.projectId == ProjectId && f.OrderNumber == loading.code); var plandts = _planDetails.Get(f => f.projectId == ProjectId && f.OrderNumber == loading.code);
if (plandts==null) if (plandts==null)
{ {
......
...@@ -351,7 +351,9 @@ namespace Siger.Middlelayer.Common.ModuleEnum ...@@ -351,7 +351,9 @@ namespace Siger.Middlelayer.Common.ModuleEnum
[Description("该工站正在上料中")] [Description("该工站正在上料中")]
Uploading, Uploading,
[Description("该工站正在下料中")] [Description("该工站正在下料中")]
Downloading Downloading,
[Description("储位不存在")]
LocationNoExits
} }
public enum SeriNumCfg public enum SeriNumCfg
......
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