2 天以前 c41453da216df0e5c01a9d319544c88446e22b66
src/main/java/com/ruoyi/ai/tools/SalesAgentTools.java
@@ -81,7 +81,8 @@
        customerDto.setType(normalizeSeaType(seaType));
        customerDto.setUsageStatus(1L);
        List<CustomerVo> rows = defaultList(customerMapper.list(customerDto, loginUser.getUserId()));
        boolean isAdmin = SecurityUtils.hasPermi("customer:viewAll");
        List<CustomerVo> rows = defaultList(customerMapper.list(customerDto, loginUser.getUserId(), isAdmin));
        List<CustomerVo> filtered = rows.stream()
                .filter(item -> matchCustomerKeyword(item, keyword))
                .sorted(Comparator.comparing(CustomerVo::getId, Comparator.nullsLast(Comparator.reverseOrder())))