From 94b7e690bc6941b440720eb5702b924db1edf00c Mon Sep 17 00:00:00 2001 From: huangjiayang <5265313@qq.com> Date: 星期一, 12 五月 2025 17:27:08 +0800 Subject: [PATCH] 【UPDATE】1.新增库存信息存入到Redis中 2.修改为批量插入Redis 3.同步库存数据后将库存数据存入到Redis中 --- aps-api/aps-api-system/src/main/java/com/aps/system/api/factory/RemoteCoreFallbackFactory.java | 21 ++++++++++++++++++++- 1 files changed, 20 insertions(+), 1 deletions(-) diff --git a/aps-api/aps-api-system/src/main/java/com/aps/system/api/factory/RemoteCoreFallbackFactory.java b/aps-api/aps-api-system/src/main/java/com/aps/system/api/factory/RemoteCoreFallbackFactory.java index b2d846d..ca6e0bd 100644 --- a/aps-api/aps-api-system/src/main/java/com/aps/system/api/factory/RemoteCoreFallbackFactory.java +++ b/aps-api/aps-api-system/src/main/java/com/aps/system/api/factory/RemoteCoreFallbackFactory.java @@ -21,6 +21,25 @@ public RemoteCoreService create(Throwable throwable) { log.error("浠诲姟鏈嶅姟璋冪敤澶辫触:{}", throwable.getMessage()); - return source -> R.fail("BOM鏁版嵁瀛樺偍鍒癛edis涓け璐�:" + throwable.getMessage()); + return new RemoteCoreService() + { + @Override + public R<Boolean> setBomDataToRedis(String source) + { + return R.fail("BOM鏁版嵁瀛樺偍鍒癛edis涓け璐�:" + throwable.getMessage()); + } + + @Override + public R<Boolean> setProcessRouteDataToRedis(String source) + { + return R.fail("宸ヨ壓璺嚎鏁版嵁瀛樺偍鍒癛edis涓け璐�:" + throwable.getMessage()); + } + + @Override + public R<Boolean> setStorageDataToRedis(String source) + { + return R.fail("搴撳瓨鏁版嵁瀛樺偍鍒癛edis涓け璐�:" + throwable.getMessage()); + } + }; } } -- Gitblit v1.9.3