货主账号查询入库业务单报错处理;

This commit is contained in:
王奎兴
2026-08-12 15:20:36 +08:00
parent a310c9dfa6
commit 1d01431354
@@ -136,13 +136,13 @@ public class ReservationStockInOrderApplicationService {
} }
} }
// 前端有传warehouseId则优先使用传参;未传时才使用"用户关联仓库"作为默认值 // 前端有传warehouseId则优先使用传参;未传时才使用"用户关联仓库"作为默认值
if (stockInOrderDO.getWarehouseId() == null) { // if (stockInOrderDO.getWarehouseId() == null) {
AssociationWarehouseCacheDO associationWarehouseCacheDO = // AssociationWarehouseCacheDO associationWarehouseCacheDO =
SystemServiceCacheUtil.getAssociationWarehouseCache(loginUser.getUserid()); // SystemServiceCacheUtil.getAssociationWarehouseCache(loginUser.getUserid());
if (associationWarehouseCacheDO != null) { // if (associationWarehouseCacheDO != null) {
stockInOrderDO.setWarehouseId(associationWarehouseCacheDO.getWarehouseId()); // stockInOrderDO.setWarehouseId(associationWarehouseCacheDO.getWarehouseId());
} // }
} // }
} }
// 库管角色过滤:不展示已创建(status=1)的入库单 // 库管角色过滤:不展示已创建(status=1)的入库单