xxyy
2025-03-10 438a163b5eb1e8a40e7f39f46602962b7f95a6f6
更新库存状态并清理相关缓存

在 `AspNetCoreSchedule.cs` 文件中,向 `WIDESEA_StorageTaskServices` 命名空间添加了一行代码,删除与 `taskDTO.PalletCode` 相关的库存信息缓存。这一更改确保在更新库存位置状态后,缓存数据的一致性。
已修改1个文件
1 ■■■■ 文件已修改
Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StorageTaskServices/AspNetCoreSchedule.cs 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StorageTaskServices/AspNetCoreSchedule.cs
@@ -93,6 +93,7 @@
                        _taskRepository.AddData(task);
                        // 更新库存位置状态为不可用
                        item.LocationInfo.LocationStatus = (int)LocationEnum.InStockDisable;
                        _simpleCacheService.HashDel<DtStockInfo>(WIDESEA_Cache.CacheConst.Cache_DtStockInfo, new string[] { taskDTO.PalletCode });
                        _locationRepository.UpdateData(item.LocationInfo);
                    }
                }