change-更新人工叫料接口

master
liuwf 1 year ago
parent 61458c37f5
commit 564ea6c8fb

@ -377,9 +377,9 @@ namespace Khd.Core.Application
try
{
_dbContext.ChangeTracker.Clear();
WmsRawOutstock wmsRawOutstock = _dbContext.WmsRawOutstock.FirstOrDefault(t => t.rawOutstockId == Convert.ToInt64(callMaterial.rawOutstockId));
if (wmsRawOutstock != null)
{
// WmsRawOutstock wmsRawOutstock = _dbContext.WmsRawOutstock.FirstOrDefault(t => t.rawOutstockId == Convert.ToInt64(callMaterial.rawOutstockId));
//if (wmsRawOutstock != null)
//{
bool hasTask = _dbContext.WcsTask.Where(t => t.currPointId == 31 || t.endPointId == 31).Any();
var taskManual = _dbContext.WcsTaskManual.Where(t => t.taskType == 999).FirstOrDefault();
if (hasTask)
@ -413,12 +413,12 @@ namespace Khd.Core.Application
reponseMessage.message = "修改成功";
}
}
}
else
{
reponseMessage.code = "1";
reponseMessage.message = "未找到当前申请单的任务";
}
//}
//else
//{
// reponseMessage.code = "1";
// reponseMessage.message = "未找到当前申请单的任务";
//}
}
catch (Exception ex)
{

Loading…
Cancel
Save