|
@@ -2387,6 +2387,11 @@ namespace wms.service.Service
|
|
|
//更新库存
|
|
|
_billnowrepository.UpdateModelColumns(p => new cpBillInvnow() { PutRow = 0, PutCol = 0, PutLayer = 0 }, p => p.InvStateCode == InvState.InvEcecState_OutGoing.ToString() && p.ContGrpBarCode == wcstask.BarCode);
|
|
|
var stocklist = _billnowrepository.GetList(p => p.ContGrpBarCode == wcstask.BarCode && p.InvStateCode == InvState.InvEcecState_OutGoing.ToString());
|
|
|
+ if (wcstask.BusType == CpTaskBusType.TaskBusType_CP_WeightOut.GetDescription())
|
|
|
+ {
|
|
|
+ //更新库存
|
|
|
+ _billnowrepository.UpdateModelColumns(p => new cpBillInvnow() { InvStateCode = InvState.InvEcecState_BuildUp.ToString()}, p => p.InvStateCode == InvState.InvEcecState_OutGoing.ToString() && p.ContGrpBarCode == wcstask.BarCode);
|
|
|
+ }
|
|
|
if (stocklist == null || !stocklist.Any())
|
|
|
{
|
|
|
result.ResCode = ResponseStatusCodeEnum.StockNotExist.GetHashCode();
|
|
@@ -5496,7 +5501,7 @@ namespace wms.service.Service
|
|
|
DateTime startTime = new DateTime(now.Year, now.Month, now.Day, hour, 0, 0);
|
|
|
// 当天 10:59 结束
|
|
|
DateTime endTime = new DateTime(now.Year, now.Month, now.Day, hour, 59, 59);
|
|
|
- if (_wcstaskinfo.IsAny(p => p.AddTime > startTime && p.AddTime < endTime && p.BusType == CpTaskBusType.TaskBusType_CP_WeightOut.GetDescription()))
|
|
|
+ if (_wcstaskold.AsQueryable().Where(p => p.AddTime > startTime && p.AddTime < endTime && p.BusType.Contains("砝码")).SplitTable(p=>p.Take(2)).Any())
|
|
|
{
|
|
|
result.ResCode = ResponseStatusCodeEnum.EquipInfoNotExist.GetHashCode();
|
|
|
result.ResMsg = "本周期内已执行过";
|