Ver código fonte

仓库搜索向上找仓库且包含自身

mac 2 anos atrás
pai
commit
74b4b10ae7

+ 2 - 1
kxs-store/kxs-store-biz/src/main/java/com/kxs/store/biz/service/impl/KxsWarehouseServiceImpl.java

@@ -60,7 +60,8 @@ public class KxsWarehouseServiceImpl extends ServiceImpl<KxsWarehouseMapper, Kxs
         KxsUser user = RetOps.of(kxsUserR)
         KxsUser user = RetOps.of(kxsUserR)
                 .getData()
                 .getData()
                 .orElseThrow(() -> new GlobalCustomerException(ErrorTypeEnum.USER_NOT_FOUND.getDescription()));
                 .orElseThrow(() -> new GlobalCustomerException(ErrorTypeEnum.USER_NOT_FOUND.getDescription()));
-        String[] pidPaths = user.getPidPath().split(StrUtil.COMMA);
+        //包含自身的
+        String[] pidPaths = (user.getPidPath() + userId).split(StrUtil.COMMA);
         param.setWhsUserIds(pidPaths);
         param.setWhsUserIds(pidPaths);
 
 
         return baseMapper.searchList(page, param);
         return baseMapper.searchList(page, param);