|
@@ -369,7 +369,7 @@ namespace SCADA_DAQ.Customer.Service
|
|
|
ErrorMsg = wmsRes.Result.Error
|
|
|
});
|
|
|
}
|
|
|
-
|
|
|
+ // wmsRes.Success == true && wmsRes.Result.IsSuccess == true
|
|
|
if (wmsRes.Success == true && wmsRes.Result.IsSuccess == true)
|
|
|
{
|
|
|
message = $@"{message} {task[i].TaskNo}上传成功";
|
|
@@ -388,7 +388,7 @@ namespace SCADA_DAQ.Customer.Service
|
|
|
var updateSumItemQtyList = new List<AppBCInventoryModel>();
|
|
|
#region /完成任务更新库存数量逻辑
|
|
|
var successItemTaskQtyList = successItemTaskQty.ToLookup(t => new { t.ItemCode, t.SourceLocation, t.WarehouseCode }).ToList();
|
|
|
- string inventoryFilter = null;
|
|
|
+ string inventoryFilter = "ID = 0";
|
|
|
foreach (var itemTaskQtyValues in successItemTaskQtyList)
|
|
|
{
|
|
|
foreach (var itemTaskQtyValue in itemTaskQtyValues)
|
|
@@ -416,7 +416,7 @@ namespace SCADA_DAQ.Customer.Service
|
|
|
//以上foreach为了将相同物料,库区,库位的数量相加
|
|
|
for (int j = 0; j < updateSumItemQtyList.Count; j++)
|
|
|
{
|
|
|
- if (inventoryFilter == null)
|
|
|
+ if (inventoryFilter == "ID = 0")
|
|
|
{
|
|
|
inventoryFilter = $" (ItemCode_Str = '{updateSumItemQtyList[j].ItemCode}' and SourceLocation_Str = '{updateSumItemQtyList[j].SourceLocation}' and WarehouseCode_Str = '{updateSumItemQtyList[j].WarehouseCode}') ";
|
|
|
}
|