refactor(StoreExcelImportService): 优化商品类目查询逻辑
- 将商品类目查询改为缓存模式,避免重复调用远程接口 - 新增 goodsCategoryCache 成员变量存储商品类目缓存 - 在初始化商户缓存时同时查询并缓存商品类目数据 - 修改验证产品分类方法使用缓存数据替代实时查询 - 优化 validateCategorySceneRelation 方法使用缓存参数 - 添加异常处理确保缓存初始化失败时有默认值
Showing
1 changed file
with
25 additions
and
12 deletions
-
Please register or sign in to post a comment