Commit 47e1a2c0 by zhoujinhui

修正手动盘点状态问题

parent 0a7da5b2
......@@ -1001,6 +1001,13 @@ namespace Service.TakeStock
var response = await PostData<WMSResponseDto<string>, RequestDto<List<ModifStockInputDto>>>(requestData, "WMSStockService/BatchModifAndEnabled");
if (response.IsSuccess)
{
foreach (var itemOrder in orders)
{
itemOrder.State = TSOrderState.完成;
itemOrder.LastModificationTime = DateTime.Now;
await _orderRepository.UpdateAsync(itemOrder, "State", "LastModificationTime");
}
findSchedule.State = TSScheduleState.完成;
result.IsSuccess = await _scheduleRepository.UpdateAsync(findSchedule, "State", "AuditDateTime", "AuditExplain", "AuditUserId", "AuditUserName", "IsAutomation") > 0;
}
}
......
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