goupan
2024-04-14 ca931b87c7d7de8d3c75d6a4a5f0693d77420c8c
roses/kernel-s-customer/customer-business/src/main/java/cn/stylefeng/roses/kernel/customer/modular/service/impl/CustomerServiceImpl.java
@@ -643,12 +643,12 @@
    }
    @Override
    public Long randomWorkerIdByLineStatusAndPostNeWorkerId(String lineStatus, Integer postType, Integer postId, Integer workStatus, List<Long> eqWorkerIdList, List<Long> neWorkerIdList) {
    public Long randomWorkerIdByLineStatusAndPostNeWorkerId(String lineStatus, Integer postType, Integer postId, Integer workStatus, Integer mentalAnalysisStatus, List<Long> eqWorkerIdList, List<Long> neWorkerIdList) {
        // 获取指定在线状态,指定岗位的工作人员ID
        List<Customer> list = this.baseMapper.randomWorkerByLineStatusAndPostNeWorkerId(lineStatus, postType, postId, workStatus, eqWorkerIdList, neWorkerIdList);
        List<Long> list = this.baseMapper.randomWorkerByLineStatusAndPostNeWorkerId(lineStatus, postType, postId, workStatus, mentalAnalysisStatus, eqWorkerIdList, neWorkerIdList);
        if (CollUtil.isNotEmpty(list)) {
            // 随机一个工作人员ID
            return list.get(RandomUtil.randomInt(list.size())).getCustomerId();
            return list.get(RandomUtil.randomInt(list.size()));
        }
        return null;
    }